Bläddra i källkod

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 år sedan
förälder
incheckning
beb010a3a5
1 ändrade filer med 3 tillägg och 0 borttagningar
  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)))))