diff options
| author | Glenn Morris | 2009-02-20 04:35:00 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-20 04:35:00 +0000 |
| commit | 788c1fc9e13f5a0da6cdd32fb951a37a7efcf1d9 (patch) | |
| tree | 0327ee0bbea8a1b01f3c739f88f4a222d2da1239 /lisp | |
| parent | b8f5b0509367be2dd3ee28c760ade607c12a8677 (diff) | |
| download | emacs-788c1fc9e13f5a0da6cdd32fb951a37a7efcf1d9.tar.gz emacs-788c1fc9e13f5a0da6cdd32fb951a37a7efcf1d9.zip | |
(rmail-speedbar-buttons): Only add regular files.
(rmail-speedbar-find-file): Use rmail rather than find-file.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 24 |
2 files changed, 18 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8c5303410ca..03061fd1e16 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-02-20 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-speedbar-buttons): Only add regular files. | ||
| 4 | (rmail-speedbar-find-file): Use rmail rather than find-file. | ||
| 5 | |||
| 1 | 2009-02-20 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> | 6 | 2009-02-20 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> |
| 2 | 7 | ||
| 3 | * textmodes/bibtex.el (bibtex-autokey-titleword-ignore): Fix | 8 | * textmodes/bibtex.el (bibtex-autokey-titleword-ignore): Fix |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 935599f038d..a89fe8a2a68 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -3816,6 +3816,7 @@ browsing, and moving of messages.") | |||
| 3816 | (define-key rmail-speedbar-key-map "M" | 3816 | (define-key rmail-speedbar-key-map "M" |
| 3817 | 'rmail-speedbar-move-message-to-folder-on-line))) | 3817 | 'rmail-speedbar-move-message-to-folder-on-line))) |
| 3818 | 3818 | ||
| 3819 | ;; FIXME unused? | ||
| 3819 | (defvar rmail-speedbar-menu-items | 3820 | (defvar rmail-speedbar-menu-items |
| 3820 | '(["Read Folder" speedbar-edit-line t] | 3821 | '(["Read Folder" speedbar-edit-line t] |
| 3821 | ["Move message to folder" rmail-speedbar-move-message-to-folder-on-line | 3822 | ["Move message to folder" rmail-speedbar-move-message-to-folder-on-line |
| @@ -3857,12 +3858,12 @@ current message into that RMAIL folder." | |||
| 3857 | (df (directory-files (with-current-buffer buffer | 3858 | (df (directory-files (with-current-buffer buffer |
| 3858 | default-directory) | 3859 | default-directory) |
| 3859 | nil rmail-speedbar-match-folder-regexp))) | 3860 | nil rmail-speedbar-match-folder-regexp))) |
| 3860 | (while df | 3861 | (dolist (file df) |
| 3861 | (speedbar-insert-button "<M>" 'speedbar-button-face 'highlight | 3862 | (when (file-regular-p file) |
| 3862 | 'rmail-speedbar-move-message (car df)) | 3863 | (speedbar-insert-button "<M>" 'speedbar-button-face 'highlight |
| 3863 | (speedbar-insert-button (car df) 'speedbar-file-face 'highlight | 3864 | 'rmail-speedbar-move-message file) |
| 3864 | 'rmail-speedbar-find-file nil t) | 3865 | (speedbar-insert-button file 'speedbar-file-face 'highlight |
| 3865 | (setq df (cdr df))))))) | 3866 | 'rmail-speedbar-find-file nil t))))))) |
| 3866 | 3867 | ||
| 3867 | (defun rmail-speedbar-button (text token indent) | 3868 | (defun rmail-speedbar-button (text token indent) |
| 3868 | "Execute an rmail command specified by TEXT. | 3869 | "Execute an rmail command specified by TEXT. |
| @@ -3875,7 +3876,7 @@ The command used is TOKEN. INDENT is not used." | |||
| 3875 | TOKEN and INDENT are not used." | 3876 | TOKEN and INDENT are not used." |
| 3876 | (speedbar-with-attached-buffer | 3877 | (speedbar-with-attached-buffer |
| 3877 | (message "Loading in RMAIL file %s..." text) | 3878 | (message "Loading in RMAIL file %s..." text) |
| 3878 | (find-file text))) | 3879 | (rmail text))) |
| 3879 | 3880 | ||
| 3880 | (defun rmail-speedbar-move-message-to-folder-on-line () | 3881 | (defun rmail-speedbar-move-message-to-folder-on-line () |
| 3881 | "If the current line is a folder, move current message to it." | 3882 | "If the current line is a folder, move current message to it." |
| @@ -3887,6 +3888,7 @@ TOKEN and INDENT are not used." | |||
| 3887 | (forward-char -2) | 3888 | (forward-char -2) |
| 3888 | (speedbar-do-function-pointer))))) | 3889 | (speedbar-do-function-pointer))))) |
| 3889 | 3890 | ||
| 3891 | ;; FIXME loses the directory part. | ||
| 3890 | (defun rmail-speedbar-move-message (text token indent) | 3892 | (defun rmail-speedbar-move-message (text token indent) |
| 3891 | "From button TEXT, copy current message to the rmail file specified by TOKEN. | 3893 | "From button TEXT, copy current message to the rmail file specified by TOKEN. |
| 3892 | TEXT and INDENT are not used." | 3894 | TEXT and INDENT are not used." |
| @@ -3894,10 +3896,10 @@ TEXT and INDENT are not used." | |||
| 3894 | (message "Moving message to %s" token) | 3896 | (message "Moving message to %s" token) |
| 3895 | (rmail-output token))) | 3897 | (rmail-output token))) |
| 3896 | 3898 | ||
| 3897 | ; Functions for setting, getting and encoding the POP password. | 3899 | ;; Functions for setting, getting and encoding the POP password. |
| 3898 | ; The password is encoded to prevent it from being easily accessible | 3900 | ;; The password is encoded to prevent it from being easily accessible |
| 3899 | ; to "prying eyes." Obviously, this encoding isn't "real security," | 3901 | ;; to "prying eyes." Obviously, this encoding isn't "real security," |
| 3900 | ; nor is it meant to be. | 3902 | ;; nor is it meant to be. |
| 3901 | 3903 | ||
| 3902 | ;;;###autoload | 3904 | ;;;###autoload |
| 3903 | (defun rmail-set-remote-password (password) | 3905 | (defun rmail-set-remote-password (password) |