From 7e7ce811360ea4f3eede98219a845845ed054d63 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Tue, 10 Oct 2023 19:23:37 +0300 Subject: [PATCH] * lisp/ol-info.el (org-info-other-documents): Convert to `defcustom' * etc/ORG-NEWS (~org-info-other-documents~ is now a custom option): Announce the change. Link: https://orgmode.org/list/871qe44cec.fsf@breatheoutbreathe.in --- etc/ORG-NEWS | 6 ++++++ lisp/ol-info.el | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 16f8a1c30..e37bba2bd 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -308,6 +308,12 @@ 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 +*** ~org-info-other-documents~ is now a custom option + +Users can now extend the value of ~org-info-other-documents~ to +specify Urls to third-party (non-Emacs) online info nodes when +exporting =info:= links. + *** ~org-export-smart-quotes-alist~ is now a custom option Previously, smart quotes rules for different languages where diff --git a/lisp/ol-info.el b/lisp/ol-info.el index 350ccf5cc..135051631 100644 --- a/lisp/ol-info.el +++ b/lisp/ol-info.el @@ -139,13 +139,17 @@ If LINK is not an info link then DESC is returned." "List of Emacs documents available. Taken from ") -(defconst org-info-other-documents +(defcustom org-info-other-documents '(("dir" . "https://www.gnu.org/manual/manual.html") ; index ("libc" . "https://www.gnu.org/software/libc/manual/html_mono/libc.html") ("make" . "https://www.gnu.org/software/make/manual/make.html")) "Alist of documents generated from Texinfo source. When converting info links to HTML, links to any one of these manuals are -converted to use these URL.") +converted to use these URL." + :group 'org-link + :type '(alist :key-type string :value-type string) + :package-version '(Org . "9.7") + :safe t) (defun org-info-map-html-url (filename) "Return URL or HTML file associated to Info FILENAME.