aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mh-e/ChangeLog12
-rw-r--r--lisp/mh-e/mh-customize.el15
-rw-r--r--lisp/mh-e/mh-speed.el21
3 files changed, 27 insertions, 21 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index dafa37c6b3d..6f9e343123d 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,15 @@
12005-12-14 Bill Wohler <wohler@newt.com>
2
3 * mh-customize.el (mh-speed-flists-interval): Rename to
4 mh-speed-update-interval.
5 (mh-speed-run-flists-flag): Delete. Setting
6 mh-speed-flists-interval to 0 accomplishes the same thing.
7
8 * mh-speed.el (mh-folder-speedbar-buttons, mh-speed-flists): Use
9 mh-speed-update-interval instead of mh-speed-run-flists-flag.
10 (mh-speed-toggle, mh-speed-view, mh-speed-refresh): Sync
11 docstrings with manual.
12
12005-12-09 Bill Wohler <wohler@newt.com> 132005-12-09 Bill Wohler <wohler@newt.com>
2 14
3 * mh-customize.el (mh-path): Move here from mh-init.el. 15 * mh-customize.el (mh-path): Move here from mh-init.el.
diff --git a/lisp/mh-e/mh-customize.el b/lisp/mh-e/mh-customize.el
index 49aceae3b61..e07603f69ba 100644
--- a/lisp/mh-e/mh-customize.el
+++ b/lisp/mh-e/mh-customize.el
@@ -1780,21 +1780,12 @@ and enter the number of lines you'd like to see."
1780 1780
1781;;; The Speedbar (:group 'mh-speed) 1781;;; The Speedbar (:group 'mh-speed)
1782 1782
1783(defcustom mh-speed-flists-interval 60 1783(defcustom mh-speed-update-interval 60
1784 "Time between calls to flists in seconds. 1784 "Time between speedbar updates in seconds.
1785If 0, flists is not called repeatedly." 1785Set to 0 to disable automatic update."
1786 :type 'integer 1786 :type 'integer
1787 :group 'mh-speed) 1787 :group 'mh-speed)
1788 1788
1789(defcustom mh-speed-run-flists-flag t
1790 "Non-nil means flists is used.
1791If non-nil, flists is executed every `mh-speed-flists-interval' seconds to
1792update the display of the number of unseen and total messages in each folder.
1793If resources are limited, this can be set to nil and the speedbar display can
1794be updated manually with the \\[mh-speed-flists] command."
1795 :type 'boolean
1796 :group 'mh-speed)
1797
1798 1789
1799 1790
1800;;; Threading (:group 'mh-thread) 1791;;; Threading (:group 'mh-thread)
diff --git a/lisp/mh-e/mh-speed.el b/lisp/mh-e/mh-speed.el
index e11ed7e3523..4b33a81a7e9 100644
--- a/lisp/mh-e/mh-speed.el
+++ b/lisp/mh-e/mh-speed.el
@@ -76,7 +76,7 @@ BUFFER is the MH-E buffer for which the speedbar buffer is to be created."
76 (line-beginning-position) (1+ (line-beginning-position)) 76 (line-beginning-position) (1+ (line-beginning-position))
77 `(mh-folder nil mh-expanded nil mh-children-p t mh-level 0)) 77 `(mh-folder nil mh-expanded nil mh-children-p t mh-level 0))
78 (mh-speed-stealth-update t) 78 (mh-speed-stealth-update t)
79 (when mh-speed-run-flists-flag 79 (when (> mh-speed-update-interval 0)
80 (mh-speed-flists nil)))) 80 (mh-speed-flists nil))))
81 81
82;;;###mh-autoload 82;;;###mh-autoload
@@ -292,8 +292,8 @@ Do the right thing for the different kinds of buffers that MH-E uses."
292 292
293;;;###mh-autoload 293;;;###mh-autoload
294(defun mh-speed-toggle (&rest args) 294(defun mh-speed-toggle (&rest args)
295 "Toggle the display of child folders. 295 "Toggle the display of child folders in the speedbar.
296The otional ARGS are ignored and there for compatibilty with speedbar." 296The optional ARGS from speedbar are ignored."
297 (interactive) 297 (interactive)
298 (declare (ignore args)) 298 (declare (ignore args))
299 (beginning-of-line) 299 (beginning-of-line)
@@ -335,8 +335,8 @@ The otional ARGS are ignored and there for compatibilty with speedbar."
335 335
336;;;###mh-autoload 336;;;###mh-autoload
337(defun mh-speed-view (&rest args) 337(defun mh-speed-view (&rest args)
338 "View folder on current line. 338 "Visits the selected folder just as if you had used \\<mh-folder-mode-map>\\[mh-visit-folder].
339Optional ARGS are ignored." 339The optional ARGS from speedbar are ignored."
340 (interactive) 340 (interactive)
341 (declare (ignore args)) 341 (declare (ignore args))
342 (let* ((folder (get-text-property (line-beginning-position) 'mh-folder)) 342 (let* ((folder (get-text-property (line-beginning-position) 'mh-folder))
@@ -381,7 +381,9 @@ only for that one folder."
381 (unless mh-speed-flists-timer 381 (unless mh-speed-flists-timer
382 (setq mh-speed-flists-timer 382 (setq mh-speed-flists-timer
383 (run-at-time 383 (run-at-time
384 nil (and mh-speed-run-flists-flag mh-speed-flists-interval) 384 nil (if (> mh-speed-update-interval 0)
385 mh-speed-update-interval
386 nil)
385 (lambda () 387 (lambda ()
386 (unless (and (processp mh-speed-flists-process) 388 (unless (and (processp mh-speed-flists-process)
387 (not (eq (process-status mh-speed-flists-process) 389 (not (eq (process-status mh-speed-flists-process)
@@ -502,9 +504,10 @@ next."
502 (clrhash mh-sub-folders-cache))))) 504 (clrhash mh-sub-folders-cache)))))
503 505
504(defun mh-speed-refresh () 506(defun mh-speed-refresh ()
505 "Refresh the speedbar. 507 "Regenerates the list of folders in the speedbar.
506Use this function to refresh the speedbar if folders have been added or 508
507deleted or message ranges have been updated outside of MH-E." 509Run this command if you've added or deleted a folder, or want to update the
510unseen message count before the next automatic update."
508 (interactive) 511 (interactive)
509 (mh-speed-flists t) 512 (mh-speed-flists t)
510 (mh-speed-invalidate-map "")) 513 (mh-speed-invalidate-map ""))