all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* rmail -- C-M-s not working
@ 2009-01-26 10:08 Alfred M. Szmidt
  2009-01-27  0:36 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Alfred M. Szmidt @ 2009-01-26 10:08 UTC (permalink / raw)
  To: emacs-devel

rmail-summary-by-regexp doesn't work, no match is found no matter what
one tries.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rmail -- C-M-s not working
  2009-01-26 10:08 rmail -- C-M-s not working Alfred M. Szmidt
@ 2009-01-27  0:36 ` Glenn Morris
  2009-01-27  3:15   ` Chong Yidong
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2009-01-27  0:36 UTC (permalink / raw)
  To: ams; +Cc: emacs-devel

"Alfred M. Szmidt" wrote:

> rmail-summary-by-regexp doesn't work, no match is found no matter what
> one tries.

This should fix it:


*** rmailsum.el	23 Jan 2009 19:20:01 -0000	1.156
--- rmailsum.el	27 Jan 2009 00:37:04 -0000
***************
*** 113,119 ****
  			  recipients primary-only))
  
  (defun rmail-message-recipients-p-1 (recipients &optional primary-only)
!   (narrow-to-region (point) (progn (search-forward "\n\n") (point)))
    (or (string-match recipients (or (mail-fetch-field "To") ""))
        (string-match recipients (or (mail-fetch-field "From") ""))
        (if (not primary-only)
--- 113,119 ----
  			  recipients primary-only))
  
  (defun rmail-message-recipients-p-1 (recipients &optional primary-only)
!   (narrow-to-region (point) (save-excursion (search-forward "\n\n") (point)))
    (or (string-match recipients (or (mail-fetch-field "To") ""))
        (string-match recipients (or (mail-fetch-field "From") ""))
        (if (not primary-only)
***************
*** 140,146 ****
    (rmail-apply-in-message msg 'rmail-message-regexp-p-1 msg regexp))
  
  (defun rmail-message-regexp-p-1 (msg regexp)
!   (narrow-to-region (point) (progn (search-forward "\n\n") (point)))
    (if rmail-enable-mime
        (funcall rmail-search-mime-header-function msg regexp (point))
      (re-search-forward regexp nil t)))
--- 140,146 ----
    (rmail-apply-in-message msg 'rmail-message-regexp-p-1 msg regexp))
  
  (defun rmail-message-regexp-p-1 (msg regexp)
!   (narrow-to-region (point) (save-excursion (search-forward "\n\n") (point)))
    (if rmail-enable-mime
        (funcall rmail-search-mime-header-function msg regexp (point))
      (re-search-forward regexp nil t)))




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rmail -- C-M-s not working
  2009-01-27  0:36 ` Glenn Morris
@ 2009-01-27  3:15   ` Chong Yidong
  0 siblings, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2009-01-27  3:15 UTC (permalink / raw)
  To: Glenn Morris; +Cc: ams, emacs-devel

Glenn Morris <rgm@gnu.org> writes:

>> rmail-summary-by-regexp doesn't work, no match is found no matter what
>> one tries.
>
> This should fix it:

Looks right.  I've checked it in, thanks.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-27  3:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-26 10:08 rmail -- C-M-s not working Alfred M. Szmidt
2009-01-27  0:36 ` Glenn Morris
2009-01-27  3:15   ` Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.