diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2015-09-30 02:40:20 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2015-09-30 02:40:20 +0200 |
commit | dc9be78f1fad878cbc245abce8d331a51ca50fc5 (patch) | |
tree | 9d2176686a88e63fa9f4815b338f227e4f55eaba /elisp/geiser-chicken.el | |
parent | 04010556fa1c0043472048516a70044c8850d45d (diff) | |
download | geiser-chez-dc9be78f1fad878cbc245abce8d331a51ca50fc5.tar.gz geiser-chez-dc9be78f1fad878cbc245abce8d331a51ca50fc5.tar.bz2 |
Follow suit and complete quoted symbols in all schemes
I kind of dislike completion on symbols, because a quote reads to me as
'stop evaluating', and a symbol per se has infinite possible
conversions. But, on the other hand, not completing has no practical
advantage, and, moreover, we're already completing symbols inside quoted
lists (e.g. try M-TAB next to `'(defi`)), so my prejudices are not even
consistent. So here we go!
Diffstat (limited to 'elisp/geiser-chicken.el')
-rw-r--r-- | elisp/geiser-chicken.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/elisp/geiser-chicken.el b/elisp/geiser-chicken.el index 2a8c082..fc28e63 100644 --- a/elisp/geiser-chicken.el +++ b/elisp/geiser-chicken.el @@ -196,11 +196,13 @@ This function uses `geiser-chicken-init-file' if it exists." 'max (append (list (save-excursion (beginning-of-line) (point)) - (save-excursion (skip-syntax-backward "^-()>" distance-to-beginning-of-line) + (save-excursion (skip-syntax-backward "^'-()>" + distance-to-beginning-of-line) (point))) (mapcar (lambda (match-string) - (save-excursion (skip-chars-backward match-string distance-to-beginning-of-line) + (save-excursion (skip-chars-backward match-string + distance-to-beginning-of-line) (point))) geiser-chicken-prefix-delimiters))))) @@ -283,7 +285,7 @@ This function uses `geiser-chicken-init-file' if it exists." (geiser-connect 'chicken)) (defun geiser-chicken--compile-or-load (force-load) - (let ((target + (let ((target (expand-file-name "chicken/geiser/emacs.so" geiser-scheme-dir)) (source (expand-file-name "chicken/geiser/emacs.scm" geiser-scheme-dir)) |