From 175937da259fe0b29057d69055bf3469aa1a8679 Mon Sep 17 00:00:00 2001 Message-ID: <175937da259fe0b29057d69055bf3469aa1a8679.1705764051.git.yantar92@posteo.net> From: Ihor Radchenko Date: Sat, 20 Jan 2024 16:20:20 +0100 Subject: [PATCH] org-attach-store-link-p: Change default value to 'attached * lisp/org-attach.el (org-attach-store-link-p): Change the default value. * etc/ORG-NEWS (The default value of ~org-attach-store-link-p~ is now ~attached~): Announce the change. --- etc/ORG-NEWS | 5 +++++ lisp/org-attach.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 847ddf614..ea456c67b 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -371,6 +371,11 @@ The change is breaking when ~org-use-property-inheritance~ is set to ~t~. The =TEST= parameter is better served by Emacs debugging tools. ** New and changed options +*** The default value of ~org-attach-store-link-p~ is now ~attached~ + +Now, after attaching a file, =[[attach:...]]= link to the attached file +is stored. It can later be inserted using =M-x org-insert-link=. + *** New option ~org-fast-tag-selection-maximum-tags~ You can now limit the total number of tags displayed in the fast tag diff --git a/lisp/org-attach.el b/lisp/org-attach.el index 58bfcf9ba..81ce9a73c 100644 --- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -142,7 +142,7 @@ (defcustom org-attach-use-inheritance 'selective (const :tag "Inherit parent node attachments" t) (const :tag "Respect org-use-property-inheritance" selective))) -(defcustom org-attach-store-link-p nil +(defcustom org-attach-store-link-p 'attached "Non-nil means store a link to a file when attaching it. When t, store the link to original file location. When `file', store link to the attached file location. -- 2.43.0