* term.el (term-ansi-reset): Try setting term-ansi-face-already-done to nil.
authorGlenn Morris <rgm@gnu.org>
Thu, 27 Sep 2012 07:05:37 +0000 (00:05 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 27 Sep 2012 07:05:37 +0000 (00:05 -0700)
Fixes: debbugs:11785

lisp/ChangeLog
lisp/term.el

index 7c803fc..241d69e 100644 (file)
@@ -1,5 +1,8 @@
 2012-09-27  Glenn Morris  <rgm@gnu.org>
 
+       * 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)
 
index 60e5976..7567bd3 100644 (file)
@@ -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"