Procházet zdrojové kódy

ob-smiles.el: Fix reference to free variable

* contrib/lisp/ob-smiles.el (molecule-jump): Format string with NAME
argument rather than undefined variable `path'.
Kyle Meyer před 4 roky
rodič
revize
dbc84311c0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      contrib/lisp/ob-smiles.el

+ 1 - 1
contrib/lisp/ob-smiles.el

@@ -28,7 +28,7 @@
 (defun molecule-jump (name)
   "Jump to molecule `NAME' definition."
   (org-mark-ring-push)
-  (org-link-open-from-string (format "[[%s]]" path)))
+  (org-link-open-from-string (format "[[%s]]" name)))
 
 (defun molecule-export (path desc backend)
   "Export molecule to HTML format on `PATH' with `DESC' and `BACKEND'."