From a6670bbcdc83237ae32e0fcb0c3fe95dc53255bf Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 5 Feb 2012 02:11:10 +0100 Subject: 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). --- NEWS | 9 ++++++++- elisp/geiser-repl.el | 5 +++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 68d334b..4dc11b1 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,11 @@ -* Version 0.1.4 +* Version 0.1.5 + +Bug fixes: + + - We don't deactivate autodoc in the REPL unless requested. + - Indentation for syntax-id-rules and for/hash. + +* Version 0.1.4 (Nov 26, 2011) New features: 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) -- cgit v1.2.3