bpt/emacs.git
13 years ago* dispextern.h (struct redisplay_interface): Rename param
Paul Eggert [Sat, 16 Apr 2011 21:24:54 +0000 (14:24 -0700)]
* dispextern.h (struct redisplay_interface): Rename param

to avoid shadowing.

13 years ago* lwlib-utils.c (XtCompositeChildren): Likewise.
Paul Eggert [Sat, 16 Apr 2011 21:23:30 +0000 (14:23 -0700)]
* lwlib-utils.c (XtCompositeChildren): Likewise.

13 years ago* lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 21:22:40 +0000 (14:22 -0700)]
* lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.

(make_menu_in_widget): Add cast to avoid warning.

13 years ago* pop.c (socket_connection): Double-cast to avoid GCC warning
Paul Eggert [Sat, 16 Apr 2011 21:21:24 +0000 (14:21 -0700)]
* pop.c (socket_connection): Double-cast to avoid GCC warning

about alignment.

13 years ago* movemail.c (mail_spool_name): Protoize.
Paul Eggert [Sat, 16 Apr 2011 21:20:25 +0000 (14:20 -0700)]
* movemail.c (mail_spool_name): Protoize.

(main): Remove unused var.  Mark var as initialized.
Move locals to avoid shadowing, and use time_t for times.

13 years ago* fakemail.c (xmalloc, xreallc): Use standard C prototypes
Paul Eggert [Sat, 16 Apr 2011 21:13:07 +0000 (14:13 -0700)]
* fakemail.c (xmalloc, xreallc): Use standard C prototypes

with void *.  This avoids warnings about pointer casts.

13 years ago* emacsclient.c (main): Don't use uninitialized var.
Paul Eggert [Sat, 16 Apr 2011 21:11:28 +0000 (14:11 -0700)]
* emacsclient.c (main): Don't use uninitialized var.

(IS_ANY_SEP): Remove; unused.
(get_current_dir_name): Add an extern decl.

13 years ago* insdel.c (make_gap_smaller): Define only if
Paul Eggert [Sat, 16 Apr 2011 20:32:18 +0000 (13:32 -0700)]
* insdel.c (make_gap_smaller): Define only if

USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC.

13 years ago* keyboard.c (read_char): Make a var volatile so longjmp won't clobber
Paul Eggert [Sat, 16 Apr 2011 20:27:04 +0000 (13:27 -0700)]
* keyboard.c (read_char): Make a var volatile so longjmp won't clobber

it.

13 years ago* emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used,
Paul Eggert [Sat, 16 Apr 2011 20:21:26 +0000 (13:21 -0700)]
* emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used,

so that we aren't warned about unused symbols.

13 years agoAdd bug#.
Paul Eggert [Sat, 16 Apr 2011 20:09:28 +0000 (13:09 -0700)]
Add bug#.

13 years ago* xfns.c (Fx_file_dialog): Rename local to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 20:07:17 +0000 (13:07 -0700)]
* xfns.c (Fx_file_dialog): Rename local to avoid shadowing.

13 years ago* xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.
Paul Eggert [Sat, 16 Apr 2011 19:42:09 +0000 (12:42 -0700)]
* xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.

13 years ago* xterm.c (x_dispatch_event): More accurate ifdefs.
Paul Eggert [Sat, 16 Apr 2011 16:44:58 +0000 (09:44 -0700)]
* xterm.c (x_dispatch_event): More accurate ifdefs.

13 years ago* lwlib.c (first_child) [USE_MOTIF]: Protoize.
Paul Eggert [Sat, 16 Apr 2011 16:42:58 +0000 (09:42 -0700)]
* lwlib.c (first_child) [USE_MOTIF]: Protoize.

13 years ago* xfns.c (x_real_positions): Mark locals as initialized.
Paul Eggert [Sat, 16 Apr 2011 15:39:35 +0000 (08:39 -0700)]
* xfns.c (x_real_positions): Mark locals as initialized.

13 years ago* xmenu.c (xmenu_show): Don't use uninitialized vars.
Paul Eggert [Sat, 16 Apr 2011 15:38:15 +0000 (08:38 -0700)]
* xmenu.c (xmenu_show): Don't use uninitialized vars.

13 years ago* xterm.c: Fix problems found by static analysis with other toolkits.
Paul Eggert [Sat, 16 Apr 2011 15:24:20 +0000 (08:24 -0700)]
* 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.

13 years ago* xmenu.c (menu_help_callback): Pointer type fixes.
Paul Eggert [Sat, 16 Apr 2011 15:15:17 +0000 (08:15 -0700)]
* 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.

13 years ago* xfns.c (Fx_hide_tip): Move locals to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 15:12:29 +0000 (08:12 -0700)]
* xfns.c (Fx_hide_tip): Move locals to avoid shadowing.

13 years ago* menu.c (push_submenu_start, push_submenu_end): Do not define unless
Paul Eggert [Sat, 16 Apr 2011 15:11:41 +0000 (08:11 -0700)]
* 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.

13 years ago* keyboard.c (make_lispy_event): Remove unused local var.
Paul Eggert [Sat, 16 Apr 2011 08:37:21 +0000 (01:37 -0700)]
* keyboard.c (make_lispy_event): Remove unused local var.

13 years ago* frame.c, frame.h (x_get_resource_string): Bring this back, but
Paul Eggert [Sat, 16 Apr 2011 08:36:41 +0000 (01:36 -0700)]
* frame.c, frame.h (x_get_resource_string): Bring this back, but

only if HAVE_X_WINDOWS && !USE_X_TOOLKIT.

13 years agoChange bitmaps back to X11-compatible types.
Paul Eggert [Sat, 16 Apr 2011 08:30:05 +0000 (01:30 -0700)]
Change bitmaps back to X11-compatible types.

13 years agoModernize to C89, for better static checking.
Paul Eggert [Sat, 16 Apr 2011 08:25:42 +0000 (01:25 -0700)]
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.

13 years ago* xgselect.c (xgselect_initialize): Check vs interface
Paul Eggert [Sat, 16 Apr 2011 07:57:31 +0000 (00:57 -0700)]
* xgselect.c (xgselect_initialize): Check vs interface

even if ! (defined (USE_GTK) || defined (HAVE_GCONF)).

13 years ago* xmenu.c (xmenu_show): Rename parm to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 05:01:04 +0000 (22:01 -0700)]
* xmenu.c (xmenu_show): Rename parm to avoid shadowing.

13 years ago* xrdb.c (x_load_resources): Omit unused local.
Paul Eggert [Sat, 16 Apr 2011 04:37:14 +0000 (21:37 -0700)]
* xrdb.c (x_load_resources): Omit unused local.

13 years ago* xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers
Paul Eggert [Sat, 16 Apr 2011 04:13:47 +0000 (21:13 -0700)]
* xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers

to read-only memory.

13 years ago* fns.c (vector): Remove; this old hack is no longer needed.
Paul Eggert [Sat, 16 Apr 2011 03:13:28 +0000 (20:13 -0700)]
* fns.c (vector): Remove; this old hack is no longer needed.

13 years ago* xsmfns.c (gdk_x11_set_sm_client_id) [!USE_GTK]: Don't define.
Paul Eggert [Sat, 16 Apr 2011 03:06:07 +0000 (20:06 -0700)]
* xsmfns.c (gdk_x11_set_sm_client_id) [!USE_GTK]: Don't define.

13 years ago* xsmfns.c: Remove unused var.
Paul Eggert [Sat, 16 Apr 2011 03:04:03 +0000 (20:04 -0700)]
* xsmfns.c: Remove unused var.

13 years ago* xsmfns.c (create_client_leader_window): Rename shadowing arg.
Paul Eggert [Sat, 16 Apr 2011 03:03:01 +0000 (20:03 -0700)]
* xsmfns.c (create_client_leader_window): Rename shadowing arg.

13 years ago* xrdb.c (x_load_resources) [!USE_MOTIF]: Omit unused local.
Paul Eggert [Sat, 16 Apr 2011 03:00:21 +0000 (20:00 -0700)]
* xrdb.c (x_load_resources) [!USE_MOTIF]: Omit unused local.

13 years ago* xfns.c (USG): Use the kludged USG macro, to pacify gcc.
Paul Eggert [Sat, 16 Apr 2011 02:58:53 +0000 (19:58 -0700)]
* xfns.c (USG): Use the kludged USG macro, to pacify gcc.

13 years ago* xfns.c (x_window): Rename locals to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 02:57:41 +0000 (19:57 -0700)]
* xfns.c (x_window): Rename locals to avoid shadowing.

13 years ago* xfns.c (free_frame_menubar, atof): Remove duplicate decls.
Paul Eggert [Sat, 16 Apr 2011 02:51:35 +0000 (19:51 -0700)]
* xfns.c (free_frame_menubar, atof): Remove duplicate decls.

13 years ago* xterm.c (x_term_init): Remove local to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 02:49:21 +0000 (19:49 -0700)]
* xterm.c (x_term_init): Remove local to avoid shadowing.

13 years ago* xterm.c (x_alloc_nearest_color_for_widget): Remove; unused.
Paul Eggert [Sat, 16 Apr 2011 02:47:50 +0000 (19:47 -0700)]
* xterm.c (x_alloc_nearest_color_for_widget): Remove; unused.

13 years ago* xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl.
Paul Eggert [Sat, 16 Apr 2011 02:45:59 +0000 (19:45 -0700)]
* xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl.

13 years ago* xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if
Paul Eggert [Sat, 16 Apr 2011 01:54:37 +0000 (18:54 -0700)]
* xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if

USE_TOOLKIT_SCROLL_BARS && !USE_GTK, as xterm.c needs it then.

13 years ago* lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;".
Paul Eggert [Sat, 16 Apr 2011 01:42:03 +0000 (18:42 -0700)]
* lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;".

13 years ago* lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.
Paul Eggert [Sat, 16 Apr 2011 01:41:12 +0000 (18:41 -0700)]
* lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.

13 years ago* xlwmenu.c (MINL): Define only if not emacs.
Paul Eggert [Sat, 16 Apr 2011 01:38:14 +0000 (18:38 -0700)]
* xlwmenu.c (MINL): Define only if not emacs.

13 years ago* xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 01:36:46 +0000 (18:36 -0700)]
* xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing.

13 years agoModified the code that parses the --cflags and --ldflags options to support parameter...
Ben Key [Fri, 15 Apr 2011 22:48:00 +0000 (17:48 -0500)]
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.

13 years agonus-registry.el (gnus-registry--split-fancy-with-parent-internal): Track by subject...
Teodor Zlatanov [Fri, 15 Apr 2011 14:29:02 +0000 (14:29 +0000)]
nus-registry.el (gnus-registry--split-fancy-with-parent-internal): Track by subject first, then sender.

13 years agoUse completion-at-point for mailalias.el
Stefan Monnier [Fri, 15 Apr 2011 13:50:04 +0000 (10:50 -0300)]
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.

13 years ago* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Use eval-sexp-add-defvars.
Stefan Monnier [Fri, 15 Apr 2011 12:57:53 +0000 (09:57 -0300)]
* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Use eval-sexp-add-defvars.

13 years ago* lisp/gnus/gnus-draft.el (gnus-draft-setup): New arg `dont-pop'.
Stefan Monnier [Fri, 15 Apr 2011 12:42:51 +0000 (09:42 -0300)]
* 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 ^...$ => \`...\'.

13 years ago* lisp/htmlfontify.el (hfy-etags-cmd): Remove inoperant eval-and-compile.
Stefan Monnier [Fri, 15 Apr 2011 12:35:32 +0000 (09:35 -0300)]
* 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.

13 years ago* lisp/emacs-lisp/bytecomp.el (byte-temp-output-buffer-show)
Stefan Monnier [Fri, 15 Apr 2011 12:30:15 +0000 (09:30 -0300)]
* 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.

13 years ago* sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT.
Paul Eggert [Fri, 15 Apr 2011 10:23:56 +0000 (03:23 -0700)]
* sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT.

13 years agoemacs_write: Accept and return EMACS_INT for sizes.
Paul Eggert [Fri, 15 Apr 2011 08:51:02 +0000 (01:51 -0700)]
emacs_write: Accept and return EMACS_INT for sizes.

13 years ago* sound.c: Use EMACS_INT rather than size_t.
Paul Eggert [Fri, 15 Apr 2011 08:47:25 +0000 (01:47 -0700)]
* sound.c: Use EMACS_INT rather than size_t.

13 years ago* process.c (send_process): Change a size_t to EMACS_INT.
Paul Eggert [Fri, 15 Apr 2011 08:35:53 +0000 (01:35 -0700)]
* process.c (send_process): Change a size_t to EMACS_INT.

13 years ago* process.c (send_process): Change another size_t to EMACS_INT.
Paul Eggert [Fri, 15 Apr 2011 08:31:40 +0000 (01:31 -0700)]
* process.c (send_process): Change another size_t to EMACS_INT.

13 years agoemacs_write: Accept and return EMACS_INT for sizes.
Paul Eggert [Fri, 15 Apr 2011 08:22:34 +0000 (01:22 -0700)]
emacs_write: Accept and return EMACS_INT for sizes.

13 years agoMerge from mainline.
Paul Eggert [Fri, 15 Apr 2011 07:48:51 +0000 (00:48 -0700)]
Merge from mainline.

13 years agolisp/loadup.el: Use `string-to-number', not `string-to-int'.
Juanma Barranquero [Fri, 15 Apr 2011 03:15:22 +0000 (05:15 +0200)]
lisp/loadup.el: Use `string-to-number', not `string-to-int'.

13 years agoFix link errors in the Mac OS build that were caused by variables being marked as...
Ben Key [Fri, 15 Apr 2011 02:03:43 +0000 (21:03 -0500)]
Fix link errors in the Mac OS build that were caused by variables being marked as static that should not have been.

13 years ago* lisp/progmodes/gud.el (gud-gdb): Use completion-at-point instead of
Stefan Monnier [Fri, 15 Apr 2011 01:44:00 +0000 (22:44 -0300)]
* lisp/progmodes/gud.el (gud-gdb): Use completion-at-point instead of
gud-gdb-complete-command.
(gud-gdb-completions): New function, from gud-gdb-complete-command.
(gud-gdb-completion-at-point): New function.
(gud-gdb-completions): Remove.

13 years agosrc/font.c (Qopentype): Don't make static (used from w32uniscribe.c).
Juanma Barranquero [Fri, 15 Apr 2011 01:26:32 +0000 (03:26 +0200)]
src/font.c (Qopentype): Don't make static (used from w32uniscribe.c).

13 years ago* src/process.c (Qprocessp): Don't declare static.
Stefan Monnier [Fri, 15 Apr 2011 00:58:49 +0000 (21:58 -0300)]
* src/process.c (Qprocessp): Don't declare static.
* src/lisp.h (Qprocessp): Declare again.

13 years agoFix merge typo.
Paul Eggert [Thu, 14 Apr 2011 20:20:17 +0000 (13:20 -0700)]
Fix merge typo.

13 years agoMerge from mainline.
Paul Eggert [Thu, 14 Apr 2011 20:16:48 +0000 (13:16 -0700)]
Merge from mainline.

13 years ago* lisp.h (INFUN): Remove. Suggested by Dan Nicolaescu in
Paul Eggert [Thu, 14 Apr 2011 19:34:42 +0000 (12:34 -0700)]
* lisp.h (INFUN): Remove.  Suggested by Dan Nicolaescu in
<http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00393.html>.
All uses spelled out.

13 years ago* tramp.texi (Frequently Asked Questions): New item for disabling
Michael Albinus [Thu, 14 Apr 2011 19:04:08 +0000 (21:04 +0200)]
* tramp.texi (Frequently Asked Questions): New item for disabling
Tramp in other packages.

13 years ago* net/tramp-sh.el (tramp-sh-handle-file-attributes): Handle the
Michael Albinus [Thu, 14 Apr 2011 18:58:45 +0000 (20:58 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-attributes): Handle the
case when the scripts fail.  Use `tramp-do-file-attributes-with-ls'
then.
(tramp-do-copy-or-rename-file-out-of-band): Do not check any
longer, whether`executable-find' is bound.

* net/tramp-smb.el (tramp-smb-handle-copy-file): Fix docstring.

13 years agoFix typos in the last change in gnus-registry docs.
Katsumi Yamaoka [Thu, 14 Apr 2011 12:43:49 +0000 (12:43 +0000)]
Fix typos in the last change in gnus-registry docs.

13 years agognus.texi (nnmairix caveats, Setup, Registry Article Refer Method)
Teodor Zlatanov [Thu, 14 Apr 2011 10:41:00 +0000 (10:41 +0000)]
gnus.texi (nnmairix caveats, Setup, Registry Article Refer Method)
 (Fancy splitting to parent, Store arbitrary data): Updated gnus-registry docs.
gnus-registry.el: Updated gnus-registry docs.

13 years ago* fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 change. (Bug#8496)
Andreas Schwab [Thu, 14 Apr 2011 07:56:52 +0000 (09:56 +0200)]
* fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 change.  (Bug#8496)

13 years agoFix typo in previous comment.
Paul Eggert [Thu, 14 Apr 2011 07:09:45 +0000 (00:09 -0700)]
Fix typo in previous comment.

13 years agoDon't publish debugger-only interfaces to other modules.
Paul Eggert [Thu, 14 Apr 2011 06:48:41 +0000 (23:48 -0700)]
Don't publish debugger-only interfaces to other modules.

* lisp.h (safe_debug_print, debug_output_compilation_hack):
(verify_bytepos, count_markers): Move decls to the only modules
that need them.
* region-cache.h (pp_cache): Likewise.
* window.h (check_all_windows): Likewise.
* marker.c, print.c, region-cache.c, window.c: Decls moved here.

13 years ago* fileio.c: Add FIXMES mentioning Bug#8496.
Paul Eggert [Thu, 14 Apr 2011 06:33:48 +0000 (23:33 -0700)]
* fileio.c: Add FIXMES mentioning Bug#8496.

13 years ago* sysdep.c (croak): Now static, if
Paul Eggert [Thu, 14 Apr 2011 06:26:22 +0000 (23:26 -0700)]
* sysdep.c (croak): Now static, if

defined TIOCNOTTY || defined USG5 || defined CYGWIN.
* syssignal.h (croak): Declare only if not static.

13 years ago2011-04-14 Paul Eggert <eggert@cs.ucla.edu>
Paul Eggert [Thu, 14 Apr 2011 06:15:53 +0000 (23:15 -0700)]
2011-04-14  Paul Eggert  <eggert@cs.ucla.edu>

* alloc.c (refill_memory_reserve): Now static if
!defined REL_ALLOC || defined SYSTEM_MALLOC.
* lisp.h (refill_memory_reserve): Declare only if not static.

13 years agoUndo the DEFUN->DEFUE change.
Paul Eggert [Thu, 14 Apr 2011 05:04:02 +0000 (22:04 -0700)]
Undo the DEFUN->DEFUE change.

13 years ago* xsettings.c, xsettings.h (xsettings_get_system_normal_font):
Paul Eggert [Thu, 14 Apr 2011 03:08:55 +0000 (20:08 -0700)]
* xsettings.c, xsettings.h (xsettings_get_system_normal_font):

Define only if USE_LUCID.

13 years ago* xrdb.c (x_customization_string, x_rm_string): Now static.
Paul Eggert [Thu, 14 Apr 2011 03:05:57 +0000 (20:05 -0700)]
* xrdb.c (x_customization_string, x_rm_string): Now static.

13 years ago* xmenu.c (x_menu_wait_for_event): Export only if USE_MOTIF.
Paul Eggert [Thu, 14 Apr 2011 03:04:14 +0000 (20:04 -0700)]
* xmenu.c (x_menu_wait_for_event): Export only if USE_MOTIF.

* xterm.h (x_menu_wait_for_event): Declare only if USE_MOTIF.

13 years ago* xdisp.c (draw_row_with_mouse_face): Now static.
Paul Eggert [Thu, 14 Apr 2011 03:01:10 +0000 (20:01 -0700)]
* xdisp.c (draw_row_with_mouse_face): Now static.

* dispextern.h (draw_row_with_mouse_fave): Remove decl.

13 years ago* window.h (check_all_windows): Mark externally visible.
Paul Eggert [Thu, 14 Apr 2011 02:58:21 +0000 (19:58 -0700)]
* window.h (check_all_windows): Mark externally visible.

13 years ago* window.c (window_deletion_count): Now static.
Paul Eggert [Thu, 14 Apr 2011 02:57:04 +0000 (19:57 -0700)]
* window.c (window_deletion_count): Now static.

* undo.c: Make symbols static if they're not exported.
(last_undo_buffer, last_boundary_position, pending_boundary):
Now static.

13 years ago* textprop.c (interval_insert_behind_hooks): Now static.
Paul Eggert [Thu, 14 Apr 2011 02:53:50 +0000 (19:53 -0700)]
* textprop.c (interval_insert_behind_hooks): Now static.

(interval_insert_in_front_hooks): Likewise.

13 years ago* term.c: Make symbols static if they're not exported.
Paul Eggert [Thu, 14 Apr 2011 02:52:33 +0000 (19:52 -0700)]
* term.c: Make symbols static if they're not exported.

(tty_turn_off_highlight, get_tty_terminal, max_frame_cols):
(max_frame_lines, tty_set_terminal_modes):
(tty_reset_terminal_modes, tty_turn_off_highlight):
(get_tty_terminal): Now static.
(term_mouse_moveto): Do not define if HAVE_WINDOW_SYSTEM.
* termhooks.h (term_mouse_moveto): Do not declare if
HAVE_WINDOW_SYSTEMM.
* dispextern.h (tty_set_terminal_modes, tty_reset_terminal_modes):
(tty_turn_off_highlight, get_tty_terminal): Remove decls.

13 years ago* sysdep.c: Make symbols static if they're not exported.
Paul Eggert [Thu, 14 Apr 2011 02:38:06 +0000 (19:38 -0700)]
* sysdep.c: Make symbols static if they're not exported.

(emacs_get_tty, emacs_set_tty, old_fcntl_flags, old_fcntl_owner):
Now static.
(sigprocmask_set, full_mask): Remove; unused.
(wait_debugging): Mark as visible.
* syssignal.h (SIGFULLMASK, full_mask): Remove decls.
* systty.h (emacs_get_tty, emacs_set_tty): Remove decls.

13 years ago* syntax.c (syntax_temp): Define only if !__GNUC__.
Paul Eggert [Thu, 14 Apr 2011 02:27:17 +0000 (19:27 -0700)]
* syntax.c (syntax_temp): Define only if !__GNUC__.

13 years ago* sound.c (current_sound_device, current_sound): Now static.
Paul Eggert [Thu, 14 Apr 2011 02:23:09 +0000 (19:23 -0700)]
* sound.c (current_sound_device, current_sound): Now static.

13 years ago* search.c (searchbufs, searchbuf_head): Now static.
Paul Eggert [Thu, 14 Apr 2011 02:21:33 +0000 (19:21 -0700)]
* search.c (searchbufs, searchbuf_head): Now static.

13 years ago* scroll.c (scroll_cost): Remove; unused.
Paul Eggert [Thu, 14 Apr 2011 02:20:00 +0000 (19:20 -0700)]
* scroll.c (scroll_cost): Remove; unused.

* dispextern.h (scroll_cost): Remove decl.

13 years ago* region-cache.h (pp_cache): Mark as externally visible.
Paul Eggert [Thu, 14 Apr 2011 02:17:19 +0000 (19:17 -0700)]
* region-cache.h (pp_cache): Mark as externally visible.

13 years ago* process.c: Make symbols static if they're not exported.
Paul Eggert [Thu, 14 Apr 2011 02:16:00 +0000 (19:16 -0700)]
* process.c: Make symbols static if they're not exported.

(process_tick, update_tick, create_process, chan_process):
(Vprocess_alist, proc_buffered_char, datagram_access):
(fd_callback_data, send_process_frame, process_sent_to): Now static.
(deactivate_process): Mark defn as static, as well as decl.
* lisp.h (create_process): Remove decl.
* process.h (chan_process, Vprocess_alist): Remove decls.

13 years ago* print.c: Make symbols static if they're not exported.
Paul Eggert [Thu, 14 Apr 2011 02:04:54 +0000 (19:04 -0700)]
* print.c: Make symbols static if they're not exported.

(print_depth, new_backquote_output, being_printed, print_buffer):
(print_buffer_size, print_buffer_pos, print_buffer_pos_byte):
(print_interval, print_number_index, initial_stderr_stream):
Now static.
* lisp.h (Fprinc): Remove decl.
(debug_output_compilation_hack): Mark as externally visible.

13 years ago* sysdep.c (croak): Move decl from here to syssignal.h.
Paul Eggert [Thu, 14 Apr 2011 01:57:17 +0000 (18:57 -0700)]
* sysdep.c (croak): Move decl from here to syssignal.h.

* syssignal.h (croak): Put it here, so the API can be checked when
'croak' is called from dissociate_if_controlling_tty.

13 years ago* minibuf.c: Make symbols static if they're not exported.
Paul Eggert [Thu, 14 Apr 2011 01:51:24 +0000 (18:51 -0700)]
* minibuf.c: Make symbols static if they're not exported.

(minibuf_save_list, choose_minibuf_frame): Now static.
* lisp.h (choose_minibuf_frame): Remove decl.

13 years ago* lisp.h (verify_bytepos, count_markers): Mark as externally visible.
Paul Eggert [Thu, 14 Apr 2011 01:45:28 +0000 (18:45 -0700)]
* lisp.h (verify_bytepos, count_markers): Mark as externally visible.

13 years ago* lread.c: Make symbols static if they're not exported.
Paul Eggert [Thu, 14 Apr 2011 01:41:38 +0000 (18:41 -0700)]
* lread.c: Make symbols static if they're not exported.

(read_objects, initial_obarray, oblookup_last_bucket_number):
Now static.
(make_symbol): Remove; unused.
* lisp.h (initial_obarray, make_symbol): Remove decls.

13 years ago* keyboard.c: Make symbols static if they're not exported.
Paul Eggert [Thu, 14 Apr 2011 01:36:53 +0000 (18:36 -0700)]
* keyboard.c: Make symbols static if they're not exported.

(single_kboard, recent_keys_index, total_keys, recent_keys):
(this_command_key_count_reset, raw_keybuf, raw_keybuf_count):
(this_single_command_key_start, echoing, last_auto_save):
(read_key_sequence_cmd, dribble, recursive_edit_unwind):
(command_loop, echo_now, keyboard_init_hook, help_char_p):
(quit_throw_to_read_char, command_loop_2, top_level_1, poll_timer):
(Vlispy_mouse_stem, double_click_count):
Now static.
(force_auto_save_soon): Define only if SIGDANGER.
(ignore_mouse_drag_p): Now static if
!defined HAVE_WINDOW_SYSTEM || defined USE_GTK || defined HAVE_NS.
(print_help): Remove; unused.
(stop_character, last_timer_event): Mark as externally visible.
* keyboard.h (ignore_mouse_drag_p): Declare only if
defined HAVE_WINDOW_SYSTEM && !defined USE_GTK && !defined HAVE_NS.
(echo_now, help_char_p, quit_throw_to_read_char): Remove decls.
* lisp.h (echoing): Remove decl.
(force_auto_save_soon): Declare only if SIGDANGER.
* xdisp.c (redisplay_window): Simplify code, to make it more
obvious that ignore_mouse_drag_p is not accessed if !defined
USE_GTK && !defined HAVE_NS.

13 years ago* intervals.c: Make symbols static if they're not exported.
Paul Eggert [Thu, 14 Apr 2011 00:55:09 +0000 (17:55 -0700)]
* intervals.c: Make symbols static if they're not exported.

(merge_properties_sticky, merge_interval_right, delete_interval):
Now static.
* intervals.h (merge_interval_right, delete_interval): Remove decls.