diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-06-16 22:35:21 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-06-16 22:35:21 +0200 |
commit | 1dd9eeb3cb80260738a5683e9a41b6f66acd7460 (patch) | |
tree | 3a4d2cb25a6f42fb5644bd084e09d0b455c3f624 /elisp/geiser-syntax.el | |
parent | 3c8e22e4aaa3cbac830d4a37af6db3395082fb66 (diff) | |
download | geiser-chez-1dd9eeb3cb80260738a5683e9a41b6f66acd7460.tar.gz geiser-chez-1dd9eeb3cb80260738a5683e9a41b6f66acd7460.tar.bz2 |
Better parsing of scheme retorts in the Emacs end.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r-- | elisp/geiser-syntax.el | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index 14d996c..c70aacb 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -89,23 +89,10 @@ (goto-char (point-max)) (and (re-search-backward "(output \\. \"" nil t) (point))))) - (goto-char (point-min)) - (while (re-search-forward "#\<\\([^>]*?\\)\>" end t) - (let ((from (match-beginning 1)) - (to (match-end 1))) - (goto-char from) - (while (re-search-forward "\\([ ;'`]\\)" to t) - (replace-match "\\\\\\1")) - (goto-char from) - (while (re-search-forward "[()]" to t) - (replace-match "")) - (goto-char to))) - (goto-char (point-min)) - (while (re-search-forward "#(" end t) (replace-match "(vector ")) - (goto-char (point-min)) - (while (re-search-forward "#" end t) (replace-match "\\\\#")) - (goto-char (point-min)) - (skip-syntax-forward "^("))) + (save-excursion + (while (re-search-forward "#(" end t) (replace-match "(vector ")) + (goto-char (point-min)) + (while (re-search-forward "#" end t) (replace-match "\\\\#"))))) (defsubst geiser-syntax--del-sexp (arg) (let ((p (point))) |