1 2012-04-11 Glenn Morris <rgm@gnu.org>
3 * Makefile.in (C_SWITCH_X_SYSTEM): Remove.
4 (ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM.
6 2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
8 Static checks with GCC 4.6.0 and non-default toolkits.
10 Modernize to C89, for better static checking.
11 * Activate.c (XMenuActivate): Callback's first arg is readonly.
12 * AddPane.c (XMenuAddPane): Label is readonly. Rename local
14 * AddSel.c (XMenuAddSelection): Help arg is readonly. Rename local.
15 * Create.c (atoi, atof): Remove decls; include <stdlib.h>.
16 (MAX_INACT_PNUM, TILE_BUF_SIZE): Remove; unused.
17 (x_get_resource_string): Args are readonly.
18 (XAllocDisplayColor): colorName is readonly.
19 (XMenuCreate): def_env is readonly. Remove unused locals. Avoid
21 * Destroy.c (XMenuDestroy): Return void.
22 * Error.c (XMenuError): Remove const pointer.
23 * EvHand.c (XMenuEventHandler): Return void.
24 * FindPane.c, FindSel.c: Include <string.h>.
25 * InsPane.c (XMenuInsertPane): Rename local to avoid shadowing.
26 * InsSel.c (XMenuInsertSelection): Likewise.
27 * Internal.c (toggle_color, BUFFER_SIZE): Remove; unused.
28 (_XMErrorList): Now const.
29 (_XMWinQueInit, _XMRecomputeGlobals, _XMTransToOrigin, _XMRefreshPane):
30 (_XMRefreshSelection): Return void.
31 (_XMWinQueFlush, _XMRefreshSelection): Rename locals to avoid
33 (_XMWinQueFlush): Use stack, not heap. Don't use uninitialized var.
34 * SetAEQ.c (XMenuSetAEQ): Now returns void.
35 * SetFrz.c (XMenuSetFreeze): Likewise.
36 * X10.h (XAssoc): Use void * for generic pointer.
37 * XDelAssoc.c: Include XMenuInt.h rather than duplicating part of it.
38 * XDestAssoc.c, XMakeAssoc.c: Likewise.
39 * XDestAssoc.c (XDestroyAssocTable): Return void.
40 * XMakeAssoc.c (XMakeAssoc): Use void * for generic pointer.
41 * XMenu.h, XMenuInt.h: Adjust to signature changes. Use const
42 for pointers to readonly storage.
43 * insque.c: Include XMenuInt.h, to check our own signature.
44 (emacs_insque, emacs_remque): Use void * for generic pointers.
46 2011-03-07 Chong Yidong <cyd@stupidchicken.com>
48 * Version 23.3 released.
50 2010-11-09 Elias Pipping <pipping.elias@googlemail.com> (tiny change)
52 Make Emacs compile with clang (bug#7309).
53 * XMakeAssoc.c (XMakeAssoc):
54 * XDelAssoc.c (XDeleteAssoc): Declare the return type.
56 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
58 * XMenu.h: Include <stdlib.h>.
60 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
62 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
64 (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
66 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
68 * Activate.c: Convert function definitions to standard C.
101 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
103 * Version 23.2 released.
105 2010-05-06 Glenn Morris <rgm@gnu.org>
107 * Makefile.in (RANLIB): Let configure set it.
108 (libXMenu11.a): Configure sets RANLIB = : on systems without it.
110 * Makefile.in (CPP, LN_S, AS, LD, MV, LS, LINTOPTS, LINTLIBFLAG, MAKE)
111 (STD_DEFINES, CDEBUGFLAGS, RM_CMD): Remove unused variables.
113 2010-05-04 Glenn Morris <rgm@gnu.org>
115 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE):
116 Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than
117 @c_switch_system@, @c_switch_machine@.
119 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
121 * Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.
123 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
125 * Makefile.in (ALL_CFLAGS): Remove C_SWITCH_X_MACHINE, unused.
127 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
129 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
130 (C_SWITCH_X_SITE): Define using autoconf.
132 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
136 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
140 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
143 * compile.com: Remove file.
144 * Create.c: Remove VMS support.
146 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
148 * Makefile.in (ALL_CFLAGS): Remove reference to C_SWITCH_SITE.
150 2007-07-25 Glenn Morris <rgm@gnu.org>
152 * Relicense all FSF files to GPLv3 or later.
154 2007-06-04 Ulrich Mueller <ulm@gentoo.org> (tiny change)
156 * ChgPane.c, ChgSel.c: Quiet --with-x-toolkit=no
157 compilation warnings: #include <config.h>.
159 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
161 * Version 22.1 released.
163 2007-05-30 Ulrich Mueller <ulm@gentoo.org> (tiny change)
165 * XMakeAssoc.c (XMakeAssoc): Use malloc rather than xmalloc.
167 2007-02-27 Glenn Morris <rgm@gnu.org>
169 * Imakefile: Remove unused file with no explicit legal info.
170 * Makefile.in (distclean): Remove Makefile.
172 2007-02-25 Glenn Morris <rgm@gnu.org>
174 * XCrAssoc.c, XDelAssoc.c, XDestAssoc.c, XLookAssoc.c:
175 * XMakeAssoc.c: Remove license text in favor of including
176 copyright.h, as was done in original X11 source.
178 2004-12-27 Jan Djärv <jan.h.d@swipnet.se>
180 * Activate.c (XMenuActivate): Return XM_NO_SELECT if Escape or C-g
183 2004-11-12 Jan Djärv <jan.h.d@swipnet.se>
185 * XMenu.h (XMenuActivateSetWaitFunction): New function.
187 * Activate.c (XMenuActivateSetWaitFunction): New function.
188 (XMenuActivate): Call wait_func if set, before XNextEvent.
190 2002-04-22 Jan Djärv <jan.h.d@swipnet.se>
192 * Activate.c: Add calls to GrabKeyboard to remove strange
193 interactions with window managers that steal keypresses.
194 Call ungrab_all instead of XtUngrabPointer.
195 (XMenuActivate): Add call to XGrabKeyboard.
196 (XMenuActivate): Add call to XUngrabKeyboard.
198 2001-10-20 Gerd Moellmann <gerd@gnu.org>
200 * (Version 21.1 released.)
202 2001-10-05 Gerd Moellmann <gerd@gnu.org>
206 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
208 * Activate.c (XMenuActivate): Call help callback with two more
209 arguments: the pane number and selection number.
211 2000-01-27 Gerd Moellmann <gerd@gnu.org>
213 * Activate.c (XMenuActivate): Add parameter HELP_CALLBACK.
216 * Post.c (XMenuPost): Pass null help callback to XMenuActivate.
218 * AddSel.c (XMenuAddSelection): Add parameter HELP.
220 * XMenu.h (XmSelect): Add member `help_string'.
222 1999-07-12 Richard Stallman <rms@gnu.org>
224 * Version 20.4 released.
226 1998-08-19 Richard Stallman <rms@psilocin.ai.mit.edu>
228 * Version 20.3 released.
230 1997-09-19 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
232 * Version 20.2 released.
234 1997-09-15 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
236 * Version 20.1 released.
238 1996-08-11 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
240 * Version 19.33 released.
242 1996-07-31 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
244 * Version 19.32 released.
246 1996-06-12 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
248 * Internal.c (_XMRefreshSelection): Check for type SEPARATOR.
249 * InsSel.c (XMenuInsertSelection): Use SEPARATOR if nec.
250 * AddSel.c (XMenuAddSelection): Use SEPARATOR if nec.
252 * XMenu.h: New alternative SEPARATOR.
254 1996-05-25 Karl Heuer <kwzh@gnu.ai.mit.edu>
256 * Version 19.31 released.
258 1995-11-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
260 * Version 19.30 released.
262 1995-11-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
264 * Makefile.in (ALL_CFLAGS): Add some -I options.
266 * Activate.c, AddPane.c, AddSel.c, Create.c, InsPane.c, InsSel.c:
267 * Internal.c, XCrAssoc.c, XMakeAssoc.c: Include config.h.
269 1995-06-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
271 * Version 19.29 released.
273 1995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu>
275 * Makefile.in (maintainer-clean): Renamed from realclean.
277 1994-10-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
279 * Makefile.in (ALL_CFLAGS): Reorder the switches more rationally.
281 1994-10-24 Jim Wilson (wilson@chestnut.cygnus.com)
283 * Makefile.in (ALL_CFLAGS): Add C_SWITCH_X_MACHINE.
285 1994-09-11 Richard Stallman <rms@mole.gnu.ai.mit.edu>
287 * Version 19.27 released.
289 1994-09-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
291 * Version 19.26 released.
293 1994-07-23 Richard Stallman <rms@mole.gnu.ai.mit.edu>
295 * Error.c (XMenuError): Make `message' static.
297 1994-06-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
299 * Create.c (XAllocDisplayColor): New function.
300 Use it throughout in place of XAllocNamedColor.
302 1994-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
304 * Version 19.25 released.
306 1994-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
308 * Version 19.24 released.
310 1994-05-17 Karl Heuer (kwzh@hal.gnu.ai.mit.edu)
312 * Create.c (XMenuCreate): Declare `data' as char*.
314 1994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
316 * Version 19.23 released.
318 1994-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
320 * Create.c (XMenuCreate): Declare `data' as unsigned char*.
322 1994-01-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
324 * XMakeAssoc.c (XMakeAssoc): Use xmalloc.
325 (_XIOErrorFunction): Decl deleted.
327 1993-11-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
329 * Version 19.22 released.
331 1993-11-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
333 * Activate.c (XMenuActivate):
334 Call XSetWindowBackground and _XMRefreshPane.
336 1993-11-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
338 * Version 19.21 released.
340 1993-11-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
342 * Makefile.in (libXMenu11.a): Tell make not to worry if ranlib fails.
343 Tell user too, in case make doesn't pay attention.
345 1993-11-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
347 * Version 19.20 released.
349 1993-10-25 Brian J. Fox (bfox@albert.gnu.ai.mit.edu)
351 * Makefile.in (ALL_CFLAGS): Add C_SWITCH_X_SYSTEM.
353 1993-09-27 Brian J. Fox (bfox@valhalla)
355 * Makefile.in (CPP, LN_S, C_SWITCH_X_SITE, CC, CFLAGS): Allow
356 `configure' to supply the values for these variables.
358 1993-09-26 Brian J. Fox (bfox@ai.mit.edu)
360 * Makefile.in (VPATH, srcdir): Now that `configure' creates the
361 Makefiles, do not append the current directory to the value of
364 1993-08-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
366 * Version 19.19 released.
368 1993-08-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
370 * Version 19.18 released.
372 1993-07-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
374 * Internal.c (_XMWinQueInit): Use explicit loop, not bzero.
376 1993-07-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
378 * Makefile (ALL_CFLAGS): Use all 6 C_SWITCH_... vars.
380 Among them, put the ..._SITE vars last.
382 1993-07-18 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
384 * Version 19.17 released.
386 1993-07-07 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
388 * Makefile.in: Write out the dependencies for the object files;
389 otherwise, VPATH won't work.
391 * Makefile.in: Re-arrange, to put `all' target at the top.
393 1993-07-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
395 * Version 19.16 released.
397 1993-06-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
399 * version 19.15 released.
401 1993-06-18 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
403 * Makefile.in (ALL_CFLAGS): Always #define EMACS_BITMAP_FILES.
404 This should make it work under any circumstances.
406 * Makefile.in (mostlyclean): Use rm -f.
408 1993-06-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
410 * Version 19.14 released.
412 1993-06-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
414 * Makefile.in (ALL_CFLAGS): Include C_SWITCH_MACHINE, and CPPFLAGS.
417 1993-06-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
419 Bring mumbleclean targets into conformance with GNU coding standards.
420 * Makefile.in (mostlyclean, realclean): New targets.
422 1993-06-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
424 * Version 19.13 released.
426 1993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
428 * Version 19.10 released.
430 1993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
432 * Create.c: Handle EMACS_BITMAP_FILES.
433 Use new names of renamed bitmap files.
435 1993-05-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
437 * AddPane.c, AddSel.c, DelPane.c, DelSel.c, InsPane.c, InsSel.c,
438 XDelAssoc.c, XMakeAssoc.c, XMenu.h, insque.c: Changed all uses of
439 insque and remque to emacs_insque and emacs_remque, so we can
440 safely include insque.c in the library on all systems.
442 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
444 * Makefile.in (.c.o): Use $< instead of ${srcdir}/$*.c; the latter
445 only works with GNU Make.
447 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
449 * Create.c (XMenuCreate): Use classes PaneFont and SelectionFont.
451 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
453 * Version 19.9 released.
455 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
457 * Create.c (XMenuCreate): Use x_get_resource_string, not XGetDefault.
459 1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
461 * Version 19.8 released.
463 1993-05-23 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
465 * Makefile.in (C_SWITCH_X_SITE): New variable, so that the
466 configuration process can correctly implement the --x-includes
469 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
471 * Create.c (XMenuCreate): Initialize the menu's pixmaps to None,
474 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
476 * Version 19.7 released.
478 1993-05-15 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
480 * Makefile.in: Renamed from Makefile, so that the top-level
481 makefile can edit it.
483 1993-04-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
485 * XLookAssoc.c, XMakeAssoc.c: VMS needs <X11/Xresource.h>, not
488 * XCrAssoc.c: #include <errno.h>, not "errno.h".
489 (XCreateAssocTable): Doc fix.
491 1993-03-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
493 * Makefile (.c.o): Include C_SWITCH_SITE and C_SWITCH_SYSTEM in
494 the options to the C compiler.
496 * compile.com, descrip.mms: New files for VMS from Richard
498 * XCrAssoc.c, XLookAssoc.c, XDestAssoc.c, XDelAssoc.c: Use <angle
499 brackets> around the names of the X Windows #include files; VMS
501 * XLookAssoc.c, XMakeAssoc.c: #include <X11/Xos.h>. VMS needs
503 * Create.c: On VMS, we have to look for the bitmap files in
504 `./src/bitmaps', not <X11/bitmaps>.
506 1993-03-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
508 * Makefile (.c.o): Don't rm the .o files.
510 1993-03-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
512 * Activate.c (XMenuActivate): If `active' field is negative,
513 don't allow selecting a string.
515 1993-03-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
517 * Create.c (XMenuCreate): New variable `root', holding the
518 display's default root window, so we don't have to write out
519 "RootWindow (display, DefaultScreen (display))" a jillion times.
521 * Create.c (XMenuCreate): Don't assume that all the
522 <X11/bitmaps/foo> patterns are 16x16. Instead of building a
523 bitmap and then converting it to a pixmap of the appropriate
524 depth if necessary, build a pixmap of the appropriate depth
525 directly, using XCreatePixmapFromBitmapData.
527 * Imakefile: Include XCrAssoc.c, XDelAssoc.c, XDestAssoc.c,
528 XLookAssoc.c, and XMakeAssoc.c in SRCS. Similarly for OBJS.
530 * XMenuInt.h: #include <stdio.h> before <X11/Xlib.h>, to avoid
531 warnings about redefining NULL.
533 * XMakeAssoc.c, XLookAssoc.c, XDestAssoc.c, XDelAssoc.c,
534 XCrAssoc.c: #include X11/Xlib.h instead of X11/Xlibint.h.
536 * XMakeAssoc.c, XLookAssoc.c, XCrAssoc.c: If NULL isn't defined by
537 any of the `.h' files, define it.
539 * XMakeAssoc.c, XCrAssoc.c: #include <errno.h>.
540 Add an extern declaration for errno.
542 * XMakeAssoc.c: Add an extern declaration for _XIOErrorFunction.
543 (XMakeAssoc): Use malloc instead of Xmalloc to allocate new
544 parts of the assoc table.
545 * XCrAssoc.c (XCreateAssocTable): Same.
547 * XDestAssoc.c (XDestroyAssocTable): Use free instead of Xfree.
548 * XDelAssoc.c (XDeleteAssoc): Same.
550 1992-10-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
552 * XMakeAssoc.c (XMakeAssoc): Use malloc, not Xmalloc.
553 * XCrAssoc.c (XCreateAssocTable): Use malloc and calloc directly.
554 * XDelAssoc.c (XDeleteAssoc): Use free, not Xfree.
555 * XDestAssoc.c (XDestroyAssocTable): Likewise.
557 1992-10-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
559 * XDelAssoc.c, XLookAssoc.c, XCrAssoc.c, XDestAssoc.c, XMakeAssoc.c:
560 Use Xlib.h, not Xlibint.h.
561 * XLookAssoc.c, XMakeAssoc.c, XCrAssoc.c (NULL): Defined.
562 * XMakeAssoc.c, XCrAssoc.c: Include errno.h. Declare errno.
563 * XMakeAssoc.c (_XIOErrorFunction): Declared.
565 1992-09-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
567 * XDelAssoc.c, XLookAssoc.c, XCrAssoc.c, XDestAssoc.c, XMakeAssoc.c:
568 Specify dir X11/ when including Xlibint.h.
570 1992-09-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
572 * XDelAssoc.c, XLookAssoc.c, XCrAssoc.c, XDestAssoc.c, XMakeAssoc.c:
575 * Makefile (SRCS, OBJS): Compile those files.
577 1992-01-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
579 * Makefile (clean): Delete object files and library.
580 (distclean): New target.
582 1992-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
584 * Makefile (libXMenu11.a): Put `-' on ranlib line.
586 1992-01-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
588 * Makefile (EXTRA): New variable.
589 (libXMenu11.a): Use that.
591 * insque.c: New file.
593 1992-01-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
595 * Makefile (CC): Assignment commented out.
597 1991-11-16 Noah Friedman (friedman@nutrimat)
599 * copyright.h: New file (copied from X11R4 distribution)
600 * All files: Replaced occurrences of #include <X11/copyright.h>
601 with #include "copyright.h"
603 1991-10-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
605 * XMenu.h (enum _xmmode): Remove spurious comma.
608 * XMenu.h, XMenuInt.h: Include X10.h from this dir.
610 1990-11-13 Richard Stallman (rms@mole.ai.mit.edu)
612 * XMenu.h (struct _xmenu): Use unsigned long for colors.
614 1990-11-12 Richard Stallman (rms@mole.ai.mit.edu)
616 * Internal.c: Declare argument `display' in some functions.
623 Copyright (C) 1993-1999, 2001-2012 Free Software Foundation, Inc.
625 This file is part of GNU Emacs.
627 GNU Emacs is free software: you can redistribute it and/or modify
628 it under the terms of the GNU General Public License as published by
629 the Free Software Foundation, either version 3 of the License, or
630 (at your option) any later version.
632 GNU Emacs is distributed in the hope that it will be useful,
633 but WITHOUT ANY WARRANTY; without even the implied warranty of
634 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
635 GNU General Public License for more details.
637 You should have received a copy of the GNU General Public License
638 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.