From: Ihor Radchenko Date: Fri, 23 Feb 2024 09:56:58 +0000 (+0300) Subject: org--confirm-resource-safe: Fix prompt when prompting in non-file Org buffers X-Git-Tag: archive/raspbian/1%29.4+1-4+rpi1~1^2~2^2~18^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a5d7be52c5f0690ee47f30bfad973827261abf2;p=emacs.git 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. --- 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 ")