Function: mh-widen
mh-widen is an autoloaded, interactive and byte-compiled function
defined in mh-seq.el.gz.
Signature
(mh-widen &optional ALL-FLAG)
Documentation
Remove last restriction.
Each limit or sequence restriction can be undone in turn with this command. Give this command a prefix argument ALL-FLAG to remove all limits and sequence restrictions.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-seq.el.gz
;;;###mh-autoload
(defun mh-widen (&optional all-flag)
"Remove last restriction.
Each limit or sequence restriction can be undone in turn with
this command. Give this command a prefix argument ALL-FLAG to
remove all limits and sequence restrictions."
(interactive "P")
(let ((msg (mh-get-msg-num nil)))
(when mh-folder-view-stack
(cond (all-flag
(while (cdr mh-view-ops)
(setq mh-view-ops (cdr mh-view-ops)))
(when (eq (car mh-view-ops) 'widen)
(setq mh-view-ops (cdr mh-view-ops))))
((mh-valid-view-change-operation-p 'widen) nil)
((memq 'widen mh-view-ops)
(while (not (eq (car mh-view-ops) 'widen))
(setq mh-view-ops (cdr mh-view-ops)))
(setq mh-view-ops (cdr mh-view-ops)))
(t (error "Widening is not applicable")))
;; If ALL-FLAG is non-nil then rewind stacks
(when all-flag
(while (cdr mh-thread-scan-line-map-stack)
(setq mh-thread-scan-line-map-stack
(cdr mh-thread-scan-line-map-stack)))
(while (cdr mh-folder-view-stack)
(setq mh-folder-view-stack (cdr mh-folder-view-stack))))
(setq mh-thread-scan-line-map (pop mh-thread-scan-line-map-stack))
(with-mh-folder-updating (t)
(delete-region (point-min) (point-max))
(insert (pop mh-folder-view-stack))
(mh-remove-all-notation)
(setq mh-mode-line-annotation mh-non-seq-mode-line-annotation)
(mh-make-folder-mode-line))
(if msg
(mh-goto-msg msg t t))
(mh-notate-deleted-and-refiled)
(mh-notate-user-sequences)
(mh-notate-cur)
(mh-recenter nil)))
(when (and (null mh-folder-view-stack) (boundp 'tool-bar-mode) tool-bar-mode)
(setq-local tool-bar-map mh-folder-tool-bar-map)
(when (buffer-live-p (get-buffer mh-show-buffer))
(with-current-buffer mh-show-buffer
(setq-local tool-bar-map mh-show-tool-bar-map)))))