]> git.eshelyaron.com Git - emacs.git/commit
MH-E threads code: use mh-scan variables correctly
authorStephen Gildea <stepheng+emacs@gildea.com>
Sat, 13 Nov 2021 15:00:30 +0000 (07:00 -0800)
committerStephen Gildea <stepheng+emacs@gildea.com>
Sat, 13 Nov 2021 15:04:13 +0000 (07:04 -0800)
commit4df334a0f74700e72bfea7817e660605c3f2a2ee
tree04701661f2e58c65b2071aaf6558afdcd56a16a7
parentd3666ccdba7c3837ffffe3c50a179c110ed55569
MH-E threads code: use mh-scan variables correctly

* lisp/mh-e/mh-thread.el (mh-thread-current-indentation-level)
(mh-thread-find-children): Fix off-by-one error by using
'mh-scan-field-from-start-offset' directly, as
'mh-thread-parse-scan-line' does.  Previously, these functions would
incorrectly consider the "date note" column as part of the thread
indenting.  Since that column is almost always a Space character, that
almost always worked.
(mh-thread-ancestor): Update caller.
* test/lisp/mh-e/mh-thread-tests.el: New unit tests for affected code.
* lisp/mh-e/mh-scan.el (mh-msg-num-width-to-column): Fix doc string typo.
lisp/mh-e/mh-scan.el
lisp/mh-e/mh-thread.el
test/lisp/mh-e/mh-thread-tests.el [new file with mode: 0644]