summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2012-02-05 02:11:10 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2012-02-05 02:11:10 +0100
commit17eeeb80e505356fb7e84e3087c7f0f44eb2890a (patch)
treee00a884d70632aa34d93e24640e78087f296f710 /elisp
parent1ecb8bded1e3f7fa355610ea32d00f869a17d033 (diff)
downloadgeiser-17eeeb80e505356fb7e84e3087c7f0f44eb2890a.tar.gz
geiser-17eeeb80e505356fb7e84e3087c7f0f44eb2890a.tar.bz2
Keeping autodoc active in the REPL
We were not re-activating it on new input, cause we weren't detecting the prompt unless preceeded by other output (and, hence, a newline).
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-repl.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 7ffd1be..7badaf0 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -1,6 +1,6 @@
;;; geiser-repl.el --- Geiser's REPL
-;; Copyright (C) 2009, 2010, 2011 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -268,7 +268,8 @@ module command as a string")
(defun geiser-repl--output-filter (txt)
(geiser-con--connection-update-debugging geiser-repl--connection txt)
- (when (geiser-con--connection-eot-p geiser-repl--connection txt)
+ (when (string-match-p (geiser-con--connection-prompt geiser-repl--connection)
+ txt)
(geiser-autodoc--disinhibit-autodoc)))
(defun geiser-repl--start-repl (impl address)