emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8a9ba4d: * lisp/progmodes/tcl.el (tcl-filter):


From: Glenn Morris
Subject: [Emacs-diffs] master 8a9ba4d: * lisp/progmodes/tcl.el (tcl-filter):
Date: Wed, 13 May 2015 01:19:42 +0000

branch: master
commit 8a9ba4d67bfb3b9cf96cff2917fec1fa7a168724
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    * lisp/progmodes/tcl.el (tcl-filter):
    
    Handle comint-prompt-read-only like gud.el does.  (Bug#20549)
---
 lisp/progmodes/tcl.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
index 8f7705b..e4e9655 100644
--- a/lisp/progmodes/tcl.el
+++ b/lisp/progmodes/tcl.el
@@ -1028,7 +1028,8 @@ Returns nil if line starts inside a string, t if in a 
comment."
     (with-current-buffer (process-buffer proc)
       ;; Delete prompt if requested.
       (when (marker-buffer inferior-tcl-delete-prompt-marker)
-        (delete-region (process-mark proc) inferior-tcl-delete-prompt-marker)
+       (let ((inhibit-read-only t))
+         (delete-region (process-mark proc) inferior-tcl-delete-prompt-marker))
         (set-marker inferior-tcl-delete-prompt-marker nil))))
   (comint-output-filter proc string))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]