From e318bacdbfeef1f9a2fa56e6da81e2b213ea89a4 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Fri, 11 Feb 2011 13:38:39 +0100 Subject: [PATCH] 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. --- lisp/org-info.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-info.el b/lisp/org-info.el index 250f438ab..57957a4f2 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) -- 2.11.4.GIT