aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-11-09 20:40:48 -0500
committerGlenn Morris2012-11-09 20:40:48 -0500
commit19e0987902a902967992f788e5f202ba1870d74e (patch)
tree647b9d2a39795c5ab0f3d48aa331b5aa27e3c9ae
parent02969baf0f063df25d1464e4852579f375595a8f (diff)
downloademacs-19e0987902a902967992f788e5f202ba1870d74e.tar.gz
emacs-19e0987902a902967992f788e5f202ba1870d74e.zip
Face names should not end in -face (term-face)
* lisp/term.el (term): Rename from `term-face'. (term-current-face, ansi-term-color-vector) (term-default-fg-color, term-default-bg-color, term-ansi-reset): Update all users. * doc/emacs/misc.texi (Terminal emulator): Rename `term-face' to `term'. * etc/NEWS: Related edit.
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/misc.texi2
-rw-r--r--etc/NEWS2
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/term.el12
5 files changed, 19 insertions, 8 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index d975112f0fb..9390daef38d 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,7 @@
12012-11-10 Glenn Morris <rgm@gnu.org>
2
3 * misc.texi (Terminal emulator): Rename `term-face' to `term'.
4
12012-11-09 Glenn Morris <rgm@gnu.org> 52012-11-09 Glenn Morris <rgm@gnu.org>
2 6
3 * emacs.texi (Acknowledgments): Add profiler author. 7 * emacs.texi (Acknowledgments): Add profiler author.
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index cac5e8dc9dd..244920a23ae 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -1209,7 +1209,7 @@ VT100-style escape sequences, which are accepted by most modern
1209terminals, including @command{xterm}. (Hence, you can actually run 1209terminals, including @command{xterm}. (Hence, you can actually run
1210Emacs inside an Emacs Term window.) 1210Emacs inside an Emacs Term window.)
1211 1211
1212 The @code{term-face} face specifies the default appearance of text 1212 The @code{term} face specifies the default appearance of text
1213in the terminal emulator (the default is the same appearance as the 1213in the terminal emulator (the default is the same appearance as the
1214@code{default} face). When terminal control codes are used to change 1214@code{default} face). When terminal control codes are used to change
1215the appearance of text, these are represented in the terminal emulator 1215the appearance of text, these are represented in the terminal emulator
diff --git a/etc/NEWS b/etc/NEWS
index 5983664c607..cbf59b9e011 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -573,7 +573,7 @@ at point, or the Nth column if a numeric prefix argument is given.
573** Term 573** Term
574+++ 574+++
575*** The variables `term-default-fg-color' and `term-default-bg-color' are 575*** The variables `term-default-fg-color' and `term-default-bg-color' are
576now deprecated in favor of the customizable `term-face' face. 576now deprecated in favor of the customizable face `term'.
577 577
578*** You can customize how to display ANSI terminal colors and styles 578*** You can customize how to display ANSI terminal colors and styles
579by customizing the corresponding `term-color-<COLOR>', 579by customizing the corresponding `term-color-<COLOR>',
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c5dd2eca746..9284fd5d5de 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12012-11-10 Glenn Morris <rgm@gnu.org>
2
3 * term.el (term): Rename from `term-face'.
4 (term-current-face, ansi-term-color-vector)
5 (term-default-fg-color, term-default-bg-color, term-ansi-reset):
6 Update all users.
7
12012-11-09 Jan Djärv <jan.h.d@swipnet.se> 82012-11-09 Jan Djärv <jan.h.d@swipnet.se>
2 9
3 * server.el (server-create-window-system-frame): Improved comment. 10 * server.el (server-create-window-system-frame): Improved comment.
diff --git a/lisp/term.el b/lisp/term.el
index 7567bd38f5a..860b5336b56 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -452,7 +452,7 @@ state 4: term-terminal-parameter contains pending output.")
452 "A queue of strings whose echo we want suppressed.") 452 "A queue of strings whose echo we want suppressed.")
453(defvar term-terminal-parameter) 453(defvar term-terminal-parameter)
454(defvar term-terminal-previous-parameter) 454(defvar term-terminal-previous-parameter)
455(defvar term-current-face 'term-face) 455(defvar term-current-face 'term)
456(defvar term-scroll-start 0 "Top-most line (inclusive) of scrolling region.") 456(defvar term-scroll-start 0 "Top-most line (inclusive) of scrolling region.")
457(defvar term-scroll-end) ; Number of line (zero-based) after scrolling region. 457(defvar term-scroll-end) ; Number of line (zero-based) after scrolling region.
458(defvar term-pager-count nil 458(defvar term-pager-count nil
@@ -759,7 +759,7 @@ Buffer local variable.")
759 759
760;;; Faces 760;;; Faces
761(defvar ansi-term-color-vector 761(defvar ansi-term-color-vector
762 [term-face 762 [term
763 term-color-black 763 term-color-black
764 term-color-red 764 term-color-red
765 term-color-green 765 term-color-green
@@ -771,17 +771,17 @@ Buffer local variable.")
771 771
772(defcustom term-default-fg-color nil 772(defcustom term-default-fg-color nil
773 "If non-nil, default color for foreground in Term mode. 773 "If non-nil, default color for foreground in Term mode.
774This is deprecated in favor of customizing the `term-face' face." 774This is deprecated in favor of customizing the `term' face."
775 :group 'term 775 :group 'term
776 :type 'string) 776 :type 'string)
777 777
778(defcustom term-default-bg-color nil 778(defcustom term-default-bg-color nil
779 "If non-nil, default color for foreground in Term mode. 779 "If non-nil, default color for foreground in Term mode.
780This is deprecated in favor of customizing the `term-face' face." 780This is deprecated in favor of customizing the `term' face."
781 :group 'term 781 :group 'term
782 :type 'string) 782 :type 'string)
783 783
784(defface term-face 784(defface term
785 `((t 785 `((t
786 :foreground ,term-default-fg-color 786 :foreground ,term-default-fg-color
787 :background ,term-default-bg-color 787 :background ,term-default-bg-color
@@ -988,7 +988,7 @@ is buffer-local."
988 dt)) 988 dt))
989 989
990(defun term-ansi-reset () 990(defun term-ansi-reset ()
991 (setq term-current-face 'term-face) 991 (setq term-current-face 'term)
992 (setq term-ansi-current-underline nil) 992 (setq term-ansi-current-underline nil)
993 (setq term-ansi-current-bold nil) 993 (setq term-ansi-current-bold nil)
994 (setq term-ansi-current-reverse nil) 994 (setq term-ansi-current-reverse nil)