1 2012-08-15 Chong Yidong <cyd@gnu.org>
3 * Version 24.2 released.
5 2012-06-01 Chong Yidong <cyd@gnu.org>
7 * Version 24.1 released.
9 2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
11 Static checks with GCC 4.6.0 and non-default toolkits.
13 Modernize to C89, for better static checking.
14 * Activate.c (XMenuActivate): Callback's first arg is readonly.
15 * AddPane.c (XMenuAddPane): Label is readonly. Rename local
17 * AddSel.c (XMenuAddSelection): Help arg is readonly. Rename local.
18 * Create.c (atoi, atof): Remove decls; include <stdlib.h>.
19 (MAX_INACT_PNUM, TILE_BUF_SIZE): Remove; unused.
20 (x_get_resource_string): Args are readonly.
21 (XAllocDisplayColor): colorName is readonly.
22 (XMenuCreate): def_env is readonly. Remove unused locals. Avoid
24 * Destroy.c (XMenuDestroy): Return void.
25 * Error.c (XMenuError): Remove const pointer.
26 * EvHand.c (XMenuEventHandler): Return void.
27 * FindPane.c, FindSel.c: Include <string.h>.
28 * InsPane.c (XMenuInsertPane): Rename local to avoid shadowing.
29 * InsSel.c (XMenuInsertSelection): Likewise.
30 * Internal.c (toggle_color, BUFFER_SIZE): Remove; unused.
31 (_XMErrorList): Now const.
32 (_XMWinQueInit, _XMRecomputeGlobals, _XMTransToOrigin, _XMRefreshPane):
33 (_XMRefreshSelection): Return void.
34 (_XMWinQueFlush, _XMRefreshSelection): Rename locals to avoid
36 (_XMWinQueFlush): Use stack, not heap. Don't use uninitialized var.
37 * SetAEQ.c (XMenuSetAEQ): Now returns void.
38 * SetFrz.c (XMenuSetFreeze): Likewise.
39 * X10.h (XAssoc): Use void * for generic pointer.
40 * XDelAssoc.c: Include XMenuInt.h rather than duplicating part of it.
41 * XDestAssoc.c, XMakeAssoc.c: Likewise.
42 * XDestAssoc.c (XDestroyAssocTable): Return void.
43 * XMakeAssoc.c (XMakeAssoc): Use void * for generic pointer.
44 * XMenu.h, XMenuInt.h: Adjust to signature changes. Use const
45 for pointers to readonly storage.
46 * insque.c: Include XMenuInt.h, to check our own signature.
47 (emacs_insque, emacs_remque): Use void * for generic pointers.
49 2011-03-07 Chong Yidong <cyd@stupidchicken.com>
51 * Version 23.3 released.
53 2010-11-09 Elias Pipping <pipping.elias@googlemail.com> (tiny change)
55 Make Emacs compile with clang (bug#7309).
56 * XMakeAssoc.c (XMakeAssoc):
57 * XDelAssoc.c (XDeleteAssoc): Declare the return type.
59 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
61 * XMenu.h: Include <stdlib.h>.
63 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
65 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
67 (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
69 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
71 * Activate.c: Convert function definitions to standard C.
102 * insque.c: Likewise.
104 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
106 * Version 23.2 released.
108 2010-05-06 Glenn Morris <rgm@gnu.org>
110 * Makefile.in (RANLIB): Let configure set it.
111 (libXMenu11.a): Configure sets RANLIB = : on systems without it.
113 * Makefile.in (CPP, LN_S, AS, LD, MV, LS, LINTOPTS, LINTLIBFLAG, MAKE)
114 (STD_DEFINES, CDEBUGFLAGS, RM_CMD): Remove unused variables.
116 2010-05-04 Glenn Morris <rgm@gnu.org>
118 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE):
119 Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than
120 @c_switch_system@, @c_switch_machine@.
122 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
124 * Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.
126 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
128 * Makefile.in (ALL_CFLAGS): Remove C_SWITCH_X_MACHINE, unused.
130 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
132 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
133 (C_SWITCH_X_SITE): Define using autoconf.
135 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
139 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
143 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
146 * compile.com: Remove file.
147 * Create.c: Remove VMS support.
149 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
151 * Makefile.in (ALL_CFLAGS): Remove reference to C_SWITCH_SITE.
153 2007-07-25 Glenn Morris <rgm@gnu.org>
155 * Relicense all FSF files to GPLv3 or later.
157 2007-06-04 Ulrich Mueller <ulm@gentoo.org> (tiny change)
159 * ChgPane.c, ChgSel.c: Quiet --with-x-toolkit=no
160 compilation warnings: #include <config.h>.
162 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
164 * Version 22.1 released.
166 2007-05-30 Ulrich Mueller <ulm@gentoo.org> (tiny change)
168 * XMakeAssoc.c (XMakeAssoc): Use malloc rather than xmalloc.
170 2007-02-27 Glenn Morris <rgm@gnu.org>
172 * Imakefile: Remove unused file with no explicit legal info.
173 * Makefile.in (distclean): Remove Makefile.
175 2007-02-25 Glenn Morris <rgm@gnu.org>
177 * XCrAssoc.c, XDelAssoc.c, XDestAssoc.c, XLookAssoc.c:
178 * XMakeAssoc.c: Remove license text in favor of including
179 copyright.h, as was done in original X11 source.
181 2004-12-27 Jan Djärv <jan.h.d@swipnet.se>
183 * Activate.c (XMenuActivate): Return XM_NO_SELECT if Escape or C-g
186 2004-11-12 Jan Djärv <jan.h.d@swipnet.se>
188 * XMenu.h (XMenuActivateSetWaitFunction): New function.
190 * Activate.c (XMenuActivateSetWaitFunction): New function.
191 (XMenuActivate): Call wait_func if set, before XNextEvent.
193 2002-04-22 Jan Djärv <jan.h.d@swipnet.se>
195 * Activate.c: Add calls to GrabKeyboard to remove strange
196 interactions with window managers that steal keypresses.
197 Call ungrab_all instead of XtUngrabPointer.
198 (XMenuActivate): Add call to XGrabKeyboard.
199 (XMenuActivate): Add call to XUngrabKeyboard.
201 2001-10-20 Gerd Moellmann <gerd@gnu.org>
203 * (Version 21.1 released.)
205 2001-10-05 Gerd Moellmann <gerd@gnu.org>
209 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
211 * Activate.c (XMenuActivate): Call help callback with two more
212 arguments: the pane number and selection number.
214 2000-01-27 Gerd Moellmann <gerd@gnu.org>
216 * Activate.c (XMenuActivate): Add parameter HELP_CALLBACK.
219 * Post.c (XMenuPost): Pass null help callback to XMenuActivate.
221 * AddSel.c (XMenuAddSelection): Add parameter HELP.
223 * XMenu.h (XmSelect): Add member `help_string'.
225 1999-07-12 Richard Stallman <rms@gnu.org>
227 * Version 20.4 released.
229 1998-08-19 Richard Stallman <rms@psilocin.ai.mit.edu>
231 * Version 20.3 released.
233 1997-09-19 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
235 * Version 20.2 released.
237 1997-09-15 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
239 * Version 20.1 released.
241 1996-08-11 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
243 * Version 19.33 released.
245 1996-07-31 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
247 * Version 19.32 released.
249 1996-06-12 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
251 * Internal.c (_XMRefreshSelection): Check for type SEPARATOR.
252 * InsSel.c (XMenuInsertSelection): Use SEPARATOR if nec.
253 * AddSel.c (XMenuAddSelection): Use SEPARATOR if nec.
255 * XMenu.h: New alternative SEPARATOR.
257 1996-05-25 Karl Heuer <kwzh@gnu.ai.mit.edu>
259 * Version 19.31 released.
261 1995-11-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
263 * Version 19.30 released.
265 1995-11-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
267 * Makefile.in (ALL_CFLAGS): Add some -I options.
269 * Activate.c, AddPane.c, AddSel.c, Create.c, InsPane.c, InsSel.c:
270 * Internal.c, XCrAssoc.c, XMakeAssoc.c: Include config.h.
272 1995-06-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
274 * Version 19.29 released.
276 1995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu>
278 * Makefile.in (maintainer-clean): Renamed from realclean.
280 1994-10-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
282 * Makefile.in (ALL_CFLAGS): Reorder the switches more rationally.
284 1994-10-24 Jim Wilson (wilson@chestnut.cygnus.com)
286 * Makefile.in (ALL_CFLAGS): Add C_SWITCH_X_MACHINE.
288 1994-09-11 Richard Stallman <rms@mole.gnu.ai.mit.edu>
290 * Version 19.27 released.
292 1994-09-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
294 * Version 19.26 released.
296 1994-07-23 Richard Stallman <rms@mole.gnu.ai.mit.edu>
298 * Error.c (XMenuError): Make `message' static.
300 1994-06-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
302 * Create.c (XAllocDisplayColor): New function.
303 Use it throughout in place of XAllocNamedColor.
305 1994-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
307 * Version 19.25 released.
309 1994-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
311 * Version 19.24 released.
313 1994-05-17 Karl Heuer (kwzh@hal.gnu.ai.mit.edu)
315 * Create.c (XMenuCreate): Declare `data' as char*.
317 1994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
319 * Version 19.23 released.
321 1994-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
323 * Create.c (XMenuCreate): Declare `data' as unsigned char*.
325 1994-01-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
327 * XMakeAssoc.c (XMakeAssoc): Use xmalloc.
328 (_XIOErrorFunction): Decl deleted.
330 1993-11-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
332 * Version 19.22 released.
334 1993-11-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
336 * Activate.c (XMenuActivate):
337 Call XSetWindowBackground and _XMRefreshPane.
339 1993-11-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
341 * Version 19.21 released.
343 1993-11-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
345 * Makefile.in (libXMenu11.a): Tell make not to worry if ranlib fails.
346 Tell user too, in case make doesn't pay attention.
348 1993-11-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
350 * Version 19.20 released.
352 1993-10-25 Brian J. Fox (bfox@albert.gnu.ai.mit.edu)
354 * Makefile.in (ALL_CFLAGS): Add C_SWITCH_X_SYSTEM.
356 1993-09-27 Brian J. Fox (bfox@valhalla)
358 * Makefile.in (CPP, LN_S, C_SWITCH_X_SITE, CC, CFLAGS): Allow
359 `configure' to supply the values for these variables.
361 1993-09-26 Brian J. Fox (bfox@ai.mit.edu)
363 * Makefile.in (VPATH, srcdir): Now that `configure' creates the
364 Makefiles, do not append the current directory to the value of
367 1993-08-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
369 * Version 19.19 released.
371 1993-08-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
373 * Version 19.18 released.
375 1993-07-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
377 * Internal.c (_XMWinQueInit): Use explicit loop, not bzero.
379 1993-07-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
381 * Makefile (ALL_CFLAGS): Use all 6 C_SWITCH_... vars.
383 Among them, put the ..._SITE vars last.
385 1993-07-18 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
387 * Version 19.17 released.
389 1993-07-07 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
391 * Makefile.in: Write out the dependencies for the object files;
392 otherwise, VPATH won't work.
394 * Makefile.in: Re-arrange, to put `all' target at the top.
396 1993-07-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
398 * Version 19.16 released.
400 1993-06-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
402 * version 19.15 released.
404 1993-06-18 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
406 * Makefile.in (ALL_CFLAGS): Always #define EMACS_BITMAP_FILES.
407 This should make it work under any circumstances.
409 * Makefile.in (mostlyclean): Use rm -f.
411 1993-06-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
413 * Version 19.14 released.
415 1993-06-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
417 * Makefile.in (ALL_CFLAGS): Include C_SWITCH_MACHINE, and CPPFLAGS.
420 1993-06-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
422 Bring mumbleclean targets into conformance with GNU coding standards.
423 * Makefile.in (mostlyclean, realclean): New targets.
425 1993-06-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
427 * Version 19.13 released.
429 1993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
431 * Version 19.10 released.
433 1993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
435 * Create.c: Handle EMACS_BITMAP_FILES.
436 Use new names of renamed bitmap files.
438 1993-05-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
440 * AddPane.c, AddSel.c, DelPane.c, DelSel.c, InsPane.c, InsSel.c,
441 XDelAssoc.c, XMakeAssoc.c, XMenu.h, insque.c: Changed all uses of
442 insque and remque to emacs_insque and emacs_remque, so we can
443 safely include insque.c in the library on all systems.
445 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
447 * Makefile.in (.c.o): Use $< instead of ${srcdir}/$*.c; the latter
448 only works with GNU Make.
450 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
452 * Create.c (XMenuCreate): Use classes PaneFont and SelectionFont.
454 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
456 * Version 19.9 released.
458 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
460 * Create.c (XMenuCreate): Use x_get_resource_string, not XGetDefault.
462 1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
464 * Version 19.8 released.
466 1993-05-23 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
468 * Makefile.in (C_SWITCH_X_SITE): New variable, so that the
469 configuration process can correctly implement the --x-includes
472 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
474 * Create.c (XMenuCreate): Initialize the menu's pixmaps to None,
477 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
479 * Version 19.7 released.
481 1993-05-15 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
483 * Makefile.in: Renamed from Makefile, so that the top-level
484 makefile can edit it.
486 1993-04-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
488 * XLookAssoc.c, XMakeAssoc.c: VMS needs <X11/Xresource.h>, not
491 * XCrAssoc.c: #include <errno.h>, not "errno.h".
492 (XCreateAssocTable): Doc fix.
494 1993-03-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
496 * Makefile (.c.o): Include C_SWITCH_SITE and C_SWITCH_SYSTEM in
497 the options to the C compiler.
499 * compile.com, descrip.mms: New files for VMS from Richard
501 * XCrAssoc.c, XLookAssoc.c, XDestAssoc.c, XDelAssoc.c: Use <angle
502 brackets> around the names of the X Windows #include files; VMS
504 * XLookAssoc.c, XMakeAssoc.c: #include <X11/Xos.h>. VMS needs
506 * Create.c: On VMS, we have to look for the bitmap files in
507 `./src/bitmaps', not <X11/bitmaps>.
509 1993-03-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
511 * Makefile (.c.o): Don't rm the .o files.
513 1993-03-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
515 * Activate.c (XMenuActivate): If `active' field is negative,
516 don't allow selecting a string.
518 1993-03-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
520 * Create.c (XMenuCreate): New variable `root', holding the
521 display's default root window, so we don't have to write out
522 "RootWindow (display, DefaultScreen (display))" a jillion times.
524 * Create.c (XMenuCreate): Don't assume that all the
525 <X11/bitmaps/foo> patterns are 16x16. Instead of building a
526 bitmap and then converting it to a pixmap of the appropriate
527 depth if necessary, build a pixmap of the appropriate depth
528 directly, using XCreatePixmapFromBitmapData.
530 * Imakefile: Include XCrAssoc.c, XDelAssoc.c, XDestAssoc.c,
531 XLookAssoc.c, and XMakeAssoc.c in SRCS. Similarly for OBJS.
533 * XMenuInt.h: #include <stdio.h> before <X11/Xlib.h>, to avoid
534 warnings about redefining NULL.
536 * XMakeAssoc.c, XLookAssoc.c, XDestAssoc.c, XDelAssoc.c,
537 XCrAssoc.c: #include X11/Xlib.h instead of X11/Xlibint.h.
539 * XMakeAssoc.c, XLookAssoc.c, XCrAssoc.c: If NULL isn't defined by
540 any of the `.h' files, define it.
542 * XMakeAssoc.c, XCrAssoc.c: #include <errno.h>.
543 Add an extern declaration for errno.
545 * XMakeAssoc.c: Add an extern declaration for _XIOErrorFunction.
546 (XMakeAssoc): Use malloc instead of Xmalloc to allocate new
547 parts of the assoc table.
548 * XCrAssoc.c (XCreateAssocTable): Same.
550 * XDestAssoc.c (XDestroyAssocTable): Use free instead of Xfree.
551 * XDelAssoc.c (XDeleteAssoc): Same.
553 1992-10-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
555 * XMakeAssoc.c (XMakeAssoc): Use malloc, not Xmalloc.
556 * XCrAssoc.c (XCreateAssocTable): Use malloc and calloc directly.
557 * XDelAssoc.c (XDeleteAssoc): Use free, not Xfree.
558 * XDestAssoc.c (XDestroyAssocTable): Likewise.
560 1992-10-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
562 * XDelAssoc.c, XLookAssoc.c, XCrAssoc.c, XDestAssoc.c, XMakeAssoc.c:
563 Use Xlib.h, not Xlibint.h.
564 * XLookAssoc.c, XMakeAssoc.c, XCrAssoc.c (NULL): Defined.
565 * XMakeAssoc.c, XCrAssoc.c: Include errno.h. Declare errno.
566 * XMakeAssoc.c (_XIOErrorFunction): Declared.
568 1992-09-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
570 * XDelAssoc.c, XLookAssoc.c, XCrAssoc.c, XDestAssoc.c, XMakeAssoc.c:
571 Specify dir X11/ when including Xlibint.h.
573 1992-09-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
575 * XDelAssoc.c, XLookAssoc.c, XCrAssoc.c, XDestAssoc.c, XMakeAssoc.c:
578 * Makefile (SRCS, OBJS): Compile those files.
580 1992-01-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
582 * Makefile (clean): Delete object files and library.
583 (distclean): New target.
585 1992-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
587 * Makefile (libXMenu11.a): Put `-' on ranlib line.
589 1992-01-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
591 * Makefile (EXTRA): New variable.
592 (libXMenu11.a): Use that.
594 * insque.c: New file.
596 1992-01-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
598 * Makefile (CC): Assignment commented out.
600 1991-11-16 Noah Friedman (friedman@nutrimat)
602 * copyright.h: New file (copied from X11R4 distribution)
603 * All files: Replaced occurrences of #include <X11/copyright.h>
604 with #include "copyright.h"
606 1991-10-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
608 * XMenu.h (enum _xmmode): Remove spurious comma.
611 * XMenu.h, XMenuInt.h: Include X10.h from this dir.
613 1990-11-13 Richard Stallman (rms@mole.ai.mit.edu)
615 * XMenu.h (struct _xmenu): Use unsigned long for colors.
617 1990-11-12 Richard Stallman (rms@mole.ai.mit.edu)
619 * Internal.c: Declare argument `display' in some functions.
626 Copyright (C) 1993-1999, 2001-2012 Free Software Foundation, Inc.
628 This file is part of GNU Emacs.
630 GNU Emacs is free software: you can redistribute it and/or modify
631 it under the terms of the GNU General Public License as published by
632 the Free Software Foundation, either version 3 of the License, or
633 (at your option) any later version.
635 GNU Emacs is distributed in the hope that it will be useful,
636 but WITHOUT ANY WARRANTY; without even the implied warranty of
637 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
638 GNU General Public License for more details.
640 You should have received a copy of the GNU General Public License
641 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.