diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-07-31 03:11:32 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-07-31 03:11:32 +0200 |
commit | 02baf409daf8922c1612e5e6ac988519cb919a92 (patch) | |
tree | 52461e5e026e1637741c4f6b5310977dd189f1fe | |
parent | b63b3a90f134e731ebc1634afceae9546fdfc8b1 (diff) | |
download | geiser-02baf409daf8922c1612e5e6ac988519cb919a92.tar.gz geiser-02baf409daf8922c1612e5e6ac988519cb919a92.tar.bz2 |
Autodoc: fix for current argument hihglighting.
-rw-r--r-- | elisp/geiser-syntax.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index 3e8d590..ea702a4 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -227,10 +227,11 @@ (let ((form (nth-value 0 (geiser-syntax--form-after-point boundary)))) (when (and (listp form) (car form) (symbolp (car form))) - (let* ((len-1 (1- (geiser-syntax--pair-length form))) - (prev (and (> len-1 1) (nth (1- len-1) form))) + (let* ((len (geiser-syntax--pair-length form)) + (pos (if path (1- len) len)) + (prev (and (> pos 1) (nth (1- pos) form))) (prev (and (keywordp prev) (list prev)))) - (push `(,(car form) ,len-1 ,@prev) path))))))) + (push `(,(car form) ,pos ,@prev) path))))))) (nreverse path))) (defsubst geiser-syntax--binding-form-p (bfs sbfs f) |