Function: mh-thread-find-children
mh-thread-find-children is a byte-compiled function defined in
mh-thread.el.gz.
Signature
(mh-thread-find-children)
Documentation
Return a region containing the current message and its children.
The result is returned as a list of two elements. The first is the point at the start of the region and the second is the point at the end.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-thread.el.gz
(defun mh-thread-find-children ()
"Return a region containing the current message and its children.
The result is returned as a list of two elements. The first is
the point at the start of the region and the second is the point
at the end."
(beginning-of-line)
(if (eobp)
nil
(let ((address-start-offset (+ mh-cmd-note mh-scan-date-flag-width
mh-scan-date-width 1))
(level (mh-thread-current-indentation-level))
spaces begin)
(setq begin (point))
(setq spaces (format (format "%%%ss" (1+ level)) ""))
(forward-line)
(cl-block nil
(while (not (eobp))
(forward-char address-start-offset)
(unless (equal (string-match spaces (buffer-substring-no-properties
(point) (mh-line-end-position)))
0)
(beginning-of-line)
(backward-char)
(cl-return))
(forward-line)))
(list begin (point)))))