diff options
author | Bastien Guerry <bzg@altern.org> | 2011-02-11 13:38:39 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-02-11 13:38:39 +0100 |
commit | e318bacdbfeef1f9a2fa56e6da81e2b213ea89a4 (patch) | |
tree | 77e2b24966412ff791852b3da7a2cbd5fd249a7f | |
parent | 6f29af3440051e514ecfee90d22d999f19039c77 (diff) | |
download | org-mode-e318bacdbfeef1f9a2fa56e6da81e2b213ea89a4.tar.gz |
Use # to separate the info file and the node in Org links.
* org-info.el (org-info-store-link): use "#" to separate the
info file and the node.
(org-info-follow-link): use both "#" to separate the info file
and the node. Continue to use ":" for backward compatibility.
-rw-r--r-- | lisp/org-info.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org-info.el b/lisp/org-info.el index 250f438..57957a4 100644 --- a/lisp/org-info.el +++ b/lisp/org-info.el @@ -52,9 +52,9 @@ (let (link desc) (setq link (org-make-link "info:" (file-name-nondirectory Info-current-file) - ":" Info-current-node)) + "#" Info-current-node)) (setq desc (concat (file-name-nondirectory Info-current-file) - ":" Info-current-node)) + "#" Info-current-node)) (org-store-link-props :type "info" :file Info-current-file :node Info-current-node :link link :desc desc) @@ -67,7 +67,7 @@ (defun org-info-follow-link (name) "Follow an Info file and node link specified by NAME." - (if (or (string-match "\\(.*\\)::?\\(.*\\)" name) + (if (or (string-match "\\(.*\\)[#:]:?\\(.*\\)" name) (string-match "\\(.*\\)" name)) (progn (require 'info) |