diff options
| author | Katsumi Yamaoka | 2009-02-25 04:20:32 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2009-02-25 04:20:32 +0000 |
| commit | 87202be1092491092032d55362f050ea8fc8aa76 (patch) | |
| tree | f5cdb0490423b18250f0ad7babcb1e09f9599cb8 | |
| parent | 8a76755b738856ddd953f4514567ce583ae3b419 (diff) | |
| download | emacs-87202be1092491092032d55362f050ea8fc8aa76.tar.gz emacs-87202be1092491092032d55362f050ea8fc8aa76.zip | |
(toplevel): Remove autoload for gnus-setup-message.
(gnus-dired-attach): Fake this-command value to prevent Gnus from displaying
Gnus logo; always use compose-mail.
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-dired.el | 15 |
2 files changed, 17 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 107ba0eda07..a99b2fd5524 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-02-25 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-dired.el: Remove autoload for gnus-setup-message. | ||
| 4 | (gnus-dired-attach): Fake this-command value to prevent Gnus from | ||
| 5 | displaying Gnus logo; always use compose-mail. | ||
| 6 | |||
| 1 | 2009-02-23 Katsumi Yamaoka <yamaoka@jpl.org> | 7 | 2009-02-23 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 8 | ||
| 3 | * gnus-dired.el: Tell autoload that gnus-setup-message is a macro. | 9 | * gnus-dired.el: Tell autoload that gnus-setup-message is a macro. |
diff --git a/lisp/gnus/gnus-dired.el b/lisp/gnus/gnus-dired.el index 0ad5ed1887d..a610991df68 100644 --- a/lisp/gnus/gnus-dired.el +++ b/lisp/gnus/gnus-dired.el | |||
| @@ -53,7 +53,6 @@ | |||
| 53 | ;; Autoloads to avoid byte-compiler warnings. These are used only if the user | 53 | ;; Autoloads to avoid byte-compiler warnings. These are used only if the user |
| 54 | ;; customizes `gnus-dired-mail-mode' to use Message and/or Gnus. | 54 | ;; customizes `gnus-dired-mail-mode' to use Message and/or Gnus. |
| 55 | (autoload 'message-buffers "message") | 55 | (autoload 'message-buffers "message") |
| 56 | (autoload 'gnus-setup-message "gnus-msg" nil nil 'macro) | ||
| 57 | (autoload 'gnus-print-buffer "gnus-sum") | 56 | (autoload 'gnus-print-buffer "gnus-sum") |
| 58 | 57 | ||
| 59 | (defvar gnus-dired-mode nil | 58 | (defvar gnus-dired-mode nil |
| @@ -162,9 +161,17 @@ filenames." | |||
| 162 | bufs) | 161 | bufs) |
| 163 | nil t))) | 162 | nil t))) |
| 164 | ;; setup a new mail composition buffer | 163 | ;; setup a new mail composition buffer |
| 165 | (if (eq gnus-dired-mail-mode 'gnus-user-agent) | 164 | (let ((mail-user-agent gnus-dired-mail-mode) |
| 166 | (gnus-setup-message 'message (message-mail)) | 165 | ;; A workaround to prevent Gnus from displaying the Gnus |
| 167 | ;; FIXME: Is this the right thing? | 166 | ;; logo when invoking this command without loading Gnus. |
| 167 | ;; Gnus demonstrates it when gnus.elc is being loaded if | ||
| 168 | ;; a command of which the name is prefixed with "gnus" | ||
| 169 | ;; causes that autoloading. See the code in question, | ||
| 170 | ;; that is the one first found in gnus.el by performing | ||
| 171 | ;; `C-s this-command'. | ||
| 172 | (this-command (if (eq gnus-dired-mail-mode 'gnus-user-agent) | ||
| 173 | 'gnoose-dired-attach | ||
| 174 | this-command))) | ||
| 168 | (compose-mail)) | 175 | (compose-mail)) |
| 169 | (setq destination (current-buffer))) | 176 | (setq destination (current-buffer))) |
| 170 | 177 | ||