瀏覽代碼

ol: Fix storing link from a keybinding help buffer

* lisp/ol.el (org-link--store-help): Store the function attached to
the binding instead of the binding itself.
Nicolas Goaziou 3 年之前
父節點
當前提交
beb010a3a5
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lisp/ol.el

+ 3 - 0
lisp/ol.el

@@ -1335,6 +1335,9 @@ PATH is a symbol name, as a string."
     (let ((symbol
            (save-excursion
 	     (goto-char (point-min))
+             ;; In case the help is about the key-binding, store the
+             ;; function instead.
+             (search-forward "runs the command " (line-end-position) t)
              (read (current-buffer)))))
       (org-link-store-props :type "help" :link (format "help:%s" symbol)))))