1 2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
3 Static checks with GCC 4.6.0 and non-default toolkits.
5 Modernize to C89, for better static checking.
6 * Activate.c (XMenuActivate): Callback's first arg is readonly.
7 * AddPane.c (XMenuAddPane): Label is readonly. Rename local
9 * AddSel.c (XMenuAddSelection): Help arg is readonly. Rename local.
10 * Create.c (atoi, atof): Remove decls; include <stdlib.h>.
11 (MAX_INACT_PNUM, TILE_BUF_SIZE): Remove; unused.
12 (x_get_resource_string): Args are readonly.
13 (XAllocDisplayColor): colorName is readonly.
14 (XMenuCreate): def_env is readonly. Remove unused locals. Avoid
16 * Destroy.c (XMenuDestroy): Return void.
17 * Error.c (XMenuError): Remove const pointer.
18 * EvHand.c (XMenuEventHandler): Return void.
19 * FindPane.c, FindSel.c: Include <string.h>.
20 * InsPane.c (XMenuInsertPane): Rename local to avoid shadowing.
21 * InsSel.c (XMenuInsertSelection): Likewise.
22 * Internal.c (toggle_color, BUFFER_SIZE): Remove; unused.
23 (_XMErrorList): Now const.
24 (_XMWinQueInit, _XMRecomputeGlobals, _XMTransToOrigin, _XMRefreshPane):
25 (_XMRefreshSelection): Return void.
26 (_XMWinQueFlush, _XMRefreshSelection): Rename locals to avoid
28 (_XMWinQueFlush): Use stack, not heap. Don't use uninitialized var.
29 * SetAEQ.c (XMenuSetAEQ): Now returns void.
30 * SetFrz.c (XMenuSetFreeze): Likewise.
31 * X10.h (XAssoc): Use void * for generic pointer.
32 * XDelAssoc.c: Include XMenuInt.h rather than duplicating part of it.
33 * XDestAssoc.c, XMakeAssoc.c: Likewise.
34 * XDestAssoc.c (XDestroyAssocTable): Return void.
35 * XMakeAssoc.c (XMakeAssoc): Use void * for generic pointer.
36 * XMenu.h, XMenuInt.h: Adjust to signature changes. Use const
37 for pointers to readonly storage.
38 * insque.c: Include XMenuInt.h, to check our own signature.
39 (emacs_insque, emacs_remque): Use void * for generic pointers.
41 2011-03-07 Chong Yidong <cyd@stupidchicken.com>
43 * Version 23.3 released.
45 2010-11-09 Elias Pipping <pipping.elias@googlemail.com> (tiny change)
47 Make Emacs compile with clang (bug#7309).
48 * XMakeAssoc.c (XMakeAssoc):
49 * XDelAssoc.c (XDeleteAssoc): Declare the return type.
51 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
53 * XMenu.h: Include <stdlib.h>.
55 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
57 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
59 (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
61 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
63 * Activate.c: Convert function definitions to standard C.
96 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
98 * Version 23.2 released.
100 2010-05-06 Glenn Morris <rgm@gnu.org>
102 * Makefile.in (RANLIB): Let configure set it.
103 (libXMenu11.a): Configure sets RANLIB = : on systems without it.
105 * Makefile.in (CPP, LN_S, AS, LD, MV, LS, LINTOPTS, LINTLIBFLAG, MAKE)
106 (STD_DEFINES, CDEBUGFLAGS, RM_CMD): Remove unused variables.
108 2010-05-04 Glenn Morris <rgm@gnu.org>
110 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE):
111 Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than
112 @c_switch_system@, @c_switch_machine@.
114 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
116 * Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.
118 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
120 * Makefile.in (ALL_CFLAGS): Remove C_SWITCH_X_MACHINE, unused.
122 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
124 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
125 (C_SWITCH_X_SITE): Define using autoconf.
127 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
131 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
135 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
138 * compile.com: Remove file.
139 * Create.c: Remove VMS support.
141 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
143 * Makefile.in (ALL_CFLAGS): Remove reference to C_SWITCH_SITE.
145 2007-07-25 Glenn Morris <rgm@gnu.org>
147 * Relicense all FSF files to GPLv3 or later.
149 2007-06-04 Ulrich Mueller <ulm@gentoo.org> (tiny change)
151 * ChgPane.c, ChgSel.c: Quiet --with-x-toolkit=no
152 compilation warnings: #include <config.h>.
154 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
156 * Version 22.1 released.
158 2007-05-30 Ulrich Mueller <ulm@gentoo.org> (tiny change)
160 * XMakeAssoc.c (XMakeAssoc): Use malloc rather than xmalloc.
162 2007-02-27 Glenn Morris <rgm@gnu.org>
164 * Imakefile: Remove unused file with no explicit legal info.
165 * Makefile.in (distclean): Remove Makefile.
167 2007-02-25 Glenn Morris <rgm@gnu.org>
169 * XCrAssoc.c, XDelAssoc.c, XDestAssoc.c, XLookAssoc.c:
170 * XMakeAssoc.c: Remove license text in favor of including
171 copyright.h, as was done in original X11 source.
173 2004-12-27 Jan Djärv <jan.h.d@swipnet.se>
175 * Activate.c (XMenuActivate): Return XM_NO_SELECT if Escape or C-g
178 2004-11-12 Jan Djärv <jan.h.d@swipnet.se>
180 * XMenu.h (XMenuActivateSetWaitFunction): New function.
182 * Activate.c (XMenuActivateSetWaitFunction): New function.
183 (XMenuActivate): Call wait_func if set, before XNextEvent.
185 2002-04-22 Jan Djärv <jan.h.d@swipnet.se>
187 * Activate.c: Add calls to GrabKeyboard to remove strange
188 interactions with window managers that steal keypresses.
189 Call ungrab_all instead of XtUngrabPointer.
190 (XMenuActivate): Add call to XGrabKeyboard.
191 (XMenuActivate): Add call to XUngrabKeyboard.
193 2001-10-20 Gerd Moellmann <gerd@gnu.org>
195 * (Version 21.1 released.)
197 2001-10-05 Gerd Moellmann <gerd@gnu.org>
201 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
203 * Activate.c (XMenuActivate): Call help callback with two more
204 arguments: the pane number and selection number.
206 2000-01-27 Gerd Moellmann <gerd@gnu.org>
208 * Activate.c (XMenuActivate): Add parameter HELP_CALLBACK.
211 * Post.c (XMenuPost): Pass null help callback to XMenuActivate.
213 * AddSel.c (XMenuAddSelection): Add parameter HELP.
215 * XMenu.h (XmSelect): Add member `help_string'.
217 1999-07-12 Richard Stallman <rms@gnu.org>
219 * Version 20.4 released.
221 1998-08-19 Richard Stallman <rms@psilocin.ai.mit.edu>
223 * Version 20.3 released.
225 1997-09-19 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
227 * Version 20.2 released.
229 1997-09-15 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
231 * Version 20.1 released.
233 1996-08-11 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
235 * Version 19.33 released.
237 1996-07-31 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
239 * Version 19.32 released.
241 1996-06-12 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
243 * Internal.c (_XMRefreshSelection): Check for type SEPARATOR.
244 * InsSel.c (XMenuInsertSelection): Use SEPARATOR if nec.
245 * AddSel.c (XMenuAddSelection): Use SEPARATOR if nec.
247 * XMenu.h: New alternative SEPARATOR.
249 1996-05-25 Karl Heuer <kwzh@gnu.ai.mit.edu>
251 * Version 19.31 released.
253 1995-11-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
255 * Version 19.30 released.
257 1995-11-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
259 * Makefile.in (ALL_CFLAGS): Add some -I options.
261 * Activate.c, AddPane.c, AddSel.c, Create.c, InsPane.c, InsSel.c:
262 * Internal.c, XCrAssoc.c, XMakeAssoc.c: Include config.h.
264 1995-06-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
266 * Version 19.29 released.
268 1995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu>
270 * Makefile.in (maintainer-clean): Renamed from realclean.
272 1994-10-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
274 * Makefile.in (ALL_CFLAGS): Reorder the switches more rationally.
276 1994-10-24 Jim Wilson (wilson@chestnut.cygnus.com)
278 * Makefile.in (ALL_CFLAGS): Add C_SWITCH_X_MACHINE.
280 1994-09-11 Richard Stallman <rms@mole.gnu.ai.mit.edu>
282 * Version 19.27 released.
284 1994-09-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
286 * Version 19.26 released.
288 1994-07-23 Richard Stallman <rms@mole.gnu.ai.mit.edu>
290 * Error.c (XMenuError): Make `message' static.
292 1994-06-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
294 * Create.c (XAllocDisplayColor): New function.
295 Use it throughout in place of XAllocNamedColor.
297 1994-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
299 * Version 19.25 released.
301 1994-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
303 * Version 19.24 released.
305 1994-05-17 Karl Heuer (kwzh@hal.gnu.ai.mit.edu)
307 * Create.c (XMenuCreate): Declare `data' as char*.
309 1994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
311 * Version 19.23 released.
313 1994-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
315 * Create.c (XMenuCreate): Declare `data' as unsigned char*.
317 1994-01-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
319 * XMakeAssoc.c (XMakeAssoc): Use xmalloc.
320 (_XIOErrorFunction): Decl deleted.
322 1993-11-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
324 * Version 19.22 released.
326 1993-11-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
328 * Activate.c (XMenuActivate):
329 Call XSetWindowBackground and _XMRefreshPane.
331 1993-11-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
333 * Version 19.21 released.
335 1993-11-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
337 * Makefile.in (libXMenu11.a): Tell make not to worry if ranlib fails.
338 Tell user too, in case make doesn't pay attention.
340 1993-11-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
342 * Version 19.20 released.
344 1993-10-25 Brian J. Fox (bfox@albert.gnu.ai.mit.edu)
346 * Makefile.in (ALL_CFLAGS): Add C_SWITCH_X_SYSTEM.
348 1993-09-27 Brian J. Fox (bfox@valhalla)
350 * Makefile.in (CPP, LN_S, C_SWITCH_X_SITE, CC, CFLAGS): Allow
351 `configure' to supply the values for these variables.
353 1993-09-26 Brian J. Fox (bfox@ai.mit.edu)
355 * Makefile.in (VPATH, srcdir): Now that `configure' creates the
356 Makefiles, do not append the current directory to the value of
359 1993-08-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
361 * Version 19.19 released.
363 1993-08-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
365 * Version 19.18 released.
367 1993-07-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
369 * Internal.c (_XMWinQueInit): Use explicit loop, not bzero.
371 1993-07-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
373 * Makefile (ALL_CFLAGS): Use all 6 C_SWITCH_... vars.
375 Among them, put the ..._SITE vars last.
377 1993-07-18 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
379 * Version 19.17 released.
381 1993-07-07 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
383 * Makefile.in: Write out the dependencies for the object files;
384 otherwise, VPATH won't work.
386 * Makefile.in: Re-arrange, to put `all' target at the top.
388 1993-07-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
390 * Version 19.16 released.
392 1993-06-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
394 * version 19.15 released.
396 1993-06-18 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
398 * Makefile.in (ALL_CFLAGS): Always #define EMACS_BITMAP_FILES.
399 This should make it work under any circumstances.
401 * Makefile.in (mostlyclean): Use rm -f.
403 1993-06-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
405 * Version 19.14 released.
407 1993-06-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
409 * Makefile.in (ALL_CFLAGS): Include C_SWITCH_MACHINE, and CPPFLAGS.
412 1993-06-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
414 Bring mumbleclean targets into conformance with GNU coding standards.
415 * Makefile.in (mostlyclean, realclean): New targets.
417 1993-06-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
419 * Version 19.13 released.
421 1993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
423 * Version 19.10 released.
425 1993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
427 * Create.c: Handle EMACS_BITMAP_FILES.
428 Use new names of renamed bitmap files.
430 1993-05-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
432 * AddPane.c, AddSel.c, DelPane.c, DelSel.c, InsPane.c, InsSel.c,
433 XDelAssoc.c, XMakeAssoc.c, XMenu.h, insque.c: Changed all uses of
434 insque and remque to emacs_insque and emacs_remque, so we can
435 safely include insque.c in the library on all systems.
437 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
439 * Makefile.in (.c.o): Use $< instead of ${srcdir}/$*.c; the latter
440 only works with GNU Make.
442 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
444 * Create.c (XMenuCreate): Use classes PaneFont and SelectionFont.
446 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
448 * Version 19.9 released.
450 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
452 * Create.c (XMenuCreate): Use x_get_resource_string, not XGetDefault.
454 1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
456 * Version 19.8 released.
458 1993-05-23 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
460 * Makefile.in (C_SWITCH_X_SITE): New variable, so that the
461 configuration process can correctly implement the --x-includes
464 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
466 * Create.c (XMenuCreate): Initialize the menu's pixmaps to None,
469 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
471 * Version 19.7 released.
473 1993-05-15 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
475 * Makefile.in: Renamed from Makefile, so that the top-level
476 makefile can edit it.
478 1993-04-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
480 * XLookAssoc.c, XMakeAssoc.c: VMS needs <X11/Xresource.h>, not
483 * XCrAssoc.c: #include <errno.h>, not "errno.h".
484 (XCreateAssocTable): Doc fix.
486 1993-03-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
488 * Makefile (.c.o): Include C_SWITCH_SITE and C_SWITCH_SYSTEM in
489 the options to the C compiler.
491 * compile.com, descrip.mms: New files for VMS from Richard
493 * XCrAssoc.c, XLookAssoc.c, XDestAssoc.c, XDelAssoc.c: Use <angle
494 brackets> around the names of the X Windows #include files; VMS
496 * XLookAssoc.c, XMakeAssoc.c: #include <X11/Xos.h>. VMS needs
498 * Create.c: On VMS, we have to look for the bitmap files in
499 `./src/bitmaps', not <X11/bitmaps>.
501 1993-03-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
503 * Makefile (.c.o): Don't rm the .o files.
505 1993-03-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
507 * Activate.c (XMenuActivate): If `active' field is negative,
508 don't allow selecting a string.
510 1993-03-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
512 * Create.c (XMenuCreate): New variable `root', holding the
513 display's default root window, so we don't have to write out
514 "RootWindow (display, DefaultScreen (display))" a jillion times.
516 * Create.c (XMenuCreate): Don't assume that all the
517 <X11/bitmaps/foo> patterns are 16x16. Instead of building a
518 bitmap and then converting it to a pixmap of the appropriate
519 depth if necessary, build a pixmap of the appropriate depth
520 directly, using XCreatePixmapFromBitmapData.
522 * Imakefile: Include XCrAssoc.c, XDelAssoc.c, XDestAssoc.c,
523 XLookAssoc.c, and XMakeAssoc.c in SRCS. Similarly for OBJS.
525 * XMenuInt.h: #include <stdio.h> before <X11/Xlib.h>, to avoid
526 warnings about redefining NULL.
528 * XMakeAssoc.c, XLookAssoc.c, XDestAssoc.c, XDelAssoc.c,
529 XCrAssoc.c: #include X11/Xlib.h instead of X11/Xlibint.h.
531 * XMakeAssoc.c, XLookAssoc.c, XCrAssoc.c: If NULL isn't defined by
532 any of the `.h' files, define it.
534 * XMakeAssoc.c, XCrAssoc.c: #include <errno.h>.
535 Add an extern declaration for errno.
537 * XMakeAssoc.c: Add an extern declaration for _XIOErrorFunction.
538 (XMakeAssoc): Use malloc instead of Xmalloc to allocate new
539 parts of the assoc table.
540 * XCrAssoc.c (XCreateAssocTable): Same.
542 * XDestAssoc.c (XDestroyAssocTable): Use free instead of Xfree.
543 * XDelAssoc.c (XDeleteAssoc): Same.
545 1992-10-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
547 * XMakeAssoc.c (XMakeAssoc): Use malloc, not Xmalloc.
548 * XCrAssoc.c (XCreateAssocTable): Use malloc and calloc directly.
549 * XDelAssoc.c (XDeleteAssoc): Use free, not Xfree.
550 * XDestAssoc.c (XDestroyAssocTable): Likewise.
552 1992-10-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
554 * XDelAssoc.c, XLookAssoc.c, XCrAssoc.c, XDestAssoc.c, XMakeAssoc.c:
555 Use Xlib.h, not Xlibint.h.
556 * XLookAssoc.c, XMakeAssoc.c, XCrAssoc.c (NULL): Defined.
557 * XMakeAssoc.c, XCrAssoc.c: Include errno.h. Declare errno.
558 * XMakeAssoc.c (_XIOErrorFunction): Declared.
560 1992-09-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
562 * XDelAssoc.c, XLookAssoc.c, XCrAssoc.c, XDestAssoc.c, XMakeAssoc.c:
563 Specify dir X11/ when including Xlibint.h.
565 1992-09-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
567 * XDelAssoc.c, XLookAssoc.c, XCrAssoc.c, XDestAssoc.c, XMakeAssoc.c:
570 * Makefile (SRCS, OBJS): Compile those files.
572 1992-01-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
574 * Makefile (clean): Delete object files and library.
575 (distclean): New target.
577 1992-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
579 * Makefile (libXMenu11.a): Put `-' on ranlib line.
581 1992-01-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
583 * Makefile (EXTRA): New variable.
584 (libXMenu11.a): Use that.
586 * insque.c: New file.
588 1992-01-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
590 * Makefile (CC): Assignment commented out.
592 1991-11-16 Noah Friedman (friedman@nutrimat)
594 * copyright.h: New file (copied from X11R4 distribution)
595 * All files: Replaced occurrences of #include <X11/copyright.h>
596 with #include "copyright.h"
598 1991-10-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
600 * XMenu.h (enum _xmmode): Remove spurious comma.
603 * XMenu.h, XMenuInt.h: Include X10.h from this dir.
605 1990-11-13 Richard Stallman (rms@mole.ai.mit.edu)
607 * XMenu.h (struct _xmenu): Use unsigned long for colors.
609 1990-11-12 Richard Stallman (rms@mole.ai.mit.edu)
611 * Internal.c: Declare argument `display' in some functions.
618 Copyright (C) 1993-1999, 2001-2012 Free Software Foundation, Inc.
620 This file is part of GNU Emacs.
622 GNU Emacs is free software: you can redistribute it and/or modify
623 it under the terms of the GNU General Public License as published by
624 the Free Software Foundation, either version 3 of the License, or
625 (at your option) any later version.
627 GNU Emacs is distributed in the hope that it will be useful,
628 but WITHOUT ANY WARRANTY; without even the implied warranty of
629 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
630 GNU General Public License for more details.
632 You should have received a copy of the GNU General Public License
633 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.