diff options
| author | Karl Heuer | 1996-07-21 19:21:11 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-07-21 19:21:11 +0000 |
| commit | e8417bb000216ccf357b3b7f602338e7701f2838 (patch) | |
| tree | 5f16639f58aa61dadfe17cbffb8c1f1aaa9c91d8 | |
| parent | c22161a406eeb054583bb1249597fe4e2439ec59 (diff) | |
| download | emacs-e8417bb000216ccf357b3b7f602338e7701f2838.tar.gz emacs-e8417bb000216ccf357b3b7f602338e7701f2838.zip | |
(rmail-next-same-subject): Don't set search-regexp
until after adjusting subject string.
| -rw-r--r-- | lisp/mail/rmail.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 61cc9938870..3663bdf29d5 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -1914,15 +1914,15 @@ Interactively, empty argument means use same regexp used last time." | |||
| 1914 | With prefix argument N, do this N times. | 1914 | With prefix argument N, do this N times. |
| 1915 | If N is negative, go backwards instead." | 1915 | If N is negative, go backwards instead." |
| 1916 | (interactive "p") | 1916 | (interactive "p") |
| 1917 | (let* ((subject (mail-fetch-field "Subject")) | 1917 | (let ((subject (mail-fetch-field "Subject")) |
| 1918 | (search-regexp (concat "^Subject: *\\(Re: *\\)?" | 1918 | (forward (> n 0)) |
| 1919 | (regexp-quote subject) | 1919 | (i rmail-current-message) |
| 1920 | "\n")) | 1920 | search-regexp found) |
| 1921 | (forward (> n 0)) | ||
| 1922 | (i rmail-current-message) | ||
| 1923 | found) | ||
| 1924 | (if (string-match "Re:[ \t]*" subject) | 1921 | (if (string-match "Re:[ \t]*" subject) |
| 1925 | (setq subject (substring subject (match-end 0)))) | 1922 | (setq subject (substring subject (match-end 0)))) |
| 1923 | (setq search-regexp (concat "^Subject: *\\(Re: *\\)?" | ||
| 1924 | (regexp-quote subject) | ||
| 1925 | "\n")) | ||
| 1926 | (save-excursion | 1926 | (save-excursion |
| 1927 | (save-restriction | 1927 | (save-restriction |
| 1928 | (widen) | 1928 | (widen) |