1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

Merge from mainline.

This commit is contained in:
Katsumi Yamaoka 2010-01-06 09:16:36 +00:00
parent 770d9a1f45
commit 8a9082249c
3 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2010-01-06 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-art.el (gnus-article-describe-bindings): Work for prefix keys.
* message.el (message-check-news-header-syntax): Protect against a
string that `rfc822-addresses' returns when parsing fails.
2010-01-06 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-util.el (gnus-invisible-p, gnus-next-char-property-change)

View file

@ -6477,10 +6477,17 @@ then we display only bindings that start with that prefix."
(let ((keymap (copy-keymap gnus-article-mode-map))
(map (copy-keymap gnus-article-send-map))
(sumkeys (where-is-internal 'gnus-article-read-summary-keys))
agent draft)
parent agent draft)
(define-key keymap "S" map)
(define-key map [t] nil)
(with-current-buffer gnus-article-current-summary
(set-keymap-parent
keymap
(if (setq parent (keymap-parent gnus-article-mode-map))
(prog1
(setq parent (copy-keymap parent))
(set-keymap-parent parent (current-local-map)))
(current-local-map)))
(set-keymap-parent map (key-binding "S"))
(let (key def gnus-pick-mode)
(while sumkeys

View file

@ -5077,7 +5077,8 @@ Otherwise, generate and save a value for `canlock-password' first."
"Denied posting -- the From looks strange: \"%s\"." from)
nil)
((let ((addresses (rfc822-addresses from)))
(while (and addresses
;; `rfc822-addresses' returns a string if parsing fails.
(while (and (consp addresses)
(not (eq (string-to-char (car addresses)) ?\()))
(setq addresses (cdr addresses)))
addresses)