]> code.delx.au - gnu-emacs/blobdiff - lisp/org/org-info.el
CC Mode: truncate the semi-nonlit cache when applying syntax-table to a quote
[gnu-emacs] / lisp / org / org-info.el
index edbf426895450e8418a361fe28be7fb6f63a6e0b..4ee5ee4e2e8310461e4456e3d51ca9a52183f38c 100644 (file)
@@ -1,11 +1,10 @@
 ;;; org-info.el --- Support for links to Info nodes from within Org-Mode
 
-;; Copyright (C) 2004-201 Free Software Foundation, Inc.
+;; Copyright (C) 2004-2016 Free Software Foundation, Inc.
 
 ;; Author: Carsten Dominik <carsten at orgmode dot org>
 ;; Keywords: outlines, hypermedia, calendar, wp
 ;; Homepage: http://orgmode.org
-;; Version: 7.4
 ;;
 ;; This file is part of GNU Emacs.
 ;;
@@ -35,8 +34,8 @@
 
 ;; Declare external functions and variables
 
-(declare-function Info-find-node "info" (filename nodename
-                                                 &optional no-going-back))
+(declare-function Info-find-node "info"
+                  (filename nodename &optional no-going-back strict-case))
 (defvar Info-current-file)
 (defvar Info-current-node)
 
   "Store a link to an Info file and node."
   (when (eq major-mode 'Info-mode)
     (let (link desc)
-      (setq link (org-make-link "info:"
-                               (file-name-nondirectory Info-current-file)
-                               ":" Info-current-node))
+      (setq link (concat "info:"
+                        (file-name-nondirectory Info-current-file)
+                        "#" 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