summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-24 20:19:18 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-24 20:19:18 +0200
commitaa0126ced4d1b35d7e8c7ea5e49637dbed997bb5 (patch)
tree01729348f82dab446a11f7d707980c8b830308f3 /elisp
parent18933e07da1f255fe30d236cd1d525373084f0d0 (diff)
downloadgeiser-chez-aa0126ced4d1b35d7e8c7ea5e49637dbed997bb5.tar.gz
geiser-chez-aa0126ced4d1b35d7e8c7ea5e49637dbed997bb5.tar.bz2
Elisp leftovers trimmed.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-completion.el3
-rw-r--r--elisp/geiser-eval.el2
-rw-r--r--elisp/geiser-syntax.el13
3 files changed, 2 insertions, 16 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index dadf6dd..799280e 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -188,8 +188,7 @@ terminates a current completion."
geiser-completion--module-list-func
nil nil nil
(or history geiser-completion--module-history)
- (or default
- (format "%s" (or (geiser-syntax--buffer-module) ""))))))
+ default)))
(defun geiser--respecting-message (format &rest format-args)
"Display TEXT as a message, without hiding any minibuffer contents."
diff --git a/elisp/geiser-eval.el b/elisp/geiser-eval.el
index cc7bc35..c493092 100644
--- a/elisp/geiser-eval.el
+++ b/elisp/geiser-eval.el
@@ -34,7 +34,7 @@
;;; Plug-able functions:
(make-variable-buffer-local
- (defvar geiser-eval--get-module-function 'geiser-syntax--buffer-module
+ (defvar geiser-eval--get-module-function nil
"Function used to obtain the module for current buffer. It
takes an optional argument, for cases where we want to force its value."))
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index 81025a9..264687a 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -30,19 +30,6 @@
(require 'scheme)
-;;; Modules:
-
-(defconst geiser-syntax--module-definition-re
- "(define-module +\\(([^)]+)\\)")
-
-(defun geiser-syntax--buffer-module (&optional buffer)
- (let ((buffer (or buffer (current-buffer))))
- (with-current-buffer buffer
- (save-excursion
- (goto-char (point-min))
- (when (re-search-forward geiser-syntax--module-definition-re nil t)
- (car (read-from-string (match-string-no-properties 1))))))))
-
;;; Indentation:
(defun geiser-syntax--setup-scheme-indent ()