diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-07 02:21:06 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-07 02:21:06 +0200 |
commit | f0db115f00abb485c0197de931aa4f233d764e5f (patch) | |
tree | cb2091fdaeda5643ba47617d76ea6135374a592f /elisp | |
parent | f669d52cfa944865f0b1f340dc0a7e634fec8e99 (diff) | |
download | geiser-chez-f0db115f00abb485c0197de931aa4f233d764e5f.tar.gz geiser-chez-f0db115f00abb485c0197de931aa4f233d764e5f.tar.bz2 |
Guile: dead elisp code elimination.
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-guile.el | 44 |
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)) |