org-mode/lisp
Rick Lupton 95554543b9
org-id.el: Add search strings, inherit parent IDs
* lisp/ol.el (org-store-link): Refactor org-id links to use standard
`org-store-link-functions'.
(org-link-search): Create new headings at appropriate level.
(org-link-precise-link-target): New function extracting logic to
identify a precise link target, e.g. a heading, named object, or text
search.
(org-link-try-link-store-functions): Extract logic to call external
link store functions. Pass them a new `interactive?' argument.
* lisp/ol-bbdb.el (org-bbdb-store-link):
* lisp/ol-bibtex.el (org-bibtex-store-link):
* lisp/ol-docview.el (org-docview-store-link):
* lisp/ol-eshell.el (org-eshell-store-link):
* lisp/ol-eww.el (org-eww-store-link):
* lisp/ol-gnus.el (org-gnus-store-link):
* lisp/ol-info.el (org-info-store-link):
* lisp/ol-irc.el (org-irc-store-link):
* lisp/ol-man.el (org-man-store-link):
* lisp/ol-mhe.el (org-mhe-store-link):
* lisp/ol-rmail.el (org-rmail-store-link): Accept optional arg.
* lisp/org-id.el (org-id-link-consider-parent-id): New option to allow
a parent heading with an id to be considered as a link target.
(org-id-link-use-context): New option to add context to org-id links.
(org-id-get): Add optional `inherit' argument which considers parents'
IDs if the current entry does not have one.
(org-id-store-link): Consider IDs of parent headings as link targets
when current heading has no ID and `org-id-link-consider-parent-id' is
set.  Add a search string to the link when enabled.
(org-id-store-link-maybe): Function set as :store option for custom id
link property. Move logic from `org-store-link' here to determine when
an org-id link should be stored using `org-id-store-link'.
(org-id-open): Recognise search strings after "::" in org-id links.
* lisp/org-lint.el: Add checker for "::" in ID properties.
* testing/lisp/test-ol.el: Add tests for
`org-link-precise-link-target' and `org-id-store-link' functions,
testing new options.
* doc/org-manual.org: Update documentation about links.
* etc/ORG-NEWS: Document changes and new options.

These feature allows for more precise links when using org-id to link to
org headings, without requiring every single headline to have an id.

Link: https://list.orgmode.org/118435e8-0b20-46fd-af6a-88de8e19fac6@app.fastmail.com/
2024-02-24 15:56:44 +03:00
..
Makefile mk: Allow parallel execution 2024-02-09 17:15:53 +01:00
ob-C.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-R.el org-babel: Declare :async header argument in the backends that support it 2024-02-01 16:15:50 +01:00
ob-awk.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-calc.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-clojure.el lisp/ob-comint.el: Introduce a fallback prompt regexp 2024-02-09 17:35:58 +01:00
ob-comint.el ob-comint: Make file results from async sessions respect :dir header 2024-02-10 21:57:13 +01:00
ob-core.el org-babel: New babel backend API function org-babel-session-buffer:<lang> 2024-02-10 21:57:52 +01:00
ob-css.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-ditaa.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-dot.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-emacs-lisp.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-eshell.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-eval.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-exp.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-forth.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-fortran.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-gnuplot.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-groovy.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-haskell.el lisp/ob-comint.el: Introduce a fallback prompt regexp 2024-02-09 17:35:58 +01:00
ob-java.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-js.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-julia.el ob-R, ob-julia: Do not force-start session in Org Src buffers 2024-01-28 20:04:31 +01:00
ob-latex.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-lilypond.el Obsolete org-switch-to-buffer-other-window and org-no-popups 2024-01-24 15:00:26 +01:00
ob-lisp.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-lob.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-lua.el org-babel: New babel backend API function org-babel-session-buffer:<lang> 2024-02-10 21:57:52 +01:00
ob-makefile.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-matlab.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-maxima.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-ocaml.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-octave.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-org.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-perl.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-plantuml.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-processing.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-python.el org-babel: New babel backend API function org-babel-session-buffer:<lang> 2024-02-10 21:57:52 +01:00
ob-ref.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-ruby.el lisp/ob-comint.el: Introduce a fallback prompt regexp 2024-02-09 17:35:58 +01:00
ob-sass.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-scheme.el ob-scheme: Allow ob-scheme to accept a remote connection 2024-01-30 16:42:23 +01:00
ob-screen.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-sed.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-shell.el lisp/ob-comint.el: Introduce a fallback prompt regexp 2024-02-09 17:35:58 +01:00
ob-sql.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-sqlite.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-table.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ob-tangle.el org-babel-tangle: Do not allow tangling into self 2024-01-26 16:54:04 +01:00
ob.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
oc-basic.el org-cite-basic-export-citation: Fix prefix/suffix being ignored 2024-01-16 13:38:27 +01:00
oc-biblatex.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
oc-bibtex.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
oc-csl.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
oc-natbib.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
oc.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ol-bbdb.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-bibtex.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-docview.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-doi.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ol-eshell.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-eww.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-gnus.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-info.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-irc.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-man.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-mhe.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-rmail.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
ol-w3m.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
org-agenda.el org-agenda-filter-by-category: Fix using truncated category as a filter 2024-02-24 12:33:27 +03:00
org-archive.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-attach-git.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-attach.el org-attach-store-link-p: Change default value to 'attached 2024-01-25 13:59:58 +01:00
org-capture.el org-capture-set-target-location: Fix `pcase' conditions 2024-02-23 15:51:11 +03:00
org-clock.el Obsolete org-switch-to-buffer-other-window and org-no-popups 2024-01-24 15:00:26 +01:00
org-colview.el lisp/org-colview.el (org-columns--compute-spec): Fix columns in inlinetasks 2024-02-11 16:39:11 +01:00
org-compat.el org-capture: Obsolete `org-capture-bookmark' in favor of `org-bookmark-names-plist' 2024-02-09 17:47:57 +01:00
org-crypt.el lisp/org-crypt.el (org-current-level): Fix compiler warning 2024-02-09 13:44:33 +01:00
org-ctags.el org-ctags: Fix regexp to not break radio-target links 2024-02-12 15:04:41 +01:00
org-cycle.el org-cycle: Fix "Overwriting value of ... by aliasing" warning 2024-02-23 16:21:13 +03:00
org-datetree.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-duration.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-element-ast.el Reapply "lisp/org-element-ast.el (org-element-property-raw): Simplify implementation" 2024-02-11 15:11:39 +01:00
org-element.el lisp/org-element.el, lisp/ox.el: Add Ihor Radchenko as a maintainer 2024-02-14 13:41:21 +01:00
org-entities.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-faces.el org: Fontify whole table rows with `org-table-row' face 2024-02-01 15:30:18 +01:00
org-feed.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-fold-core.el org-fold-core--process-delayed: Fix delayed folding in killed buffers 2024-02-02 16:23:05 +01:00
org-fold.el org-fold-hide-drawer-all: Do not use point and mark when no region is active 2024-02-18 11:48:50 +01:00
org-footnote.el org-footnote-new: Add an option to create new anonymous labels 2024-02-05 15:38:48 +01:00
org-goto.el org-goto-map: Do not treat 0-9 as digital arguments by default 2024-02-24 12:07:55 +03:00
org-habit.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-id.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
org-indent.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-inlinetask.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-keys.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-lint.el org-id.el: Add search strings, inherit parent IDs 2024-02-24 15:56:44 +03:00
org-list.el lisp/org-list.el (org-list-swap-items): Fix re-folding after swap 2024-02-02 16:23:50 +01:00
org-macro.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-macs.el org-compile-file: Retain all the logs when PROCESS is a list 2024-02-13 12:59:38 +01:00
org-mobile.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-mouse.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-num.el lisp/org-num.el: Autoload safe variables 2024-02-08 16:17:34 +01:00
org-pcomplete.el Fix [[* completion when there is text after point 2024-01-07 16:50:40 +01:00
org-persist.el org-persist: Disable reporting read/write time by default 2024-02-24 12:39:59 +03:00
org-plot.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-protocol.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-refile.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org-src.el lisp/org-src.el: complete `org-src-preserve-indentation' docstring 2024-01-29 16:50:53 +01:00
org-table.el org-table-justify-field-maybe: Do not leak alignment data from other tables 2024-02-03 15:58:41 +01:00
org-tempo.el lisp/org-tempo.el: Do not refer to removed function in the commentary 2024-01-31 14:05:46 +01:00
org-timer.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
org.el lisp/org.el (org-insert-heading): Allow specifying heading level 2024-02-24 15:56:43 +03:00
ox-ascii.el Acknowledge that Nicolas Goaziou is no longer maintaining Org libraries 2024-02-14 13:41:21 +01:00
ox-beamer.el lisp/ox-beamer.el: customize the beamer frame environment name 2024-02-21 13:46:32 +03:00
ox-html.el org-html-example-block: Combine :class attributes using space 2024-02-03 15:09:11 +01:00
ox-icalendar.el lisp/ox-icalendar.el: Add time-to-live functionality to ox-icalendar 2024-01-28 13:45:41 -08:00
ox-koma-letter.el Merge branch 'bugfix' 2024-01-06 16:02:02 -05:00
ox-latex.el ox: Fix exporting code blocks with missing language specifier 2024-02-24 12:52:51 +03:00
ox-man.el ox: Fix exporting code blocks with missing language specifier 2024-02-24 12:52:51 +03:00
ox-md.el Merge branch 'bugfix' 2024-02-18 17:29:35 +01:00
ox-odt.el ox: Fix exporting code blocks with missing language specifier 2024-02-24 12:52:51 +03:00
ox-org.el Acknowledge that Nicolas Goaziou is no longer maintaining Org libraries 2024-02-14 13:41:21 +01:00
ox-publish.el Acknowledge that Nicolas Goaziou is no longer maintaining Org libraries 2024-02-14 13:41:21 +01:00
ox-texinfo.el ox: Fix exporting code blocks with missing language specifier 2024-02-24 12:52:51 +03:00
ox.el fixup! ox-org: Do not process citations by default 2024-02-14 15:36:51 +01:00