summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-07 02:21:06 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-07 02:21:06 +0200
commit567f3ba667f2b708f1b9dbf76eede1fad0fd6b1d (patch)
treed3786ff3fe2ded09e8d42519e93ce74ab252029c
parentd41ac93939fa4de543f4fd5cf52e4b4794ecf262 (diff)
downloadgeiser-guile-567f3ba667f2b708f1b9dbf76eede1fad0fd6b1d.tar.gz
geiser-guile-567f3ba667f2b708f1b9dbf76eede1fad0fd6b1d.tar.bz2
Guile: dead elisp code elimination.
-rw-r--r--elisp/geiser-guile.el44
1 files changed, 1 insertions, 43 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index badfcfa..9855a11 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -100,48 +100,6 @@ This function uses `geiser-guile-init-file' if it exists."
(save-excursion (skip-syntax-backward "^-()>") (point))))
-;;; Error display
-(defvar geiser-guile--file-cache (make-hash-table :test 'equal))
-
-(defun geiser-guile--resolve-file (file)
- (when (and (stringp file) (not (string-equal file "unknown file")))
- (if (file-name-absolute-p file) file
- (or (gethash file geiser-guile--file-cache)
- (puthash file
- (geiser-eval--send/result
- `(:eval ((:ge find-file) ,file)))
- geiser-guile--file-cache)))))
-
-(defconst geiser-guile--file-rx
- "^In \\([^\n:]+\\):\n *\\([[:digit:]]+\\|\\?\\):")
-
-(defun geiser-guile--find-files ()
- (with--geiser-implementation 'guile
- (save-excursion
- (while (re-search-forward geiser-guile--file-rx nil t)
- (let ((file (match-string 1))
- (beg (match-beginning 1))
- (end (match-end 1))
- (line (string-to-number (or (match-string 2) "0"))))
- (let ((file (geiser-guile--resolve-file file)))
- (when file
- (geiser-edit--make-link beg end file line 0))))))))
-
-(defun geiser-guile--display-error (module key msg)
- (if (eq key 'geiser-debugger)
- (comint-send-string nil "bt\n")
- (when key
- (insert "Error: ")
- (geiser--insert-with-face (format "%s" key) 'bold)
- (newline 2))
- (when msg
- (let ((p (point)))
- (insert msg)
- (goto-char p)
- (geiser-guile--find-files)))
- t))
-
-
;;; Trying to ascertain whether a buffer is Guile Scheme:
(defun geiser-guile--guess ()
@@ -199,7 +157,7 @@ This function uses `geiser-guile-init-file' if it exists."
(find-module geiser-guile--get-module)
(enter-command geiser-guile--enter-command)
(find-symbol-begin geiser-guile--symbol-begin)
- (display-error geiser-guile--display-error)
+ (display-error)
(display-help)
(check-buffer geiser-guile--guess))