Function: mh-toggle-tick
mh-toggle-tick is an autoloaded, interactive and byte-compiled
function defined in mh-seq.el.gz.
Signature
(mh-toggle-tick RANGE)
Documentation
Toggle tick mark of RANGE.
This command adds messages to the "tick" sequence (which you can customize
via the option mh-tick-seq). This sequence can be viewed later with the
M-x mh-index-ticked-messages (mh-index-ticked-messages) command.
Check the documentation of mh-interactive-range to see how RANGE is read in
interactive use.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-seq.el.gz
;;;###mh-autoload
(defun mh-toggle-tick (range)
"Toggle tick mark of RANGE.
This command adds messages to the \"tick\" sequence (which you can customize
via the option `mh-tick-seq'). This sequence can be viewed later with the
\\[mh-index-ticked-messages] command.
Check the documentation of `mh-interactive-range' to see how RANGE is read in
interactive use."
(interactive (list (mh-interactive-range "Tick")))
(unless mh-tick-seq
(error "Enable ticking by customizing `mh-tick-seq'"))
(let* ((tick-seq (mh-find-seq mh-tick-seq))
(tick-seq-msgs (mh-seq-msgs tick-seq))
(ticked ())
(unticked ()))
(mh-iterate-on-range msg range
(cond ((member msg tick-seq-msgs)
(push msg unticked)
(setcdr tick-seq (delq msg (cdr tick-seq)))
(when (null (cdr tick-seq)) (setq mh-last-seq-used nil))
(mh-remove-sequence-notation msg (mh-colors-in-use-p)))
(t
(push msg ticked)
(setq mh-last-seq-used mh-tick-seq)
(let ((mh-seq-list (cons `(,mh-tick-seq ,msg) mh-seq-list)))
(mh-add-sequence-notation msg (mh-colors-in-use-p))))))
(mh-add-msgs-to-seq ticked mh-tick-seq nil t)
(mh-undefine-sequence mh-tick-seq unticked)
(when mh-index-data
(mh-index-add-to-sequence mh-tick-seq ticked)
(mh-index-delete-from-sequence mh-tick-seq unticked))))