diff options
| author | Glenn Morris | 2012-12-29 19:28:52 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-12-29 19:28:52 -0800 |
| commit | 8db39aebe862bf2384a13b69e309115d92524853 (patch) | |
| tree | 2368be983c28bcb806a535ab227a37f8e82d28fb | |
| parent | 2550c6e4048a35f6f40f76c5da2666209a10dce0 (diff) | |
| download | emacs-8db39aebe862bf2384a13b69e309115d92524853.tar.gz emacs-8db39aebe862bf2384a13b69e309115d92524853.zip | |
mairix.el fix for bug#13294
* lisp/net/mairix.el (rmail, rmail-summary-displayed, rmail-summary):
Remove unnecessary/buggy autoloads (missing interactive).
(rmail-summary-displayed, rmail-summary): Declare.
(mairix-rmail-display): Just require rmail.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/mairix.el | 10 |
2 files changed, 12 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5907f5ef7ec..84e0ec4a095 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-12-30 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * net/mairix.el (rmail, rmail-summary-displayed, rmail-summary): | ||
| 4 | Remove unnecessary/buggy autoloads (missing interactive). (Bug#13294) | ||
| 5 | (rmail-summary-displayed, rmail-summary): Declare. | ||
| 6 | (mairix-rmail-display): Just require rmail. | ||
| 7 | |||
| 1 | 2012-12-29 Chong Yidong <cyd@gnu.org> | 8 | 2012-12-29 Chong Yidong <cyd@gnu.org> |
| 2 | 9 | ||
| 3 | * emacs-lisp/package.el (package-untar-buffer): Improve integrity | 10 | * emacs-lisp/package.el (package-untar-buffer): Improve integrity |
diff --git a/lisp/net/mairix.el b/lisp/net/mairix.el index f85983e6e9f..50cc2ed3dc3 100644 --- a/lisp/net/mairix.el +++ b/lisp/net/mairix.el | |||
| @@ -222,14 +222,12 @@ Currently there are 'threads and 'flags.") | |||
| 222 | 222 | ||
| 223 | ;;; RMail | 223 | ;;; RMail |
| 224 | 224 | ||
| 225 | ;; Display function: | 225 | (declare-function rmail-summary-displayed "rmail" ()) |
| 226 | (autoload 'rmail "rmail") | 226 | (declare-function rmail-summary "rmailsum" ()) ; autoloaded in rmail |
| 227 | (autoload 'rmail-summary-displayed "rmail") | ||
| 228 | (autoload 'rmail-summary "rmailsum") | ||
| 229 | (defvar rmail-buffer) | ||
| 230 | 227 | ||
| 231 | (defun mairix-rmail-display (folder) | 228 | (defun mairix-rmail-display (folder) |
| 232 | "Display mbox file FOLDER with RMail." | 229 | "Display mbox file FOLDER with RMail." |
| 230 | (require 'rmail) | ||
| 233 | (let (show-summary) | 231 | (let (show-summary) |
| 234 | ;; If it exists, select existing RMail window | 232 | ;; If it exists, select existing RMail window |
| 235 | (when (and (boundp 'rmail-buffer) | 233 | (when (and (boundp 'rmail-buffer) |
| @@ -249,6 +247,8 @@ Currently there are 'threads and 'flags.") | |||
| 249 | (when show-summary | 247 | (when show-summary |
| 250 | (rmail-summary)))) | 248 | (rmail-summary)))) |
| 251 | 249 | ||
| 250 | (defvar rmail-buffer) | ||
| 251 | |||
| 252 | ;; Fetching mail header field: | 252 | ;; Fetching mail header field: |
| 253 | (defun mairix-rmail-fetch-field (field) | 253 | (defun mairix-rmail-fetch-field (field) |
| 254 | "Get mail header FIELD for current message using RMail." | 254 | "Get mail header FIELD for current message using RMail." |