# HG changeset patch # User Richard M. Stallman # Date 758572509 0 # Node ID fdf1d392429654bc5ae7fff8e3b97e068906c8cd # Parent 0c8f4489999d20537bf854dac9504fe981bb4173 (rmail-bury): Rename local rmail-buffer to buffer-to-bury. diff -r 0c8f4489999d -r fdf1d3924296 lisp/mail/rmail.el --- a/lisp/mail/rmail.el Fri Jan 14 18:19:13 1994 +0000 +++ b/lisp/mail/rmail.el Fri Jan 14 18:35:09 1994 +0000 @@ -1248,8 +1248,8 @@ ;; Put at the end of messages-head ;; the entry for message N+1, which marks ;; the end of message N. (N = number of messages). - (search-backward "\n\^_") - (forward-char 1) + (search-backward "\n\^_" nil t) + (if (/= (point) (point-max)) (forward-char 1)) (setq messages-head (list (point-marker))) (rmail-set-message-counters-counter (min (point) point-save)) (setq messages-after-point total-messages) @@ -1982,14 +1982,16 @@ (defun rmail-bury () "Bury current Rmail buffer and its summary buffer." (interactive) - (let ((rmail-buffer (current-buffer))) + ;; This let var was called rmail-buffer, but that interfered + ;; with the buffer-local var used in summary buffers. + (let ((buffer-to-bury (current-buffer))) (if (rmail-summary-exists) (let (window) (while (setq window (get-buffer-window rmail-summary-buffer)) (set-window-buffer window (other-buffer rmail-summary-buffer))) (bury-buffer rmail-summary-buffer))) (switch-to-buffer (other-buffer (current-buffer))) - (bury-buffer rmail-buffer))) + (bury-buffer buffer-to-bury))) (defun rmail-summary-exists () "Non-nil iff in an RMAIL buffer and an associated summary buffer exists.