瀏覽代碼

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 4 年之前
父節點
當前提交
dbc84311c0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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'."