bpt/emacs.git
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.

13 years ago* insdel.c (signal_before_change): Now static.
Paul Eggert [Thu, 14 Apr 2011 00:49:57 +0000 (17:49 -0700)]
* insdel.c (signal_before_change): Now static.

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

However, leave prepare_to_modify_buffer alone.  It's never
called from outside this function, but that appears to be a bug.
(combine_after_change_list, combine_after_change_buffer):
(adjust_after_replace): Now static.
(adjust_after_replace_noundo): Remove; unused.
* lisp.h (adjust_after_replace, adjust_after_replace_noundo):
Remove decls.

13 years ago* indent.c (val_compute_motion, val_vmotion): Now static.
Paul Eggert [Thu, 14 Apr 2011 00:42:10 +0000 (17:42 -0700)]
* indent.c (val_compute_motion, val_vmotion): Now static.

13 years ago* lisp/minibuffer.el (completion-in-region-mode-predicate)
Stefan Monnier [Thu, 14 Apr 2011 00:16:11 +0000 (21:16 -0300)]
* lisp/minibuffer.el (completion-in-region-mode-predicate)
(completion-in-region-mode--predicate): New vars.
(completion-in-region, completion-in-region--postch)
(completion-in-region-mode): Use them.
(completion--capf-wrapper): Also return the hook function.
(completion-at-point, completion-help-at-point):
Adjust and provide a predicate.

13 years ago* image.c: Make symbols static if they're not exported.
Paul Eggert [Wed, 13 Apr 2011 23:44:57 +0000 (16:44 -0700)]
* image.c: Make symbols static if they're not exported.

* dispextern.h (x_create_bitmap_from_xpm_data): Do not declare
if USE_GTK.
* image.c (x_create_bitmap_from_xpm_data): Do not define if USE_GTK.
(xpm_color_cache, ct_table, ct_colors_allocated): Now static.

13 years ago* fringe.c (standard_bitmaps): Now static.
Paul Eggert [Wed, 13 Apr 2011 23:38:13 +0000 (16:38 -0700)]
* fringe.c (standard_bitmaps): Now static.

(max_used_fringe_bitmap): Now static, unless HAVE_NS.

13 years ago* frame.c: Make symbols static if they're not exported.
Paul Eggert [Wed, 13 Apr 2011 23:35:33 +0000 (16:35 -0700)]
* frame.c: Make symbols static if they're not exported.

(x_report_frame_params, make_terminal_frame): Now static.
(get_frame_param): Now static, unless HAVE_NS.
(x_fullscreen_adjust): Define if WINDOWSNT, not if HAVE_WINDOW_SYSTEM.
(x_get_resource_string): Remove; not used.
* frame.h (make_terminal_frame, x_report_frame_params):
(x_get_resource_string); Remove decls.
(x_fullscreen_adjust): Declare only if WINDOWSNT.
* lisp.h (get_frame_param): Declare only if HAVE_NS.

13 years ago* font.c, fontset.c: Make symbols static if they're not exported.
Paul Eggert [Wed, 13 Apr 2011 23:22:35 +0000 (16:22 -0700)]
* font.c, fontset.c: Make symbols static if they're not exported.

* dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): New macro.
(FACE_SUITABLE_FOR_CHAR_P): Use it.
* font.c (font_close_object): Now static.
* font.h (font_close_object): Remove.
* fontset.c (FONTSET_OBJLIST): Remove.
(free_realized_fontset) #if-0 the body, which does nothing.
(face_suitable_for_char_p): #if-0, as it's never called.
* fontset.h (face_suitable_for_char_p): Remove decl.
* xfaces.c (face_at_string_position): Use
FACE_SUITABLE_FOR_ASCII_CHAR_P, not FACE_SUITABLE_FOR_CHAR_P,
since 0 is always ASCII.

13 years ago* fns.c (weak_hash_tables): Now static.
Paul Eggert [Wed, 13 Apr 2011 23:02:03 +0000 (16:02 -0700)]
* fns.c (weak_hash_tables): Now static.

13 years ago* fileio.c: Make symbols static if they're not exported.
Paul Eggert [Wed, 13 Apr 2011 22:57:17 +0000 (15:57 -0700)]
* fileio.c: Make symbols static if they're not exported.

(auto_saving, auto_save_mode_bits, auto_save_error_occurred):
(Vwrite_region_annotation_buffers): Now static.

13 years ago* eval.c: Make symbols static if they're not exported.
Paul Eggert [Wed, 13 Apr 2011 22:53:58 +0000 (15:53 -0700)]
* eval.c: Make symbols static if they're not exported.

(backtrace_list, lisp_eval_depth, when_entered_debugger): Now static.
* lisp.h (backtrace_list): Remove decl.

13 years ago* emacs.c: Make symbols static if they're not exported.
Paul Eggert [Wed, 13 Apr 2011 22:50:03 +0000 (15:50 -0700)]
* emacs.c: Make symbols static if they're not exported.

(malloc_state_ptr, malloc_using_checking, syms_of_emacs):
(fatal_error_code, fatal_error_signal_hook, standard_args):
Now static.
(fatal_error_signal): Now static, unless FLOAT_CATCH_SIGKILL.
(DEFINE_DUMMY_FUNCTION): Mark function as externally visible.
(__CTOR_LIST__, __DTOR_LIST__): Now externally visible.
* lisp.h (fatal_error_signal_hook): Remove decl.
(fatal_error_signal): Declare only if FLOAT_CATCH_SIGKILL.

13 years ago* editfns.c: Move a (normally-unused) function to its only use.
Paul Eggert [Wed, 13 Apr 2011 22:28:14 +0000 (15:28 -0700)]
* editfns.c: Move a (normally-unused) function to its only use.

* editfns.c, lisp.h (get_operating_system_release): Remove.
* process.c (init_process) [DARWIN_OS]: Do it inline, as it is not
worth the hassle of breaking this out.

13 years ago* xterm.c: Make symbols static if they're not exported.
Paul Eggert [Wed, 13 Apr 2011 22:19:27 +0000 (15:19 -0700)]
* xterm.c: Make symbols static if they're not exported.

(x_raise_frame, x_lower_frame, x_wm_set_window_state):
(x_wm_set_icon_pixmap, x_initialize, XTread_socket_fake_io_error):
(x_destroy_window, x_delete_display):
Now static.
(x_dispatch_event): Now static if ! (USE_MOTIF || USE_X_TOOLKIT).
(x_mouse_leave): Remove; unused.
* xterm.h (x_display_info_for_name, x_raise_frame, x_lower_frame):
(x_destroy_window, x_wm_set_window_state, x_wm_set_icon_pixmap):
(x_delete_display, x_initialize, x_set_border_pixel, x_screen_planes):
Remove decls.
(x_mouse_leave): Declare only if WINDOWSNT.
(x_dispatch_event): Declare only if USE_MOTIF or USE_X_TOOLKIT.
(xic_create_fontsetname): Declare only if HAVE_X_WINDOWS &&
USE_X_TOOLKIT.

13 years ago* sysdep.c (MAX_RW_COUNT): New macro, to work around kernel bugs.
Paul Eggert [Wed, 13 Apr 2011 19:54:09 +0000 (12:54 -0700)]
* sysdep.c (MAX_RW_COUNT): New macro, to work around kernel bugs.

(emacs_read, emacs_write): Use it.

13 years ago* process.c (send_process): Count partial writes as successes.
Paul Eggert [Wed, 13 Apr 2011 19:23:45 +0000 (12:23 -0700)]
* process.c (send_process): Count partial writes as successes.

See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00483.html

13 years agoPreserve arg names for advice of subr and lexical functions.
Stefan Monnier [Wed, 13 Apr 2011 17:56:47 +0000 (14:56 -0300)]
Preserve arg names for advice of subr and lexical functions.
* lisp/help-fns.el (help-function-arglist): Consolidate the subr and
new-byte-code cases.  Add argument `preserve-names' to extract names
from the docstring when needed.
* lisp/emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args)
(ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove.
(ad-arglist): Use help-function-arglist's new arg.
(ad-definition-type): Use cond.

Fixes: debbugs:8457

13 years agoFix bug #8487 with invisible text at EOB under bidi.
Eli Zaretskii [Wed, 13 Apr 2011 17:43:38 +0000 (20:43 +0300)]
Fix bug #8487 with invisible text at EOB under bidi.

 src/xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init
 when at ZV.

13 years agoFix bug #8487 with invisible property near EOB under bidi.
Eli Zaretskii [Wed, 13 Apr 2011 17:41:04 +0000 (20:41 +0300)]
Fix bug #8487 with invisible property near EOB under bidi.

 src/xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init
 when at ZV.

13 years agolisp/autorevert.el: Use `remote-file-name-inhibit-cache'.
Juanma Barranquero [Wed, 13 Apr 2011 14:27:41 +0000 (16:27 +0200)]
lisp/autorevert.el: Use `remote-file-name-inhibit-cache'.

* autorevert.el (auto-revert-handler):
  Bind `remote-file-name-inhibit-cache', not `tramp-cache-inhibit-cache',
  which was removed in 2010-10-02T13:21:43Z!michael.albinus@gmx.de.
  Don't quote lambda.

13 years agoFix typos.
Juanma Barranquero [Wed, 13 Apr 2011 11:58:47 +0000 (13:58 +0200)]
Fix typos.

13 years agoemacs_write: Return size_t, not ssize_t, to avoid overflow issues.
Paul Eggert [Wed, 13 Apr 2011 05:02:54 +0000 (22:02 -0700)]
emacs_write: Return size_t, not ssize_t, to avoid overflow issues.

* gnutls.c, gnutls.h (emacs_gnutls_write): Return size_t, not ssize_t.
* sysdep.c, lisp.h (emacs_write): Likewise.
Without the above change, emacs_gnutls_write and emacs_write had
undefined behavior and would typically mistakenly report an error
when writing a buffer whose size exceeds SSIZE_MAX.
(emacs_read, emacs_write): Remove check for negative size, as the
Emacs source code has been audited now.
(emacs_write): Adjust to new signature, making the code look more
like that of emacs_gnutls_write.
* process.c (send_process): Adjust to the new signatures of
emacs_write and emacs_gnutls_write.  Do not attempt to store
a byte offset into an 'int'; it might overflow.

13 years ago* sound.c: Don't assume sizes fit in 'int'.
Paul Eggert [Wed, 13 Apr 2011 03:22:40 +0000 (20:22 -0700)]
* sound.c: Don't assume sizes fit in 'int'.

(struct sound_device.period_size, alsa_period_size):
Return size_t, not int.
(struct sound_device.write, vox_write, alsa_write):
Accept size_t, not int.
(wav_play, au_play): Use size_t to store sizes, and ssize_t to
record read return values.

13 years agolisp/image-mode.el: Fix change in 2011-04-09T20:28:01Z!cyd@stupidchicken.com.
Juanma Barranquero [Wed, 13 Apr 2011 02:16:42 +0000 (04:16 +0200)]
lisp/image-mode.el: Fix change in 2011-04-09T20:28:01Z!cyd@stupidchicken.com.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 12 Apr 2011 22:18:02 +0000 (22:18 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Window Layout): @itemize @code doesn't exist.  It's @table @code.
gnus-registry.el (gnus-registry--split-fancy-with-parent-internal): Fix logic bug.
 (gnus-registry-post-process-groups): Fix logging of no results and quote sender and subject.
network-stream.el (network-stream-open-starttls): Only do opportunistic STARTTLS upgrades if we have built-in gnutls support.  Upgrades via gnutls-cli are too slow to be done opportunistically.
gnus-start.el (gnus-get-unread-articles): Slight cleanup.
 (gnus-read-active-for-groups): Don't try to finish getting stuff where we had no early-data returned.
 (gnus-get-unread-articles): Add a sanity check so that we don't issue two async commands to the same server at the same time.
gnus-sum.el (gnus-summary-select-article-buffer): Doc fix.
gnus-registry.el (gnus-registry-remake-db): Put the warning on a "warning" level.

13 years agolisp/dframe.el (dframe-current-frame): Remove spurious quote.
Juanma Barranquero [Tue, 12 Apr 2011 15:39:44 +0000 (17:39 +0200)]
lisp/dframe.el (dframe-current-frame): Remove spurious quote.

13 years agomm-url.el (mm-url-package-name): Removed to ease third-party reuse.
Lars Magne Ingebrigtsen [Tue, 12 Apr 2011 14:16:41 +0000 (14:16 +0000)]
mm-url.el (mm-url-package-name): Removed to ease third-party reuse.
 (mm-url-insert-file-contents): Don't set the package names.

13 years agolisp/ChangeLog: Fix date of entry.
Juanma Barranquero [Tue, 12 Apr 2011 13:14:44 +0000 (15:14 +0200)]
lisp/ChangeLog: Fix date of entry.

13 years agoUse xfree instead of free where appropriate (Bug#8437)
Andreas Schwab [Tue, 12 Apr 2011 10:20:32 +0000 (12:20 +0200)]
Use xfree instead of free where appropriate (Bug#8437)

* charset.c (Fclear_charset_maps): Use xfree instead of free.
(Bug#8437)
* keyboard.c (parse_tool_bar_item): Likewise.
* sound.c (sound_cleanup, alsa_close): Likewise.
* termcap.c (tgetent): Likewise.
* xfns.c (x_default_font_parameter): Likewise.
* xsettings.c (read_and_apply_settings): Likewise.

13 years ago* alloc.c (overrun_check_malloc, overrun_check_realloc)
Andreas Schwab [Tue, 12 Apr 2011 10:20:32 +0000 (12:20 +0200)]
* alloc.c (overrun_check_malloc, overrun_check_realloc)
(overrun_check_free): Protoize.

13 years agoAuto-commit of generated files.
Glenn Morris [Tue, 12 Apr 2011 10:18:34 +0000 (06:18 -0400)]
Auto-commit of generated files.

13 years ago* ftxfont.c: Make symbols static if they're not exported.
Paul Eggert [Tue, 12 Apr 2011 08:42:29 +0000 (01:42 -0700)]
* ftxfont.c: Make symbols static if they're not exported.

(ftxfont_driver): Export only if !defined HAVE_XFT && def8ined
HAVE_FREETYPE.
* font.h (ftxfont_driver): Likewise.

13 years ago* xfns.c: Make symbols static if they're not exported.
Paul Eggert [Tue, 12 Apr 2011 08:39:43 +0000 (01:39 -0700)]
* xfns.c: Make symbols static if they're not exported.

(x_last_font_name, x_display_info_for_name):
(x_set_foreground_color, x_set_background_color, x_set_mouse_color):
(x_set_cursor_color, x_set_border_pixel, x_set_border_color):
(x_set_cursor_type, x_set_icon_type, x_set_icon_name):
(x_set_scroll_bar_foreground, x_set_scroll_bar_background):
(x_explicitly_set_name, x_set_title, xic_defaut_fontset, tip_timer):
(last_show_tip_args): Now static.
(xic_defaut_fontset, xic_create_fontsetname): Define only if
defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT
(x_screen_planes): Remove; unused.
* dispextern.h (x_screen_planes): Remove decl.

13 years ago* sysdep.c (emacs_read, emacs_write): Check for negative sizes
Paul Eggert [Tue, 12 Apr 2011 08:12:01 +0000 (01:12 -0700)]
* sysdep.c (emacs_read, emacs_write): Check for negative sizes

since callers should never pass a negative size.
Change the signature to match that of plain 'read' and 'write'; see
<http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00397.html>.
* lisp.h: Update prototypes of emacs_write and emacs_read.

13 years agoSmall cal-tex fix.
Glenn Morris [Tue, 12 Apr 2011 07:03:52 +0000 (00:03 -0700)]
Small cal-tex fix.

* lisp/calendar/cal-tex.el (cal-tex-end-document):
Try to automatically use latin1 input if needed.

13 years ago* dispnew.c: Make symbols static if they're not exported.
Paul Eggert [Tue, 12 Apr 2011 06:36:55 +0000 (23:36 -0700)]
* dispnew.c: Make symbols static if they're not exported.

* dispextern.h (redraw_garbaged_frames, scrolling):
(increment_row_positions): Remove.
* dispnew.c (new_glyph_matrix, increment_row_positions, scrolling):
(delayed_size_change, glyph_matrix_count, glyph_pool_count):
Now static.
(redraw_garbaged_frames): Remove; unused.

13 years ago* xfaces.c: Make symbols static if they're not exported.
Paul Eggert [Tue, 12 Apr 2011 06:27:22 +0000 (23:27 -0700)]
* xfaces.c: Make symbols static if they're not exported.

* dispextern.h (ascii_face_of_lisp_face, free_realized_face):
Remove decls.
* xterm.h (defined_color): Remove decls.
(x_free_dpy_colors): Declare only if USE_X_TOOLKIT.
* xfaces.c (tty_suppress_bold_inverse_default_colors_p):
(menu_face_changed_default, defined_color, free_realized_face):
(x_free_dpy_colors): Define only if USE_X_TOOLKIT.
(ascii_face_of_lisp_face): Remove; unused.

13 years ago* xdisp.c: Make symbols static if they're not exported.
Paul Eggert [Tue, 12 Apr 2011 06:01:37 +0000 (23:01 -0700)]
* xdisp.c: Make symbols static if they're not exported.

* dispextern.h (scratch_glyph_row, window_box_edges):
(glyph_to_pixel_coords, set_cursor_from_row):
(get_next_display_element, set_iterator_to_next):
(highlight_trailing_whitespace, frame_to_window_pixel_xy):
(show_mouse_face): Remove decls
* frame.h (message_buf_print): Likewise.
* lisp.h (pop_message, set_message, check_point_in_composition):
Likewise.
* xterm.h (set_vertical_scroll_bar): Likewise.
* xdisp.c (list_of_error, Vmessage_stack, line_number_displayed):
(message_buf_print, scratch_glyph_row, displayed_buffer):
(set_iterator_to_next, pop_message, set_message, set_cursor_from_row):
(get_next_display_element, show_mouse_face, window_box_edges):
(frame_to_window_pixel_xy, check_point_in_composition):
(set_vertical_scroll_bar, highlight_trailing_whitespace): Now static.
(glyph_to_pixel_coords): Remove; unused.

13 years ago* dired.c (file_name_completion): Now static.
Paul Eggert [Tue, 12 Apr 2011 05:20:44 +0000 (22:20 -0700)]
* dired.c (file_name_completion): Now static.

* dbusbind.c (xd_in_read_queued_messages): Now static.

13 years ago* lisp.h (circular_list_error, FOREACH): Remove; unused.
Paul Eggert [Tue, 12 Apr 2011 05:17:33 +0000 (22:17 -0700)]
* lisp.h (circular_list_error, FOREACH): Remove; unused.

* data.c (circular_list_error): Remove.

13 years agocal-hebrew fix for diary-hebrew-rosh-hodesh.
Glenn Morris [Tue, 12 Apr 2011 04:02:38 +0000 (21:02 -0700)]
cal-hebrew fix for diary-hebrew-rosh-hodesh.

* lisp/calendar/cal-hebrew.el (diary-hebrew-rosh-hodesh):
Don't try to cons a mark onto an empty element.

Recipe showing the problem:
~/diary:
&%%(diary-rosh-hodesh)
&%%(diary-parasha)

emacs -Q --eval "(progn (add-hook 'diary-nongregorian-listing-hook
   'diary-hebrew-list-entries) (setq cal-tex-diary t))" -f calendar

Move to Jan 2011, press `t m', latex the generated file.

[Port to 23.4]

13 years agoImageMagick fix for bug#7955.
Glenn Morris [Tue, 12 Apr 2011 03:55:07 +0000 (20:55 -0700)]
ImageMagick fix for bug#7955.

* configure.in: Require ImageMagick >= 6.2.8.  (Bug#7955)

* etc/NEWS: Mention ImageMagick version.