From e320b982c43edffed2520ba5bfbbb5b4832aad52 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 15 Oct 2022 20:25:29 +0100 Subject: 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. --- elisp/geiser-syntax.el | 5 +++-- 1 file 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) -- cgit v1.2.3