diff options
| author | Bill Wohler | 2006-04-15 00:28:08 +0000 |
|---|---|---|
| committer | Bill Wohler | 2006-04-15 00:28:08 +0000 |
| commit | 42f8c37fa0bb7021950604259c7be0c3edd0814f (patch) | |
| tree | d9efb57f5497caabd5bbd3121f669ca5269028be | |
| parent | 73e6d1af3e3449b6d207cafe76258ccd20ca9849 (diff) | |
| download | emacs-42f8c37fa0bb7021950604259c7be0c3edd0814f.tar.gz emacs-42f8c37fa0bb7021950604259c7be0c3edd0814f.zip | |
* mh-acros.el (struct, x, y): No need to wrap defvar with
eval-when-compile when shushing compiler, even when mh-do-in-xemacs or
another construct is used.
* mh-comp.el (sendmail-coding-system): Ditto.
* mh-e.el (mark-active): Ditto.
* mh-folder.el (desktop-save-buffer, font-lock-auto-fontify)
(image-load-path, font-lock-defaults): Ditto.
* mh-letter.el (image-load-path, font-lock-defaults): Ditto.
* mh-mime.el (dots, type, ov)
(mm-verify-function-alist, mm-decrypt-function-alist)
(pressed-details): Ditto.
* mh-search.el (pick-folder, mh-do-in-xemacs)
(mh-mairix-folder, mh-flists-search-folders)
(which-func-mode, mh-speed-flists-inhibit-flag): Ditto.
* mh-seq.el (tool-bar-mode): Ditto.
* mh-utils.el (completion-root-regexp)
(minibuffer-completing-file-name): Ditto.
* mh-xface.el (default-enable-multibyte-characters): Ditto.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 28 | ||||
| -rw-r--r-- | lisp/mh-e/mh-acros.el | 4 | ||||
| -rw-r--r-- | lisp/mh-e/mh-comp.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-folder.el | 9 | ||||
| -rw-r--r-- | lisp/mh-e/mh-letter.el | 5 | ||||
| -rw-r--r-- | lisp/mh-e/mh-mime.el | 13 | ||||
| -rw-r--r-- | lisp/mh-e/mh-search.el | 14 | ||||
| -rw-r--r-- | lisp/mh-e/mh-seq.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-utils.el | 6 | ||||
| -rw-r--r-- | lisp/mh-e/mh-xface.el | 3 |
11 files changed, 54 insertions, 34 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 574c161e2ef..c126eef642d 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -11,6 +11,34 @@ | |||
| 11 | 11 | ||
| 12 | * mh-utils.el (mh-speed-flists-cache): Ditto | 12 | * mh-utils.el (mh-speed-flists-cache): Ditto |
| 13 | 13 | ||
| 14 | * mh-acros.el (struct, x, y): No need to wrap defvar with | ||
| 15 | eval-when-compile when shushing compiler, even when | ||
| 16 | mh-do-in-xemacs or another construct is used. | ||
| 17 | |||
| 18 | * mh-comp.el (sendmail-coding-system): Ditto. | ||
| 19 | |||
| 20 | * mh-e.el (mark-active): Ditto. | ||
| 21 | |||
| 22 | * mh-folder.el (desktop-save-buffer, font-lock-auto-fontify) | ||
| 23 | (image-load-path, font-lock-defaults): Ditto. | ||
| 24 | |||
| 25 | * mh-letter.el (image-load-path, font-lock-defaults): Ditto. | ||
| 26 | |||
| 27 | * mh-mime.el (dots, type, ov) | ||
| 28 | (mm-verify-function-alist, mm-decrypt-function-alist) | ||
| 29 | (pressed-details): Ditto. | ||
| 30 | |||
| 31 | * mh-search.el (pick-folder, mh-do-in-xemacs) | ||
| 32 | (mh-mairix-folder, mh-flists-search-folders) | ||
| 33 | (which-func-mode, mh-speed-flists-inhibit-flag): Ditto. | ||
| 34 | |||
| 35 | * mh-seq.el (tool-bar-mode): Ditto. | ||
| 36 | |||
| 37 | * mh-utils.el (completion-root-regexp) | ||
| 38 | (minibuffer-completing-file-name): Ditto. | ||
| 39 | |||
| 40 | * mh-xface.el (default-enable-multibyte-characters): Ditto. | ||
| 41 | |||
| 14 | * mh-compat.el (mh-font-lock-add-keywords): New alias for | 42 | * mh-compat.el (mh-font-lock-add-keywords): New alias for |
| 15 | font-lock-add-keywords. Returns nil on XEmacs. | 43 | font-lock-add-keywords. Returns nil on XEmacs. |
| 16 | 44 | ||
diff --git a/lisp/mh-e/mh-acros.el b/lisp/mh-e/mh-acros.el index 8f38abc56ee..41fadc1ec99 100644 --- a/lisp/mh-e/mh-acros.el +++ b/lisp/mh-e/mh-acros.el | |||
| @@ -130,7 +130,9 @@ check if variable `transient-mark-mode' is active." | |||
| 130 | (boundp 'mark-active) mark-active)))) | 130 | (boundp 'mark-active) mark-active)))) |
| 131 | 131 | ||
| 132 | ;; Shush compiler. | 132 | ;; Shush compiler. |
| 133 | (eval-when-compile (mh-do-in-xemacs (defvar struct) (defvar x) (defvar y))) | 133 | (defvar struct) ; XEmacs |
| 134 | (defvar x) ; XEmacs | ||
| 135 | (defvar y) ; XEmacs | ||
| 134 | 136 | ||
| 135 | ;;;###mh-autoload | 137 | ;;;###mh-autoload |
| 136 | (defmacro mh-defstruct (name-spec &rest fields) | 138 | (defmacro mh-defstruct (name-spec &rest fields) |
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index 27806dc9ab9..b3c6ba12f57 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el | |||
| @@ -215,7 +215,7 @@ ignored." | |||
| 215 | (setq other-headers (cdr other-headers))))) | 215 | (setq other-headers (cdr other-headers))))) |
| 216 | 216 | ||
| 217 | ;; Shush compiler. | 217 | ;; Shush compiler. |
| 218 | (eval-when-compile (mh-do-in-xemacs (defvar sendmail-coding-system))) | 218 | (defvar sendmail-coding-system) ; XEmacs |
| 219 | 219 | ||
| 220 | ;;;###autoload | 220 | ;;;###autoload |
| 221 | (defun mh-send-letter (&optional arg) | 221 | (defun mh-send-letter (&optional arg) |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index b107de86115..6bf9458b459 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -623,7 +623,7 @@ Output is expected to be shown to user, not parsed by MH-E." | |||
| 623 | (mh-exchange-point-and-mark-preserving-active-mark)) | 623 | (mh-exchange-point-and-mark-preserving-active-mark)) |
| 624 | 624 | ||
| 625 | ;; Shush compiler. | 625 | ;; Shush compiler. |
| 626 | (eval-when-compile (mh-do-in-xemacs (defvar mark-active))) | 626 | (defvar mark-active) ; XEmacs |
| 627 | 627 | ||
| 628 | (defun mh-exchange-point-and-mark-preserving-active-mark () | 628 | (defun mh-exchange-point-and-mark-preserving-active-mark () |
| 629 | "Put the mark where point is now, and point where the mark is now. | 629 | "Put the mark where point is now, and point where the mark is now. |
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el index 8fb65051a86..8516856f14e 100644 --- a/lisp/mh-e/mh-folder.el +++ b/lisp/mh-e/mh-folder.el | |||
| @@ -522,11 +522,10 @@ font-lock is done highlighting.") | |||
| 522 | (add-to-list 'which-func-modes 'mh-folder-mode)) | 522 | (add-to-list 'which-func-modes 'mh-folder-mode)) |
| 523 | 523 | ||
| 524 | ;; Shush compiler. | 524 | ;; Shush compiler. |
| 525 | (eval-when-compile | 525 | (defvar desktop-save-buffer) |
| 526 | (defvar desktop-save-buffer) | 526 | (defvar font-lock-auto-fontify) |
| 527 | (defvar font-lock-auto-fontify) | 527 | (defvar image-load-path) |
| 528 | (defvar image-load-path) | 528 | (defvar font-lock-defaults) ; XEmacs |
| 529 | (mh-do-in-xemacs (defvar font-lock-defaults))) | ||
| 530 | 529 | ||
| 531 | (defvar mh-folder-buttons-init-flag nil) | 530 | (defvar mh-folder-buttons-init-flag nil) |
| 532 | 531 | ||
diff --git a/lisp/mh-e/mh-letter.el b/lisp/mh-e/mh-letter.el index 024c1875eac..2da824c34c2 100644 --- a/lisp/mh-e/mh-letter.el +++ b/lisp/mh-e/mh-letter.el | |||
| @@ -278,9 +278,8 @@ searching for `mh-mail-header-separator' in the buffer." | |||
| 278 | (defvar mh-letter-buttons-init-flag nil) | 278 | (defvar mh-letter-buttons-init-flag nil) |
| 279 | 279 | ||
| 280 | ;; Shush compiler. | 280 | ;; Shush compiler. |
| 281 | (eval-when-compile | 281 | (defvar image-load-path) |
| 282 | (defvar image-load-path) | 282 | (defvar font-lock-defaults) ; XEmacs |
| 283 | (mh-do-in-xemacs (defvar font-lock-defaults))) | ||
| 284 | 283 | ||
| 285 | ;; Ensure new buffers won't get this mode if default-major-mode is nil. | 284 | ;; Ensure new buffers won't get this mode if default-major-mode is nil. |
| 286 | (put 'mh-letter-mode 'mode-class 'special) | 285 | (put 'mh-letter-mode 'mode-class 'special) |
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index f7a3494a1b7..c05e867a2b4 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el | |||
| @@ -825,7 +825,9 @@ being used to highlight the signature in a MIME part." | |||
| 825 | ;;; Button Display | 825 | ;;; Button Display |
| 826 | 826 | ||
| 827 | ;; Shush compiler. | 827 | ;; Shush compiler. |
| 828 | (eval-when-compile (mh-do-in-xemacs (defvar dots) (defvar type) (defvar ov))) | 828 | (defvar dots) ; XEmacs |
| 829 | (defvar type) ; XEmacs | ||
| 830 | (defvar ov) ; XEmacs | ||
| 829 | 831 | ||
| 830 | (defun mh-insert-mime-button (handle index displayed) | 832 | (defun mh-insert-mime-button (handle index displayed) |
| 831 | "Insert MIME button for HANDLE. | 833 | "Insert MIME button for HANDLE. |
| @@ -870,12 +872,9 @@ by commands like \"K v\" which operate on individual MIME parts." | |||
| 870 | (mh-funcall-if-exists overlay-put ov 'evaporate t)))) | 872 | (mh-funcall-if-exists overlay-put ov 'evaporate t)))) |
| 871 | 873 | ||
| 872 | ;; Shush compiler. | 874 | ;; Shush compiler. |
| 873 | (eval-when-compile | 875 | (defvar mm-verify-function-alist) ; < Emacs 22 |
| 874 | (when (< emacs-major-version 22) | 876 | (defvar mm-decrypt-function-alist) ; < Emacs 22 |
| 875 | (defvar mm-verify-function-alist) | 877 | (defvar pressed-details) ; XEmacs |
| 876 | (defvar mm-decrypt-function-alist)) | ||
| 877 | (mh-do-in-xemacs | ||
| 878 | (defvar pressed-details))) | ||
| 879 | 878 | ||
| 880 | (defun mh-insert-mime-security-button (handle) | 879 | (defun mh-insert-mime-security-button (handle) |
| 881 | "Display buttons for PGP message, HANDLE." | 880 | "Display buttons for PGP message, HANDLE." |
diff --git a/lisp/mh-e/mh-search.el b/lisp/mh-e/mh-search.el index 17b63c91000..14891204fad 100644 --- a/lisp/mh-e/mh-search.el +++ b/lisp/mh-e/mh-search.el | |||
| @@ -324,7 +324,7 @@ folder containing the index search results." | |||
| 324 | count (> (hash-table-count msg-hash) 0))))))) | 324 | count (> (hash-table-count msg-hash) 0))))))) |
| 325 | 325 | ||
| 326 | ;; Shush compiler. | 326 | ;; Shush compiler. |
| 327 | (eval-when-compile (mh-do-in-xemacs (defvar pick-folder))) | 327 | (defvar pick-folder) ; XEmacs |
| 328 | 328 | ||
| 329 | (defun mh-search-folder (folder window-config) | 329 | (defun mh-search-folder (folder window-config) |
| 330 | "Search FOLDER for messages matching a pattern. | 330 | "Search FOLDER for messages matching a pattern. |
| @@ -404,10 +404,8 @@ or nothing to search all folders." | |||
| 404 | (mh-index-sequenced-messages folders mh-tick-seq)) | 404 | (mh-index-sequenced-messages folders mh-tick-seq)) |
| 405 | 405 | ||
| 406 | ;; Shush compiler. | 406 | ;; Shush compiler. |
| 407 | (eval-when-compile | 407 | (defvar mh-mairix-folder) ; XEmacs |
| 408 | (mh-do-in-xemacs | 408 | (defvar mh-flists-search-folders) ; XEmacs |
| 409 | (defvar mh-mairix-folder) | ||
| 410 | (defvar mh-flists-search-folders))) | ||
| 411 | 409 | ||
| 412 | ;;;###mh-autoload | 410 | ;;;###mh-autoload |
| 413 | (defun mh-index-sequenced-messages (folders sequence) | 411 | (defun mh-index-sequenced-messages (folders sequence) |
| @@ -1414,9 +1412,7 @@ being the list of messages originally from that folder." | |||
| 1414 | (mh-require 'which-func nil t) | 1412 | (mh-require 'which-func nil t) |
| 1415 | 1413 | ||
| 1416 | ;; Shush compiler. | 1414 | ;; Shush compiler. |
| 1417 | (eval-when-compile | 1415 | (defvar which-func-mode) ; < Emacs 22, XEmacs |
| 1418 | (if (or mh-xemacs-flag (< emacs-major-version 22)) | ||
| 1419 | (defvar which-func-mode))) | ||
| 1420 | 1416 | ||
| 1421 | ;;;###mh-autoload | 1417 | ;;;###mh-autoload |
| 1422 | (defun mh-index-create-imenu-index () | 1418 | (defun mh-index-create-imenu-index () |
| @@ -1441,7 +1437,7 @@ being the list of messages originally from that folder." | |||
| 1441 | mh-index-data) | 1437 | mh-index-data) |
| 1442 | 1438 | ||
| 1443 | ;; Shush compiler | 1439 | ;; Shush compiler |
| 1444 | (eval-when-compile (if mh-xemacs-flag (defvar mh-speed-flists-inhibit-flag))) | 1440 | (defvar mh-speed-flists-inhibit-flag) ; XEmacs |
| 1445 | 1441 | ||
| 1446 | ;;;###mh-autoload | 1442 | ;;;###mh-autoload |
| 1447 | (defun mh-index-execute-commands () | 1443 | (defun mh-index-execute-commands () |
diff --git a/lisp/mh-e/mh-seq.el b/lisp/mh-e/mh-seq.el index cf179fbf957..ae260692b74 100644 --- a/lisp/mh-e/mh-seq.el +++ b/lisp/mh-e/mh-seq.el | |||
| @@ -202,7 +202,7 @@ MESSAGE appears." | |||
| 202 | " ")))) | 202 | " ")))) |
| 203 | 203 | ||
| 204 | ;; Shush compiler. | 204 | ;; Shush compiler. |
| 205 | (eval-when-compile (mh-do-in-xemacs (defvar tool-bar-mode))) | 205 | (defvar tool-bar-mode) ; XEmacs |
| 206 | 206 | ||
| 207 | ;;;###mh-autoload | 207 | ;;;###mh-autoload |
| 208 | (defun mh-narrow-to-seq (sequence) | 208 | (defun mh-narrow-to-seq (sequence) |
diff --git a/lisp/mh-e/mh-utils.el b/lisp/mh-e/mh-utils.el index 8afb2993e17..46aed35be7b 100644 --- a/lisp/mh-e/mh-utils.el +++ b/lisp/mh-e/mh-utils.el | |||
| @@ -718,10 +718,8 @@ and FLAG determines whether the completion is over." | |||
| 718 | (t (file-exists-p path)))))))) | 718 | (t (file-exists-p path)))))))) |
| 719 | 719 | ||
| 720 | ;; Shush compiler. | 720 | ;; Shush compiler. |
| 721 | (eval-when-compile | 721 | (defvar completion-root-regexp) ; XEmacs |
| 722 | (mh-do-in-xemacs | 722 | (defvar minibuffer-completing-file-name) ; XEmacs |
| 723 | (defvar completion-root-regexp) | ||
| 724 | (defvar minibuffer-completing-file-name))) | ||
| 725 | 723 | ||
| 726 | (defun mh-folder-completing-read (prompt default allow-root-folder-flag) | 724 | (defun mh-folder-completing-read (prompt default allow-root-folder-flag) |
| 727 | "Read folder name with PROMPT and default result DEFAULT. | 725 | "Read folder name with PROMPT and default result DEFAULT. |
diff --git a/lisp/mh-e/mh-xface.el b/lisp/mh-e/mh-xface.el index 58d175f5470..deb2cebad14 100644 --- a/lisp/mh-e/mh-xface.el +++ b/lisp/mh-e/mh-xface.el | |||
| @@ -60,8 +60,7 @@ | |||
| 60 | (funcall mh-show-xface-function))) | 60 | (funcall mh-show-xface-function))) |
| 61 | 61 | ||
| 62 | ;; Shush compiler. | 62 | ;; Shush compiler. |
| 63 | (eval-when-compile | 63 | (defvar default-enable-multibyte-characters) ; XEmacs |
| 64 | (mh-do-in-xemacs (defvar default-enable-multibyte-characters))) | ||
| 65 | 64 | ||
| 66 | (defun mh-face-display-function () | 65 | (defun mh-face-display-function () |
| 67 | "Display a Face, X-Face, or X-Image-URL header field. | 66 | "Display a Face, X-Face, or X-Image-URL header field. |