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

13 years agoadmin/admin.el: Add some code for deploying web manuals.
Chong Yidong [Sun, 13 Mar 2011 03:50:33 +0000 (22:50 -0500)]
admin/admin.el: Add some code for deploying web manuals.

13 years agolisp/help.el (describe-mode): Link to the mode's definition.
Juanma Barranquero [Sun, 13 Mar 2011 01:57:40 +0000 (02:57 +0100)]
lisp/help.el (describe-mode): Link to the mode's definition.

Fixes: debbugs:8185

13 years ago* editfns.c (hi_time): Do not overparenthesize.
Paul Eggert [Sat, 12 Mar 2011 22:52:25 +0000 (14:52 -0800)]
* editfns.c (hi_time): Do not overparenthesize.

13 years agoMerge from emacs-23; up to 2010-06-03T22:16:02Z!dann@ics.uci.edu
Glenn Morris [Sat, 12 Mar 2011 19:19:47 +0000 (11:19 -0800)]
Merge from emacs-23; up to 2010-06-03T22:16:02Z!dann@ics.uci.edu

13 years agoSome more html rules for doc/misc/Makefile.in.
Glenn Morris [Sat, 12 Mar 2011 18:40:08 +0000 (10:40 -0800)]
Some more html rules for doc/misc/Makefile.in.

* doc/misc/Makefile.in (emacs-faq.html): Fix some more cross-refs.
(emacs-faq.text): New target.
(clean): Add emacs-faq.

13 years agoFix typos.
Juanma Barranquero [Sat, 12 Mar 2011 15:38:34 +0000 (16:38 +0100)]
Fix typos.

13 years agolisp/vc/vc-bzr.el (vc-bzr-state): Handle bzr 2.3.0 (follow-up to bug#8170).
Juanma Barranquero [Sat, 12 Mar 2011 15:26:33 +0000 (16:26 +0100)]
lisp/vc/vc-bzr.el (vc-bzr-state): Handle bzr 2.3.0 (follow-up to bug#8170).

13 years agoSync with Tramp 2.2.1.
Michael Albinus [Sat, 12 Mar 2011 15:22:10 +0000 (16:22 +0100)]
Sync with Tramp 2.2.1.

* trampver.texi: Update release number.

13 years agoSync with Tramp 2.2.1.
Michael Albinus [Sat, 12 Mar 2011 15:19:29 +0000 (16:19 +0100)]
Sync with Tramp 2.2.1.

* net/tramp-sh.el (tramp-methods): Exchange "%k" marker with options.

* net/trampver.el: Update release number.

13 years ago* net/tramp.el (tramp-progress-reporter-update): Use
Michael Albinus [Sat, 12 Mar 2011 13:26:19 +0000 (14:26 +0100)]
* net/tramp.el (tramp-progress-reporter-update): Use
`tramp-compat-funcall'.
(tramp-handle-start-file-process): Use `tramp-compat-process-get'.
(tramp-handle-insert-file-contents): Make `file-remote-p' call
compatible.
(tramp-open-connection-setup-interactive-shell): Use
`tramp-compat-process-put'.

* net/tramp-compat.el (tramp-compat-process-get)
(tramp-compat-process-put): New defuns.

* net/trampver.el: Update release number.

Please do not merge with the trunk.

13 years agoRemove arch-tag.
Michael Albinus [Sat, 12 Mar 2011 13:17:54 +0000 (14:17 +0100)]
Remove arch-tag.

* trampver.texi: Update release number.

13 years agosrc/ChangeLog: Fix last entry for deps.mk.
Eli Zaretskii [Sat, 12 Mar 2011 12:05:05 +0000 (14:05 +0200)]
src/ChangeLog: Fix last entry for deps.mk.

13 years agoMake termcap.c implementations consistent with tparam.h prototypes.
Eli Zaretskii [Sat, 12 Mar 2011 12:03:24 +0000 (14:03 +0200)]
Make termcap.c implementations consistent with tparam.h prototypes.

 src/termcap.c [MSDOS]: Include "msdos.h.
 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
 Constify `char *' arguments and their references according to
 prototypes in tparam.h.
 src/deps.mk (termcap.o): Depend on tparam.h and msdos.h.

13 years agoFix compilation warnings on MS-DOS due to constifying of pointers in xmenu.c.
Eli Zaretskii [Sat, 12 Mar 2011 10:51:31 +0000 (12:51 +0200)]
Fix compilation warnings on MS-DOS due to constifying of pointers in xmenu.c.

 src/msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
 Adapt all references accordingly.
 src/msdos.h (XMenuAddPane): 3rd argument is `const char *' now.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sat, 12 Mar 2011 08:53:34 +0000 (08:53 +0000)]
Merge changes made in Gnus trunk.

gnus-sync.el (gnus-sync-install-hooks, gnus-sync-unload-hook): Don't install `gnus-sync-read' to any hooks by default.  It's buggy.  The user will have to run `gnus-sync-read' manually and wait for Cloudy Gnus.
mm-uu.el (mm-uu-type-alist): Add support for diff starting with "=== modified file".

13 years agoImprove quality of tests for time stamp overflow. For example,
Paul Eggert [Sat, 12 Mar 2011 06:49:53 +0000 (22:49 -0800)]
Improve quality of tests for time stamp overflow.  For example,

without this patch (encode-time 0 0 0 1 1 1152921504606846976)
returns the obviously-bogus value (-948597 62170) on my RHEL 5.5
x86-64 host.  With it, it reports time overflow.
* deps.mk (editfns.o): Depend on ../lib/intprops.h.
* editfns.c: Include limits.h and intprops.h.
(TIME_T_MIN, TIME_T_MAX): New macros.
(time_overflow): Move earlier, to before first use.
(hi_time, lo_time): New functions, for an accurate test for
out-of-range times.
(Fcurrent_time, Fget_internal_run_time, make_time): Use them.
(Fget_internal_run_time): Don't assume time_t fits in int.
(make_time): Use list2 instead of Fcons twice.
(Fdecode_time): More accurate test for out-of-range times.
(check_tm_member): New function.
(Fencode_time): Use it, to test for out-of-range times.

13 years ago* lisp/progmodes/compile.el (compilation--previous-directory): Fix up
Stefan Monnier [Sat, 12 Mar 2011 04:29:22 +0000 (23:29 -0500)]
* lisp/progmodes/compile.el (compilation--previous-directory): Fix up
various nil/dead-marker mismatches.
(compilation-directory-properties, compilation-error-properties):
Don't call it at a position past the one we're about to change.

Fixes: debbugs:8014

13 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-make-obsolete-variable):
Stefan Monnier [Sat, 12 Mar 2011 02:59:24 +0000 (21:59 -0500)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-make-obsolete-variable):
Disable obsolescence warnings in the file that declares it.

13 years ago* lisp/ebuff-menu.el (electric-buffer-menu-mode-map): Move initialization
Stefan Monnier [Sat, 12 Mar 2011 02:49:29 +0000 (21:49 -0500)]
* lisp/ebuff-menu.el (electric-buffer-menu-mode-map): Move initialization
into declaration.  Remove redundant and harmful binding.

13 years agoadmin/notes/elpa: Make Bzr checkout directions more explicit.
Chong Yidong [Fri, 11 Mar 2011 22:53:47 +0000 (17:53 -0500)]
admin/notes/elpa: Make Bzr checkout directions more explicit.

13 years ago* editfns.c (time_overflow): New function, refactoring common code.
Paul Eggert [Fri, 11 Mar 2011 20:31:59 +0000 (12:31 -0800)]
* editfns.c (time_overflow): New function, refactoring common code.

(Fformat_time_string, Fdecode_time, Fencode_time):
(Fcurrent_time_string): Use it.

13 years agoMove 'make_time' to be next to its inverse 'lisp_time_argument'.
Paul Eggert [Fri, 11 Mar 2011 20:24:09 +0000 (12:24 -0800)]
Move 'make_time' to be next to its inverse 'lisp_time_argument'.

* dired.c (make_time): Move to ...
* editfns.c (make_time): ... here.
* systime.h: Note the move.

13 years ago* allout-widgets.el (allout-widgets-tally) Initialize allout-widgets-tally
Ken Manheimer [Fri, 11 Mar 2011 18:46:12 +0000 (13:46 -0500)]
* allout-widgets.el (allout-widgets-tally) Initialize allout-widgets-tally
as a hash table rather than nil to prevent mode-line redisplay warnings.
Also, clarify the module description and fix a comment typoo (sic).

13 years agoBump version to 23.3.50
Chong Yidong [Fri, 11 Mar 2011 17:17:33 +0000 (12:17 -0500)]
Bump version to 23.3.50

13 years ago* buffer.c (syms_of_buffer): Remove obsolete comment.
Tom Tromey [Fri, 11 Mar 2011 16:49:16 +0000 (09:49 -0700)]
* buffer.c (syms_of_buffer): Remove obsolete comment.

13 years agoBackport 2011-03-08T01:52:20Z!lekktu@gmail.com from trunk.
Juanma Barranquero [Fri, 11 Mar 2011 15:42:12 +0000 (16:42 +0100)]
Backport 2011-03-08T01:52:20Z!lekktu@gmail.com from trunk.

* src/w32xfns.c (select_palette): Check success of RealizePalette against
  GDI_ERROR, not zero.

13 years agoBackport 2011-03-01T03:59:31Z!lekktu@gmail.com from trunk.
Juanma Barranquero [Fri, 11 Mar 2011 15:34:07 +0000 (16:34 +0100)]
Backport 2011-03-01T03:59:31Z!lekktu@gmail.com from trunk.

*lisp/emacs-lisp/cl-macs.el (lexical-let*): Fix argument name in docstring.

13 years agoBackport 2011-03-11T00:33:57Z!lekktu@gmail.com from trunk.
Juanma Barranquero [Fri, 11 Mar 2011 14:05:31 +0000 (15:05 +0100)]
Backport 2011-03-11T00:33:57Z!lekktu@gmail.com from trunk.

* lisp/help-fns.el (describe-variable): Don't complete keywords.

13 years agoFix comparisons of file ownership on MS-Windows for the Administrator user.
Eli Zaretskii [Fri, 11 Mar 2011 12:19:08 +0000 (14:19 +0200)]
Fix comparisons of file ownership on MS-Windows for the Administrator user.

 lisp/files.el (file-ownership-preserved-p): Pass `integer' as an
 explicit 2nd argument to `file-attributes'.  If the file's owner
 is the Administrators group on Windows, and the current user is
 Administrator, consider that a match.
 lisp/server.el (server-ensure-safe-dir): Consider server directory
 safe on MS-Windows if its owner is the Administrators group while
 the current Emacs user is Administrator.  Use `=' to compare
 numerical UIDs, since they could be integers or floats.

13 years agoFix bug #8221 with description of how HOME is set on Windows.
Eli Zaretskii [Fri, 11 Mar 2011 11:17:24 +0000 (13:17 +0200)]
Fix bug #8221 with description of how HOME is set on Windows.

 doc/emacs/msdog.texi (Windows HOME): Fix the wording to clarify how
 Emacs sets HOME on Windows and where it looks for init files.

13 years agoFix MS-Windows build broken by 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
Eli Zaretskii [Fri, 11 Mar 2011 09:41:56 +0000 (11:41 +0200)]
Fix MS-Windows build broken by 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.

 src/term.c (encode_terminal_code): Now external again, used by
 w32console.c and msdos.c.
 src/termhooks.h (encode_terminal_code): Declare prototype.
 src/msdos.c (encode_terminal_code): Don't declare prototype.
 src/makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.

13 years agoFix previous change.
Glenn Morris [Fri, 11 Mar 2011 09:07:33 +0000 (01:07 -0800)]
Fix previous change.

13 years agoAdd Makefile rules for generating html version of Emacs FAQ.
Glenn Morris [Fri, 11 Mar 2011 09:02:58 +0000 (01:02 -0800)]
Add Makefile rules for generating html version of Emacs FAQ.

* doc/misc/Makefile.in (HTML_TARGETS): New.
(clean): Delete $HTML_TARGETS.
(emacs-faq.html): New, for use with the gnu.org Emacs webpage.

13 years ago* image.c: (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
Paul Eggert [Fri, 11 Mar 2011 08:20:11 +0000 (00:20 -0800)]
* image.c: (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):

(jpeg_load, gif_load): Rename locals to avoid shadowing.

13 years ago* image.c (gif_load): Fix pointer signedness.
Paul Eggert [Fri, 11 Mar 2011 08:01:09 +0000 (00:01 -0800)]
* image.c (gif_load): Fix pointer signedness.

13 years ago* image.c (x_edge_detection): Remove unnecessary cast that
Paul Eggert [Fri, 11 Mar 2011 07:59:36 +0000 (23:59 -0800)]
* image.c (x_edge_detection): Remove unnecessary cast that

gcc -Wbad-function-cast diagnoses.

13 years ago* image.c (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
Paul Eggert [Fri, 11 Mar 2011 07:54:50 +0000 (23:54 -0800)]
* image.c (xpm_load): Redo to avoid "discards qualifiers" gcc warning.

13 years ago* image.c (DIM, HAVE_STDLIB_H_1): Remove unused macros.
Paul Eggert [Fri, 11 Mar 2011 07:50:08 +0000 (23:50 -0800)]
* image.c (DIM, HAVE_STDLIB_H_1): Remove unused macros.

13 years ago* image.c (clear_image_cache): Now static.
Paul Eggert [Fri, 11 Mar 2011 07:42:54 +0000 (23:42 -0800)]
* image.c (clear_image_cache): Now static.

2011-03-11  Paul Eggert  <eggert@cs.ucla.edu>

13 years agoFix some minor problems found by GCC 4.5.2's static checks.
Paul Eggert [Fri, 11 Mar 2011 07:24:21 +0000 (23:24 -0800)]
Fix some minor problems found by GCC 4.5.2's static checks.

13 years agoMerge: Minor changes for problems found by GCC 4.5.2's static checks.
Paul Eggert [Fri, 11 Mar 2011 06:57:50 +0000 (22:57 -0800)]
Merge: Minor changes for problems found by GCC 4.5.2's static checks.