emacs-devel
[Top][All Lists]
Advanced

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

Re: Comint read-only-prompt


From: Luc Teirlinck
Subject: Re: Comint read-only-prompt
Date: Tue, 7 Jun 2005 18:53:00 -0500 (CDT)

The following simple patch seems to fix the problem completely for the
program I am experimenting with (GAP).  It allows some text to be
misfontified, but that text gets erased anyway.

If it works for you too and if there are no objections in the next two
days or so, I will install it.

===File ~/comint-b-diff=====================================
*** comint.el   26 May 2005 09:05:21 -0500      1.319
--- comint.el   07 Jun 2005 17:57:09 -0500      
***************
*** 1547,1554 ****
                     nil comint-last-input-start comint-last-input-end
                     nil comint-last-input-end
                     (+ comint-last-input-end echo-len))))
!                 (delete-region comint-last-input-end
!                                (+ comint-last-input-end echo-len)))))
  
          ;; This used to call comint-output-filter-functions,
          ;; but that scrolled the buffer in undesirable ways.
--- 1547,1555 ----
                     nil comint-last-input-start comint-last-input-end
                     nil comint-last-input-end
                     (+ comint-last-input-end echo-len))))
!                 (let ((inhibit-read-only t))
!                   (delete-region comint-last-input-end
!                                  (+ comint-last-input-end echo-len))))))
  
          ;; This used to call comint-output-filter-functions,
          ;; but that scrolled the buffer in undesirable ways.
============================================================




reply via email to

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