Ihor Radchenko <yanta...@gmail.com> writes: > Max Nikulin <maniku...@gmail.com> writes: > >> There is the `org-store-link-plist' variable used by :store functions >> from `org-link-parameters' but not by the >> `org-create-file-search-functions' hook. Maybe it is enough to add > > Reading through `org-store-link-functions' docstring and > `org-store-link' code, I noticed that `org-store-link-functions' > promises the following: > > Each function will be called in turn until one returns a non-nil > value. > > Yet, `org-store-link' does the following: > > (dolist (f (org-store-link-functions)) > (when (funcall f) > (push (cons f (copy-sequence org-store-link-plist)) > results-alist))) > ... > That is, all the store link functions are actually being executed, not > until first non-nil return value. If multiple non-nil values are > returned, an interactive query is displayed to the user.
I updated the docstring to reflect the ground reality for now. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c6849a2bc -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>