diff options
author | jao <jao@gnu.org> | 2022-10-15 20:25:29 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-10-15 20:25:29 +0100 |
commit | e320b982c43edffed2520ba5bfbbb5b4832aad52 (patch) | |
tree | bba75bda865a68803687c9a5edc31133c4e55ed3 | |
parent | b64ee5b8a984e06aae29b8a92362a6db03cfed3b (diff) | |
download | geiser-e320b982c43edffed2520ba5bfbbb5b4832aad52.tar.gz geiser-e320b982c43edffed2520ba5bfbbb5b4832aad52.tar.bz2 |
little fix: duplicated first symbol in autodoc requests
i think we've been sending twice the symbol at point in ge:autodoc's list of
paths since the beginning of time; not that it'll make a noticeable
difference, but let's not.
-rw-r--r-- | elisp/geiser-syntax.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index d4ea75e..3af6539 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -362,11 +362,12 @@ implementation-specific entries for font-lock-keywords.") (defsubst geiser-syntax--symbol-eq (s0 s1) (and (symbolp s0) (symbolp s1) (equal (symbol-name s0) (symbol-name s1)))) -(defun geiser-syntax--scan-sexps (&optional begin) +(defun geiser-syntax--scan-sexps () (let* ((fst (geiser-syntax--symbol-at-point)) (smth (or fst (not (looking-at-p "[\s \s)\s>\s<\n]")))) - (path (and fst `((,fst 0))))) + (path)) (save-excursion + (when fst (backward-up-list) (push `(,fst 0) path)) (while (> (or (geiser-syntax--nesting-level) 0) 0) (let ((boundary (point))) (geiser-syntax--skip-comment/string) |