aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wohler2006-01-11 01:49:32 +0000
committerBill Wohler2006-01-11 01:49:32 +0000
commit2898111ccb9249eec9b12175e29487277df9ddbd (patch)
treee0d5e34253580d53c2a04257bb91b68e5e821466
parent191c8741fba847184d4d67d27db86c3e8ff523ac (diff)
downloademacs-2898111ccb9249eec9b12175e29487277df9ddbd.tar.gz
emacs-2898111ccb9249eec9b12175e29487277df9ddbd.zip
(mh-index-next-folder): Don't back up a line when going backwards
since this skips the current folder heading if point is on the first message after the folder heading (closes SF #1126188).
-rw-r--r--lisp/mh-e/ChangeLog3
-rw-r--r--lisp/mh-e/mh-index.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index f4a5775315b..981c60a462b 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -2,6 +2,9 @@
2 2
3 * mh-index.el (mh-index-search): Checking mh-find-path-run is 3 * mh-index.el (mh-index-search): Checking mh-find-path-run is
4 unnecessary. 4 unnecessary.
5 (mh-index-next-folder): Don't back up a line when going backwards
6 since this skips the current folder heading if point is on the
7 first message after the folder heading (closes SF #1126188).
5 8
6 * mh-init.el (mh-sys-path): Co-locate with mh-variants, which uses 9 * mh-init.el (mh-sys-path): Co-locate with mh-variants, which uses
7 it. 10 it.
diff --git a/lisp/mh-e/mh-index.el b/lisp/mh-e/mh-index.el
index 3d0aeba85a6..69ef7ca9c1a 100644
--- a/lisp/mh-e/mh-index.el
+++ b/lisp/mh-e/mh-index.el
@@ -749,7 +749,7 @@ group of results."
749 (if (null mh-index-data) 749 (if (null mh-index-data)
750 (message "Only applicable in an MH-E index search buffer") 750 (message "Only applicable in an MH-E index search buffer")
751 (let ((point (point))) 751 (let ((point (point)))
752 (forward-line (if backward-flag -1 1)) 752 (forward-line (if backward-flag 0 1))
753 (cond ((if backward-flag 753 (cond ((if backward-flag
754 (re-search-backward "^+" (point-min) t) 754 (re-search-backward "^+" (point-min) t)
755 (re-search-forward "^+" (point-max) t)) 755 (re-search-forward "^+" (point-max) t))