emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/gnorb dd4e013 225/449: Restore action shouldn't quit su


From: Stefan Monnier
Subject: [elpa] externals/gnorb dd4e013 225/449: Restore action shouldn't quit summary buffer
Date: Fri, 27 Nov 2020 23:15:44 -0500 (EST)

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

    Restore action shouldn't quit summary buffer
    
    Now that we have `gnorb-restore-layout', leave the summary buffer
    intact, and switch to the appropriate Org file before triggering action.
    This will also work better with triggering multiple relevant headings.
    
    * lisp/gnorb-org.el (gnorb-org-restore-after-send): Don't mess with
      layout; explicitly switch to target Org buffer.
---
 lisp/gnorb-org.el | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lisp/gnorb-org.el b/lisp/gnorb-org.el
index 2421509..d7db56c 100644
--- a/lisp/gnorb-org.el
+++ b/lisp/gnorb-org.el
@@ -151,13 +151,9 @@ future!"
 us back where we came from, and go through all the org ids that
 might have been in the outgoing message's headers and call
 `gnorb-trigger-todo-action' on each one."
-  (when (eq major-mode 'gnus-summary-mode)
-    (gnus-summary-exit nil t))
-  (when (and (window-configuration-p gnorb-window-conf)
-            gnorb-return-marker)
-    (set-window-configuration gnorb-window-conf)
-    (goto-char gnorb-return-marker))
+  (delete-other-windows)
   (dolist (id gnorb-message-org-ids)
+    (org-id-goto id)
     (gnorb-trigger-todo-action nil id))
   ;; this is a little unnecessary, but it may save grief
   (setq gnorb-gnus-message-info nil)



reply via email to

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