From 269ab35829a53dd13727741cb54fb10abc1e207a Mon Sep 17 00:00:00 2001 From: TEC Date: Sun, 24 Jul 2022 02:37:03 +0800 Subject: [PATCH] Allow 0-arg calling of og--complete-path-spec --- org-glossary.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org-glossary.el b/org-glossary.el index 8aefc8a..025e190 100644 --- a/org-glossary.el +++ b/org-glossary.el @@ -372,8 +372,9 @@ TERM-GETTER will be called with three arguments: the term source, t, and `alread (when (string= "INCLUDE" (org-element-property :key kwd)) (org-element-property :value kwd)))))))) -(defun org-glossary--complete-path-spec (path-spec) - "Given a tentative PATH-SPEC, try to get a proper one." +(defun org-glossary--complete-path-spec (&optional path-spec) + "Given a tentative PATH-SPEC, try to get a proper one. +The PATH-SPEC is formed with respect to the current buffer." (or (and (stringp path-spec) (org-glossary--parse-include-value path-spec)) path-spec