diff options
| author | Katsumi Yamaoka | 2013-05-16 23:29:10 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-05-16 23:29:10 +0000 |
| commit | c464dbc379fd84b0f05aaa1a0a6b261995daeb50 (patch) | |
| tree | c32228e6916c30468eb213f303c29847a36349fc | |
| parent | ebfe68e85acc390a7f1cebed731d362ef54ff001 (diff) | |
| download | emacs-c464dbc379fd84b0f05aaa1a0a6b261995daeb50.tar.gz emacs-c464dbc379fd84b0f05aaa1a0a6b261995daeb50.zip | |
lisp/gnus/message.el (message-expand-group): Decode group names
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 36 |
2 files changed, 27 insertions, 13 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 8793ea14f5a..00f43696130 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-05-16 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * message.el (message-expand-group): Decode group names. | ||
| 4 | |||
| 1 | 2013-05-16 Julien Danjou <julien@danjou.info> | 5 | 2013-05-16 Julien Danjou <julien@danjou.info> |
| 2 | 6 | ||
| 3 | * gnus-notifications.el (gnus-notifications-notify): Use photo-file as | 7 | * gnus-notifications.el (gnus-notifications-notify): Use photo-file as |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 501a2e6f832..2a1ad892c2e 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -7960,19 +7960,29 @@ those headers." | |||
| 7960 | 7960 | ||
| 7961 | (defun message-expand-group () | 7961 | (defun message-expand-group () |
| 7962 | "Expand the group name under point." | 7962 | "Expand the group name under point." |
| 7963 | (let* ((b (save-excursion | 7963 | (let ((b (save-excursion |
| 7964 | (save-restriction | 7964 | (save-restriction |
| 7965 | (narrow-to-region | 7965 | (narrow-to-region |
| 7966 | (save-excursion | 7966 | (save-excursion |
| 7967 | (beginning-of-line) | 7967 | (beginning-of-line) |
| 7968 | (skip-chars-forward "^:") | 7968 | (skip-chars-forward "^:") |
| 7969 | (1+ (point))) | 7969 | (1+ (point))) |
| 7970 | (point)) | 7970 | (point)) |
| 7971 | (skip-chars-backward "^, \t\n") (point)))) | 7971 | (skip-chars-backward "^, \t\n") (point)))) |
| 7972 | (completion-ignore-case t) | 7972 | (completion-ignore-case t) |
| 7973 | (e (progn (skip-chars-forward "^,\t\n ") (point))) | 7973 | (e (progn (skip-chars-forward "^,\t\n ") (point))) |
| 7974 | (hashtb (and (boundp 'gnus-active-hashtb) gnus-active-hashtb))) | 7974 | group collection) |
| 7975 | (message-completion-in-region e b hashtb))) | 7975 | (when (and (boundp 'gnus-active-hashtb) |
| 7976 | gnus-active-hashtb) | ||
| 7977 | (mapatoms | ||
| 7978 | (lambda (symbol) | ||
| 7979 | (setq group (symbol-name symbol)) | ||
| 7980 | (push (if (string-match "[^\000-\177]" group) | ||
| 7981 | (gnus-group-decoded-name group) | ||
| 7982 | group) | ||
| 7983 | collection)) | ||
| 7984 | gnus-active-hashtb)) | ||
| 7985 | (message-completion-in-region e b collection))) | ||
| 7976 | 7986 | ||
| 7977 | (defalias 'message-completion-in-region | 7987 | (defalias 'message-completion-in-region |
| 7978 | (if (fboundp 'completion-in-region) | 7988 | (if (fboundp 'completion-in-region) |