1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00
Commit Graph

99964 Commits

Author SHA1 Message Date
Paul Eggert
69003fd841 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.
2011-04-13 23:15:53 -07:00
Paul Eggert
a7ca3326c4 Undo the DEFUN->DEFUE change. 2011-04-13 22:04:02 -07:00
Paul Eggert
e87b6180b0 * xsettings.c, xsettings.h (xsettings_get_system_normal_font):
Define only if USE_LUCID.
2011-04-13 20:08:55 -07:00
Paul Eggert
ac64929e09 * xrdb.c (x_customization_string, x_rm_string): Now static. 2011-04-13 20:05:57 -07:00
Paul Eggert
6f37259d32 * xmenu.c (x_menu_wait_for_event): Export only if USE_MOTIF.
* xterm.h (x_menu_wait_for_event): Declare only if USE_MOTIF.
2011-04-13 20:04:14 -07:00
Paul Eggert
1683e3ab56 * xdisp.c (draw_row_with_mouse_face): Now static.
* dispextern.h (draw_row_with_mouse_fave): Remove decl.
2011-04-13 20:01:10 -07:00
Paul Eggert
de9c2632ac * window.h (check_all_windows): Mark externally visible. 2011-04-13 19:58:21 -07:00
Paul Eggert
2b96acb7c0 * 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.
2011-04-13 19:57:04 -07:00
Paul Eggert
50436f3383 * textprop.c (interval_insert_behind_hooks): Now static.
(interval_insert_in_front_hooks): Likewise.
2011-04-13 19:53:50 -07:00
Paul Eggert
64520e5cf9 * 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.
2011-04-13 19:52:33 -07:00
Paul Eggert
1fa530214b * 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.
2011-04-13 19:38:06 -07:00
Paul Eggert
d4b43b229a * syntax.c (syntax_temp): Define only if !__GNUC__. 2011-04-13 19:27:17 -07:00
Paul Eggert
b7c513d004 * sound.c (current_sound_device, current_sound): Now static. 2011-04-13 19:23:09 -07:00
Paul Eggert
989b29ad22 * search.c (searchbufs, searchbuf_head): Now static. 2011-04-13 19:21:33 -07:00
Paul Eggert
13a55a78d4 * scroll.c (scroll_cost): Remove; unused.
* dispextern.h (scroll_cost): Remove decl.
2011-04-13 19:20:00 -07:00
Paul Eggert
de68a1fc34 * region-cache.h (pp_cache): Mark as externally visible. 2011-04-13 19:17:19 -07:00
Paul Eggert
40ccffa6ff * 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.
2011-04-13 19:16:00 -07:00
Paul Eggert
ad64fc978b * 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.
2011-04-13 19:04:54 -07:00
Paul Eggert
adddb2655c * 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.
2011-04-13 18:57:17 -07:00
Paul Eggert
1717ede2bb * 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.
2011-04-13 18:51:24 -07:00
Paul Eggert
fa5fb2bc35 * lisp.h (verify_bytepos, count_markers): Mark as externally visible. 2011-04-13 18:45:28 -07:00
Paul Eggert
1e3890d195 * 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.
2011-04-13 18:41:38 -07:00
Paul Eggert
8a1414fa0f * 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.
2011-04-13 18:36:53 -07:00
Paul Eggert
93ea6e8fa9 * 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.
2011-04-13 17:55:09 -07:00
Paul Eggert
4889fc82cf * insdel.c (signal_before_change): Now static. 2011-04-13 17:49:57 -07:00
Paul Eggert
77382fcc33 * 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.
2011-04-13 17:44:47 -07:00
Paul Eggert
9306c32edb * indent.c (val_compute_motion, val_vmotion): Now static. 2011-04-13 17:42:10 -07:00
Stefan Monnier
e240cc2188 * 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.
2011-04-13 21:16:11 -03:00
Paul Eggert
cd44d2ebb4 * 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.
2011-04-13 16:44:57 -07:00
Paul Eggert
ad9a7a06d4 * fringe.c (standard_bitmaps): Now static.
(max_used_fringe_bitmap): Now static, unless HAVE_NS.
2011-04-13 16:38:13 -07:00
Paul Eggert
816269316f * 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.
2011-04-13 16:35:33 -07:00
Paul Eggert
239f9db960 * 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.
2011-04-13 16:22:35 -07:00
Paul Eggert
dfcf357982 * fns.c (weak_hash_tables): Now static. 2011-04-13 16:02:03 -07:00
Paul Eggert
5045092bb4 * 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.
2011-04-13 15:57:17 -07:00
Paul Eggert
57a96f5c91 * 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.
2011-04-13 15:53:58 -07:00
Paul Eggert
35f08c383e * 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.
2011-04-13 15:50:03 -07:00
Paul Eggert
f44bd759cb * 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.
2011-04-13 15:28:14 -07:00
Paul Eggert
b532497da4 * 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.
2011-04-13 15:19:27 -07:00
Paul Eggert
1963a2e0bb * sysdep.c (MAX_RW_COUNT): New macro, to work around kernel bugs.
(emacs_read, emacs_write): Use it.
2011-04-13 12:54:09 -07:00
Paul Eggert
086e8c477d * process.c (send_process): Count partial writes as successes.
See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00483.html
2011-04-13 12:23:45 -07:00
Stefan Monnier
c2bd2ab028 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
2011-04-13 14:56:47 -03:00
Eli Zaretskii
c0ece6a5c4 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.
2011-04-13 20:43:38 +03:00
Eli Zaretskii
a6744a352f 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.
2011-04-13 20:41:04 +03:00
Juanma Barranquero
06641a4768 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.
2011-04-13 16:27:41 +02:00
Juanma Barranquero
9ec6a31795 Fix typos. 2011-04-13 13:58:47 +02:00
Paul Eggert
273a5f8285 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.
2011-04-12 22:02:54 -07:00
Paul Eggert
3e047f51d5 * 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.
2011-04-12 20:22:40 -07:00
Juanma Barranquero
c183f69313 lisp/image-mode.el: Fix change in 2011-04-09T20:28:01Z!cyd@stupidchicken.com. 2011-04-13 04:16:42 +02:00
Gnus developers
1e3b60017a 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.
2011-04-12 22:18:02 +00:00
Juanma Barranquero
2d6af8ddfe lisp/dframe.el (dframe-current-frame): Remove spurious quote. 2011-04-12 17:39:44 +02:00