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

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

[elpa] externals/org 769a557 28/85: Merge branch 'bugfix'


From: ELPA Syncer
Subject: [elpa] externals/org 769a557 28/85: Merge branch 'bugfix'
Date: Mon, 27 Sep 2021 15:57:43 -0400 (EDT)

branch: externals/org
commit 769a557ceb074bf21cf55349a8155286b905ee1c
Merge: 777c1c3 399481b
Author: Bastien <bzg@gnu.org>
Commit: Bastien <bzg@gnu.org>

    Merge branch 'bugfix'
---
 lisp/ol.el       | 13 +++++++------
 lisp/org-macs.el |  2 +-
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/lisp/ol.el b/lisp/ol.el
index 75d0022..e4a5a27 100644
--- a/lisp/ol.el
+++ b/lisp/ol.el
@@ -1815,12 +1815,13 @@ Use TAB to complete link prefixes, then RET for 
type-specific completion support
                             (reverse org-stored-links)
                             "\n")))
        (goto-char (point-min)))
-      (let ((cw (selected-window)))
-       (select-window (get-buffer-window "*Org Links*" 'visible))
-       (with-current-buffer "*Org Links*" (setq truncate-lines t))
-       (unless (pos-visible-in-window-p (point-max))
-         (org-fit-window-to-buffer))
-       (and (window-live-p cw) (select-window cw)))
+      (when (get-buffer-window "*Org Links*" 'visible)
+        (let ((cw (selected-window)))
+         (select-window (get-buffer-window "*Org Links*" 'visible))
+         (with-current-buffer "*Org Links*" (setq truncate-lines t))
+         (unless (pos-visible-in-window-p (point-max))
+           (org-fit-window-to-buffer))
+         (and (window-live-p cw) (select-window cw))))
       (setq all-prefixes (append (mapcar #'car abbrevs)
                                 (mapcar #'car org-link-abbrev-alist)
                                 (org-link-types)))
diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 18ae642..bf1340b 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -209,7 +209,7 @@ because otherwise all these markers will point to nowhere."
 
 (defmacro org-no-popups (&rest body)
   "Suppress popup windows and evaluate BODY."
-  `(let (pop-up-frames display-buffer-alist)
+  `(let (pop-up-frames pop-up-windows)
      ,@body))
 
 



reply via email to

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