X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/233ba4d924933cb56129bd7511e6137b7c0b8e3e..c74587e6b0c545eb4fb57654a79ca88ea14a6764:/lisp/org/org-info.el diff --git a/lisp/org/org-info.el b/lisp/org/org-info.el index edbf426895..b4e5c2244d 100644 --- a/lisp/org/org-info.el +++ b/lisp/org/org-info.el @@ -1,11 +1,10 @@ ;;; org-info.el --- Support for links to Info nodes from within Org-Mode -;; Copyright (C) 2004-2011 Free Software Foundation, Inc. +;; Copyright (C) 2004-2012 Free Software Foundation, Inc. ;; Author: Carsten Dominik ;; Keywords: outlines, hypermedia, calendar, wp ;; Homepage: http://orgmode.org -;; Version: 7.4 ;; ;; This file is part of GNU Emacs. ;; @@ -51,9 +50,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) @@ -66,7 +65,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) @@ -77,5 +76,4 @@ (provide 'org-info) - ;;; org-info.el ends here