bpt/emacs.git
13 years ago* src/window.c (Fmove_to_window_line): Avoid abort when called in a buffer
Stefan Monnier [Sun, 26 Dec 2010 04:04:58 +0000 (23:04 -0500)]
* src/window.c (Fmove_to_window_line): Avoid abort when called in a buffer
different from selected-window's.

13 years agoFix wording of changes in 2010-05-17T00:01:22Z!rgm@gnu.org.
Eli Zaretskii [Sat, 25 Dec 2010 19:20:45 +0000 (21:20 +0200)]
Fix wording of changes in 2010-05-17T00:01:22Z!rgm@gnu.org.

  frames.texi (Cut/Paste Other App): Ckarify Windows emulation of
  the primary selection.

13 years agoFix bug #7662 with aligning key bindings equivalent to menu items.
Eli Zaretskii [Sat, 25 Dec 2010 17:19:57 +0000 (19:19 +0200)]
Fix bug #7662 with aligning key bindings equivalent to menu items.

 keyboard.c (parse_menu_item): Prepend "  " to the key sequence
 equivalent of a menu item when the key sequence is given by the
 `:keys' attribute.

13 years agoFix bug #7713 with doc string of display-time-mode.
Eli Zaretskii [Sat, 25 Dec 2010 11:50:34 +0000 (13:50 +0200)]
Fix bug #7713 with doc string of display-time-mode.

 time.el (display-time-mode): Mention display-time-interval in
 the doc string.

13 years agoFix bug #7702 with docs of selections wrt MS-Windows.
Eli Zaretskii [Sat, 25 Dec 2010 11:34:45 +0000 (13:34 +0200)]
Fix bug #7702 with docs of selections wrt MS-Windows.

 doc/emacs/frames.texi (Cut and Paste): Modify the section's name and text:
 don't mix "cut/paste" with "kill/yank".
 (Cut/Paste Other App): Describe the per-session emulation of PRIMARY.
 lisp/simple.el (select-active-regions): Doc fix.

13 years agoFix bug #7699 with pasting selected text on MS-Windows.
Eli Zaretskii [Sat, 25 Dec 2010 10:57:02 +0000 (12:57 +0200)]
Fix bug #7699 with pasting selected text on MS-Windows.

 mouse.el (mouse-yank-primary): On MS-Windows, try the (emulated)
 PRIMARY first, then the clipboard.

13 years agoFix bug #7667: mention debug-on-quit in the manual.
Eli Zaretskii [Sat, 25 Dec 2010 10:35:16 +0000 (12:35 +0200)]
Fix bug #7667: mention debug-on-quit in the manual.

 trouble.texi (Checklist): Mention debug-on-quit.

13 years agoMore fallout from fixing bug #7587.
Eli Zaretskii [Sat, 25 Dec 2010 10:14:48 +0000 (12:14 +0200)]
More fallout from fixing bug #7587.

 src/xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
 the basic faces are supported.
 doc/lispref/modes.texi (Emulating Mode Line): Fix last change.
 etc/NEWS: Remove the entry about format-mode-line accepting only
 basic faces.

13 years agoFix error handling of MIME parsing.
Kenichi Handa [Fri, 24 Dec 2010 14:00:14 +0000 (23:00 +0900)]
Fix error handling of MIME parsing.

13 years agoFix wording of rmail's section in NEWS.
Kenichi Handa [Fri, 24 Dec 2010 11:21:26 +0000 (20:21 +0900)]
Fix wording of rmail's section in NEWS.

13 years ago* xterm.c (x_check_fullscreen): Fix pixel/character mixup.
Jan Djärv [Fri, 24 Dec 2010 10:14:44 +0000 (11:14 +0100)]
* xterm.c (x_check_fullscreen): Fix pixel/character mixup.

13 years agoFix indentation
Andreas Schwab [Fri, 24 Dec 2010 09:25:18 +0000 (10:25 +0100)]
Fix indentation

13 years agoUpdate autoloads in rmail.el
Andreas Schwab [Fri, 24 Dec 2010 09:07:39 +0000 (10:07 +0100)]
Update autoloads in rmail.el

13 years agoEnable display mode of MIME message in rmail.
Kenichi Handa [Fri, 24 Dec 2010 04:38:22 +0000 (13:38 +0900)]
Enable display mode of MIME message in rmail.

13 years agognus-gravatar.el (gnus-gravatar-transform-address): Set `mail-extr-ignore-realname...
Julien Danjou [Thu, 23 Dec 2010 22:24:24 +0000 (22:24 +0000)]
gnus-gravatar.el (gnus-gravatar-transform-address): Set `mail-extr-ignore-realname-equals-mailbox-name' to nil when extracting the addresses, otherwise we might misplaced the gravatar.

13 years agoFix up last change.
Stefan Monnier [Thu, 23 Dec 2010 00:00:12 +0000 (19:00 -0500)]
Fix up last change.
* lisp/emacs-lisp/bytecomp.el (byte-compile-output-docform): Fix up use of
print-number-table.
* src/print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
(print_preprocess): Fix handling of uninterned symbols in last change.

13 years ago* src/print.c (print, print_preprocess, print_object): Use a hash table
Stefan Monnier [Wed, 22 Dec 2010 21:25:46 +0000 (16:25 -0500)]
* src/print.c (print, print_preprocess, print_object): Use a hash table
rather than a linear table for Vprint_number_table.

13 years agoAdd Obsolete-since: header to pgg*.el.
Daiki Ueno [Wed, 22 Dec 2010 09:23:58 +0000 (18:23 +0900)]
Add Obsolete-since: header to pgg*.el.

13 years agoFix the log entry for reverting of gnus-util.el.
Katsumi Yamaoka [Wed, 22 Dec 2010 07:04:25 +0000 (07:04 +0000)]
Fix the log entry for reverting of gnus-util.el.

13 years agoResection the Killing chapter in the Emacs manual.
Chong Yidong [Tue, 21 Dec 2010 07:54:27 +0000 (15:54 +0800)]
Resection the Killing chapter in the Emacs manual.

* killing.texi: Resection the Info version to conform to the
printed manual, to avoid making sections on Accumulating Text, CUA
and Rectangles into full chapters.

13 years agoFix 2010-04-19 merge error in doc/emacs/maintaining.texi (Bug#7674).
Chong Yidong [Tue, 21 Dec 2010 07:10:31 +0000 (15:10 +0800)]
Fix 2010-04-19 merge error in doc/emacs/maintaining.texi (Bug#7674).

13 years ago* help-fns.el (find-lisp-object-file-name): Locate .emacs from .emacs.elc (Bug#7530).
Chong Yidong [Tue, 21 Dec 2010 06:45:11 +0000 (14:45 +0800)]
* help-fns.el (find-lisp-object-file-name): Locate .emacs from .emacs.elc (Bug#7530).

13 years agoRevert bogus 2010-10-24 change to widget-image-find.
Chong Yidong [Tue, 21 Dec 2010 02:36:48 +0000 (10:36 +0800)]
Revert bogus 2010-10-24 change to widget-image-find.

* lisp/wid-edit.el (widget-image-find): Remove bogus :ascent spec from
image spec (Bug#7480).

13 years agoMark PGG obsolete.
Daiki Ueno [Tue, 21 Dec 2010 02:30:36 +0000 (11:30 +0900)]
Mark PGG obsolete.

* obsolete/pgg-parse.el, obsolete/pgg-pgp5.el, obsolete/pgg-pgp.el,
* obsolete/pgg-gpg.el, obsolete/pgg-def.el, obsolete/pgg.el: Move
from lisp/.

* gnus/mml1991.el (pgg-sign-region, pgg-encrypt-region):
* gnus/gnus-art.el (pgg-snarf-keys-region): Autoload since PGG is now
obsolete in Emacs.

13 years agoRevert "gnus-util: rewrite gnus-rescale-image".
Julien Danjou [Mon, 20 Dec 2010 22:12:30 +0000 (22:12 +0000)]
Revert "gnus-util: rewrite gnus-rescale-image".

13 years ago* dnd.el (dnd-get-local-file-name): Unhex of file name shall
Jan Djärv [Mon, 20 Dec 2010 20:11:01 +0000 (21:11 +0100)]
* dnd.el (dnd-get-local-file-name): Unhex of file name shall
 always be performed (Bug#7680).

13 years agoBind "Copy" menu item to kill-ring-save, obsoleting menu-bar-kill-ring-save.
Chong Yidong [Mon, 20 Dec 2010 14:44:28 +0000 (22:44 +0800)]
Bind "Copy" menu item to kill-ring-save, obsoleting menu-bar-kill-ring-save.

* menu-bar.el (menu-bar-kill-ring-save): Make obsolete.
(menu-bar-edit-menu): Bind "Copy" to kill-ring-save.  Don't use
mouse-region-match.

13 years ago* help-fns.el (describe-variable): Fix 2010-12-17 change (Bug#7511).
Leo Liu [Mon, 20 Dec 2010 11:31:15 +0000 (19:31 +0800)]
* help-fns.el (describe-variable): Fix 2010-12-17 change (Bug#7511).

13 years ago* src/frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
Chong Yidong [Mon, 20 Dec 2010 11:11:30 +0000 (19:11 +0800)]
* src/frame.c (focus_follows_mouse): Default to 0 (Bug#7269).

13 years agoMove color.el out of the gnus/ tree.
Chong Yidong [Mon, 20 Dec 2010 03:18:56 +0000 (11:18 +0800)]
Move color.el out of the gnus/ tree.

13 years ago* lisp/isearch.el (isearch-lazy-highlight-error): New variable.
Juri Linkov [Mon, 20 Dec 2010 01:18:15 +0000 (01:18 +0000)]
* lisp/isearch.el (isearch-lazy-highlight-error): New variable.
(isearch-lazy-highlight-new-loop): Compare `isearch-error' and
`isearch-lazy-highlight-error'.  Set `isearch-lazy-highlight-error'
to the current value of `isearch-error' (Bug#7468).

13 years agoFix 2010-11-22 change to diff.el.
Chong Yidong [Mon, 20 Dec 2010 00:20:25 +0000 (08:20 +0800)]
Fix 2010-11-22 change to diff.el.

* vc/diff.el (diff-better-file-name): Function deleted.
abbreviating file names causes problems with shell-quote-argument.
(diff-no-select): Just use expand-file-name.

13 years agoImplement tool-bar separators for non-GTK tool-bars.
Chong Yidong [Mon, 20 Dec 2010 00:17:26 +0000 (08:17 +0800)]
Implement tool-bar separators for non-GTK tool-bars.

* lisp/tool-bar.el (tool-bar--image-expression): New function.
(tool-bar-local-item, tool-bar--image-exp): Use it.
(tool-bar-setup): Initialize tool-bar-separator-image-expression.
Use :enable instead of :visible to avoid changing the tool-bar
configuration unnecessarily.

* src/keyboard.c (Vtool_bar_separator_image_expression): New variable.
(parse_tool_bar_item): Use it to obtain image separators for
displays not using native tool-bar separators.

* src/xdisp.c (build_desired_tool_bar_string): Don't handle separators
specially, since this is now done in parse_tool_bar_item.

* lisp/info.el (info-tool-bar-map): Add separators.

13 years agoMinor clean up to silence some gcc warnings.
Stefan Monnier [Sun, 19 Dec 2010 05:43:42 +0000 (00:43 -0500)]
Minor clean up to silence some gcc warnings.
* src/window.c (Fset_window_buffer):
* src/xterm.c (x_set_frame_alpha): Restructure code to silence
compiler warning.
(handle_one_xevent): Remove unused var `p'.
(do_ewmh_fullscreen): Remove unused var `lval'.
(xembed_set_info): Remove unused var `atom'.
* src/textprop.c (Fremove_list_of_text_properties): Add braces to silence
compiler warning.
* src/fontset.c (fontset_id_valid_p, dump_fontset):
* src/ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
* src/eval.c (Feval, Ffuncall): Avoid unneeded gotos.
* src/dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
label only when it's used.
* src/image.c (x_create_bitmap_from_xpm_data):
* src/dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
its callers.
* src/coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
`consumed_chars'.
(DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
(decode_coding_emacs_mule): Remove unused label `retry'.
(detect_eol): Add parens to silence compiler warning.
* src/alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
it's used to silence the compiler.
(make_number): Modernize k&r declaration.
(mark_char_table): Add parens to silence compiler warning.

13 years agoMinor doc fix for manual; bug#7674
Glenn Morris [Sat, 18 Dec 2010 21:28:51 +0000 (13:28 -0800)]
Minor doc fix for manual; bug#7674

* doc/emacs/maintaining.texi: Move inclusion of emerge after EDE, so
that it matches its position in the menu.

13 years agoAdd missing ChangeLog entry for 2010-12-16T23:30:57Z!ken.manheimer@gmail.com.
Glenn Morris [Sat, 18 Dec 2010 20:39:05 +0000 (12:39 -0800)]
Add missing ChangeLog entry for 2010-12-16T23:30:57Z!ken.manheimer@gmail.com.

13 years ago* doc/lispref/keymaps.texi (Simple Menu Items, Extended Menu Items):
Stefan Monnier [Sat, 18 Dec 2010 16:28:15 +0000 (11:28 -0500)]
* doc/lispref/keymaps.texi (Simple Menu Items, Extended Menu Items):
Remove mention of the key-binding-data cache since we don't use it
any more.
* doc/lispref/modes.texi (Derived Modes): Mention prog-mode.

Fixes: debbugs:7542

13 years agoFallout from fixing bug #7587.
Eli Zaretskii [Sat, 18 Dec 2010 08:53:28 +0000 (10:53 +0200)]
Fallout from fixing bug #7587.

 doc/lispref/modes.texi (Emulating Mode Line): Update documentation of
 format-mode-line according to changes that fixed bug #7587.

 etc/NEWS: Mention the incompatible change in format-mode-line wrt its
 FACE argument.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Fri, 17 Dec 2010 22:45:16 +0000 (22:45 +0000)]
Merge changes made in Gnus trunk.

nnir.el (nnir-get-active): Ignore nnir-ignored-newsgroups if null.
gnus-sum.el (gnus-summary-refer-thread): Simplify code. Restore gnus-use-agent.
 (gnus-get-newsgroup-headers): Avoid unwanted spaces at eol.
gravatar.el (gravatar-retrieve-synchronously): New function.
 (gravatar-get-data): Make more robust.
gnus-util.el (gnus-rescale-image): Allow to resize images even if they are from file. Can also scale up.
nnimap.el (nnimap-retrieve-headers): Remove CRLF from the headers.
nnir.el (nnir-mode): Make sure 'gnus-registry-install is bound.
gnus-sum.el (gnus-get-newsgroup-headers): Revert the last change here, since it's up to the backends to do CRLF removal if their protocol has it.
gnus-group.el (gnus-group-delete-articles): New command.

13 years agoFix change that fixed bug #7587.
Eli Zaretskii [Fri, 17 Dec 2010 15:38:37 +0000 (17:38 +0200)]
Fix change that fixed bug #7587.

 xdisp.c (Fformat_mode_line): Fix last change.

13 years ago* loadup.el: Use version numbers in Cygwin build.
Ken Brown [Fri, 17 Dec 2010 15:14:57 +0000 (10:14 -0500)]
* loadup.el: Use version numbers in Cygwin build.

13 years ago* lisp/help-fns.el (describe-variable): Don't emit trailing whitespace (Bug#7511).
Chong Yidong [Fri, 17 Dec 2010 11:38:22 +0000 (19:38 +0800)]
* lisp/help-fns.el (describe-variable): Don't emit trailing whitespace (Bug#7511).

13 years ago* lisp/mail/binhex.el: Improve commentary (Bug#7482).
Chong Yidong [Fri, 17 Dec 2010 11:16:10 +0000 (19:16 +0800)]
* lisp/mail/binhex.el: Improve commentary (Bug#7482).

13 years agoMinor fix for eshell-previous-matching-input (Bug#7585).
Leo Liu [Fri, 17 Dec 2010 11:04:40 +0000 (19:04 +0800)]
Minor fix for eshell-previous-matching-input (Bug#7585).

* lisp/eshell/em-hist.el (eshell-previous-matching-input): Signal error
if point is not behind eshell-last-output-end (Bug#7585).

13 years agoAsk for confirmation in ido-file-internal (Bug#1238).
Ryan Twitchell [Fri, 17 Dec 2010 10:56:03 +0000 (18:56 +0800)]
Ask for confirmation in ido-file-internal (Bug#1238).

* ido.el (ido-file-internal): Ask for confirmation before
overwriting an existing file (Bug#1238).

13 years agoSupport for menu separators in the GTK tool-bar.
Chong Yidong [Fri, 17 Dec 2010 04:04:06 +0000 (12:04 +0800)]
Support for menu separators in the GTK tool-bar.

* src/gtkutil.c (XG_BIN_CHILD): New macro.
(xg_get_menu_item_label, xg_update_menubar)
(xg_update_menu_item, xg_tool_bar_menu_proxy)
(xg_show_toolbar_item, update_frame_tool_bar): Use it.
(separator_names, xg_separator_p): Move to keyboard.c.
(create_menus, xg_update_submenu, update_frame_tool_bar): Use
menu_separator_name_p.

* src/keyboard.c (parse_tool_bar_item): Allow menu separators in
tool-bar maps.
(menu_separator_name_p): New function, from gtkutil.c.
(separator_names): Move from gtkutil.c.

* src/keyboard.h (menu_separator_name_p): Add prototype.

* src/nsmenu.m (name_is_separator): Function deleted.
(addItemWithWidgetValue): Use menu_separator_name_p.

* src/w32menu.c (name_is_separator): Function deleted.
(add_menu_item): Use menu_separator_name_p.

13 years agoMention epa-file-select-keys in epa.texi.
Daiki Ueno [Fri, 17 Dec 2010 01:43:03 +0000 (10:43 +0900)]
Mention epa-file-select-keys in epa.texi.

13 years agoSynopsis: Migrate allout encryption provisions from pgg library, which is
Ken Manheimer [Thu, 16 Dec 2010 23:30:57 +0000 (18:30 -0500)]
Synopsis: Migrate allout encryption provisions from pgg library, which is
obsolete, to epg library, which replaces pgg.

Due to the underlying GnuPG V2 restrictions on external handling of
passphrases (or epg's restrictions when working with GnuPG v2), we are
dropping allout's symmetric encryption passphrase hinting and verification.
This has the advantage that no emacs code has access to the passphrase,
leaving all passphrase handling in GnuPG, which is much more secure.  This,
together with the reduction in allout code complexity and logistical
complications the user would have in arranging to use GnuPG v1, requires
dropping these features.

Keypair encryption gains features, with adoption of respect for epa-file's
'epa-file-encrypt-to'.  This means that allout outlines can be associated
with recipients, and encryptions by default will be targeted to those
recipients.

The default encryption mode (whether to epa-file-encrypt-to recipients, if
any, or symmetric mode) is overridden by providing a universal argument
greater than 1 to the outline entry encryption command,
'allout-toggle-current-subtree-encryption'.  The user is then prompted to
select keypair identities from their list of known GnuPG keypairs.  If they
don't select any, then symmetric encryption is done.  Otherwise, the
selected keypair identities are targeted.  If the universal argument is
greater than 4 then the selected recipients (or none, if none were
selected) are associated with the outline using a file local variable, as
default recipients for subsequent encryptions.

This is a big merge from a private branch.

Code details:

(allout-toggle-current-subtree-encryption,
allout-toggle-subtree-encryption): Adjust docstrings to reflect defaulting
policy and other changes.
Change fetch-pass to keymode-cue, for simpler universal argument
interpretation.
(allout-toggle-subtree-encryption):  Adjust docstring to describe
changed encryption provisions.
Change fetch-pass to keymode-cue, for simpler universal argument
interpretation.
Remove provisions for handling key type and identity - they'll all be
within allout-encrypt-string or epg/epg or even contained all the way in
gpg.
(allout-encrypt-string): Include keymode-cue, for optionally prompting for
keypair recipients (universal argument > 1) and, in addition, associating the
specified recipients with the outline (universal argument > 4) using a file
local variable setting for 'epa-file-encrypt-to'.
Require epa, for recipients handling.
Change how regexp filtering elements are named.
Describe the problem with caching of incorrect symmetric-decryption keys.
Use the epa-passphrase-callback-function, in case the user is using GnuPG
v1.
Support saving of the selected keypair recipients when invoked with a
keymode-cue > 4.
Remove obsolete arguments 'fetch-pass', 'target-cache-id', 'retried'.
Require 'epa.
Establish epg-context with armoring and default epg-protocol.
Remove all passphrase cache, verification, and hinting code.
(allout-passphrase-verifier-handling, allout-passphrase-hint-handling):
No longer used, delete.
(allout-mode): Adjust docstring to describe changed encryption provisions.
Describe the problem with caching of incorrect symmetric-decryption keys.
(allout-obtain-passphrase, allout-epg-passphrase-callback-function,
allout-make-passphrase-state, allout-passphrase-state-passphrase,
allout-encrypted-key-info, allout-update-passphrase-mnemonic-aids,
allout-get-encryption-passphrase-verifier, allout-verify-passphrase):
Obsolete, remove.

13 years agonnimap.el (nnimap-wait-for-response): Fix the end-point calculation to really conside...
Lars Magne Ingebrigtsen [Thu, 16 Dec 2010 23:18:57 +0000 (23:18 +0000)]
nnimap.el (nnimap-wait-for-response): Fix the end-point calculation to really consider the last line.

13 years ago(allout-mode), (allout-encrypt-string): Describe the problem with caching
Ken Manheimer [Thu, 16 Dec 2010 22:43:45 +0000 (17:43 -0500)]
(allout-mode), (allout-encrypt-string): Describe the problem with caching
of incorrect symmetric-decryption keys.

13 years agolast pgg adjustment before migrating to epg.
Ken Manheimer [Thu, 16 Dec 2010 22:33:13 +0000 (17:33 -0500)]
last pgg adjustment before migrating to epg.

(allout-encrypted-key-info): replace pgg-gpg-symmetric-key-p with explicit
examination of the parsed armoring structure.  pgg-gpg-symmetric-key-p
seems to have drifted, not recognizing parsed symmetric keys as being
symmetric.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Thu, 16 Dec 2010 22:22:28 +0000 (22:22 +0000)]
Merge changes made in Gnus trunk.

nnimap.el (nnimap-wait-for-response): Always look (at least) at the previous line.
nnimap.el (nnimap-quirk): New function.
 (nnimap-retrieve-group-data-early): Use it.
 (nnimap-quirks): New alist.
gnus.texi (Foreign Groups): Added clarification of foreign groups.
gnus-sum.el (gnus-summary-push-marks-to-backend): Fix the logic for copying read-ness to the backends.
gnus-group.el (gnus-group-kill-group): Notify the backend that the group has been killed.
 (gnus-group-yank-group): Ditto.
gnus-start.el (gnus-subscribe-newsgroup): Notify the backend.
nnir.el: Improve customizations.
gnus.texi (Archived Messages): Removed outdated comment and text.
nnfolder.el (nnfolder-save-all-buffers): Refactor out into its own function.
 (nnfolder-request-expire-articles): Save all the buffers after doing expiry.
nnmail.el (nnmail-expiry-target-group): Revert the "all articles are the last article", since that led to serious performance regressions when expiring nnml groups.
gnus-html.el (gnus-html-schedule-image-fetching): Make sure the HTML fetching stops when Gnus exits.
gnus-srvr.el: Avoid passing nil regexp argument to delete-matching-lines.
auth-source.el (auth-source-gpg-encrypt-to): New variable to set the list of recipient keys, or use symmetric encryption if not a list.
 (auth-source-create): Use it to make `epa-file-encrypt-to' local for an EPA override, replacing the call to `netrc-store-data'.

13 years agoHandle invisible cursor (bg same as cursor color) for Nextstep.
Jan Djärv [Thu, 16 Dec 2010 19:37:13 +0000 (20:37 +0100)]
Handle invisible cursor (bg same as cursor color) for Nextstep.

* nsterm.m (ns_draw_window_cursor): If the cursor color is the
same as the background, use the face forground as cursor.

13 years agorespect epa-file-encrypt-to, defaulting to it when encrypting, if set, and
Ken Manheimer [Thu, 16 Dec 2010 07:39:17 +0000 (02:39 -0500)]
respect epa-file-encrypt-to, defaulting to it when encrypting, if set, and
adjusting the value (as a file local variable and an active buffer setting)
with the result of epa-select-keys.

note the problem with caching of incorrect symmetric decryption keys.

(allout-toggle-current-subtree-encryption),
(allout-toggle-subtree-encryption): Adjust docstrings to reflect defaulting
policy change.

(allout-encrypt-string): keymod-cue rather than keypair-mode, which is
interpreted here.  Use the epa-passphrase-callback-function, in case the
user is using GnuPG v1.  Support saving of the selected keypair recipients
when invoked with a keymode-cue > 4.

13 years agourl-cookie.el: Require 'cl when compiling
Miles Bader [Thu, 16 Dec 2010 04:14:48 +0000 (13:14 +0900)]
url-cookie.el: Require 'cl when compiling

13 years agoExtend epa-file-select-keys to allow users to inhibit key selection.
Daiki Ueno [Thu, 16 Dec 2010 02:35:56 +0000 (11:35 +0900)]
Extend epa-file-select-keys to allow users to inhibit key selection.

* epa-file.el (epa-file-select-keys): Accept 'silent to inhibit
key selection prompt; make 'silent as default (Bug#7487).

13 years agoetc/NEWS: Document eshell-directory-name change.
Chong Yidong [Thu, 16 Dec 2010 02:28:33 +0000 (10:28 +0800)]
etc/NEWS: Document eshell-directory-name change.

13 years ago* eshell/eshell.el (eshell-directory-name): Use locate-user-emacs-file (Bug#7578).
Leo Liu [Thu, 16 Dec 2010 02:26:39 +0000 (10:26 +0800)]
* eshell/eshell.el (eshell-directory-name): Use locate-user-emacs-file (Bug#7578).

13 years ago* xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic faces (Bug#7587).
Chong Yidong [Thu, 16 Dec 2010 02:13:28 +0000 (10:13 +0800)]
* xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic faces (Bug#7587).

13 years agoDoc fix for just-one-space change. Document it in NEWS.
Chong Yidong [Thu, 16 Dec 2010 01:20:46 +0000 (09:20 +0800)]
Doc fix for just-one-space change.  Document it in NEWS.

13 years agoUse make-temp-file in rst.el (Bug#7646).
Chong Yidong [Thu, 16 Dec 2010 01:11:21 +0000 (09:11 +0800)]
Use make-temp-file in rst.el (Bug#7646).

* textmodes/rst.el (rst-compile-pdf-preview)
(rst-compile-slides-preview): Use make-temp-file.

13 years agoshr.el (shr-insert): Set shr-start after deleting trailing space; don't delete it...
Katsumi Yamaoka [Thu, 16 Dec 2010 00:55:04 +0000 (00:55 +0000)]
shr.el (shr-insert): Set shr-start after deleting trailing space; don't delete it within indentation.

13 years agognus-agent.el: Indent.
Gnus developers [Wed, 15 Dec 2010 22:24:36 +0000 (22:24 +0000)]
gnus-agent.el: Indent.
gnus.texi: Fix a couple nnir -> @code{nnir} things.
nnimap.el (nnimap-retrieve-group-data-early): Fix the syntax of the QRESYNC command by deleting a superfluous space which broke Cyrus servers.  This change will break other servers that are buggy the other way around.
gnus.texi (The hyrex Engine): Say that this engine as obsolete.

13 years agoRemove code and comments related to lib-src/fns-*.el; long removed.
Glenn Morris [Wed, 15 Dec 2010 08:16:53 +0000 (00:16 -0800)]
Remove code and comments related to lib-src/fns-*.el; long removed.

* Makefile.in (install-arch-dep, uninstall): Remove code relating to the
long absent lib-src/fns-*.el.

* lisp/loadup.el (symbol-file-load-history-loaded): Remove; unused.
Remove related, old, commented-out code.

* lisp/subr.el (symbol-file-load-history-loaded)
  (load-symbol-file-load-history): Remove old, commented-out code.

13 years agoNew command rectangle-number-lines (Bug#4382).
Jari Aalto [Wed, 15 Dec 2010 02:56:22 +0000 (10:56 +0800)]
New command rectangle-number-lines (Bug#4382).

* rect.el (rectange--default-line-number-format)
(rectangle-number-line-callback): New functions.
(rectangle-number-lines): New command, bound to C-x r N.

13 years agoDelete long unused functions and variables in rect.el.
Chong Yidong [Wed, 15 Dec 2010 02:05:38 +0000 (10:05 +0800)]
Delete long unused functions and variables in rect.el.
lisp/rect.el (operate-on-rectangle-lines, string-rectangle-string):
Delete unused variables.
(move-to-column-force): Remove function obsolete since 21.2.

13 years agoFix error in last commit.
Chong Yidong [Wed, 15 Dec 2010 01:33:11 +0000 (09:33 +0800)]
Fix error in last commit.

13 years ago* emulation/edt-mapper.el: Override mapping of function keys
Kevin Gallagher [Wed, 15 Dec 2010 01:26:56 +0000 (09:26 +0800)]
* emulation/edt-mapper.el: Override mapping of function keys
so that the later call to read-key-sequence works.

13 years agospam.el: Reindent and fix long lines.
Teodor Zlatanov [Tue, 14 Dec 2010 23:08:31 +0000 (23:08 +0000)]
spam.el: Reindent and fix long lines.
 (spam-copy-or-move-routine): Exclude invalid move destinations.

13 years agognus.texi (The swish++ Engine): Add customizable parameters descriptions.
Andrew Cohen [Tue, 14 Dec 2010 22:11:38 +0000 (22:11 +0000)]
gnus.texi (The swish++ Engine): Add customizable parameters descriptions.
 (The swish-e Engine): Ditto.

13 years ago* NEWS: Mention new Tramp method "ksu".
Michael Albinus [Tue, 14 Dec 2010 20:42:57 +0000 (21:42 +0100)]
* NEWS: Mention new Tramp method "ksu".

13 years ago* tramp.texi (Inline methods): Add "ksu" method.
Michael Albinus [Tue, 14 Dec 2010 20:37:49 +0000 (21:37 +0100)]
* tramp.texi (Inline methods): Add "ksu" method.
(Remote processes): Add example with remote `default-directory'.

13 years ago* net/tramp.el (tramp-temp-buffer-file-name): Make it permanent-local.
Michael Albinus [Tue, 14 Dec 2010 20:33:33 +0000 (21:33 +0100)]
* net/tramp.el (tramp-temp-buffer-file-name): Make it permanent-local.
(tramp-handle-insert-file-contents): Do not set permanent-local
property.

* net/tramp-cache.el (tramp-persistency-file-name): Use
`locate-user-emacs-file' if fboundp.

* net/tramp-sh.el (tramp-methods): Add "ksu".
(tramp-default-user-alist): Add "ksu".  Use `regexp-opt' for
method list.

13 years agonnir.el (nnir-mode): Don't install registry hooks if user hasn't installed the registry.
Andrew Cohen [Tue, 14 Dec 2010 12:52:30 +0000 (12:52 +0000)]
nnir.el (nnir-mode): Don't install registry hooks if user hasn't installed the registry.

13 years agoTidy up some js.el requires.
Glenn Morris [Tue, 14 Dec 2010 08:06:18 +0000 (00:06 -0800)]
Tidy up some js.el requires.
* lisp/progmodes/js.el: Doc't require font-lock, etags, or easymenu.
(find-tag-marker-ring): Declare.
(js-find-symbol): Require etags.

13 years agoMisc sendmail.el.
Glenn Morris [Tue, 14 Dec 2010 05:01:08 +0000 (21:01 -0800)]
Misc sendmail.el.

* lisp/mail/sendmail.el: Don't require rmail or mailalias when compiling.
Require mail-utils.
(mail-alias-file): Don't autoload.  Doc fix.
(mail-bury-selects-summary, mail-send-nonascii): Don't autoload.
(mail-mailer-swallows-blank-line): Default to nil.  Doc fix.
Mark as obsolete, and risky.
(mail-setup): Simplify.

13 years agoChangeLog fix.
Glenn Morris [Tue, 14 Dec 2010 04:46:07 +0000 (20:46 -0800)]
ChangeLog fix.

13 years agoMake build-mail-aliases an interactive command.
Glenn Morris [Tue, 14 Dec 2010 04:42:59 +0000 (20:42 -0800)]
Make build-mail-aliases an interactive command.

* lisp/mail/mailalias.el (build-mail-aliases): Make it interactive.
* lisp/mail/sendmail.el (build-mail-aliases): Update autoload.

* doc/misc/faq.texi (Expanding aliases when sending mail):
Now build-mail-aliases is interactive.

13 years agoRemove some dired.el autoload cookies on defcustoms.
Glenn Morris [Tue, 14 Dec 2010 04:35:33 +0000 (20:35 -0800)]
Remove some dired.el autoload cookies on defcustoms.

* lisp/dired.el (dired-trivial-filenames, dired-chown-program)
(dired-auto-revert-buffer): Remove autoload cookies.
* lisp/mail/sendmail.el (mail-recover-1): Require 'dired.

13 years agoMake some dired defvars into defcustoms.
Glenn Morris [Tue, 14 Dec 2010 04:32:14 +0000 (20:32 -0800)]
Make some dired defvars into defcustoms.

* lisp/dired.el (dired-subdir-switches, dired-chown-program)
(dired-use-ls-dired, dired-chmod-program, dired-touch-program):
Make into defcustoms.
(dired-chown-program): Simplify initialization.

13 years ago* lisp/mail/mail-utils.el: No need to require lisp-mode, it's in loadup.
Glenn Morris [Tue, 14 Dec 2010 04:26:01 +0000 (20:26 -0800)]
* lisp/mail/mail-utils.el: No need to require lisp-mode, it's in loadup.

13 years ago* doc/emacs/trouble.texi (Checklist): Mention not replying via news either.
Glenn Morris [Tue, 14 Dec 2010 04:22:49 +0000 (20:22 -0800)]
* doc/emacs/trouble.texi (Checklist): Mention not replying via news either.

13 years agoMisc url-cookie tidy-up.
Glenn Morris [Tue, 14 Dec 2010 04:18:22 +0000 (20:18 -0800)]
Misc url-cookie tidy-up.

* lisp/url/url-cookie.el: Don't require cl when compiling.
(url-cookie-clean-up, url-cookie-generate-header-lines): Use dolist.
(url-cookie-parse-file, url-cookie-store, url-cookie-retrieve)
(url-cookie-handle-set-cookie): Simplify.

13 years agognus.texi (Filtering New Groups): Mention.
Andrew Cohen [Mon, 13 Dec 2010 23:54:31 +0000 (23:54 +0000)]
gnus.texi (Filtering New Groups): Mention.

13 years agonnir.el (nnir-run-gmane): Better check for gmane groups: error out if groupname doesn...
Andrew Cohen [Mon, 13 Dec 2010 23:31:59 +0000 (23:31 +0000)]
nnir.el (nnir-run-gmane): Better check for gmane groups: error out if groupname doesn't contain "gmane".

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 13 Dec 2010 22:29:12 +0000 (22:29 +0000)]
Merge changes made in Gnus trunk.

nnir.el (nnir-run-imap): Return article list in UID order.
gnus-start.el (gnus-auto-subscribed-groups): Add nnimap to the list of automatically subscribed groups.
 (gnus-auto-subscribed-categories): New variable.
 (gnus-matches-options-n): Use it.
 (gnus-default-subscribed-newsgroups): Remove unused variable.
 (gnus-start-draft-setup): Message a bit less.
gnus-agent.el (gnus-agentize): Don't create the queue group automatically on startup.  It'll be created later, if needed.
gnus-start.el (gnus-1): Clarify comment.
 (gnus-matches-options-n): Fix typo in last change.
 (gnus-1): Don't create the nndrafts group twice.
 (gnus-setup-news): There's no need to read the active file here, since that's done again later on a per-backend basis.
 (gnus-start-draft-setup): Make sure that the new group is started out empty.
netrc.el (netrc-point-at-eol): Remove the unused netrc-point-at-old and netrc-bound-and-true-p bindings.
 (netrc-parse): Cache the netrc contents.

13 years ago* net/gnutls.el (gnutls-negotiate): Fix setting of default trustfiles.
Romain Francoise [Mon, 13 Dec 2010 22:20:32 +0000 (23:20 +0100)]
* net/gnutls.el (gnutls-negotiate): Fix setting of default trustfiles.

13 years agoChangeLog fixes.
Glenn Morris [Mon, 13 Dec 2010 17:27:56 +0000 (09:27 -0800)]
ChangeLog fixes.
Includes removing changes for files not present.

13 years agoChangeLog merge fix.
Glenn Morris [Mon, 13 Dec 2010 17:26:01 +0000 (09:26 -0800)]
ChangeLog merge fix.

13 years agoChangeLog whitespace fix.
Glenn Morris [Mon, 13 Dec 2010 17:19:58 +0000 (09:19 -0800)]
ChangeLog whitespace fix.

13 years agoChangeLog merge fix.
Glenn Morris [Mon, 13 Dec 2010 17:18:55 +0000 (09:18 -0800)]
ChangeLog merge fix.

13 years agoFix bug #7617 with documentation of expand-file-name.
Eli Zaretskii [Mon, 13 Dec 2010 16:13:29 +0000 (18:13 +0200)]
Fix bug #7617 with documentation of expand-file-name.

 fileio.c (Fexpand_file_name): One more doc fix.

13 years agoMerge from emacs-23
Stefan Monnier [Mon, 13 Dec 2010 15:27:36 +0000 (10:27 -0500)]
Merge from emacs-23

13 years agoFix bug #7589 with EOL format in smtpmail's queued mail.
Eli Zaretskii [Mon, 13 Dec 2010 15:12:01 +0000 (17:12 +0200)]
Fix bug #7589 with EOL format in smtpmail's queued mail.

 mail/smtpmail.el (smtpmail-send-it): Write queued mail body with Unix EOLs.

13 years agoproto-stream.el (proto-stream-open-network-only): Fix the calling convention of the...
Lars Magne Ingebrigtsen [Mon, 13 Dec 2010 04:22:39 +0000 (04:22 +0000)]
proto-stream.el (proto-stream-open-network-only): Fix the calling convention of the network-only option.
gnus-sum.el (gnus-summary-enter-digest-group): Mention gnus-auto-select-on-ephemeral-exit.

13 years agosubr.el (posn-col-row): Evaluate header-line-format in the context of
Eli Zaretskii [Sun, 12 Dec 2010 20:45:57 +0000 (22:45 +0200)]
subr.el (posn-col-row): Evaluate header-line-format in the context of
 the POSITION window's buffer.

13 years agoDocument that expand-file-name collapses multiple slashes. (Bug#7617)
Eli Zaretskii [Sun, 12 Dec 2010 20:37:54 +0000 (22:37 +0200)]
Document that expand-file-name collapses multiple slashes.  (Bug#7617)

 fileio.c (Fexpand_file_name): Doc fix.

13 years ago* lisp/bookmark.el (bookmark-name-from-full-record): Rename back to
Karl Fogel [Sun, 12 Dec 2010 16:53:24 +0000 (11:53 -0500)]
* lisp/bookmark.el (bookmark-name-from-full-record): Rename back to
  this original name from `bookmark-name-from-record' reverting part of
  2010-12-08T08:09:27Z!kfogel@red-bean.com / kfogel@red-bean.com-20101208080927-5j9jqnb2xvcw4ogm.
  As Drew Adams pointed out, there was no reason to cause churn for
  third-party callers.

13 years ago(c-forward-type): Before scanning a template arglist, check that the
Alan Mackenzie [Sun, 12 Dec 2010 12:24:56 +0000 (12:24 +0000)]
(c-forward-type): Before scanning a template arglist, check that the
current language supports this.

13 years agoFallout from bug #7563.
Eli Zaretskii [Sat, 11 Dec 2010 18:45:53 +0000 (20:45 +0200)]
Fallout from bug #7563.

 processes.texi (Shell Arguments):
 strings.texi (Creating Strings): Don't mention "shell commands";
 make it explicit that `split-string-and-unquote' and
 `combine-and-quote-strings' are mainly for working with arguments
 to call-process and start-process.