From 561fd4e8fd676a0e5b0a710d9234303673b34959 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Thu, 15 Oct 2009 03:22:49 +0200 Subject: Autodoc fix: dots in arglists were causing a parsing error. --- elisp/geiser-syntax.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index e22344e..6be186a 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -195,6 +195,9 @@ (defsubst geiser-syntax--nesting-level () (or (nth 0 (syntax-ppss)) 0)) +(defsubst geiser-syntax--pair-length (p) + (if (cdr (last p)) (1+ (safe-length p)) (length p))) + (defun geiser-syntax--scan-sexps () (save-excursion (geiser-syntax--skip-comment/string) @@ -206,7 +209,7 @@ (let ((form (nth-value 0 (geiser-syntax--form-after-point boundary)))) (when (and (listp form) (car form) (symbolp (car form))) - (let* ((len-1 (1- (length form))) + (let* ((len-1 (1- (geiser-syntax--pair-length form))) (prev (and (> len-1 1) (nth (1- len-1) form))) (prev (and prev (geiser-syntax--read/keyword-value prev)))) -- cgit v1.2.3