bpt/emacs.git
13 years agovc.el fix for bug#4496.
Glenn Morris [Thu, 17 Feb 2011 04:57:22 +0000 (20:57 -0800)]
vc.el fix for bug#4496.

* lisp/vc/vc.el (vc-default-previous-version):
Remove broken alias that points nowhere.

13 years agoMore dired-x cleanup.
Glenn Morris [Thu, 17 Feb 2011 04:50:47 +0000 (20:50 -0800)]
More dired-x cleanup.

* lisp/dired-x.el (dired-clean-up-after-deletion):
kill-buffer does not need save-excursion.
(dired-do-run-mail): Doc fix.
(dired-filename-at-point): Doc fix.
Use looking-at, and skip-chars rather than re search.
(skip-chars were used prior to 2003-01-27T11:36:08Z!fx@gnu.org, and are ok to use again
since Emacs 22.1, because char-classes are supported.)

13 years agoFix copyright, standardize header and licence.
Glenn Morris [Thu, 17 Feb 2011 04:41:29 +0000 (20:41 -0800)]
Fix copyright, standardize header and licence.

13 years ago* lisp/dired-x.el (dired-filename-at-point): Fix 8-year old typo.
Glenn Morris [Thu, 17 Feb 2011 04:38:23 +0000 (20:38 -0800)]
* lisp/dired-x.el (dired-filename-at-point): Fix 8-year old typo.
Introduced in 2003-01-27T11:36:08Z!fx@gnu.org, 2003/01/27.

13 years agoDon't let-bind copyright-update in nnfolder-save-buffer.
Chong Yidong [Thu, 17 Feb 2011 01:46:55 +0000 (20:46 -0500)]
Don't let-bind copyright-update in nnfolder-save-buffer.

See:
http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00284.html
http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00651.html

* nnfolder.el (nnfolder-save-buffer): Don't let-bind copyright-update,
in case it's not yet loaded.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Wed, 16 Feb 2011 23:12:47 +0000 (23:12 +0000)]
Merge changes made in Gnus trunk.

gnus-sum.el (gnus-propagate-marks): Change default to t again, since nil means that nnimap doesn't get updated.
auth-source.el (auth-source-netrc-create): Return a synthetic search result when the user doesn't want to write to the file.
 (auth-source-netrc-search): Expect a synthetic result and proceed accordingly.
 (auth-source-cache-expiry): New variable to override `password-cache-expiry'.
 (auth-source-remember): Use it.
nnimap.el (nnimap-credentials): Remove the `inhibit-create' parameter.  Create entry if necessary by using :create t.
 (nnimap-open-connection-1): Don't pass `inhibit-create'.

13 years ago* lisp/allout-widgets.el: New allout extension that shows allout outline
Ken Manheimer [Wed, 16 Feb 2011 22:10:43 +0000 (17:10 -0500)]
* lisp/allout-widgets.el: New allout extension that shows allout outline
structure with graphical widgets.  'allout-widgets' customize group is an
'allout' subgroup, for easy discovery.
* etc/images/icons/allout-widgets-dark-bg,
etc/images/icons/allout-widgets-light-bg: Icons for new allout-widgets.el.
* etc/images/icons/README: Include coypright and GPL 3 license for new
icons.

13 years agoInclude PGP and GnuPG in Keywords, and other commentary refinements.
Ken Manheimer [Wed, 16 Feb 2011 21:29:32 +0000 (16:29 -0500)]
Include PGP and GnuPG in Keywords, and other commentary refinements.
(allout-abbreviate-flattened-numbering): Rename to
allout-flattened-numbering-abbreviation, and define-obsolete-variable-alias
the old name.
(allout-flattened-numbering-abbreviation): Rename from
allout-abbreviate-flattened-numbering.
(allout-mode-p): Include among autoloads, for use by other modes with impunity.
(allout-listify-exposed): Use allout-flattened-numbering-abbreviation.
(allout-encrypt-string): Use set-buffer-multibyte directly.
(allout-set-buffer-multibyte): Remove.

13 years ago* lisp/simple.el (just-one-space): Remove useless `or' call.
Deniz Dogan [Wed, 16 Feb 2011 21:06:23 +0000 (22:06 +0100)]
* lisp/simple.el (just-one-space): Remove useless `or' call.

13 years ago* soap-client.el (soap-well-known-xmlns, soap-local-xmlns)
Michael Albinus [Wed, 16 Feb 2011 19:56:31 +0000 (20:56 +0100)]
* soap-client.el (soap-well-known-xmlns, soap-local-xmlns)
(soap-default-xmlns, soap-target-xmlns, soap-multi-refs)
(soap-decoded-multi-refs, soap-current-wsdl)
(soap-encoded-namespaces): Rename CL-style *...* variables.

13 years ago* NEWS: Add soap-client.el and soap-inspect.el.
Michael Albinus [Wed, 16 Feb 2011 19:41:31 +0000 (20:41 +0100)]
* NEWS: Add soap-client.el and soap-inspect.el.

13 years ago* net/soap-client.el: Add "comm" and "hypermedia" to the
Michael Albinus [Wed, 16 Feb 2011 19:33:35 +0000 (20:33 +0100)]
* net/soap-client.el: Add "comm" and "hypermedia" to the
keywords.  Reflow too long lines.

* net/soap-inspect.el: Ditto.  Require 'cl.

13 years agoUse KVAR in the MS-DOS build.
Eli Zaretskii [Wed, 16 Feb 2011 19:09:20 +0000 (21:09 +0200)]
Use KVAR in the MS-DOS build.

 msdos.c (internal_terminal_init): Use KVAR.

13 years agoFix formatting of src/ChangeLog entries.
Eli Zaretskii [Wed, 16 Feb 2011 18:49:57 +0000 (20:49 +0200)]
Fix formatting of src/ChangeLog entries.

13 years agosrc/s/ms-w32.h (getloadavg): Declare prototype which was removed from lisp.h.
Eli Zaretskii [Wed, 16 Feb 2011 18:47:21 +0000 (20:47 +0200)]
src/s/ms-w32.h (getloadavg): Declare prototype which was removed from lisp.h.

13 years agoUse KVAR in MS-Windows build, remove buffer-file-type.
Eli Zaretskii [Wed, 16 Feb 2011 18:39:46 +0000 (20:39 +0200)]
Use KVAR in MS-Windows build, remove buffer-file-type.

 w32fns.c (Fx_create_frame): Use KVAR.
 w32term.c (w32_create_terminal): Use KVAR.
 s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
 xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
 fileio.c (Finsert_file_contents, Fwrite_region): Remove
 references to buffer_file_type.
 (syms_of_fileio): Don't intern and staticpro
 find-buffer-file-type.
 callproc.c (syms_of_callproc): Remove references to
 buffer_file_type.
 buffer.c (reset_buffer_local_variables): Don't set
 buffer_file_type.
 (init_buffer_once): Likewise.
 (syms_of_buffer): Don't define buffer-file-type.
 buffer.h (struct buffer): Remove buffer_file_type.

13 years agoplay/doctor.el: bugfix for `doctor-mode'.
Bastien Guerry [Wed, 16 Feb 2011 16:55:21 +0000 (17:55 +0100)]
play/doctor.el: bugfix for `doctor-mode'.

* play/doctor.el (doctor-mode): Bugfix: escape the "," character
in a `doctor-type' argument.

13 years agoHide implementation of `struct kboard'
Tom Tromey [Wed, 16 Feb 2011 16:35:16 +0000 (09:35 -0700)]
Hide implementation of `struct kboard'
* callint.c (Fcall_interactively): Update.
* doc.c (Fsubstitute_command_keys): Update.
* cmds.c (Fself_insert_command): Update.
* keymap.c (Fcurrent_active_maps, Fkey_binding)
(Fdescribe_buffer_bindings): Update.
* macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
(store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
Update.
* keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
(echo_length, echo_truncate, cmd_error, command_loop_1)
(read_char, kbd_buffer_store_event_hold, make_lispy_event)
(menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
(read_key_sequence, Fcommand_execute, Fexecute_extended_command)
(Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
Update.
* xfns.c (Fx_create_frame): Update.
* xterm.c (x_connection_closed, x_term_init): Update.
* term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
Update.
* window.c (window_scroll_pixel_based, window_scroll_line_based):
Update.
* frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
(delete_frame): Update.
* lisp.h (DEFVAR_KBOARD): Update for change to field names.
* keyboard.h (struct kboard): Rename all Lisp_Object fields.
(KBOARD_INTERNAL_FIELD, KVAR): New macros.

13 years ago* lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
Tom Tromey [Wed, 16 Feb 2011 15:20:08 +0000 (08:20 -0700)]
* lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.

13 years agoChange B_ to BVAR
Tom Tromey [Wed, 16 Feb 2011 15:02:50 +0000 (08:02 -0700)]
Change B_ to BVAR
* xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
* xfaces.c (compute_char_face): Replace B_ with BVAR.
* xdisp.c (pos_visible_p, init_iterator, reseat_1)
(message_dolog, update_echo_area, ensure_echo_area_buffers)
(with_echo_area_buffer, setup_echo_area_for_printing)
(set_message_1, update_menu_bar, update_tool_bar)
(text_outside_line_unchanged_p, redisplay_internal)
(try_scrolling, try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, row_containing_pos)
(try_window_id, get_overlay_arrow_glyph_row, display_line)
(Fcurrent_bidi_paragraph_direction, display_mode_lines)
(decode_mode_spec_coding, decode_mode_spec, display_count_lines)
(get_window_cursor_type, note_mouse_highlight): Replace B_ with
BVAR.
* window.c (window_display_table, unshow_buffer, window_loop)
(window_min_size_2, set_window_buffer, Fset_window_buffer)
(select_window, Fforce_window_update, temp_output_buffer_show)
(Fset_window_configuration, save_window_save): Replace B_ with
BVAR.
* w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
Replace B_ with BVAR.
* undo.c (record_point, record_insert, record_delete)
(record_marker_adjustment, record_first_change)
(record_property_change, Fundo_boundary, truncate_undo_list)
(Fprimitive_undo): Replace B_ with BVAR.
* syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
(SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
* syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
(Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
(skip_syntaxes, scan_lists): Replace B_ with BVAR.
* search.c (compile_pattern_1, compile_pattern, looking_at_1)
(string_match_1, fast_looking_at, newline_cache_on_off)
(search_command, search_buffer, simple_search, boyer_moore)
(Freplace_match): Replace B_ with BVAR.
* process.c (get_process, list_processes_1, Fstart_process)
(Fmake_serial_process, Fmake_network_process)
(read_process_output, send_process, exec_sentinel)
(status_notify, setup_process_coding_systems): Replace B_ with
BVAR.
* print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
(strout, print_string, temp_output_buffer_setup, print_object):
Replace B_ with BVAR.
* msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
* minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Replace
B_ with BVAR.
* marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
(set_marker_both, set_marker_restricted_both, unchain_marker):
Replace B_ with BVAR.
* lread.c (readchar, unreadchar, openp, readevalloop)
(Feval_buffer, Feval_region): Replace B_ with BVAR.
* lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
* keymap.c (Flocal_key_binding, Fuse_local_map)
(Fcurrent_local_map, push_key_description)
(Fdescribe_buffer_bindings): Replace B_ with BVAR.
* keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
(read_key_sequence): Replace B_ with BVAR.
* intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
* intervals.c (set_point_both, get_local_map): Replace B_ with
BVAR.
* insdel.c (check_markers, insert_char, insert_1_both)
(insert_from_string_1, insert_from_gap, insert_from_buffer_1)
(adjust_after_replace, replace_range, del_range_2)
(modify_region, prepare_to_modify_buffer)
(Fcombine_after_change_execute): Replace B_ with BVAR.
* indent.c (buffer_display_table, recompute_width_table)
(width_run_cache_on_off, current_column, scan_for_column)
(Findent_to, position_indentation, compute_motion, vmotion):
Replace B_ with BVAR.
* fringe.c (get_logical_cursor_bitmap)
(get_logical_fringe_bitmap, update_window_fringes): Replace B_
with BVAR.
* frame.c (make_frame_visible_1): Replace B_ with BVAR.
* font.c (font_at): Replace B_ with BVAR.
* fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
Replace B_ with BVAR.
* filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
(unlock_buffer): Replace B_ with BVAR.
* fileio.c (Fexpand_file_name, Ffile_directory_p)
(Ffile_regular_p, Ffile_selinux_context)
(Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
(Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
(Finsert_file_contents, choose_write_coding_system)
(Fwrite_region, build_annotations, Fverify_visited_file_modtime)
(Fset_visited_file_modtime, auto_save_error, auto_save_1)
(Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
* editfns.c (region_limit, Fmark_marker, save_excursion_save)
(save_excursion_restore, Fprevious_char, Fchar_before)
(general_insert_function, Finsert_char, Finsert_byte)
(make_buffer_string_both, Finsert_buffer_substring)
(Fcompare_buffer_substrings, subst_char_in_region_unwind)
(subst_char_in_region_unwind_1, Fsubst_char_in_region)
(Ftranslate_region_internal, save_restriction_restore)
(Fchar_equal): Replace B_ with BVAR.
* dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
* dispextern.h (WINDOW_WANTS_MODELINE_P)
(WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
* dired.c (directory_files_internal): Replace B_ with BVAR.
* data.c (swap_in_symval_forwarding, set_internal)
(Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
Replace B_ with BVAR.
* composite.c (fill_gstring_header)
(composition_compute_stop_pos, composition_adjust_point)
(Ffind_composition_internal): Replace B_ with BVAR.
* coding.c (decode_coding, encode_coding)
(make_conversion_work_buffer, decode_coding_gap)
(decode_coding_object, encode_coding_object)
(Fdetect_coding_region, Ffind_coding_systems_region_internal)
(Funencodable_char_position, Fcheck_coding_systems_region):
Replace B_ with BVAR.
* cmds.c (Fself_insert_command, internal_self_insert): Replace B_
with BVAR.
* charset.c (Ffind_charset_region): Replace B_ with BVAR.
* character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
(ASCII_CHAR_WIDTH): Replace B_ with BVAR.
* character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
* category.h (Vstandard_category_table): Replace B_ with BVAR.
* category.c (check_category_table, Fcategory_table)
(Fset_category_table, char_category_set): Replace B_ with BVAR.
* casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
BVAR.
* casefiddle.c (casify_object, casify_region): Replace B_ with
BVAR.
* callproc.c (Fcall_process, Fcall_process_region): Replace B_
with BVAR.
* callint.c (check_mark, Fcall_interactively): Replace B_ with
BVAR.
* bytecode.c (Fbyte_code): Replace B_ with BVAR.
* buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
with BVAR.
* buffer.c (Fbuffer_live_p, Fget_file_buffer)
(get_truename_buffer, Fget_buffer_create)
(clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
(reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
(Fbuffer_local_value, buffer_lisp_local_variables)
(Fset_buffer_modified_p, Frestore_buffer_modified_p)
(Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
(Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
(set_buffer_temp, Fset_buffer, set_buffer_if_live)
(Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
(Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
(Fset_buffer_multibyte, swap_out_buffer_local_variables)
(record_overlay_string, overlay_strings, init_buffer_once)
(init_buffer, syms_of_buffer): Replace B_ with BVAR.

13 years ago* net/soap-client.el:
Michael Albinus [Wed, 16 Feb 2011 09:25:37 +0000 (10:25 +0100)]
* net/soap-client.el:
* net/soap-inspect.el: New files.

13 years agoMore dired-x cleanup.
Leo Liu [Wed, 16 Feb 2011 08:51:39 +0000 (00:51 -0800)]
More dired-x cleanup.

* lisp/dired-x.el (dired-mode-map, dired-extra-startup):
Remove dired-copy-filename-as-kill since it's already in dired.el.

13 years agoUse emacsver.texi in dired-x.texi.
Glenn Morris [Wed, 16 Feb 2011 08:46:13 +0000 (00:46 -0800)]
Use emacsver.texi in dired-x.texi.

* doc/misc/dired-x.texi: Use emacsver.texi to get Emacs version.
* doc/misc/Makefile.in ($(infodir)/dired-x, dired-x.dvi, dired-x.pdf):
Depend on emacsver.texi.

13 years agoMerge from emacs-23; up to 2010-05-28T19:18:47Z!juri@jurta.org.
Glenn Morris [Wed, 16 Feb 2011 08:39:19 +0000 (00:39 -0800)]
Merge from emacs-23; up to 2010-05-28T19:18:47Z!juri@jurta.org.

13 years agoMore dired-x cleanup.
Glenn Morris [Wed, 16 Feb 2011 08:32:30 +0000 (00:32 -0800)]
More dired-x cleanup.

* lisp/dired-x.el (dired-bind-jump, dired-bind-man, dired-bind-info):
Doc fixes.  Add :set property, replacing top-level calls.
(dired-vm-read-only-folders, dired-vm): Doc fix (drop v. old VM 4).
(dired-guess-shell-gnutar): Test tar version rather than system-type.
(dired-extra-startup, dired-man, dired-info): Doc fixes.
(dired-clean-up-after-deletion): Use when and dolist.
(dired-jump): Use unless and when.
(dired-virtual): Use line-end-position.
(dired-default-directory-alist): Rename from default-directory-alist.
(dired-default-directory): Update for above name change.
(dired-vm): Drop VM < 5 and simplify.
(dired-buffer-more-recently-used-p): Rewrite.
(dired-filename-at-point): Use when and or.
(dired-x-read-filename-at-point): Rename from read-filename-at-point.
Update callers.

* doc/misc/dired-x.texi (Multiple Dired Directories): Update for rename of
default-directory-alist.
(Miscellaneous Commands): No longer mention very old VM version 4.

13 years agoMerge from mainline.
Paul Eggert [Wed, 16 Feb 2011 01:35:20 +0000 (17:35 -0800)]
Merge from mainline.

13 years agoImport getloadavg module from gnulib.
Paul Eggert [Wed, 16 Feb 2011 00:33:44 +0000 (16:33 -0800)]
Import getloadavg module from gnulib.

13 years agoMerge from gnulib.
Paul Eggert [Wed, 16 Feb 2011 00:23:58 +0000 (16:23 -0800)]
Merge from gnulib.

13 years agoMerge from mainline.
Paul Eggert [Wed, 16 Feb 2011 00:21:32 +0000 (16:21 -0800)]
Merge from mainline.

13 years ago* install-sh: Update to scriptversion 2011-01-19.21.
Paul Eggert [Wed, 16 Feb 2011 00:19:57 +0000 (16:19 -0800)]
* install-sh: Update to scriptversion 2011-01-19.21.

13 years agoMerge from mainline.
Paul Eggert [Wed, 16 Feb 2011 00:09:42 +0000 (16:09 -0800)]
Merge from mainline.

13 years agoauth-source.el (auth-source-debug): Enable by default and don't mention the obsolete...
Teodor Zlatanov [Wed, 16 Feb 2011 00:00:21 +0000 (00:00 +0000)]
auth-source.el (auth-source-debug): Enable by default and don't mention the obsolete `auth-source-hide-passwords'.
 (auth-source-do-warn): New function to debug unconditionally.
 (auth-source-do-debug): Use it.
 (auth-source-backend-parse): Use it for invalid `auth-sources' entries and for Secrets API entries when the secrets.el library is not available.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 15 Feb 2011 11:24:37 +0000 (11:24 +0000)]
Merge changes made in Gnus trunk.

auth.texi (Help for users): Login collection is "Login" and not "login".
gnus-sum.el (gnus-propagate-marks): Default to nil.
 (gnus-summary-exit): Kill the correct article buffer on exit from a `C-d' group.
gnus-start.el (gnus-use-backend-marks): Removed, since it duplicates gnus-propagate-marks.
gnus-sum.el (gnus-summary-exit-no-update): Restore the group conf before killing the buffers so that a non-full window conf gets handled correctly.
 (gnus-summary-exit): Ditto.
 (gnus-summary-read-group-1): Ditto.
nntp.el (nntp-retrieve-group-data-early): Reinstate the two-part async code again so that we can debug it properly.
message.el (message-reply): Take an optional switch-buffer parameter so that Gnus window confs are respected better.
auth-source.el (auth-source-secrets-search): Use `delete-dups', `append mapcar', and `butlast' instead of `remove-duplicates', `mapcan', and `subseq'.
 (auth-sources, auth-source-backend-parse, auth-source-secrets-search): Login collection is "Login" and not "login".
gnus-art.el (article-update-date-lapsed): Don't bug out when updating multiple headers.

13 years agoMerge from proposed getloadavg simplifications in gnulib.
Paul Eggert [Tue, 15 Feb 2011 06:40:12 +0000 (22:40 -0800)]
Merge from proposed getloadavg simplifications in gnulib.

* configure, lib/Makefile.in, src/config.in: Regenerate.
* lib/getloadavg.c, lib/stdlib.in.h, m4/getloadavg.m4: New
versions from gnulib.

2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>

13 years agoMerge from mainline.
Paul Eggert [Tue, 15 Feb 2011 05:41:07 +0000 (21:41 -0800)]
Merge from mainline.

13 years ago* lisp/dired-x.el: Use easymenu for menu items. Fix item capitalization.
Glenn Morris [Tue, 15 Feb 2011 05:09:54 +0000 (21:09 -0800)]
* lisp/dired-x.el: Use easymenu for menu items.  Fix item capitalization.

13 years agoMerge from gnulib.
Paul Eggert [Tue, 15 Feb 2011 04:53:29 +0000 (20:53 -0800)]
Merge from gnulib.

13 years agoBump versio to 23.2.94.
Chong Yidong [Tue, 15 Feb 2011 04:01:16 +0000 (23:01 -0500)]
Bump versio to 23.2.94.
Regenerate release files.

13 years agoFix the NS build due to introduction of B_.
Eli Zaretskii [Tue, 15 Feb 2011 03:57:00 +0000 (05:57 +0200)]
Fix the NS build due to introduction of B_.

 nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.

13 years agoBind delete-by-moving-to-trash to nil in pgg-*.el.
Chong Yidong [Mon, 14 Feb 2011 22:56:38 +0000 (17:56 -0500)]
Bind delete-by-moving-to-trash to nil in pgg-*.el.

This change should not be merged into the trunk.

* pgg-gpg.el (pgg-gpg-process-region): Bind
delete-by-moving-to-trash to nil.

* pgg-pgp.el (pgg-pgp-process-region, pgg-pgp-verify-region)
(pgg-pgp-snarf-keys-region):
* pgg-pgp5.el (pgg-pgp5-process-region, pgg-pgp5-verify-region)
(pgg-pgp5-snarf-keys-region): Likewise.

13 years agoFix use of dtoastr from gnulib.
Michael Welsh Duggan [Mon, 14 Feb 2011 22:25:29 +0000 (17:25 -0500)]
Fix use of dtoastr from gnulib.

* src/print.c (float_to_string): Ensure that a decimal point is
printed if using dtoastr (Bug#8033).

13 years agoConvert test/bytecomp-testsuite.el to ERT format.
Chong Yidong [Mon, 14 Feb 2011 21:21:42 +0000 (16:21 -0500)]
Convert test/bytecomp-testsuite.el to ERT format.

* automated/bytecomp-tests.el: Move from bytecomp-testsuite.el;
convert to ERT format.

13 years agoFix the MS-DOS build due to introduction of B_.
Eli Zaretskii [Mon, 14 Feb 2011 17:58:13 +0000 (19:58 +0200)]
Fix the MS-DOS build due to introduction of B_.

 msdos.c (IT_frame_up_to_date):
 s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.

13 years agoFix the MS-Windows build due to introduction of B_.
Eli Zaretskii [Mon, 14 Feb 2011 17:35:21 +0000 (19:35 +0200)]
Fix the MS-Windows build due to introduction of B_.

 dired.c (directory_files_internal):
 fileio.c (Finsert_file_contents):
 insdel.c (prepare_to_modify_buffer):
 xdisp.c (pos_visible_p):
 s/ms-w32.h (MODE_LINE_BINARY_TEXT):
 w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
 Use B_ for the MS-Windows build.

 From Tom Tromey:
 buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.

13 years agoUse *font for Xft font names for Lucid menus and dialogs.
Jan Djärv [Mon, 14 Feb 2011 17:21:10 +0000 (18:21 +0100)]
Use *font for Xft font names for Lucid menus and dialogs.

* doc/emacs/xresources.texi (X Resources): Remove *faceName and replace it with
*font for Lucid.

* lwlib/lwlib-Xaw.c (make_dialog): Use *font even for Xft fonts.  Try
XLoadQueryFont first and then Xft fonts.

* lwlib/xlwmenu.c (xlwmenu_default_font): Remove, does not work for
multi-display.
(xlwMenuResources): Remove XtNfaceName and XtNdefaultFace.
Make XtNFont a String resource.
(make_windows_if_needed): Call XFlush so later changes are seen by the
X server.
(remap_menubar): Use XtMoveWidget and then
XtResizeWidget/XtResizeWindow after XtPopup.  Works better with
Compiz.
(make_drawing_gcs): Check if mw->menu.font is set.
(getDefaultXftFont): New function.
(openXftFont): faceName is now fontName.  Try XLoadQueryFont first
and then XftFontOpenName.
(XlwMenuInitialize): Initialize mw->menu.font with XLoadQueryFont.
(XlwMenuClassInitialize): Remove initialization of
xlwmenu_default_font.
(fontname_changed): Renamed from facename_changed.
(XlwMenuSetValues): Use facename_changed.

* lwlib/xlwmenu.h: Remove Xt[CN]faceName and Xt[NC]defaultFace.

* lwlib/xlwmenuP.h (_XlwMenu_part): Remove faceName.  Add fontName.

* src/xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
(apply_systemfont_to_menu): Set resources *menubar*font and
*popup*font.  Remove defflt.
(set_frame_menubar, create_and_show_popup_menu): Call
apply_systemfont_to_menu before lw_create_widget.

* src/xrdb.c (x_load_resources): For LUCID and XFT, don't put a
resource that specifies helvetica for menus and dialogs.

13 years ago* keyboard.h: Remove obsolete comment.
Tom Tromey [Mon, 14 Feb 2011 16:25:04 +0000 (09:25 -0700)]
* keyboard.h: Remove obsolete comment.

13 years agoHide implementation of `struct buffer'
Tom Tromey [Mon, 14 Feb 2011 15:39:19 +0000 (08:39 -0700)]
Hide implementation of `struct buffer'
* composite.c (fill_gstring_header)
(composition_compute_stop_pos, composition_adjust_point)
(Ffind_composition_internal): Use B_.
* intervals.c (set_point_both, get_local_map): Use B_.
* callproc.c (Fcall_process, Fcall_process_region): Use B_.
* process.c (get_process, list_processes_1, Fstart_process)
(Fmake_serial_process, Fmake_network_process)
(read_process_output, send_process, exec_sentinel)
(status_notify, setup_process_coding_systems): Use B_.
* bytecode.c (Fbyte_code): Use B_.
* syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
(Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
(skip_syntaxes, scan_lists): Use B_.
* lread.c (readchar, unreadchar, openp, readevalloop)
(Feval_buffer, Feval_region): Use B_.
* print.c (printchar, strout, print_string, PRINTDECLARE)
(PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
(print_object): Use B_.
* font.c (font_at): Use B_.
* fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5): Use
B_.
* callint.c (check_mark, Fcall_interactively): Use B_.
* editfns.c (region_limit, Fmark_marker, save_excursion_save)
(save_excursion_restore, Fprevious_char, Fchar_before)
(general_insert_function, Finsert_char, Finsert_byte)
(make_buffer_string_both, Finsert_buffer_substring)
(Fcompare_buffer_substrings, subst_char_in_region_unwind)
(subst_char_in_region_unwind_1, Fsubst_char_in_region)
(Ftranslate_region_internal, save_restriction_restore)
(Fchar_equal): Use B_.
* data.c (swap_in_symval_forwarding, set_internal)
(Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
Use B_.
* undo.c (record_point, record_insert, record_delete)
(record_marker_adjustment, record_first_change)
(record_property_change, Fundo_boundary, truncate_undo_list)
(Fprimitive_undo): Use B_.
* search.c (compile_pattern_1, compile_pattern, looking_at_1)
(string_match_1, fast_looking_at, newline_cache_on_off)
(search_command, search_buffer, simple_search, boyer_moore)
(Freplace_match): Use B_.
* indent.c (buffer_display_table, recompute_width_table)
(width_run_cache_on_off, current_column, scan_for_column)
(Findent_to, position_indentation, compute_motion, vmotion): Use
B_.
* casefiddle.c (casify_object, casify_region): Use B_.
* casetab.c (Fcurrent_case_table, set_case_table): Use B_.
* cmds.c (Fself_insert_command, internal_self_insert): Use B_.
* fileio.c (Fexpand_file_name, Ffile_directory_p)
(Ffile_regular_p, Ffile_selinux_context)
(Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
(Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
(Finsert_file_contents, choose_write_coding_system)
(Fwrite_region, build_annotations, Fverify_visited_file_modtime)
(Fset_visited_file_modtime, auto_save_error, auto_save_1)
(Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
* minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
* marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
(set_marker_both, set_marker_restricted_both, unchain_marker): Use
B_.
* insdel.c (check_markers, insert_char, insert_1_both)
(insert_from_string_1, insert_from_gap, insert_from_buffer_1)
(adjust_after_replace, replace_range, del_range_2)
(modify_region, prepare_to_modify_buffer)
(Fcombine_after_change_execute): Use B_.
* filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
(unlock_buffer): Use B_.
* keymap.c (Flocal_key_binding, Fuse_local_map)
(Fcurrent_local_map, push_key_description)
(Fdescribe_buffer_bindings): Use B_.
* keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
(read_key_sequence): Use B_.
* fringe.c (get_logical_cursor_bitmap)
(get_logical_fringe_bitmap, update_window_fringes): Use B_.
* xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
* xfaces.c (compute_char_face): Use B_.
* character.c (chars_in_text, Fget_byte): Use B_.
* category.c (check_category_table, Fcategory_table)
(Fset_category_table, char_category_set): Use B_.
* coding.c (decode_coding, encode_coding)
(make_conversion_work_buffer, decode_coding_gap)
(decode_coding_object, encode_coding_object)
(Fdetect_coding_region, Ffind_coding_systems_region_internal)
(Funencodable_char_position, Fcheck_coding_systems_region): Use
B_.
* charset.c (Ffind_charset_region): Use B_.
* window.c (window_display_table, unshow_buffer, window_loop)
(window_min_size_2, set_window_buffer, Fset_window_buffer)
(select_window, Fforce_window_update, temp_output_buffer_show)
(Fset_window_configuration, save_window_save): Use B_.
* xdisp.c (pos_visible_p, init_iterator, reseat_1)
(message_dolog, update_echo_area, ensure_echo_area_buffers)
(with_echo_area_buffer, setup_echo_area_for_printing)
(set_message_1, update_menu_bar, update_tool_bar)
(text_outside_line_unchanged_p, redisplay_internal)
(try_scrolling, try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, row_containing_pos)
(try_window_id, get_overlay_arrow_glyph_row, display_line)
(Fcurrent_bidi_paragraph_direction, display_mode_lines)
(decode_mode_spec_coding, decode_mode_spec, display_count_lines)
(get_window_cursor_type, note_mouse_highlight): Use B_.
* frame.c (make_frame_visible_1): Use B_.
* dispnew.c (Fframe_or_buffer_changed_p): Use B_.
* dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
(WINDOW_WANTS_MODELINE_P): Use B_.
* syntax.h (Vstandard_syntax_table): Update.
(CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
* intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
(TEXT_PROP_MEANS_INVISIBLE): Use B_.
* character.h (FETCH_CHAR_ADVANCE): Update.
(INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
* category.h (Vstandard_category_table): Update.
* lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
names.
(DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
* buffer.c (swapfield_): New macro.
(Fbuffer_swap_text): Use swapfield_ where appropriate.
(Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
(Fget_buffer_create, clone_per_buffer_values)
(Fmake_indirect_buffer, reset_buffer)
(reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
(Fbuffer_local_value, buffer_lisp_local_variables)
(Fset_buffer_modified_p, Frestore_buffer_modified_p)
(Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
(Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
(set_buffer_temp, Fset_buffer, set_buffer_if_live)
(Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
(Fbuffer_swap_text, Fset_buffer_multibyte)
(swap_out_buffer_local_variables, record_overlay_string)
(overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
Use B_.
* buffer.h (struct buffer): Rename all Lisp_Object fields.
(BUFFER_INTERNAL_FIELD, B_): New macro.
(FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.

13 years ago* gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label is null.
Jan Djärv [Mon, 14 Feb 2011 13:30:49 +0000 (14:30 +0100)]
* gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label is null.

13 years agoauth-source.el (auth-source-backend-parse-parameters): Don't rely on `plist-get'...
Teodor Zlatanov [Mon, 14 Feb 2011 12:24:43 +0000 (12:24 +0000)]
auth-source.el (auth-source-backend-parse-parameters): Don't rely on `plist-get' to accept non-list parameters (XEmacs issue).  Fix docstring.

13 years agonnimap.el (nnimap-inhibit-logging): New variable.
Lars Ingebrigtsen [Mon, 14 Feb 2011 04:23:59 +0000 (04:23 +0000)]
nnimap.el (nnimap-inhibit-logging): New variable.
 (nnimap-log-command): Don't log login commands.
auth-source.el (auth-source-netrc-search): The asserts seem to want to have more parameters.
nnimap.el (nnimap-send-command): Mark the command time for each command, so that we don't get NOOPs stepping on our toes.
gnus-art.el (article-date-ut): Get the date from the Date header on `t'.

13 years ago* admin/notes/bzr: Add section on undoing a bzr remove.
Glenn Morris [Mon, 14 Feb 2011 02:52:02 +0000 (18:52 -0800)]
* admin/notes/bzr: Add section on undoing a bzr remove.

13 years agoAdd Log View toggle and log format customization for Git and Hg.
Chong Yidong [Mon, 14 Feb 2011 01:49:24 +0000 (20:49 -0500)]
Add Log View toggle and log format customization for Git and Hg.

* lisp/vc/vc-git.el (vc-git-root-log-format): New option for
customizing log format.
(vc-git-print-log, vc-git-log-outgoing, vc-git-log-incoming)
(vc-git-log-view-mode): Use it.
(vc-git-expanded-log-entry): New function.
(vc-git-log-view-mode): Use it.  Truncate lines in root log.

* lisp/vc/vc-hg.el (vc-hg-root-log-template): New option for
customizing log format.
(vc-hg-print-log): Use it.
(vc-hg-expanded-log-entry): New function.
(vc-hg-log-view-mode): Use vc-hg-root-log-template and
vc-hg-expanded-log-entry.  Truncate lines in root log.

* lisp/vc/vc-bzr.el (vc-bzr-log-view-mode): Truncate lines in root log.

* lisp/vc/log-view.el (log-view-mode-menu): Add
log-view-toggle-entry-display.

13 years agoauth-source.el (auth-source-search): Use copy-sequence instead of the cl.el copy...
Katsumi Yamaoka [Mon, 14 Feb 2011 01:38:00 +0000 (01:38 +0000)]
auth-source.el (auth-source-search): Use copy-sequence instead of the cl.el copy-list.

13 years agoMisc updates for dired-x.texi.
Glenn Morris [Mon, 14 Feb 2011 01:37:55 +0000 (17:37 -0800)]
Misc updates for dired-x.texi.

* doc/misc/dired-x.texi: Drop meaningless version number.
(Introduction): Remove old info.
(Optional Installation Dired Jump): Autoload from dired-x.
Remove incorrect info about loaddefs.el.
(Bugs): Just refer to M-x report-emacs-bug.

13 years agodired-x.el misc cleanup.
Glenn Morris [Mon, 14 Feb 2011 01:27:56 +0000 (17:27 -0800)]
dired-x.el misc cleanup.

* lisp/dired-x.el: Simplify commentary.
Don't require man when compiling.
(dired-omit-extensions, dired-local-variables-file)
(dired-x-hands-off-my-keys): Make them defcustoms.
(Man-support-local-filenames, Man-getpage-in-background): Declare.
(vm-visit-folder): Declare rather than defining.
(dired-x-help-address, dired-x-variable-list): Remove.
(dired-x-submit-report): Make it an obsolete alias.

13 years agoFix last change.
Katsumi Yamaoka [Mon, 14 Feb 2011 01:02:31 +0000 (01:02 +0000)]
Fix last change.

13 years agonet/imap.el: Bring it back.
Teodor Zlatanov [Mon, 14 Feb 2011 00:57:10 +0000 (00:57 +0000)]
net/imap.el: Bring it back.

13 years agolisp/makefile.w32-in (TRAMP_SRC): Remove tramp-imap.el.
Juanma Barranquero [Mon, 14 Feb 2011 00:23:11 +0000 (01:23 +0100)]
lisp/makefile.w32-in (TRAMP_SRC): Remove tramp-imap.el.

13 years agognus-delay.el (gnus-delay-article) Fix number of seconds per day. Improve prompt.
Gnus developers [Sun, 13 Feb 2011 23:30:55 +0000 (23:30 +0000)]
gnus-delay.el (gnus-delay-article) Fix number of seconds per day.  Improve prompt.
gnus-art.el (gnus-article-mode-line-format): Remove the article washing status from the default format.  It isn't very informative.

13 years agoProper fix for CC mode Bug#7722.
Alan Mackenzie [Sun, 13 Feb 2011 20:25:15 +0000 (15:25 -0500)]
Proper fix for CC mode Bug#7722.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Remove a
narrow-to-region call that cuts context off the end (Bug#7722).

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): Refactor
nested if-forms with a simple cond.
(c-forward-<>-arglist): Revert 2011-01-31 change.

13 years agoBind RET in Log View mode to a command that toggles a more detailed display.
Chong Yidong [Sun, 13 Feb 2011 20:04:33 +0000 (15:04 -0500)]
Bind RET in Log View mode to a command that toggles a more detailed display.

* lisp/vc/log-view.el: New command log-view-toggle-entry-display for
toggling log entries between concise and detailed forms.
(log-view-toggle-entry-display): New command.
(log-view-mode-map): Bind RET to it.
(log-view-expanded-log-entry-function): New variable.
(log-view-current-entry, log-view-inside-comment-p)
(log-view-current-tag): New functions.
(log-view-toggle-mark-entry): Use log-view-current-entry and
log-view-end-of-defun instead of searching directly with
log-view-message-re.
(log-view-end-of-defun): Likewise.  Add optional ARG for
compatibility with end-of-defun.
(log-view-end-of-defun): Ignore comments and VC buttons.

* lisp/vc/vc-bzr.el (vc-bzr-expanded-log-entry): New function.
(vc-bzr-log-view-mode): Use log-view-expanded-log-entry-function.

13 years agoFix bug #8020 with quick resizing of the selected frame.
Eli Zaretskii [Sun, 13 Feb 2011 18:55:07 +0000 (20:55 +0200)]
Fix bug #8020 with quick resizing of the selected frame.

 xdisp.c (redisplay_internal): Resynchronize `w' if the selected
 window is changed inside calls to do_pending_window_change.

13 years agoDon't ignore files that are no longer generated
Andreas Schwab [Sun, 13 Feb 2011 18:35:05 +0000 (19:35 +0100)]
Don't ignore files that are no longer generated

13 years agonet/imap.el: Remove file. All the functionality is in nnimap.el.
Gnus developers [Sun, 13 Feb 2011 13:44:06 +0000 (13:44 +0000)]
net/imap.el: Remove file.  All the functionality is in nnimap.el.
nnimap.el (nnimap-request-accept-article, nnimap-process-quirk): Fix Gcc processing on imap.

13 years agoRemove imap-hash.el now that tramp-imap.el is gone.
Ted Zlatanov [Sun, 13 Feb 2011 13:16:37 +0000 (07:16 -0600)]
Remove imap-hash.el now that tramp-imap.el is gone.

* net/imap-hash.el: Remove file.

13 years ago* NEWS: Tramp methods "imap" and "imaps" are discontinued.
Michael Albinus [Sun, 13 Feb 2011 12:57:41 +0000 (13:57 +0100)]
* NEWS: Tramp methods "imap" and "imaps" are discontinued.

13 years ago* Makefile.in (TRAMP_SRC): Remove tramp-imap.el.
Michael Albinus [Sun, 13 Feb 2011 12:25:45 +0000 (13:25 +0100)]
* Makefile.in (TRAMP_SRC): Remove tramp-imap.el.

* net/tramp.el (tramp-read-passwd): Simplify `auth-source-search'
call.

* net/tramp-imap.el: Remove file.

13 years ago* tramp.texi (History): Remove IMAP support.
Michael Albinus [Sun, 13 Feb 2011 12:21:04 +0000 (13:21 +0100)]
* tramp.texi (History): Remove IMAP support.
(External methods, Frequently Asked Questions): Remove `imap' and
`imaps' methods.
(Password handling): Remove IMAP entries for ~/.authinfo.gpg.

* trampver.texi: Remove default value of `emacsimap'.

13 years ago* callproc.c (Fcall_process):
Jan D [Sun, 13 Feb 2011 11:28:42 +0000 (12:28 +0100)]
* callproc.c (Fcall_process):
* process.c (create_process): Replace Gtk with GConf in SIGPIPE
comment.

13 years agoUse simple buttons, instead of widget buttons, in vc-log.
Chong Yidong [Sun, 13 Feb 2011 03:07:53 +0000 (22:07 -0500)]
Use simple buttons, instead of widget buttons, in vc-log.

* lisp/vc/vc.el (vc-print-log-setup-buttons): Instead of using the
widget library for buttons, just use button.el.

* lisp/vc/log-view.el (log-view-mode-map): Don't inherit from
widget-keymap.

13 years agoAdd @top to some misc/*.texi files.
Glenn Morris [Sun, 13 Feb 2011 02:21:30 +0000 (18:21 -0800)]
Add @top to some misc/*.texi files.

* ada-mode.texi, dired-x.texi, ebrowse.texi, ediff.texi, eudc.texi:
* idlwave.texi, reftex.texi, sc.texi, speedbar.texi: Add @top.

13 years agolwlib trivia.
Glenn Morris [Sun, 13 Feb 2011 02:07:25 +0000 (18:07 -0800)]
lwlib trivia.

* lwlib/lwlib-utils.c (index, rindex): Don't undef (neither used in lwlib/,
nor set in config.h).

13 years ago* make-dist: Exclude generated file src/globals.h.
Glenn Morris [Sun, 13 Feb 2011 02:04:18 +0000 (18:04 -0800)]
* make-dist: Exclude generated file src/globals.h.

13 years agoFix date of merged ChangeLog entries.
Glenn Morris [Sun, 13 Feb 2011 01:01:11 +0000 (17:01 -0800)]
Fix date of merged ChangeLog entries.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 13 Feb 2011 00:25:29 +0000 (00:25 +0000)]
Merge changes made in Gnus trunk.

auth.texi (Overview, Help for users, Help for developers): Update docs.
 (Help for users): Talk about spaces.
sieve-manage.el: Autoload `auth-source-search'.
 (sieve-sasl-auth): Use it.
nnimap.el: Autoload `auth-source-forget+'.
 (nnimap-open-connection-1): Use it if the connection fails.
auth-source.el: Require `password-cache'.
 (auth-source-hide-passwords, auth-source-cache): Remove and mark obsolete.
 (auth-source-magic): Marker for `password-cache' keys.
 (auth-source-do-cache): Update docstring.
 (auth-source-search): Use and check cache.
 (auth-source-forget-all-cached, auth-source-remember)
 (auth-source-recall, auth-source-forget, auth-source-forget+)
 (auth-source-specmatchp): Caching support functions.
 (auth-source-forget-user-or-password, auth-source-forget-all-cached): Remove and obsolete.
 (auth-source-user-or-password): Remove caching to further discourage using it.  Always hide passwords.
password-cache.el (password-cache-remove): Accept secrets that are not strings.
mail-source.el: Autoload `auth-source-search'.
 (mail-source-keyword-map): Note order matters.
 (mail-source-set-1): Get all the mail-source source values and defaults and search auth-source on those if needed.  This can all probably be simplified.
nnimap.el: Autoload `auth-source-search'.
 (nnimap-credentials): Use it.
 (nnimap-open-connection-1): Ask for the virtual server and physical address in one shot.
nntp.el: Autoload `auth-source-search'.
 (nntp-send-authinfo): Use it.  Note TODO.
auth-source.el (auth-source-secrets-search, auth-source-user-or-password): Use `append' instead of `nconc'.
 (auth-source-user-or-password): Build return list better and protect against nil :secret.
auth-source.el (top): Require 'eieio unconditionally.  Autoload `secrets-get-attributes' instead of `secrets-get-attribute'.
 (auth-source-secrets-search): Limit search when `max' is greater than number of results.
auth-source.el (auth-source-secrets-search): Add examples.
auth-source.el (auth-sources): Allow for simpler defaults for Secrets API with a string "secrets:collection-name" and with 'default.
 (auth-source-backend-parse): Parse "secrets:collection-name" and 'default.  Recurse on parses instead of repeating code.  Use the Secrets API is the source is not nil and 'ignore otherwise.  Emit a message when ignoring a source.
 (auth-source-search): List ignored search keys at the top level.
 (auth-source-netrc-create): Use `case' instead of `cond'.
 (auth-source-secrets-search): Created with TODOs.
 (auth-source-secrets-create): Created with TODOs.
 (auth-source-retrieve, auth-source-create, auth-source-delete)
 (auth-source-protocol-defaults, auth-source-user-or-password-imap)
 (auth-source-user-or-password-pop3, auth-source-user-or-password-ssh)
 (auth-source-user-or-password-sftp)
 (auth-source-user-or-password-smtp): Removed.
 (auth-source-user-or-password): Deprecated and modified to be a wrapper around `auth-source-search'.  Not tested thoroughly.
auth-source.el: Bring in assoc and eioeio libraries.
 (secrets-enabled): New variable to track the status of the Secrets API.
 (auth-source-backend): New EIOEIO class to represent a backend.
 (auth-source-creation-defaults): New variable to set prompt defaults during token creation (see the `auth-source-search' docstring for details).
 (auth-sources): Simplify to allow a simple string as a netrc backend spec.
 (auth-source-backend-parse): Parse a backend from an `auth-sources' spec.
 (auth-source-backend-parse-parameters): Fill in the backend parameters.
 (auth-source-search): Main auth-source API entry point.
 (auth-source-delete): Wrapper around `auth-source-search' for deletion.
 (auth-source-search-collection): Helper function for searching.
 (auth-source-netrc-parse, auth-source-netrc-normalize)
 (auth-source-netrc-search, auth-source-netrc-create): Netrc backend.  Supports search, create, and delete.
 (auth-source-secrets-search, auth-source-secrets-create): Secrets API backend stubs.
(auth-source-user-or-password): Call `auth-source-search' but it's not ready yet.

13 years agoMerge changes from emacs-23 branch
Chong Yidong [Sun, 13 Feb 2011 00:16:28 +0000 (19:16 -0500)]
Merge changes from emacs-23 branch

13 years ago* admin/notes/bzr: Mention the helpful changelog_merge plugin.
Glenn Morris [Sat, 12 Feb 2011 23:43:42 +0000 (15:43 -0800)]
* admin/notes/bzr: Mention the helpful changelog_merge plugin.

13 years agoMerge changes from emacs-23 branch
Chong Yidong [Sat, 12 Feb 2011 23:40:43 +0000 (18:40 -0500)]
Merge changes from emacs-23 branch

13 years ago* admin/bzrmerge.el (bzrmerge-resolve): Fix bzr revert call.
Glenn Morris [Sat, 12 Feb 2011 23:37:43 +0000 (15:37 -0800)]
* admin/bzrmerge.el (bzrmerge-resolve): Fix bzr revert call.

13 years ago* themes/light-blue-theme.el: New file.
Drew Adams [Sat, 12 Feb 2011 23:10:18 +0000 (18:10 -0500)]
* themes/light-blue-theme.el: New file.

13 years agoAdapt dired-create-files to copy-directory changes.
Thierry Volpiatto [Sat, 12 Feb 2011 22:55:28 +0000 (17:55 -0500)]
Adapt dired-create-files to copy-directory changes.

* dired-aux.el (dired-create-files): Adapt destination name to
match the new behavior of copy-directory.

13 years agoMerge from mainline.
Paul Eggert [Sat, 12 Feb 2011 22:40:06 +0000 (14:40 -0800)]
Merge from mainline.

13 years ago* md5.c (md5_process_bytes): Use sizeof, not __alignof__.
Paul Eggert [Sat, 12 Feb 2011 22:36:22 +0000 (14:36 -0800)]
* md5.c (md5_process_bytes): Use sizeof, not __alignof__.

The difference doesn't matter here, in practice, and sizeof is
more portable to non-GCC compilers.  Also, this makes the code
match the already-existing comment.

13 years agoMinor commentary fix (Bug#8024).
Chong Yidong [Sat, 12 Feb 2011 22:23:06 +0000 (17:23 -0500)]
Minor commentary fix (Bug#8024).

13 years ago* doc/misc/sc.texi (Getting Connected): Remove old index entries.
Glenn Morris [Sat, 12 Feb 2011 22:12:04 +0000 (14:12 -0800)]
* doc/misc/sc.texi (Getting Connected): Remove old index entries.

13 years ago* url.texi: Remove duplicate @dircategory (Bug#7942).
Ulrich Mueller [Sat, 12 Feb 2011 22:06:22 +0000 (17:06 -0500)]
* url.texi: Remove duplicate @dircategory (Bug#7942).

13 years agoMake rmail-default-dont-reply-to-names nil (Bug#7888); rename rmail-dont-reply-*.
Chong Yidong [Sat, 12 Feb 2011 21:45:42 +0000 (16:45 -0500)]
Make rmail-default-dont-reply-to-names nil (Bug#7888); rename rmail-dont-reply-*.

* lisp/mail/mail-utils.el (mail-dont-reply-to-names): New variable,
from rmail-dont-reply-to-names.  Callers changed.
(mail-dont-reply-to): Rename from mail-dont-reply-to.
(rmail-dont-reply-to): Make it an obsolete alias.

* lisp/mail/rmail.el (rmail-default-dont-reply-to-names): Default to
nil, and make obsolete.
(rmail-dont-reply-to-names): Alias to mail-dont-reply-to-names.

* lisp/mail/rmailsum.el (rmail-summary-sort-by-correspondent): Doc fix.

* lisp/mail/rmailsort.el (rmail-sort-by-correspondent)
(rmail-select-correspondent): Doc fix.  Use mail-dont-reply-to.

* lisp/mail/rmail.el (rmail-reply): Use mail-dont-reply-to.

13 years agoMerge from mainline.
Paul Eggert [Sat, 12 Feb 2011 20:00:35 +0000 (12:00 -0800)]
Merge from mainline.

13 years ago* lisp/files.el (copy-directory): Revert to pre-2011-01-29 version.
Chong Yidong [Sat, 12 Feb 2011 19:43:04 +0000 (14:43 -0500)]
* lisp/files.el (copy-directory): Revert to pre-2011-01-29 version.

13 years agoNew optional arg COPY-CONTENTS to copy-directory.
Thierry Volpiatto [Sat, 12 Feb 2011 19:34:50 +0000 (14:34 -0500)]
New optional arg COPY-CONTENTS to copy-directory.

* files.el (copy-directory): New argument COPY-CONTENTS for
copying directory contents into another existing directory.

13 years agoMake sure SIGPIPE is reset in child processes
Andreas Schwab [Sat, 12 Feb 2011 18:53:24 +0000 (19:53 +0100)]
Make sure SIGPIPE is reset in child processes

* process.c (create_process): Reset SIGPIPE handler in the child.
* callproc.c (Fcall_process): Likewise.  (Bug#5238)

13 years ago* minibuffer.el (completion-table-case-fold): New function for
Tassilo Horn [Sat, 12 Feb 2011 18:30:13 +0000 (19:30 +0100)]
* minibuffer.el (completion-table-case-fold): New function for
creating a case-insensitive completion table.

13 years agoUse `auto-source-search' instead of `auto-source-user-or-password'.
Ted Zlatanov [Sat, 12 Feb 2011 17:51:02 +0000 (11:51 -0600)]
Use `auto-source-search' instead of `auto-source-user-or-password'.

* mail/smtpmail.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password.
(smtpmail-try-auth-methods): Use it.

* net/imap-hash.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password.
(imap-hash-open-connection): Use it.

* net/tramp-imap.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password.
(tramp-imap-passphrase-callback-function): Use it.

* net/tramp.el (tramp-default-method): Also check if
`auth-source-search' is bound.
(tramp-read-passwd): Use `auth-source-search' instead of
`auto-source-user-or-password'.

* url-parse.el (url-bit-for-url, url-user-for-url)
(url-password-for-url): Use `auto-source-search' instead of
`auto-source-user-or-password'.

* url-auth.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password'.
(url-basic-auth, url-digest-auth, url-do-auth-source-search): Use it.

13 years agoFix bug #7939 with bidi display of hscrolled lines.
Eli Zaretskii [Sat, 12 Feb 2011 15:48:10 +0000 (17:48 +0200)]
Fix bug #7939 with bidi display of hscrolled lines.

 xdisp.c <this_line_min_pos>: New variable.
 (move_it_in_display_line_to): Record in this_line_min_pos the
 smallest position iterated across.
 (display_line): Use this_line_min_pos to record the smallest
 position in the line even if that position is not displayed
 due to hscrolling.

13 years agoMerge from mainline.
Paul Eggert [Sat, 12 Feb 2011 10:08:19 +0000 (02:08 -0800)]
Merge from mainline.

13 years agoPort to Sun C 5.11, which has __attribute__ ((__aligned (N))).
Paul Eggert [Sat, 12 Feb 2011 10:05:38 +0000 (02:05 -0800)]
Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).

* md5.h (ATTRIBUTE_ALIGNED): New macro.
(struct md5_ctx): Use it.

13 years agoFix bug #7840 with setting terminal/keyboard encoding of emacsclient frames.
Eli Zaretskii [Sat, 12 Feb 2011 09:47:28 +0000 (04:47 -0500)]
Fix bug #7840 with setting terminal/keyboard encoding of emacsclient frames.

 terminal.c (create_terminal): Use default-keyboard-coding-system
 and default-terminal-coding-system to initialize coding systems of
 the new terminal.

13 years agoMerge from mainline.
Paul Eggert [Sat, 12 Feb 2011 05:15:47 +0000 (21:15 -0800)]
Merge from mainline.

13 years agoPort to Solaris 10, which doesn't support FC_HINT_STYLE.
Paul Eggert [Sat, 12 Feb 2011 05:13:34 +0000 (21:13 -0800)]
Port to Solaris 10, which doesn't support FC_HINT_STYLE.

13 years agoFix trivial typos in comments and ChangeLogs.
Juanma Barranquero [Sat, 12 Feb 2011 03:17:00 +0000 (04:17 +0100)]
Fix trivial typos in comments and ChangeLogs.