Преглед на файлове

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)))))