浏览代码

ol.el: Fix confusing variable name

* ol.el (org-link--open-help): Fix a confusing variable name.  No
behavior changes.

TINYCHANGE
Aaron L. Zeng 4 年之前
父节点
当前提交
e2ffee96d2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lisp/ol.el

+ 2 - 2
lisp/ol.el

@@ -1335,8 +1335,8 @@ PATH is the sexp to evaluate, as a string."
   "Open a \"help\" type link.
 PATH is a symbol name, as a string."
   (pcase (intern path)
-    ((and (pred fboundp) variable) (describe-function variable))
-    ((and (pred boundp) function) (describe-variable function))
+    ((and (pred fboundp) function) (describe-function function))
+    ((and (pred boundp) variable) (describe-variable variable))
     (name (user-error "Unknown function or variable: %s" name))))
 
 (org-link-set-parameters "help" :follow #'org-link--open-help)