diff options
| author | Glenn Morris | 2013-05-21 08:43:06 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-05-21 08:43:06 -0700 |
| commit | 640f050f802f24f0a9d2cea6359736088d45d969 (patch) | |
| tree | ac5b97120e58bf37fddae320e9a999b77ffea363 | |
| parent | 9cc3e83f9db0958931b358cda25741459fb733c5 (diff) | |
| download | emacs-640f050f802f24f0a9d2cea6359736088d45d969.tar.gz emacs-640f050f802f24f0a9d2cea6359736088d45d969.zip | |
Silence rmail.el compilation
* lisp/mail/rmail.el (speedbar): No need to load when compiling.
(speedbar-make-specialized-keymap, speedbar-with-attached-buffer)
(speedbar-do-function-pointer): Declare.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 15 |
2 files changed, 17 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 57d055ece22..fdc0c586491 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-05-21 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (speedbar): No need to load when compiling. | ||
| 4 | (speedbar-make-specialized-keymap, speedbar-with-attached-buffer) | ||
| 5 | (speedbar-do-function-pointer): Declare. | ||
| 6 | |||
| 1 | 2013-05-21 Leo Liu <sdl.web@gmail.com> | 7 | 2013-05-21 Leo Liu <sdl.web@gmail.com> |
| 2 | 8 | ||
| 3 | * progmodes/octave.el (octave-auto-fill): Remove. | 9 | * progmodes/octave.el (octave-auto-fill): Remove. |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index af7ad220595..d089f6d2041 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4310,7 +4310,6 @@ This has an effect only if a summary buffer exists." | |||
| 4310 | (restore-buffer-modified-p nil))))))) | 4310 | (restore-buffer-modified-p nil))))))) |
| 4311 | 4311 | ||
| 4312 | ;;; Speedbar support for RMAIL files. | 4312 | ;;; Speedbar support for RMAIL files. |
| 4313 | (eval-when-compile (require 'speedbar)) | ||
| 4314 | 4313 | ||
| 4315 | (defcustom rmail-speedbar-match-folder-regexp "^[A-Z0-9]+\\(\\.[A-Z0-9]+\\)?$" | 4314 | (defcustom rmail-speedbar-match-folder-regexp "^[A-Z0-9]+\\(\\.[A-Z0-9]+\\)?$" |
| 4316 | "Regexp matching Rmail folder names to be displayed in Speedbar. | 4315 | "Regexp matching Rmail folder names to be displayed in Speedbar. |
| @@ -4326,12 +4325,12 @@ browsing, and moving of messages." | |||
| 4326 | (defvar rmail-speedbar-key-map nil | 4325 | (defvar rmail-speedbar-key-map nil |
| 4327 | "Keymap used when in rmail display mode.") | 4326 | "Keymap used when in rmail display mode.") |
| 4328 | 4327 | ||
| 4328 | (declare-function speedbar-make-specialized-keymap "speedbar" ()) | ||
| 4329 | |||
| 4329 | (defun rmail-install-speedbar-variables () | 4330 | (defun rmail-install-speedbar-variables () |
| 4330 | "Install those variables used by speedbar to enhance rmail." | 4331 | "Install those variables used by speedbar to enhance rmail." |
| 4331 | (if rmail-speedbar-key-map | 4332 | (unless rmail-speedbar-key-map |
| 4332 | nil | ||
| 4333 | (setq rmail-speedbar-key-map (speedbar-make-specialized-keymap)) | 4333 | (setq rmail-speedbar-key-map (speedbar-make-specialized-keymap)) |
| 4334 | |||
| 4335 | (define-key rmail-speedbar-key-map "e" 'speedbar-edit-line) | 4334 | (define-key rmail-speedbar-key-map "e" 'speedbar-edit-line) |
| 4336 | (define-key rmail-speedbar-key-map "r" 'speedbar-edit-line) | 4335 | (define-key rmail-speedbar-key-map "r" 'speedbar-edit-line) |
| 4337 | (define-key rmail-speedbar-key-map "\C-m" 'speedbar-edit-line) | 4336 | (define-key rmail-speedbar-key-map "\C-m" 'speedbar-edit-line) |
| @@ -4346,11 +4345,15 @@ browsing, and moving of messages." | |||
| 4346 | (looking-at "<M> "))]) | 4345 | (looking-at "<M> "))]) |
| 4347 | "Additional menu-items to add to speedbar frame.") | 4346 | "Additional menu-items to add to speedbar frame.") |
| 4348 | 4347 | ||
| 4348 | (declare-function speedbar-insert-button "speedbar" | ||
| 4349 | (text face mouse function &optional token prevline)) | ||
| 4350 | |||
| 4349 | ;; Make sure our special speedbar major mode is loaded | 4351 | ;; Make sure our special speedbar major mode is loaded |
| 4350 | (if (featurep 'speedbar) | 4352 | (if (featurep 'speedbar) |
| 4351 | (rmail-install-speedbar-variables) | 4353 | (rmail-install-speedbar-variables) |
| 4352 | (add-hook 'speedbar-load-hook 'rmail-install-speedbar-variables)) | 4354 | (add-hook 'speedbar-load-hook 'rmail-install-speedbar-variables)) |
| 4353 | 4355 | ||
| 4356 | ;; Called from speedbar-add-localized-speedbar-support. | ||
| 4354 | (defun rmail-speedbar-buttons (buffer) | 4357 | (defun rmail-speedbar-buttons (buffer) |
| 4355 | "Create buttons for BUFFER containing rmail messages. | 4358 | "Create buttons for BUFFER containing rmail messages. |
| 4356 | Click on the address under Reply to: to reply to this person. | 4359 | Click on the address under Reply to: to reply to this person. |
| @@ -4387,6 +4390,8 @@ current message into that RMAIL folder." | |||
| 4387 | (speedbar-insert-button file 'speedbar-file-face 'highlight | 4390 | (speedbar-insert-button file 'speedbar-file-face 'highlight |
| 4388 | 'rmail-speedbar-find-file nil t))))))) | 4391 | 'rmail-speedbar-find-file nil t))))))) |
| 4389 | 4392 | ||
| 4393 | (declare-function speedbar-with-attached-buffer "speedbar" (&rest forms) t) | ||
| 4394 | |||
| 4390 | (defun rmail-speedbar-button (text token indent) | 4395 | (defun rmail-speedbar-button (text token indent) |
| 4391 | "Execute an rmail command specified by TEXT. | 4396 | "Execute an rmail command specified by TEXT. |
| 4392 | The command used is TOKEN. INDENT is not used." | 4397 | The command used is TOKEN. INDENT is not used." |
| @@ -4400,6 +4405,8 @@ TOKEN and INDENT are not used." | |||
| 4400 | (message "Loading in RMAIL file %s..." text) | 4405 | (message "Loading in RMAIL file %s..." text) |
| 4401 | (rmail text))) | 4406 | (rmail text))) |
| 4402 | 4407 | ||
| 4408 | (declare-function speedbar-do-function-pointer "speedbar" ()) | ||
| 4409 | |||
| 4403 | (defun rmail-speedbar-move-message-to-folder-on-line () | 4410 | (defun rmail-speedbar-move-message-to-folder-on-line () |
| 4404 | "If the current line is a folder, move current message to it." | 4411 | "If the current line is a folder, move current message to it." |
| 4405 | (interactive) | 4412 | (interactive) |