summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Radchenko <yantar92@posteo.net>2024-02-23 12:56:58 +0300
committerEli Zaretskii <eliz@gnu.org>2024-03-24 08:41:26 -0400
commit7a5d7be52c5f0690ee47f30bfad973827261abf2 (patch)
tree8e096ab4bb6333a9fa92be4a2d3f4c6bb0078b1f
parent2bc865ace050ff118db43f01457f95f95112b877 (diff)
downloademacs-7a5d7be52c5f0690ee47f30bfad973827261abf2.tar.gz
org--confirm-resource-safe: Fix prompt when prompting in non-file Org buffers
* lisp/org/org.el (org--confirm-resource-safe): When called from non-file buffer, do not put stray "f" in the prompt.
-rw-r--r--lisp/org/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 76559c91cd3..154388f79c6 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -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 ")