aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-11-26 02:40:59 +0100
committerLars Ingebrigtsen2019-11-26 02:40:59 +0100
commit5c3d0cf7910afa6b3fbdba24ac5c5817f268eb0e (patch)
tree4a6e256c3cfa206e2b1de9f4e03f91b8b64e46e4
parentc97c7bb222e4057beba5754bc3670fdfbd2b3c17 (diff)
downloademacs-5c3d0cf7910afa6b3fbdba24ac5c5817f268eb0e.tar.gz
emacs-5c3d0cf7910afa6b3fbdba24ac5c5817f268eb0e.zip
Fix previous message.el point-restoring fix
* lisp/gnus/message.el (message-send-and-exit): Restore window point before burying buffer so we actually bury the buffer.
-rw-r--r--lisp/gnus/message.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 54ab86a970d..c66b551c1e4 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -4138,17 +4138,16 @@ It should typically alter the sending method in some way or other."
4138 (actions message-exit-actions)) 4138 (actions message-exit-actions))
4139 (when (and (message-send arg) 4139 (when (and (message-send arg)
4140 (buffer-live-p buf)) 4140 (buffer-live-p buf))
4141 (message-bury buf)
4142 (if message-kill-buffer-on-exit 4141 (if message-kill-buffer-on-exit
4143 (kill-buffer buf)) 4142 (kill-buffer buf)
4143 ;; Restore the point in the message buffer.
4144 (save-window-excursion
4145 (switch-to-buffer buf)
4146 (set-window-point nil position)
4147 (set-marker position nil))
4148 (message-bury buf))
4144 (message-do-actions actions) 4149 (message-do-actions actions)
4145 t) 4150 t)))
4146 ;; Restore the point in the message buffer.
4147 (when (buffer-live-p buf)
4148 (save-window-excursion
4149 (switch-to-buffer buf)
4150 (set-window-point nil position)
4151 (set-marker position nil)))))
4152 4151
4153(defun message-dont-send () 4152(defun message-dont-send ()
4154 "Don't send the message you have been editing. 4153 "Don't send the message you have been editing.