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