diff options
| author | Stefan Monnier | 2010-05-02 22:29:46 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-05-02 22:29:46 -0400 |
| commit | 56eb09046e00ac7ee6d3d3d752cb1ee664b7e062 (patch) | |
| tree | 6ff481ffba16576053b3cb2a8ad24a4f66bdec4a /lisp/mh-e | |
| parent | 063371f2b0dc2519db3abcbe54955167bde8ca9e (diff) | |
| download | emacs-56eb09046e00ac7ee6d3d3d752cb1ee664b7e062.tar.gz emacs-56eb09046e00ac7ee6d3d3d752cb1ee664b7e062.zip | |
Use define-minor-mode where applicable.
* mh-show.el (mh-showing-mode): Move function to mh-e.el.
* mh-e.el (mh-showing-mode):
* url-dired.el (url-dired-minor-mode):
* org-table.el (orgtbl-mode):
* view.el (view-mode):
* type-break.el (type-break-query-mode)
(type-break-mode-line-message-mode):
* textmodes/reftex.el (reftex-mode):
* term/vt100.el (vt100-wide-mode):
* tar-mode.el (tar-subfile-mode):
* savehist.el (savehist-mode):
* ibuf-ext.el (ibuffer-auto-mode):
* composite.el (auto-composition-mode):
* progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
Use define-minor-mode.
(vhdl-mode): Use static mode-line format.
(vhdl-mode-line-update): Delete.
(vhdl-create-mode-menu, vhdl-activate-customizations)
(vhdl-hs-minor-mode): Don't bother calling it.
Diffstat (limited to 'lisp/mh-e')
| -rw-r--r-- | lisp/mh-e/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 6 | ||||
| -rw-r--r-- | lisp/mh-e/mh-show.el | 10 |
3 files changed, 9 insertions, 12 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 4584aa0bbd7..8ed4279721e 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-05-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * mh-show.el (mh-showing-mode): Move function to mh-e.el. | ||
| 4 | * mh-e.el (mh-showing-mode): Use define-minor-mode. | ||
| 5 | |||
| 1 | 2010-03-24 Juanma Barranquero <lekktu@gmail.com> | 6 | 2010-03-24 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * mh-scan.el (mh-scan-cmd-note-width): Doc fix. | 8 | * mh-scan.el (mh-scan-cmd-note-width): Doc fix. |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 3639920f514..9a2bccbc967 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -287,8 +287,10 @@ Elements have the form (SEQUENCE . MESSAGES).") | |||
| 287 | (defvar mh-show-buffer nil | 287 | (defvar mh-show-buffer nil |
| 288 | "Buffer that displays message for this folder.") | 288 | "Buffer that displays message for this folder.") |
| 289 | 289 | ||
| 290 | (defvar mh-showing-mode nil | 290 | (define-minor-mode mh-showing-mode |
| 291 | "If non-nil, show the message in a separate window.") | 291 | "Minor mode to show the message in a separate window." |
| 292 | ;; FIXME: maybe this should be moved to mh-show.el. | ||
| 293 | :lighter " Show") | ||
| 292 | 294 | ||
| 293 | (defvar mh-view-ops nil | 295 | (defvar mh-view-ops nil |
| 294 | "Stack of operations that change the folder view. | 296 | "Stack of operations that change the folder view. |
diff --git a/lisp/mh-e/mh-show.el b/lisp/mh-e/mh-show.el index 766b6982d98..58d52205079 100644 --- a/lisp/mh-e/mh-show.el +++ b/lisp/mh-e/mh-show.el | |||
| @@ -170,16 +170,6 @@ displayed." | |||
| 170 | (run-hooks 'mh-show-hook))) | 170 | (run-hooks 'mh-show-hook))) |
| 171 | 171 | ||
| 172 | ;;;###mh-autoload | 172 | ;;;###mh-autoload |
| 173 | (defun mh-showing-mode (&optional arg) | ||
| 174 | "Change whether messages should be displayed. | ||
| 175 | |||
| 176 | With ARG, display messages if ARG is positive, otherwise don't display them." | ||
| 177 | (setq mh-showing-mode | ||
| 178 | (if (null arg) | ||
| 179 | (not mh-showing-mode) | ||
| 180 | (> (prefix-numeric-value arg) 0)))) | ||
| 181 | |||
| 182 | ;;;###mh-autoload | ||
| 183 | (defun mh-start-of-uncleaned-message () | 173 | (defun mh-start-of-uncleaned-message () |
| 184 | "Position uninteresting headers off the top of the window." | 174 | "Position uninteresting headers off the top of the window." |
| 185 | (let ((case-fold-search t)) | 175 | (let ((case-fold-search t)) |