]> git.eshelyaron.com Git - emacs.git/commitdiff
org--confirm-resource-safe: Fix prompt when prompting in non-file Org buffers
authorIhor Radchenko <yantar92@posteo.net>
Fri, 23 Feb 2024 09:56:58 +0000 (12:56 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 30 Mar 2024 19:30:27 +0000 (20:30 +0100)
* lisp/org/org.el (org--confirm-resource-safe): When called from
non-file buffer, do not put stray "f" in the prompt.

(cherry picked from commit 7a5d7be52c5f0690ee47f30bfad973827261abf2)

lisp/org/org.el

index 03b74338a86a5263ac5453a087667759c9ff79dd..678936f34176933189736159840b6e001cb86937 100644 (file)
@@ -4671,9 +4671,9 @@ returns non-nil if any of them match."
                      (propertize domain 'face '(:inherit org-link :weight normal))
                      ") as safe.\n ")
                   "")
-                (propertize "f" 'face 'success)
                 (if current-file
                     (concat
+                     (propertize "f" 'face 'success)
                      " to download this resource, and permanently mark all resources in "
                      (propertize current-file 'face 'underline)
                      " as safe.\n ")