From 48c339f259bca28c83aef763f11ba380ef86a07a Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 27 Sep 2012 00:05:37 -0700 Subject: [PATCH] * term.el (term-ansi-reset): Try setting term-ansi-face-already-done to nil. Fixes: debbugs:11785 --- lisp/ChangeLog | 3 +++ lisp/term.el | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7c803fcd2e..241d69ec1c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2012-09-27 Glenn Morris + * term.el (term-ansi-reset): + Try setting term-ansi-face-already-done to nil. (Bug#11785) + * vc/vc.el (vc-next-action): Only gripe about committing read-only files for RCS and SCCS. (Bug#9781) diff --git a/lisp/term.el b/lisp/term.el index 60e5976878..7567bd38f5 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -994,7 +994,10 @@ is buffer-local." (setq term-ansi-current-reverse nil) (setq term-ansi-current-color 0) (setq term-ansi-current-invisible nil) - (setq term-ansi-face-already-done t) + ;; Stefan thought this should be t, but could not remember why. + ;; Setting it to t seems to cause bug#11785. Setting it to nil + ;; again to see if there are other consequences... + (setq term-ansi-face-already-done nil) (setq term-ansi-current-bg-color 0)) (define-derived-mode term-mode fundamental-mode "Term" -- 2.20.1