Mercurial > emacs
changeset 67577:125832ddcd6b
* mh-customize.el (mh-speed-flists-interval): Rename to
mh-speed-update-interval.
(mh-speed-run-flists-flag): Delete. Setting mh-speed-flists-interval
to 0 accomplishes the same thing.
* mh-speed.el (mh-folder-speedbar-buttons, mh-speed-flists): Use
mh-speed-update-interval instead of mh-speed-run-flists-flag.
(mh-speed-toggle, mh-speed-view, mh-speed-refresh): Sync docstrings
with manual.
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Wed, 14 Dec 2005 18:47:38 +0000 |
parents | 79100dce8a85 |
children | f8a3e13c32d7 |
files | lisp/mh-e/ChangeLog lisp/mh-e/mh-customize.el lisp/mh-e/mh-speed.el |
diffstat | 3 files changed, 27 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mh-e/ChangeLog Wed Dec 14 18:25:02 2005 +0000 +++ b/lisp/mh-e/ChangeLog Wed Dec 14 18:47:38 2005 +0000 @@ -1,3 +1,15 @@ +2005-12-14 Bill Wohler <wohler@newt.com> + + * mh-customize.el (mh-speed-flists-interval): Rename to + mh-speed-update-interval. + (mh-speed-run-flists-flag): Delete. Setting + mh-speed-flists-interval to 0 accomplishes the same thing. + + * mh-speed.el (mh-folder-speedbar-buttons, mh-speed-flists): Use + mh-speed-update-interval instead of mh-speed-run-flists-flag. + (mh-speed-toggle, mh-speed-view, mh-speed-refresh): Sync + docstrings with manual. + 2005-12-09 Bill Wohler <wohler@newt.com> * mh-customize.el (mh-path): Move here from mh-init.el.
--- a/lisp/mh-e/mh-customize.el Wed Dec 14 18:25:02 2005 +0000 +++ b/lisp/mh-e/mh-customize.el Wed Dec 14 18:47:38 2005 +0000 @@ -1780,21 +1780,12 @@ ;;; The Speedbar (:group 'mh-speed) -(defcustom mh-speed-flists-interval 60 - "Time between calls to flists in seconds. -If 0, flists is not called repeatedly." +(defcustom mh-speed-update-interval 60 + "Time between speedbar updates in seconds. +Set to 0 to disable automatic update." :type 'integer :group 'mh-speed) -(defcustom mh-speed-run-flists-flag t - "Non-nil means flists is used. -If non-nil, flists is executed every `mh-speed-flists-interval' seconds to -update the display of the number of unseen and total messages in each folder. -If resources are limited, this can be set to nil and the speedbar display can -be updated manually with the \\[mh-speed-flists] command." - :type 'boolean - :group 'mh-speed) - ;;; Threading (:group 'mh-thread)
--- a/lisp/mh-e/mh-speed.el Wed Dec 14 18:25:02 2005 +0000 +++ b/lisp/mh-e/mh-speed.el Wed Dec 14 18:47:38 2005 +0000 @@ -76,7 +76,7 @@ (line-beginning-position) (1+ (line-beginning-position)) `(mh-folder nil mh-expanded nil mh-children-p t mh-level 0)) (mh-speed-stealth-update t) - (when mh-speed-run-flists-flag + (when (> mh-speed-update-interval 0) (mh-speed-flists nil)))) ;;;###mh-autoload @@ -292,8 +292,8 @@ ;;;###mh-autoload (defun mh-speed-toggle (&rest args) - "Toggle the display of child folders. -The otional ARGS are ignored and there for compatibilty with speedbar." + "Toggle the display of child folders in the speedbar. +The optional ARGS from speedbar are ignored." (interactive) (declare (ignore args)) (beginning-of-line) @@ -335,8 +335,8 @@ ;;;###mh-autoload (defun mh-speed-view (&rest args) - "View folder on current line. -Optional ARGS are ignored." + "Visits the selected folder just as if you had used \\<mh-folder-mode-map>\\[mh-visit-folder]. +The optional ARGS from speedbar are ignored." (interactive) (declare (ignore args)) (let* ((folder (get-text-property (line-beginning-position) 'mh-folder)) @@ -381,7 +381,9 @@ (unless mh-speed-flists-timer (setq mh-speed-flists-timer (run-at-time - nil (and mh-speed-run-flists-flag mh-speed-flists-interval) + nil (if (> mh-speed-update-interval 0) + mh-speed-update-interval + nil) (lambda () (unless (and (processp mh-speed-flists-process) (not (eq (process-status mh-speed-flists-process) @@ -502,9 +504,10 @@ (clrhash mh-sub-folders-cache))))) (defun mh-speed-refresh () - "Refresh the speedbar. -Use this function to refresh the speedbar if folders have been added or -deleted or message ranges have been updated outside of MH-E." + "Regenerates the list of folders in the speedbar. + +Run this command if you've added or deleted a folder, or want to update the +unseen message count before the next automatic update." (interactive) (mh-speed-flists t) (mh-speed-invalidate-map ""))