bpt/emacs.git
13 years ago* editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
Paul Eggert [Wed, 16 Mar 2011 00:24:51 +0000 (17:24 -0700)]
* editfns.c (init_editfns, Fuser_login_name, Fuser_uid):

(Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
some of which prompt warnings from gcc -Wbad-function-cast.

13 years ago* doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
Paul Eggert [Tue, 15 Mar 2011 23:30:07 +0000 (16:30 -0700)]
* doc.c (Fdocumentation, Fsnarf_documentation): Move locals to

avoid shadowing.

13 years ago* data.c (do_blv_forwarding, do_symval_forwarding): Remove; unused.
Paul Eggert [Tue, 15 Mar 2011 23:22:38 +0000 (16:22 -0700)]
* data.c (do_blv_forwarding, do_symval_forwarding): Remove; unused.

13 years ago* data.c (Fmake_variable_buffer_local, Fmake_local_variable): Mark
Paul Eggert [Tue, 15 Mar 2011 23:20:25 +0000 (16:20 -0700)]
* data.c (Fmake_variable_buffer_local, Fmake_local_variable): Mark

variables as initialized.

13 years ago* lisp.h (eassert): Check that the argument compiles, even if
Paul Eggert [Tue, 15 Mar 2011 23:14:54 +0000 (16:14 -0700)]
* lisp.h (eassert): Check that the argument compiles, even if

ENABLE_CHECKING is not defined.

13 years ago* data.c (store_symval_forwarding): Rename local to avoid shadowing.
Paul Eggert [Tue, 15 Mar 2011 23:07:15 +0000 (16:07 -0700)]
* data.c (store_symval_forwarding): Rename local to avoid shadowing.

13 years ago* data.c (default_value, arithcompare, arith_driver, arith_error): Now static.
Paul Eggert [Tue, 15 Mar 2011 23:06:01 +0000 (16:06 -0700)]
* data.c (default_value, arithcompare, arith_driver, arith_error): Now static.

13 years ago* data.c (Findirect_variable): Name an expression, to avoid
Paul Eggert [Tue, 15 Mar 2011 23:03:11 +0000 (16:03 -0700)]
* data.c (Findirect_variable): Name an expression, to avoid

gcc -Wbad-function-cast warning.

13 years ago* alloc.c (Fmemory_limit): Cast sbrk's returned value to char *.
Paul Eggert [Tue, 15 Mar 2011 22:37:59 +0000 (15:37 -0700)]
* alloc.c (Fmemory_limit): Cast sbrk's returned value to char *.

13 years ago* alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
Paul Eggert [Tue, 15 Mar 2011 22:31:22 +0000 (15:31 -0700)]
* alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if

! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
needed otherwise.
(CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
(GC_STRING_CHARS): Remove; not used.

13 years ago* alloc.c (mark_stack): Move local variables into the #ifdef region where
Paul Eggert [Tue, 15 Mar 2011 22:09:50 +0000 (15:09 -0700)]
* alloc.c (mark_stack): Move local variables into the #ifdef region where

they're used.

13 years ago* alloc.c: (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
Paul Eggert [Tue, 15 Mar 2011 22:02:48 +0000 (15:02 -0700)]
* alloc.c: (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):

Rename locals to avoid shadowing.

13 years ago* alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
Paul Eggert [Tue, 15 Mar 2011 21:56:37 +0000 (14:56 -0700)]
* alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.

* lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
avoids undefined behavior in theory.

13 years ago* character.h (PREV_CHAR_BOUNDARY): Rename local to avoid shadowing.
Paul Eggert [Tue, 15 Mar 2011 21:37:03 +0000 (14:37 -0700)]
* character.h (PREV_CHAR_BOUNDARY): Rename local to avoid shadowing.

13 years ago* regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
Paul Eggert [Tue, 15 Mar 2011 21:33:24 +0000 (14:33 -0700)]
* regex.c (IF_LINT): Add defn, for benefit of ../lib-src.

13 years agoFix typo in ChangeLog.
Paul Eggert [Tue, 15 Mar 2011 21:23:54 +0000 (14:23 -0700)]
Fix typo in ChangeLog.

13 years ago* editfns.c (Fchar_equal): Remove no-longer-needed workaround for
Paul Eggert [Tue, 15 Mar 2011 21:23:02 +0000 (14:23 -0700)]
* editfns.c (Fchar_equal): Remove no-longer-needed workaround for

the race-condition problem the old DOWNCASE.

13 years agoAdd ChangeLog entry for previous change.
Paul Eggert [Tue, 15 Mar 2011 21:22:21 +0000 (14:22 -0700)]
Add ChangeLog entry for previous change.

13 years agoUse functions, not macros, for up- and down-casing.
Paul Eggert [Tue, 15 Mar 2011 21:14:06 +0000 (14:14 -0700)]
Use functions, not macros, for up- and down-casing.

13 years ago* regex.c (RETALLOC_IF): Define only if needed.
Paul Eggert [Tue, 15 Mar 2011 18:53:29 +0000 (11:53 -0700)]
* regex.c (RETALLOC_IF): Define only if needed.

(WORDCHAR_P): Likewise.  This one is never needed, but is used
only in a comment talking about a compiler bug, so put inside
the #if 0 of that comment.
(CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
(PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
Remove; unused.

13 years ago* regex.c (regex_compile, re_match_2_internal): Mark locals as initialized.
Paul Eggert [Tue, 15 Mar 2011 18:43:04 +0000 (11:43 -0700)]
* regex.c (regex_compile, re_match_2_internal): Mark locals as initialized.

13 years ago* regex.c (FREE_VAR): Rewrite so as not to use empty "else",
Paul Eggert [Tue, 15 Mar 2011 18:40:00 +0000 (11:40 -0700)]
* regex.c (FREE_VAR): Rewrite so as not to use empty "else",

which gcc can warn about.

13 years ago* regex.c (re_match_2_internals): Fix one more "not".
Paul Eggert [Tue, 15 Mar 2011 18:37:02 +0000 (11:37 -0700)]
* regex.c (re_match_2_internals): Fix one more "not".

13 years ago* regex.c: (regex_compile, re_search_2, re_match_2_internal):
Paul Eggert [Tue, 15 Mar 2011 18:32:28 +0000 (11:32 -0700)]
* regex.c: (regex_compile, re_search_2, re_match_2_internal):

Remove unused local vars.

13 years ago* regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
Paul Eggert [Tue, 15 Mar 2011 18:27:53 +0000 (11:27 -0700)]
* regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):

Rename locals to avoid shadowing.
(regex_compile, re_match_2_internal): Move locals to avoid shadowing.

13 years ago* search.c (boyer_moore): Rename locals to avoid shadowing.
Paul Eggert [Tue, 15 Mar 2011 18:13:15 +0000 (11:13 -0700)]
* search.c (boyer_moore): Rename locals to avoid shadowing.

* character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.

13 years ago* search.c (simple_search): Remove unused var.
Paul Eggert [Tue, 15 Mar 2011 18:08:50 +0000 (11:08 -0700)]
* search.c (simple_search): Remove unused var.

13 years ago* dired.c (compile_pattern): Move decl from here ...
Paul Eggert [Tue, 15 Mar 2011 18:08:06 +0000 (11:08 -0700)]
* dired.c (compile_pattern): Move decl from here ...

* lisp.h: ... to here, so that it can be checked.
(struct re_registers): New forward decl.

13 years ago* character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
Paul Eggert [Tue, 15 Mar 2011 18:02:42 +0000 (11:02 -0700)]
* character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.

13 years ago* indent.c (Fvertical_motion): Mark locals as initialized.
Paul Eggert [Tue, 15 Mar 2011 17:59:31 +0000 (10:59 -0700)]
* indent.c (Fvertical_motion): Mark locals as initialized.

13 years ago* indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
Paul Eggert [Tue, 15 Mar 2011 17:57:31 +0000 (10:57 -0700)]
* indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.

All uses changed.
(MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
Rename locals to avoid shadowing.

13 years ago* casefiddle.c (casify_region): Mark local as initialized.
Paul Eggert [Tue, 15 Mar 2011 17:18:02 +0000 (10:18 -0700)]
* casefiddle.c (casify_region): Mark local as initialized.

13 years ago* casefiddle.c (casify_object, casify_region): Now static.
Paul Eggert [Tue, 15 Mar 2011 17:16:14 +0000 (10:16 -0700)]
* casefiddle.c (casify_object, casify_region): Now static.

13 years ago* cmds.c (internal_self_insert): Rename local to avoid shadowing.
Paul Eggert [Tue, 15 Mar 2011 17:16:01 +0000 (10:16 -0700)]
* cmds.c (internal_self_insert): Rename local to avoid shadowing.

13 years ago* lisp.h: New macros GCPRO2_VAR, GCPRO3_VAR, etc.
Paul Eggert [Tue, 15 Mar 2011 17:13:02 +0000 (10:13 -0700)]
* lisp.h: New macros GCPRO2_VAR, GCPRO3_VAR, etc.

13 years ago* dired.c (directory_files_internal, file_name_completion):
Paul Eggert [Tue, 15 Mar 2011 08:38:32 +0000 (01:38 -0700)]
* dired.c (directory_files_internal, file_name_completion):

Rename locals to avoid shadowing.

13 years agoFix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
Paul Eggert [Tue, 15 Mar 2011 07:04:00 +0000 (00:04 -0700)]
Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).

An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
dired.c's scmp function, had undefined behavior.
* lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
(NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
* buffer.h: ... to here, because these macros use current_buffer,
and the new implementation with inline functions needs to have
current_buffer in scope now, rather than later when the macros
are used.
(downcase, upcase1): New static inline functions.
(DOWNCASE, UPCASE1): Reimplement using these functions.
This avoids undefined behavior in expressions like
DOWNCASE (x) == DOWNCASE (y), which previously suffered
from race conditions in accessing the global variables
case_temp1 and case_temp2.
* casetab.c (case_temp1, case_temp2): Remove; no longer needed.
* lisp.h (case_temp1, case_temp2): Remove their decls.
* character.h (ASCII_CHAR_P): Move from here ...
* lisp.h: ... to here, so that the inline functions mentioned
above can use them.

13 years ago* dired.c (directory_files_internal_unwind): Now static.
Paul Eggert [Tue, 15 Mar 2011 03:59:26 +0000 (20:59 -0700)]
* dired.c (directory_files_internal_unwind): Now static.

13 years ago* fileio.c: (Fset_file_times, Finsert_file_contents, auto_save_error):
Paul Eggert [Tue, 15 Mar 2011 03:17:20 +0000 (20:17 -0700)]
* fileio.c: (Fset_file_times, Finsert_file_contents, auto_save_error):

Rename locals to avoid shadowing.

13 years ago* fileio.c (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
Paul Eggert [Tue, 15 Mar 2011 02:50:36 +0000 (19:50 -0700)]
* fileio.c (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer

signedness issues.

13 years ago* fileio.c (Fmake_directory_internal, Fread_file_name): Remove unused vars.
Paul Eggert [Tue, 15 Mar 2011 02:48:24 +0000 (19:48 -0700)]
* fileio.c (Fmake_directory_internal, Fread_file_name): Remove unused vars.

13 years ago* fileio.c (file_name_as_directory): Use const pointers when appropriate.
Paul Eggert [Tue, 15 Mar 2011 02:46:32 +0000 (19:46 -0700)]
* fileio.c (file_name_as_directory): Use const pointers when appropriate.

(Fexpand_file_name): Likewise.  In particular, newdir might
point at constant storage, so make it a const pointer.

13 years ago* fileio.c (file_name_as_directory, directory_file_name):
Paul Eggert [Tue, 15 Mar 2011 01:42:54 +0000 (18:42 -0700)]
* fileio.c (file_name_as_directory, directory_file_name):

(barf_or_query_if_file_exists, auto_save_error, auto_save_1):
Now static.

13 years ago* minibuf.c (Ftry_completion, Fall_completions): Rename or remove locals
Paul Eggert [Tue, 15 Mar 2011 01:39:30 +0000 (18:39 -0700)]
* minibuf.c (Ftry_completion, Fall_completions): Rename or remove locals

to avoid shadowing.

13 years ago* minibuf.c (choose_minibuf_frame_1): Now static.
Paul Eggert [Tue, 15 Mar 2011 01:34:35 +0000 (18:34 -0700)]
* minibuf.c (choose_minibuf_frame_1): Now static.

13 years ago* marker.c (bytepos_to_charpos): Remove; unused.
Paul Eggert [Tue, 15 Mar 2011 01:33:14 +0000 (18:33 -0700)]
* marker.c (bytepos_to_charpos): Remove; unused.

13 years ago* lisp.h (verify_bytepos, count_markers): New decls,
Paul Eggert [Tue, 15 Mar 2011 01:32:33 +0000 (18:32 -0700)]
* lisp.h (verify_bytepos, count_markers): New decls,

so that gcc does not warn that these functions aren't declared.

13 years ago* insdel.c (copy_text): Remove unused local var.
Paul Eggert [Tue, 15 Mar 2011 01:26:16 +0000 (18:26 -0700)]
* insdel.c (copy_text): Remove unused local var.

13 years ago* insdel.c (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
Paul Eggert [Tue, 15 Mar 2011 01:25:31 +0000 (18:25 -0700)]
* insdel.c (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.

13 years ago* insdel.c (check_markers, make_gap_larger, make_gap_smaller):
Paul Eggert [Tue, 15 Mar 2011 01:22:56 +0000 (18:22 -0700)]
* insdel.c (check_markers, make_gap_larger, make_gap_smaller):

(reset_var_on_error, Fcombine_after_change_execute_1): Now static.

13 years ago* filelock.c (lock_file_1): Rename local to avoid shadowing.
Paul Eggert [Tue, 15 Mar 2011 01:19:50 +0000 (18:19 -0700)]
* filelock.c (lock_file_1): Rename local to avoid shadowing.

13 years ago* filelock.c (within_one_second): Now static.
Paul Eggert [Tue, 15 Mar 2011 01:16:59 +0000 (18:16 -0700)]
* filelock.c (within_one_second): Now static.

13 years ago* buffer.c (fix_overlays_before): Mark locals as initialized.
Paul Eggert [Tue, 15 Mar 2011 01:15:56 +0000 (18:15 -0700)]
* buffer.c (fix_overlays_before): Mark locals as initialized.

(fix_start_end_in_overlays): Likewise.  This function should be
simplified by using pointers-to-pointers, but that's a different
matter.

13 years ago* buffer.c: (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
Paul Eggert [Mon, 14 Mar 2011 23:43:16 +0000 (16:43 -0700)]
* buffer.c: (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):

(report_overlay_modification): Rename locals to avoid shadowing.

13 years ago* buffer.c (switch_to_buffer_1): Now static.
Paul Eggert [Mon, 14 Mar 2011 23:32:27 +0000 (16:32 -0700)]
* buffer.c (switch_to_buffer_1): Now static.

13 years ago* sysdep.c (MAXPATHLEN): Define only if needed.
Paul Eggert [Mon, 14 Mar 2011 23:31:21 +0000 (16:31 -0700)]
* sysdep.c (MAXPATHLEN): Define only if needed.

13 years ago* sysdep.c (sys_subshell): Mark local as volatile if checking for lint,
Paul Eggert [Mon, 14 Mar 2011 23:30:06 +0000 (16:30 -0700)]
* sysdep.c (sys_subshell): Mark local as volatile if checking for lint,

to suppress a gcc -Wclobbered warning that does not seem to be right.

13 years ago* sysdep.c: Fix pointer signedness issue.
Paul Eggert [Mon, 14 Mar 2011 22:56:24 +0000 (15:56 -0700)]
* sysdep.c: Fix pointer signedness issue.

13 years ago* sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
Paul Eggert [Mon, 14 Mar 2011 22:52:28 +0000 (15:52 -0700)]
* sysdep.c (system_process_attributes): Rename vars to avoid shadowing.

13 years ago* process.c (serial_open, serial_configure): Move decls from here ...
Paul Eggert [Mon, 14 Mar 2011 22:49:41 +0000 (15:49 -0700)]
* process.c (serial_open, serial_configure): Move decls from here ...

* systty.h: ... to here, so that they can be checked.

13 years ago* fns.c (get_random, seed_random): Move extern decls from here ...
Paul Eggert [Mon, 14 Mar 2011 22:42:10 +0000 (15:42 -0700)]
* fns.c (get_random, seed_random): Move extern decls from here ...

* lisp.h: ... to here, so that they can be checked.

13 years ago* sysdep.c (wait_for_termination_signal): Remove; unused.
Paul Eggert [Mon, 14 Mar 2011 22:37:08 +0000 (15:37 -0700)]
* sysdep.c (wait_for_termination_signal): Remove; unused.

13 years ago* sysdep.c (reset_io): Now static.
Paul Eggert [Mon, 14 Mar 2011 22:36:12 +0000 (15:36 -0700)]
* sysdep.c (reset_io): Now static.

13 years ago* keymap.c: (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
Paul Eggert [Mon, 14 Mar 2011 15:53:19 +0000 (08:53 -0700)]
* keymap.c: (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):

(describe_map_tree):
Rename locals to avoid shadowing.

13 years ago* keymap.c (DENSE_TABLE_SIZE): Remove; unused.
Paul Eggert [Mon, 14 Mar 2011 15:42:21 +0000 (08:42 -0700)]
* keymap.c (DENSE_TABLE_SIZE): Remove; unused.

13 years ago* keymap.c (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
Paul Eggert [Mon, 14 Mar 2011 15:40:57 +0000 (08:40 -0700)]
* keymap.c (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.

13 years ago* keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
Paul Eggert [Mon, 14 Mar 2011 15:32:56 +0000 (08:32 -0700)]
* keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):

(copy_keymap_item, append_key, push_text_char_description):
Now static.

13 years ago* keyboard.c (read_char): Mark local as initialized.
Paul Eggert [Mon, 14 Mar 2011 15:28:09 +0000 (08:28 -0700)]
* keyboard.c (read_char): Mark local as initialized.

13 years ago* keyboard.c (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
Paul Eggert [Mon, 14 Mar 2011 15:25:21 +0000 (08:25 -0700)]
* keyboard.c (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.

13 years ago* keyboard.c (read_key_sequence): Mark locals as initialized.
Paul Eggert [Mon, 14 Mar 2011 15:19:28 +0000 (08:19 -0700)]
* keyboard.c (read_key_sequence): Mark locals as initialized.

13 years ago* keyboard.c: (read_char, kbd_buffer_get_event, make_lispy_position):
Paul Eggert [Mon, 14 Mar 2011 15:15:30 +0000 (08:15 -0700)]
* keyboard.c: (read_char, kbd_buffer_get_event, make_lispy_position):

(make_lispy_event, make_lispy_movement, apply_modifiers):
(decode_keyboard_code, tty_read_avail_input, menu_bar_items):
(parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
(Fread_key_sequence_vector): Rename locals to avoid shadowing.

13 years ago* keyboard.h (mark_kboards): Move decl here ...
Paul Eggert [Mon, 14 Mar 2011 05:55:38 +0000 (22:55 -0700)]
* keyboard.h (mark_kboards): Move decl here ...

* alloc.c (mark_kboards): ... from here.

13 years ago* keyboard.c: Declare functions static if they are not used elsewhere.
Paul Eggert [Mon, 14 Mar 2011 05:51:17 +0000 (22:51 -0700)]
* keyboard.c: Declare functions static if they are not used elsewhere.

(echo_char, echo_dash, cmd_error, top_level_2):
(poll_for_input, handle_async_input): Now static.

13 years ago* keyboard.h (make_ctrl_char): New decl.
Paul Eggert [Mon, 14 Mar 2011 05:49:51 +0000 (22:49 -0700)]
* keyboard.h (make_ctrl_char): New decl.

13 years ago* lisp.h (force_auto_save_soon): New decl.
Paul Eggert [Mon, 14 Mar 2011 05:48:15 +0000 (22:48 -0700)]
* lisp.h (force_auto_save_soon): New decl.

13 years ago* emacs.c (main): Add casts to avoid warnings
Paul Eggert [Mon, 14 Mar 2011 05:36:36 +0000 (22:36 -0700)]
* emacs.c (main): Add casts to avoid warnings

if GCC considers string literals to be constants.

13 years ago* emacs.c (DEFINE_DUMMY_FUNCTION): New macro.
Paul Eggert [Mon, 14 Mar 2011 03:49:40 +0000 (20:49 -0700)]
* emacs.c (DEFINE_DUMMY_FUNCTION): New macro.

(__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
Use it.

13 years ago* emacs.c (init_cmdargs): Rename local to avoid shadowing.
Paul Eggert [Mon, 14 Mar 2011 03:43:36 +0000 (20:43 -0700)]
* emacs.c (init_cmdargs): Rename local to avoid shadowing.

13 years agoRewrite to avoid "/*" in comment.
Paul Eggert [Mon, 14 Mar 2011 03:35:14 +0000 (20:35 -0700)]
Rewrite to avoid "/*" in comment.

13 years ago* lisp.h (fatal_error_signal): Add decl, since it's exported.
Paul Eggert [Mon, 14 Mar 2011 03:31:16 +0000 (20:31 -0700)]
* lisp.h (fatal_error_signal): Add decl, since it's exported.

13 years ago* dbusbind.c (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
Paul Eggert [Mon, 14 Mar 2011 03:25:51 +0000 (20:25 -0700)]
* dbusbind.c (Fdbus_register_service, Fdbus_register_method): Remove unused vars.

13 years ago* dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
Paul Eggert [Mon, 14 Mar 2011 03:23:23 +0000 (20:23 -0700)]
* dbusbind.c (Fdbus_init_bus): Add cast to avoid warning

if GCC considers string literals to be constants.

13 years ago* dbusbind.c: Pointer signedness fixes.
Paul Eggert [Mon, 14 Mar 2011 03:21:32 +0000 (20:21 -0700)]
* dbusbind.c: Pointer signedness fixes.

(xd_signature, xd_append_arg, xd_initialize):
(Fdbus_call_method, Fdbus_call_method_asynchronously):
(Fdbus_method_return_internal, Fdbus_method_error_internal):
(Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
(Fdbus_register_signal): Use SSDATA when the context wants char *.

13 years agoFix BUF_* macros to handle indirect buffers properly (Bug#8219).
Chong Yidong [Sun, 13 Mar 2011 22:25:16 +0000 (18:25 -0400)]
Fix BUF_* macros to handle indirect buffers properly (Bug#8219).

* buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
(BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
These macros can no longer be used for assignment.

* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
struct members directly, instead of using BUF_BEGV etc.
(record_buffer_markers, fetch_buffer_markers): New functions for
recording and fetching special buffer markers.
(set_buffer_internal_1, set_buffer_temp): Use them.

* lread.c (unreadchar): Use SET_BUF_PT_BOTH.

* insdel.c (adjust_point): Use SET_BUF_PT_BOTH.

* intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
(get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.

* xdisp.c (hscroll_window_tree):
(reconsider_clip_changes): Use PT instead of BUF_PT.

13 years agoAdd `auth-source-search' integration for LDAP searches.
Ted Zlatanov [Sun, 13 Mar 2011 22:17:17 +0000 (17:17 -0500)]
Add `auth-source-search' integration for LDAP searches.

* net/ldap.el (ldap-search-internal): Add `auth-source-search'
integration for LDAP parameters.  The host, base, user or binddn,
and secret tokens can be specified in a netrc file, for instance.
This is optional because an `auth-source' parameter must be
specified in the search attributes.

13 years agoauth-source.el (auth-source-netrc-create): Show the default in the prompt when prompt...
Teodor Zlatanov [Sun, 13 Mar 2011 20:50:07 +0000 (20:50 +0000)]
auth-source.el (auth-source-netrc-create): Show the default in the prompt when prompting for token creation.

13 years agoMS-Windows followup for 2011-03-13T06:43:00Z!eggert@cs.ucla.edu.
Eli Zaretskii [Sun, 13 Mar 2011 17:49:38 +0000 (19:49 +0200)]
MS-Windows followup for 2011-03-13T06:43:00Z!eggert@cs.ucla.edu.

 src/makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
 $(EMACS_ROOT)/lib/intprops.h.

13 years agoUpdate for gnulib, adding Solaris 9+10 fixes.
Paul Eggert [Sun, 13 Mar 2011 17:39:04 +0000 (10:39 -0700)]
Update for gnulib, adding Solaris 9+10 fixes.

13 years agoMerge from mainline.
Paul Eggert [Sun, 13 Mar 2011 17:28:15 +0000 (10:28 -0700)]
Merge from mainline.

13 years ago* gtkutil.c (gdk_window_get_screen): Make it clear that this macro is needed
Paul Eggert [Sun, 13 Mar 2011 08:42:12 +0000 (00:42 -0800)]
* gtkutil.c (gdk_window_get_screen): Make it clear that this macro is needed

only if USE_GTK_TOOLTIP.

13 years ago* gtkutil.c: (get_utf8_string, xg_get_file_with_chooser):
Paul Eggert [Sun, 13 Mar 2011 08:39:13 +0000 (00:39 -0800)]
* gtkutil.c: (get_utf8_string, xg_get_file_with_chooser):

Rename locals to avoid shadowing.
(create_dialog): Move locals to avoid shadowing.

13 years ago* gtkutil.c (int_gtk_range_get_value): New function, which avoids a diagnostic
Paul Eggert [Sun, 13 Mar 2011 08:31:16 +0000 (00:31 -0800)]
* gtkutil.c (int_gtk_range_get_value): New function, which avoids a diagnostic

from gcc -Wbad-function-cast.
(xg_set_toolkit_scroll_bar_thumb): Use it.
(xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
diagnostic from gcc -Wbad-function-cast.

13 years ago* gtkutil.c (xg_free_frame_widgets): Make it clear that a local variable is
Paul Eggert [Sun, 13 Mar 2011 08:15:55 +0000 (00:15 -0800)]
* gtkutil.c (xg_free_frame_widgets): Make it clear that a local variable is

needed only if USE_GTK_TOOLTIP.

13 years ago* gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
Paul Eggert [Sun, 13 Mar 2011 08:14:30 +0000 (00:14 -0800)]
* gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *

to unsigned char * to avoid compiler diagnostic.

13 years ago* xgselect.c (xg_select): Remove unused var.
Paul Eggert [Sun, 13 Mar 2011 08:05:40 +0000 (00:05 -0800)]
* xgselect.c (xg_select): Remove unused var.

13 years ago* image.c (my_png_error, my_error_exit): Mark with NO_RETURN.
Paul Eggert [Sun, 13 Mar 2011 08:04:44 +0000 (00:04 -0800)]
* image.c (my_png_error, my_error_exit): Mark with NO_RETURN.

13 years ago* image.c (four_corners_best): Mark locals as initialized.
Paul Eggert [Sun, 13 Mar 2011 07:50:17 +0000 (23:50 -0800)]
* image.c (four_corners_best): Mark locals as initialized.

(gif_load): Initialize transparent_p to zero (Bug#8238).
Mark another local as initialized.

13 years agoImprove quality of tests for time stamp overflow.
Paul Eggert [Sun, 13 Mar 2011 06:43:00 +0000 (22:43 -0800)]
Improve quality of tests for time stamp overflow.

13 years ago* editfns.c (lisp_time_argument): Check for time stamp overflow.
Paul Eggert [Sun, 13 Mar 2011 06:27:18 +0000 (22:27 -0800)]
* editfns.c (lisp_time_argument): Check for time stamp overflow.

13 years agoMerge changes made in Gnus trunk.
Teodor Zlatanov [Sun, 13 Mar 2011 04:07:38 +0000 (04:07 +0000)]
Merge changes made in Gnus trunk.

auth.texi (Help for developers): Update docs to explain that the :save-function will only run the first time.
auth-source.el (auth-source-format-prompt): Always convert the value to a string to avoid evaluating non-string arguments.
 (auth-source-netrc-create): Offer default properly, not as initial content in `read-string'.
 (auth-source-netrc-saver): Use a cache keyed by file name and MD5 hash of line to determine if we've been run before.  If so, don't run again, but print a trivial message to indicate the cache was hit instead.