1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-21 10:24:55 +00:00
Commit Graph

99984 Commits

Author SHA1 Message Date
Paul Eggert
c5443aa547 * emacsclient.c (main): Don't use uninitialized var.
(IS_ANY_SEP): Remove; unused.
(get_current_dir_name): Add an extern decl.
2011-04-16 14:11:28 -07:00
Paul Eggert
b58c5c4af7 * insdel.c (make_gap_smaller): Define only if
USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC.
2011-04-16 13:32:18 -07:00
Paul Eggert
cad5903248 * keyboard.c (read_char): Make a var volatile so longjmp won't clobber
it.
2011-04-16 13:27:04 -07:00
Paul Eggert
c339dc2e7e * emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used,
so that we aren't warned about unused symbols.
2011-04-16 13:21:26 -07:00
Paul Eggert
94578f9cc2 Add bug#. 2011-04-16 13:09:28 -07:00
Paul Eggert
91a3e27bb7 * xfns.c (Fx_file_dialog): Rename local to avoid shadowing. 2011-04-16 13:07:17 -07:00
Paul Eggert
7a3fb1252c * xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var. 2011-04-16 12:42:09 -07:00
Paul Eggert
dda3aeddcb * xterm.c (x_dispatch_event): More accurate ifdefs. 2011-04-16 09:44:58 -07:00
Paul Eggert
748945cc8b * lwlib.c (first_child) [USE_MOTIF]: Protoize. 2011-04-16 09:42:58 -07:00
Paul Eggert
8ffc96f571 * xfns.c (x_real_positions): Mark locals as initialized. 2011-04-16 08:39:35 -07:00
Paul Eggert
eef9bc799a * xmenu.c (xmenu_show): Don't use uninitialized vars. 2011-04-16 08:38:15 -07:00
Paul Eggert
098db9dd8b * xterm.c: Fix problems found by static analysis with other toolkits.
(toolkit_scroll_bar_interaction): Define and use only if USE_X_TOOLKIT.
(x_dispatch_event): Declare static only if !USE_GTK && USE_X_TOOLKIT.
Define if USE_GTK || (HAVE_MENUS && USE_X_TOOLKIT); USE_MOTIF need
not be part of this test.
(SET_SAVED_BUTTON_EVENT): Define only if USE_X_TOOLKIT || USE_GTK.
* xterm.h (x_dispatch_event): Use USE_GTK, not USE_MOTIF, when testing
whether to declare.
* xterm.c, xterm.h (x_mouse_leave): Bring this function back, but only if
defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK.
2011-04-16 08:24:20 -07:00
Paul Eggert
eb18f6cc66 * xmenu.c (menu_help_callback): Pointer type fixes.
Use const pointers when pointing at readonly data.  Avoid pointer
signedness clashes.
(FALSE): Remove unused macro.
(update_frame_menubar): Remove unused decl.
2011-04-16 08:15:17 -07:00
Paul Eggert
1fe72bf861 * xfns.c (Fx_hide_tip): Move locals to avoid shadowing. 2011-04-16 08:12:29 -07:00
Paul Eggert
60d9e1db81 * menu.c (push_submenu_start, push_submenu_end): Do not define unless
USE_X_TOOLKIT || USE_GTK || HAVE_NS || defined HAVE_NTGUI.
(single_menu_item): Rename local to avoid shadowing.
2011-04-16 08:11:41 -07:00
Paul Eggert
39261c266b * keyboard.c (make_lispy_event): Remove unused local var. 2011-04-16 01:37:21 -07:00
Paul Eggert
018c5e19a5 * frame.c, frame.h (x_get_resource_string): Bring this back, but
only if HAVE_X_WINDOWS && !USE_X_TOOLKIT.
2011-04-16 01:36:41 -07:00
Paul Eggert
63d2b86e5d Change bitmaps back to X11-compatible types. 2011-04-16 01:30:05 -07:00
Paul Eggert
55660072db Modernize to C89, for better static checking.
* Activate.c (XMenuActivate): Callback's first arg is readonly.
* AddPane.c (XMenuAddPane): Label is readonly.  Rename local
to avoid shadowing.
* AddSel.c (XMenuAddSelection): Help arg is readonly.  Rename local.
* Create.c (atoi, atof): Remove decls; include <stdlib.h>.
(MAX_INACT_PNUM, TILE_BUF_SIZE): Remove; unused.
(x_get_resource_string): Args are readonly.
(XAllocDisplayColor): colorName is readonly.
(XMenuCreate): def_env is readonly.  Remove unused locals.  Avoid
"else;".
* Destroy.c (XMenuDestroy): Return void.
* Error.c (XMenuError): Remove const pointer.
* EvHand.c (XMenuEventHandler): Return void.
* FindPane.c, FindSel.c: Include <string.h>.
* InsPane.c (XMenuInsertPane): Rename local to avoid shadowing.
* InsSel.c (XMenuInsertSelection): Likewise.
* Internal.c (toggle_color, BUFFER_SIZE): Remove; unused.
(_XMErrorList): Now const.
(_XMWinQueInit, _XMRecomputeGlobals, _XMTransToOrigin, _XMRefreshPane):
(_XMRefreshSelection): Return void.
(_XMWinQueFlush, _XMRefreshSelection): Rename locals to avoid
shadowing.
(_XMWinQueFlush): Use stack, not heap.  Don't use uninitialized var.
* SetAEQ.c (XMenuSetAEQ): Now returns void.
* SetFrz.c (XMenuSetFreeze): Likewise.
* X10.h (XAssoc): Use void * for generic pointer.
* XDelAssoc.c: Include XMenuInt.h rather than duplicating part of it.
* XDestAssoc.c, XMakeAssoc.c: Likewise.
* XDestAssoc.c (XDestroyAssocTable): Return void.
* XMakeAssoc.c (XMakeAssoc): Use void * for generic pointer.
* XMenu.h, XMenuInt.h: Adjust to signature changes.  Use const
for pointers to readonly storage.
* insque.c: Include XMenuInt.h, to check our own signature.
(emacs_insque, emacs_remque): Use void * for generic pointers.
2011-04-16 01:25:42 -07:00
Paul Eggert
aefd87e148 * xgselect.c (xgselect_initialize): Check vs interface
even if ! (defined (USE_GTK) || defined (HAVE_GCONF)).
2011-04-16 00:57:31 -07:00
Paul Eggert
bf501fb940 * xmenu.c (xmenu_show): Rename parm to avoid shadowing. 2011-04-15 22:01:04 -07:00
Paul Eggert
723918432d * xrdb.c (x_load_resources): Omit unused local. 2011-04-15 21:37:14 -07:00
Paul Eggert
e9829fdfd2 * xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers
to read-only memory.
2011-04-15 21:13:47 -07:00
Paul Eggert
1086c0956d * fns.c (vector): Remove; this old hack is no longer needed. 2011-04-15 20:13:28 -07:00
Paul Eggert
dde4298125 * xsmfns.c (gdk_x11_set_sm_client_id) [!USE_GTK]: Don't define. 2011-04-15 20:06:07 -07:00
Paul Eggert
401f10cb83 * xsmfns.c: Remove unused var. 2011-04-15 20:04:03 -07:00
Paul Eggert
2baccd04ce * xsmfns.c (create_client_leader_window): Rename shadowing arg. 2011-04-15 20:03:01 -07:00
Paul Eggert
3565b3460d * xrdb.c (x_load_resources) [!USE_MOTIF]: Omit unused local. 2011-04-15 20:00:21 -07:00
Paul Eggert
dc5ddd8531 * xfns.c (USG): Use the kludged USG macro, to pacify gcc. 2011-04-15 19:58:53 -07:00
Paul Eggert
8a94ea3340 * xfns.c (x_window): Rename locals to avoid shadowing. 2011-04-15 19:57:41 -07:00
Paul Eggert
436c16df9a * xfns.c (free_frame_menubar, atof): Remove duplicate decls. 2011-04-15 19:51:35 -07:00
Paul Eggert
bbbef9e18a * xterm.c (x_term_init): Remove local to avoid shadowing. 2011-04-15 19:49:21 -07:00
Paul Eggert
92bb796d20 * xterm.c (x_alloc_nearest_color_for_widget): Remove; unused. 2011-04-15 19:47:50 -07:00
Paul Eggert
764430a3e3 * xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl. 2011-04-15 19:45:59 -07:00
Paul Eggert
4887c6e26e * xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if
USE_TOOLKIT_SCROLL_BARS && !USE_GTK, as xterm.c needs it then.
2011-04-15 18:54:37 -07:00
Paul Eggert
9ac71959cb * lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;". 2011-04-15 18:42:03 -07:00
Paul Eggert
4d511c40f4 * lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused. 2011-04-15 18:41:12 -07:00
Paul Eggert
1fbb460913 * xlwmenu.c (MINL): Define only if not emacs. 2011-04-15 18:38:14 -07:00
Paul Eggert
5b7d36d143 * xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing. 2011-04-15 18:36:46 -07:00
Ben Key
4a1a6b5b7d Modified the code that parses the --cflags and --ldflags options to support parameters that include the = character as long as they are enclosed in quotes. 2011-04-15 17:48:00 -05:00
Teodor Zlatanov
ba3bd5b6c3 nus-registry.el (gnus-registry--split-fancy-with-parent-internal): Track by subject first, then sender. 2011-04-15 14:29:02 +00:00
Stefan Monnier
daca8ba5e3 Use completion-at-point for mailalias.el
* lisp/mail/mailalias.el: Use lexical-binding.
(pattern, mailalias-done): Declare dynamic.
(mail-completion-at-point-function): New function, from mail-complete.
(mail-complete): Use it.
(mail-completion-expand): New function.
(mail-get-names): Use it.
(mail-directory, mail-directory-process, mail-directory-stream):
Don't use `pattern' for lexically bound arg.
* lisp/mail/sendmail.el (mail-mode-map): Use completion-at-point.
(mail-mode): Setup mailalias completion here instead.
2011-04-15 10:50:04 -03:00
Stefan Monnier
6f5424852f * lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Use eval-sexp-add-defvars. 2011-04-15 09:57:53 -03:00
Stefan Monnier
70f6144dbd * lisp/gnus/gnus-draft.el (gnus-draft-setup): New arg `dont-pop'.
(gnus-draft-send): Use it to avoid popping
up frames from gnus-group-send-queue.
* lisp/gnus/gnus.el (gnus-splash-svg-color-symbols): Don't use insert-file
from Lisp.
* lisp/gnus/message.el (message-bogus-system-names): Replace ^...$ => \`...\'.
2011-04-15 09:42:51 -03:00
Stefan Monnier
037e7c3fd0 * lisp/htmlfontify.el (hfy-etags-cmd): Remove inoperant eval-and-compile.
(hfy-e2x-etags-cmd, hfy-etags-cmd-alist-default)
(hfy-etags-cmd-alist): Don't eval-and-compile any more.
2011-04-15 09:35:32 -03:00
Stefan Monnier
8b05752a45 * lisp/emacs-lisp/bytecomp.el (byte-temp-output-buffer-show)
(byte-save-window-excursion, byte-temp-output-buffer-setup)
(byte-interactive-p): Define them again, for use when inlining old code.
2011-04-15 09:30:15 -03:00
Paul Eggert
71b414062b * sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT. 2011-04-15 03:23:56 -07:00
Paul Eggert
9c3c56a747 emacs_write: Accept and return EMACS_INT for sizes. 2011-04-15 01:51:02 -07:00
Paul Eggert
a0238ccadc * sound.c: Use EMACS_INT rather than size_t. 2011-04-15 01:47:25 -07:00
Paul Eggert
3d6c254321 * process.c (send_process): Change a size_t to EMACS_INT. 2011-04-15 01:35:53 -07:00