mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-21 06:55:35 +00:00
Update info link definition
* lisp/org-info.el ("info"): Update link definition with org-link-set-parameters and change a doc string to point to org-link-parameters.
This commit is contained in:
parent
386e3957a6
commit
692f874a12
@ -40,8 +40,10 @@
|
||||
(defvar Info-current-node)
|
||||
|
||||
;; Install the link type
|
||||
(org-add-link-type "info" 'org-info-open 'org-info-export)
|
||||
(add-hook 'org-store-link-functions 'org-info-store-link)
|
||||
(org-link-set-parameters "info"
|
||||
:follow #'org-info-open
|
||||
:export #'org-info-export
|
||||
:store #'org-info-store-link)
|
||||
|
||||
;; Implementation
|
||||
(defun org-info-store-link ()
|
||||
@ -113,7 +115,7 @@ emacs related documents. See `org-info-official-gnu-document' and
|
||||
|
||||
(defun org-info-export (path desc format)
|
||||
"Export an info link.
|
||||
See `org-add-link-type' for details about PATH, DESC and FORMAT."
|
||||
See `org-link-parameters' for details about PATH, DESC and FORMAT."
|
||||
(when (eq format 'html)
|
||||
(or (string-match "\\(.*\\)[#:]:?\\(.*\\)" path)
|
||||
(string-match "\\(.*\\)" path))
|
||||
|
Loading…
Reference in New Issue
Block a user