diff options
| author | Bill Wohler | 2006-03-01 06:19:59 +0000 |
|---|---|---|
| committer | Bill Wohler | 2006-03-01 06:19:59 +0000 |
| commit | 66b265f5df732d032d0f35ead3020a46894077d1 (patch) | |
| tree | 601d94b5f8dccda153a8909d4d586d112d0fc6e2 | |
| parent | 052df3346e679576ae01dfb54080a3bdb787dde1 (diff) | |
| download | emacs-66b265f5df732d032d0f35ead3020a46894077d1.tar.gz emacs-66b265f5df732d032d0f35ead3020a46894077d1.zip | |
(mh-narrow-to-subject): Remove Re: string from subject so that pick
can find originating message (closes SF #1438369).
| -rw-r--r-- | lisp/mh-e/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-limit.el | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index b94c2522477..fa39c7988f4 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -5,6 +5,8 @@ | |||
| 5 | to subjects with special characters by quoting regular expression | 5 | to subjects with special characters by quoting regular expression |
| 6 | characters in pick expression derived from existing subjects and | 6 | characters in pick expression derived from existing subjects and |
| 7 | other fields (closes SF #1432548). | 7 | other fields (closes SF #1432548). |
| 8 | (mh-narrow-to-subject): Remove Re: string from subject so that | ||
| 9 | pick can find originating message (closes SF #1438369). | ||
| 8 | 10 | ||
| 9 | * mh-utils.el (mh-image-load-path): Rename variable to | 11 | * mh-utils.el (mh-image-load-path): Rename variable to |
| 10 | mh-image-directory. | 12 | mh-image-directory. |
diff --git a/lisp/mh-e/mh-limit.el b/lisp/mh-e/mh-limit.el index f2609263b91..64a61ce499a 100644 --- a/lisp/mh-e/mh-limit.el +++ b/lisp/mh-e/mh-limit.el | |||
| @@ -121,11 +121,16 @@ Use \\<mh-folder-mode-map>\\[mh-widen] to undo this command." | |||
| 121 | (defun mh-narrow-to-subject (&optional pick-expr) | 121 | (defun mh-narrow-to-subject (&optional pick-expr) |
| 122 | "Limit to messages with same subject. | 122 | "Limit to messages with same subject. |
| 123 | With a prefix argument, edit PICK-EXPR. | 123 | With a prefix argument, edit PICK-EXPR. |
| 124 | The string Re: is removed from the search. | ||
| 124 | 125 | ||
| 125 | Use \\<mh-folder-mode-map>\\[mh-widen] to undo this command." | 126 | Use \\<mh-folder-mode-map>\\[mh-widen] to undo this command." |
| 126 | (interactive | 127 | (interactive |
| 127 | (list (mh-edit-pick-expr | 128 | (list (mh-edit-pick-expr |
| 128 | (mh-quote-pick-expr (mh-current-message-header-field 'subject))))) | 129 | (mh-quote-pick-expr (mh-current-message-header-field 'subject))))) |
| 130 | (setq pick-expr | ||
| 131 | (let ((case-fold-search t)) | ||
| 132 | (loop for s in pick-expr | ||
| 133 | collect (mh-replace-regexp-in-string "re: *" "" s)))) | ||
| 129 | (mh-narrow-to-header-field 'subject pick-expr)) | 134 | (mh-narrow-to-header-field 'subject pick-expr)) |
| 130 | 135 | ||
| 131 | ;;;###mh-autoload | 136 | ;;;###mh-autoload |