diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-03-08 02:14:03 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-03-08 02:14:03 +0100 |
commit | e8f56a6bbca1c2e9b4be42630abb518335c7319e (patch) | |
tree | 5018bed25a22d375a1cb4c23c84cf52beda294e8 /elisp/geiser-connection.el | |
parent | a8b44d6042c9ccbaaefb810bbcc683582b386561 (diff) | |
download | geiser-e8f56a6bbca1c2e9b4be42630abb518335c7319e.tar.gz geiser-e8f56a6bbca1c2e9b4be42630abb518335c7319e.tar.bz2 |
Hook to setup the debugger when it's launched.
Diffstat (limited to 'elisp/geiser-connection.el')
-rw-r--r-- | elisp/geiser-connection.el | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el index f5b5928..577ca97 100644 --- a/elisp/geiser-connection.el +++ b/elisp/geiser-connection.el @@ -158,12 +158,7 @@ (format "\\(%s\\)\\|\\(%s\\)" prompt-regexp debug-prompt-regexp) prompt-regexp)) (setq comint-prompt-regexp comint-redirect-finished-regexp) - (add-hook 'comint-redirect-hook 'geiser-con--comint-redirect-hook nil t) - (when debug-prompt-regexp - (add-hook 'comint-redirect-filter-functions - 'geiser-con--debug-watcher - nil - t))) + (add-hook 'comint-redirect-hook 'geiser-con--comint-redirect-hook nil t)) ;;; Requests handling: @@ -234,14 +229,6 @@ (geiser-con--connection-clean-current-request geiser-con--connection))))) -(defun geiser-con--debug-watcher (pstr) - (when (string-match-p geiser-con--debugging-prompt-regexp pstr) - (setq comint-redirect-echo-input t) - (setq pstr (concat (with-current-buffer comint-redirect-output-buffer - (buffer-string)) - pstr))) - pstr) - (defadvice comint-redirect-setup (after geiser-con--advice (output-buffer comint-buffer finished-regexp &optional echo)) |