[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gnorb e53d908 028/449: gnorb-gnus.el: bugfix in gnorb-g

From: Stefan Monnier
Subject: [elpa] externals/gnorb e53d908 028/449: gnorb-gnus.el: bugfix in gnorb-gnus-collect-all-attachments
Date: Fri, 27 Nov 2020 23:15:01 -0500 (EST)

branch: externals/gnorb
commit e53d9087191b4ab0b0312b12fdffd819e5a2d62f
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    gnorb-gnus.el: bugfix in gnorb-gnus-collect-all-attachments
    Need a save-window-excursion instead of a save-excursion, or else the
    capture buffer gets buried when this is called via capture.
 lisp/gnorb-gnus.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnorb-gnus.el b/lisp/gnorb-gnus.el
index b79d238..3346847 100644
--- a/lisp/gnorb-gnus.el
+++ b/lisp/gnorb-gnus.el
@@ -80,7 +80,7 @@
 (defun gnorb-gnus-collect-all-attachments (&optional capture-p)
   "Collect all the attachments from the message under point, and
 save them into `gnorb-tmp-dir'."
-  (save-excursion
+  (save-window-excursion
     (when capture-p
       (set-buffer (org-capture-get :original-buffer)))
     (unless (memq major-mode '(gnus-summary-mode gnus-article-mode))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]