Mercurial > emacs
diff lisp/mh-e/mh-limit.el @ 69221:7db1bc48b98c
* mh-limit.el (mh-narrow-to-cc, mh-narrow-to-from)
(mh-narrow-to-subject, mh-narrow-to-to): Fix inability to narrow to
subjects with special characters by quoting regular expression
characters in pick expression derived from existing subjects and other
fields (closes SF #1432548).
* mh-utils.el (mh-pick-regexp-chars, mh-quote-pick-expr): New variable
and function for quoting pick regular expression characters (closes SF
#1432548).
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Wed, 01 Mar 2006 05:33:18 +0000 |
parents | 7daec5f4a289 |
children | f6aa586588ea |
line wrap: on
line diff
--- a/lisp/mh-e/mh-limit.el Wed Mar 01 02:45:05 2006 +0000 +++ b/lisp/mh-e/mh-limit.el Wed Mar 01 05:33:18 2006 +0000 @@ -89,7 +89,8 @@ Use \\<mh-folder-mode-map>\\[mh-widen] to undo this command." (interactive - (list (mh-edit-pick-expr (mh-current-message-header-field 'cc)))) + (list (mh-edit-pick-expr + (mh-quote-pick-expr (mh-current-message-header-field 'cc))))) (mh-narrow-to-header-field 'cc pick-expr)) ;;;###mh-autoload @@ -99,7 +100,8 @@ Use \\<mh-folder-mode-map>\\[mh-widen] to undo this command." (interactive - (list (mh-edit-pick-expr (mh-current-message-header-field 'from)))) + (list (mh-edit-pick-expr + (mh-quote-pick-expr (mh-current-message-header-field 'from))))) (mh-narrow-to-header-field 'from pick-expr)) ;;;###mh-autoload @@ -122,7 +124,8 @@ Use \\<mh-folder-mode-map>\\[mh-widen] to undo this command." (interactive - (list (mh-edit-pick-expr (mh-current-message-header-field 'subject)))) + (list (mh-edit-pick-expr + (mh-quote-pick-expr (mh-current-message-header-field 'subject))))) (mh-narrow-to-header-field 'subject pick-expr)) ;;;###mh-autoload @@ -132,7 +135,8 @@ Use \\<mh-folder-mode-map>\\[mh-widen] to undo this command." (interactive - (list (mh-edit-pick-expr (mh-current-message-header-field 'to)))) + (list (mh-edit-pick-expr + (mh-quote-pick-expr (mh-current-message-header-field 'to))))) (mh-narrow-to-header-field 'to pick-expr))