aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-03-08 00:24:12 +0000
committerRichard M. Stallman1998-03-08 00:24:12 +0000
commitdf211784d690c15693a92b4c9e91dfa18351c98d (patch)
tree3df2a9bd8ba0177e3a2c322c1f3fa92e356c840a
parentfe73d07254d6d453cbb896a368d09d374c4e93fe (diff)
downloademacs-df211784d690c15693a92b4c9e91dfa18351c98d.tar.gz
emacs-df211784d690c15693a92b4c9e91dfa18351c98d.zip
(rmail-next-same-subject): Ignore leading and
trailing whitespace in this message's subject. (rmail-bury, rmail-quit): Use quit-window.
-rw-r--r--lisp/mail/rmail.el18
1 files changed, 10 insertions, 8 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index e9901a0526a..7de2b77d395 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -962,13 +962,12 @@ Instead, these commands are available:
962 (interactive) 962 (interactive)
963 (rmail-expunge-and-save) 963 (rmail-expunge-and-save)
964 ;; Don't switch to the summary buffer even if it was recently visible. 964 ;; Don't switch to the summary buffer even if it was recently visible.
965 (if rmail-summary-buffer 965 (when rmail-summary-buffer
966 (progn 966 (replace-buffer-in-windows rmail-summary-buffer)
967 (replace-buffer-in-windows rmail-summary-buffer) 967 (bury-buffer rmail-summary-buffer))
968 (bury-buffer rmail-summary-buffer)))
969 (let ((obuf (current-buffer))) 968 (let ((obuf (current-buffer)))
970 (replace-buffer-in-windows obuf) 969 (replace-buffer-in-windows obuf)
971 (bury-buffer obuf))) 970 (quit-window)))
972 971
973(defun rmail-bury () 972(defun rmail-bury ()
974 "Bury current Rmail buffer and its summary buffer." 973 "Bury current Rmail buffer and its summary buffer."
@@ -979,10 +978,9 @@ Instead, these commands are available:
979 (if (rmail-summary-exists) 978 (if (rmail-summary-exists)
980 (let (window) 979 (let (window)
981 (while (setq window (get-buffer-window rmail-summary-buffer)) 980 (while (setq window (get-buffer-window rmail-summary-buffer))
982 (set-window-buffer window (other-buffer rmail-summary-buffer))) 981 (quit-window nil window))
983 (bury-buffer rmail-summary-buffer))) 982 (bury-buffer rmail-summary-buffer)))
984 (switch-to-buffer (other-buffer (current-buffer))) 983 (quit-window)))
985 (bury-buffer buffer-to-bury)))
986 984
987(defun rmail-duplicate-message () 985(defun rmail-duplicate-message ()
988 "Create a duplicated copy of the current message. 986 "Create a duplicated copy of the current message.
@@ -2279,8 +2277,12 @@ If N is negative, go backwards instead."
2279 (i rmail-current-message) 2277 (i rmail-current-message)
2280 (case-fold-search t) 2278 (case-fold-search t)
2281 search-regexp found) 2279 search-regexp found)
2280 (if (string-match "\\`[ \t]+" subject)
2281 (setq subject (substring subject (match-end 0))))
2282 (if (string-match "Re:[ \t]*" subject) 2282 (if (string-match "Re:[ \t]*" subject)
2283 (setq subject (substring subject (match-end 0)))) 2283 (setq subject (substring subject (match-end 0))))
2284 (if (string-match "[ \t]+\\'" subject)
2285 (setq subject (substring subject 0 (match-beginning 0))))
2284 (setq search-regexp (concat "^Subject: *\\(Re: *\\)?" 2286 (setq search-regexp (concat "^Subject: *\\(Re: *\\)?"
2285 (regexp-quote subject) 2287 (regexp-quote subject)
2286 "\n")) 2288 "\n"))