aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wohler2006-06-29 21:04:17 +0000
committerBill Wohler2006-06-29 21:04:17 +0000
commit1937adc20b67c468cd3e6f1ebd2bc3b2159ccece (patch)
tree546bfed433573d153440844db4aa68bce58d1b90
parente0487df8766f3f91cbd08ed7857df2cca314f503 (diff)
downloademacs-1937adc20b67c468cd3e6f1ebd2bc3b2159ccece.tar.gz
emacs-1937adc20b67c468cd3e6f1ebd2bc3b2159ccece.zip
(mh-search, mh-index-group-by-folder): Add "the" in loop construct to
be consistent with other loops, and because edebug doesn't work without it. (mh-folder-exists-p): Strip + from folder to avoid redundant +s in regexp (closes SF #1514424).
-rw-r--r--lisp/mh-e/ChangeLog11
-rw-r--r--lisp/mh-e/mh-search.el9
2 files changed, 16 insertions, 4 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index ecb4f502ed9..2f3f29596d0 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,14 @@
12006-06-29 Bill Wohler <wohler@newt.com>
2
3 * mh-search.el (mh-search, mh-index-group-by-folder): Add "the" in
4 loop construct to be consistent with other loops, and because
5 edebug doesn't work without it.
6
72006-06-29 Ted Phelps <phelps@gnusto.com> (tiny change)
8
9 * mh-search.el (mh-folder-exists-p): Strip + from folder to avoid
10 redundant +s in regexp (closes SF #1514424).
11
12006-06-29 Sergey Poznyakoff <gray@Mirddin.farlep.net> (tiny change) 122006-06-29 Sergey Poznyakoff <gray@Mirddin.farlep.net> (tiny change)
2 13
3 * mh-mime.el (mh-mime-save-parts): Add -store option to 14 * mh-mime.el (mh-mime-save-parts): Add -store option to
diff --git a/lisp/mh-e/mh-search.el b/lisp/mh-e/mh-search.el
index 62c130bb90f..191e42f734a 100644
--- a/lisp/mh-e/mh-search.el
+++ b/lisp/mh-e/mh-search.el
@@ -318,9 +318,9 @@ folder containing the index search results."
318 318
319 (message "%s found %s matches in %s folders" 319 (message "%s found %s matches in %s folders"
320 (upcase-initials (symbol-name mh-searcher)) 320 (upcase-initials (symbol-name mh-searcher))
321 (loop for msg-hash being hash-values of mh-index-data 321 (loop for msg-hash being the hash-values of mh-index-data
322 sum (hash-table-count msg-hash)) 322 sum (hash-table-count msg-hash))
323 (loop for msg-hash being hash-values of mh-index-data 323 (loop for msg-hash being the hash-values of mh-index-data
324 count (> (hash-table-count msg-hash) 0))))))) 324 count (> (hash-table-count msg-hash) 0)))))))
325 325
326;; Shush compiler. 326;; Shush compiler.
@@ -1362,7 +1362,7 @@ being the list of messages originally from that folder."
1362 (save-excursion 1362 (save-excursion
1363 (goto-char (point-min)) 1363 (goto-char (point-min))
1364 (let ((result-table (make-hash-table :test #'equal))) 1364 (let ((result-table (make-hash-table :test #'equal)))
1365 (loop for msg being hash-keys of mh-index-msg-checksum-map 1365 (loop for msg being the hash-keys of mh-index-msg-checksum-map
1366 do (push msg (gethash (car (gethash 1366 do (push msg (gethash (car (gethash
1367 (gethash msg mh-index-msg-checksum-map) 1367 (gethash msg mh-index-msg-checksum-map)
1368 mh-index-checksum-origin-map)) 1368 mh-index-checksum-origin-map))
@@ -1524,7 +1524,8 @@ construct the base name."
1524 (with-temp-buffer 1524 (with-temp-buffer
1525 (mh-exec-cmd-output "folder" nil "-fast" "-nocreate" folder) 1525 (mh-exec-cmd-output "folder" nil "-fast" "-nocreate" folder)
1526 (goto-char (point-min)) 1526 (goto-char (point-min))
1527 (looking-at (format "+?%s" folder)))))) 1527 ;; Strip + from folder; use optional + in regexp.
1528 (looking-at (format "+?%s" (substring folder 1)))))))
1528 1529
1529(defun mh-msg-exists-p (msg folder) 1530(defun mh-msg-exists-p (msg folder)
1530 "Check if MSG exists in FOLDER." 1531 "Check if MSG exists in FOLDER."