aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mh-e
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mh-e')
-rw-r--r--lisp/mh-e/ChangeLog5
-rw-r--r--lisp/mh-e/mh-e.el6
-rw-r--r--lisp/mh-e/mh-show.el10
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 @@
12010-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
12010-03-24 Juanma Barranquero <lekktu@gmail.com> 62010-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
176With 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))