浏览代码

org-info: Fix typo

* lisp/org-info.el (org-info-follow-link): Fix typo in regexp.
Nicolas Goaziou 6 年之前
父节点
当前提交
7c14efd3e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org-info.el

+ 1 - 1
lisp/org-info.el

@@ -66,7 +66,7 @@
 
 
 (defun org-info-follow-link (name)
 (defun org-info-follow-link (name)
   "Follow an Info file and node link specified by NAME."
   "Follow an Info file and node link specified by NAME."
-  (if (or (string-match "\\(.*\\)\\(:?#\\|::\\)\\(.*\\)" name)
+  (if (or (string-match "\\(.*\\)\\(?:#\\|::\\)\\(.*\\)" name)
           (string-match "\\(.*\\)" name))
           (string-match "\\(.*\\)" name))
       (let ((filename (match-string 1 name))
       (let ((filename (match-string 1 name))
 	    (nodename-or-index (or (match-string 2 name) "Top")))
 	    (nodename-or-index (or (match-string 2 name) "Top")))