aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-09-01 16:17:53 +0000
committerGlenn Morris2009-09-01 16:17:53 +0000
commit2fb1ec93cedbc35037476cd01b197dd4d2e53434 (patch)
tree4585ba4e30b50765a2215bd4068b3a03b9a8cd81
parentdf78c9e35717f800240861fa9221d0bad6e24c45 (diff)
downloademacs-2fb1ec93cedbc35037476cd01b197dd4d2e53434.tar.gz
emacs-2fb1ec93cedbc35037476cd01b197dd4d2e53434.zip
Mark face aliases with "-face" suffix as obsolete.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/eshell/em-ls.el36
-rw-r--r--lisp/eshell/em-prompt.el3
-rw-r--r--lisp/eshell/esh-test.el6
4 files changed, 25 insertions, 28 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e8c8fb61318..e54ce5715c7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -41,6 +41,14 @@
41 (widget-inactive-face, widget-button-pressed-face): 41 (widget-inactive-face, widget-button-pressed-face):
42 * woman.el (woman-italic-face, woman-bold-face, woman-unknown-face) 42 * woman.el (woman-italic-face, woman-bold-face, woman-unknown-face)
43 (woman-addition-face): 43 (woman-addition-face):
44 * eshell/em-ls.el (eshell-ls-directory-face, eshell-ls-symlink-face)
45 (eshell-ls-executable-face, eshell-ls-readonly-face)
46 (eshell-ls-unreadable-face, eshell-ls-special-face)
47 (eshell-ls-missing-face, eshell-ls-archive-face)
48 (eshell-ls-backup-face, eshell-ls-product-face)
49 (eshell-ls-clutter-face):
50 * eshell/em-prompt.el (eshell-prompt-face):
51 * eshell/esh-test.el (eshell-test-ok-face, eshell-test-failed-face):
44 * obsolete/old-whitespace.el (whitespace-highlight-face): 52 * obsolete/old-whitespace.el (whitespace-highlight-face):
45 * progmodes/ebrowse.el (ebrowse-tree-mark-face) 53 * progmodes/ebrowse.el (ebrowse-tree-mark-face)
46 (ebrowse-root-class-face, ebrowse-file-name-face) 54 (ebrowse-root-class-face, ebrowse-file-name-face)
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el
index e346806679e..3bf0bbdc614 100644
--- a/lisp/eshell/em-ls.el
+++ b/lisp/eshell/em-ls.el
@@ -113,56 +113,52 @@ faster and conserves more memory."
113 (t (:weight bold))) 113 (t (:weight bold)))
114 "*The face used for highlight directories." 114 "*The face used for highlight directories."
115 :group 'eshell-ls) 115 :group 'eshell-ls)
116;; backward-compatibility alias 116(define-obsolete-face-alias 'eshell-ls-directory-face
117(put 'eshell-ls-directory-face 'face-alias 'eshell-ls-directory) 117 'eshell-ls-directory "22.1")
118 118
119(defface eshell-ls-symlink 119(defface eshell-ls-symlink
120 '((((class color) (background light)) (:foreground "Dark Cyan" :weight bold)) 120 '((((class color) (background light)) (:foreground "Dark Cyan" :weight bold))
121 (((class color) (background dark)) (:foreground "Cyan" :weight bold))) 121 (((class color) (background dark)) (:foreground "Cyan" :weight bold)))
122 "*The face used for highlight symbolic links." 122 "*The face used for highlight symbolic links."
123 :group 'eshell-ls) 123 :group 'eshell-ls)
124;; backward-compatibility alias 124(define-obsolete-face-alias 'eshell-ls-symlink-face 'eshell-ls-symlink "22.1")
125(put 'eshell-ls-symlink-face 'face-alias 'eshell-ls-symlink)
126 125
127(defface eshell-ls-executable 126(defface eshell-ls-executable
128 '((((class color) (background light)) (:foreground "ForestGreen" :weight bold)) 127 '((((class color) (background light)) (:foreground "ForestGreen" :weight bold))
129 (((class color) (background dark)) (:foreground "Green" :weight bold))) 128 (((class color) (background dark)) (:foreground "Green" :weight bold)))
130 "*The face used for highlighting executables (not directories, though)." 129 "*The face used for highlighting executables (not directories, though)."
131 :group 'eshell-ls) 130 :group 'eshell-ls)
132;; backward-compatibility alias 131(define-obsolete-face-alias 'eshell-ls-executable-face
133(put 'eshell-ls-executable-face 'face-alias 'eshell-ls-executable) 132 'eshell-ls-executable "22.1")
134 133
135(defface eshell-ls-readonly 134(defface eshell-ls-readonly
136 '((((class color) (background light)) (:foreground "Brown")) 135 '((((class color) (background light)) (:foreground "Brown"))
137 (((class color) (background dark)) (:foreground "Pink"))) 136 (((class color) (background dark)) (:foreground "Pink")))
138 "*The face used for highlighting read-only files." 137 "*The face used for highlighting read-only files."
139 :group 'eshell-ls) 138 :group 'eshell-ls)
140;; backward-compatibility alias 139(define-obsolete-face-alias 'eshell-ls-readonly-face 'eshell-ls-readonly "22.1")
141(put 'eshell-ls-readonly-face 'face-alias 'eshell-ls-readonly)
142 140
143(defface eshell-ls-unreadable 141(defface eshell-ls-unreadable
144 '((((class color) (background light)) (:foreground "Grey30")) 142 '((((class color) (background light)) (:foreground "Grey30"))
145 (((class color) (background dark)) (:foreground "DarkGrey"))) 143 (((class color) (background dark)) (:foreground "DarkGrey")))
146 "*The face used for highlighting unreadable files." 144 "*The face used for highlighting unreadable files."
147 :group 'eshell-ls) 145 :group 'eshell-ls)
148;; backward-compatibility alias 146(define-obsolete-face-alias 'eshell-ls-unreadable-face
149(put 'eshell-ls-unreadable-face 'face-alias 'eshell-ls-unreadable) 147 'eshell-ls-unreadable "22.1")
150 148
151(defface eshell-ls-special 149(defface eshell-ls-special
152 '((((class color) (background light)) (:foreground "Magenta" :weight bold)) 150 '((((class color) (background light)) (:foreground "Magenta" :weight bold))
153 (((class color) (background dark)) (:foreground "Magenta" :weight bold))) 151 (((class color) (background dark)) (:foreground "Magenta" :weight bold)))
154 "*The face used for highlighting non-regular files." 152 "*The face used for highlighting non-regular files."
155 :group 'eshell-ls) 153 :group 'eshell-ls)
156;; backward-compatibility alias 154(define-obsolete-face-alias 'eshell-ls-special-face 'eshell-ls-special "22.1")
157(put 'eshell-ls-special-face 'face-alias 'eshell-ls-special)
158 155
159(defface eshell-ls-missing 156(defface eshell-ls-missing
160 '((((class color) (background light)) (:foreground "Red" :weight bold)) 157 '((((class color) (background light)) (:foreground "Red" :weight bold))
161 (((class color) (background dark)) (:foreground "Red" :weight bold))) 158 (((class color) (background dark)) (:foreground "Red" :weight bold)))
162 "*The face used for highlighting non-existent file names." 159 "*The face used for highlighting non-existent file names."
163 :group 'eshell-ls) 160 :group 'eshell-ls)
164;; backward-compatibility alias 161(define-obsolete-face-alias 'eshell-ls-missing-face 'eshell-ls-missing "22.1")
165(put 'eshell-ls-missing-face 'face-alias 'eshell-ls-missing)
166 162
167(defcustom eshell-ls-archive-regexp 163(defcustom eshell-ls-archive-regexp
168 (concat "\\.\\(t\\(a[rz]\\|gz\\)\\|arj\\|lzh\\|" 164 (concat "\\.\\(t\\(a[rz]\\|gz\\)\\|arj\\|lzh\\|"
@@ -178,8 +174,7 @@ files."
178 (((class color) (background dark)) (:foreground "Orchid" :weight bold))) 174 (((class color) (background dark)) (:foreground "Orchid" :weight bold)))
179 "*The face used for highlighting archived and compressed file names." 175 "*The face used for highlighting archived and compressed file names."
180 :group 'eshell-ls) 176 :group 'eshell-ls)
181;; backward-compatibility alias 177(define-obsolete-face-alias 'eshell-ls-archive-face 'eshell-ls-archive "22.1")
182(put 'eshell-ls-archive-face 'face-alias 'eshell-ls-archive)
183 178
184(defcustom eshell-ls-backup-regexp 179(defcustom eshell-ls-backup-regexp
185 "\\(\\`\\.?#\\|\\(\\.bak\\|~\\)\\'\\)" 180 "\\(\\`\\.?#\\|\\(\\.bak\\|~\\)\\'\\)"
@@ -192,8 +187,7 @@ files."
192 (((class color) (background dark)) (:foreground "LightSalmon"))) 187 (((class color) (background dark)) (:foreground "LightSalmon")))
193 "*The face used for highlighting backup file names." 188 "*The face used for highlighting backup file names."
194 :group 'eshell-ls) 189 :group 'eshell-ls)
195;; backward-compatibility alias 190(define-obsolete-face-alias 'eshell-ls-backup-face 'eshell-ls-backup "22.1")
196(put 'eshell-ls-backup-face 'face-alias 'eshell-ls-backup)
197 191
198(defcustom eshell-ls-product-regexp 192(defcustom eshell-ls-product-regexp
199 "\\.\\(elc\\|o\\(bj\\)?\\|a\\|lib\\|res\\)\\'" 193 "\\.\\(elc\\|o\\(bj\\)?\\|a\\|lib\\|res\\)\\'"
@@ -208,8 +202,7 @@ ought to be recreatable if they are deleted."
208 (((class color) (background dark)) (:foreground "LightSalmon"))) 202 (((class color) (background dark)) (:foreground "LightSalmon")))
209 "*The face used for highlighting files that are build products." 203 "*The face used for highlighting files that are build products."
210 :group 'eshell-ls) 204 :group 'eshell-ls)
211;; backward-compatibility alias 205(define-obsolete-face-alias 'eshell-ls-product-face 'eshell-ls-product "22.1")
212(put 'eshell-ls-product-face 'face-alias 'eshell-ls-product)
213 206
214(defcustom eshell-ls-clutter-regexp 207(defcustom eshell-ls-clutter-regexp
215 "\\(^texput\\.log\\|^core\\)\\'" 208 "\\(^texput\\.log\\|^core\\)\\'"
@@ -224,8 +217,7 @@ really need to stick around for very long."
224 (((class color) (background dark)) (:foreground "OrangeRed" :weight bold))) 217 (((class color) (background dark)) (:foreground "OrangeRed" :weight bold)))
225 "*The face used for highlighting junk file names." 218 "*The face used for highlighting junk file names."
226 :group 'eshell-ls) 219 :group 'eshell-ls)
227;; backward-compatibility alias 220(define-obsolete-face-alias 'eshell-ls-clutter-face 'eshell-ls-clutter "22.1")
228(put 'eshell-ls-clutter-face 'face-alias 'eshell-ls-clutter)
229 221
230(defsubst eshell-ls-filetype-p (attrs type) 222(defsubst eshell-ls-filetype-p (attrs type)
231 "Test whether ATTRS specifies a directory." 223 "Test whether ATTRS specifies a directory."
diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el
index 215a14793e3..6780c98374a 100644
--- a/lisp/eshell/em-prompt.el
+++ b/lisp/eshell/em-prompt.el
@@ -76,8 +76,7 @@ re-entered for it to take effect."
76For highlighting other kinds of strings -- similar to shell mode's 76For highlighting other kinds of strings -- similar to shell mode's
77behavior -- simply use an output filer which changes text properties." 77behavior -- simply use an output filer which changes text properties."
78 :group 'eshell-prompt) 78 :group 'eshell-prompt)
79;; backward-compatibility alias 79(define-obsolete-face-alias 'eshell-prompt-face 'eshell-prompt "22.1")
80(put 'eshell-prompt-face 'face-alias 'eshell-prompt)
81 80
82(defcustom eshell-before-prompt-hook nil 81(defcustom eshell-before-prompt-hook nil
83 "*A list of functions to call before outputting the prompt." 82 "*A list of functions to call before outputting the prompt."
diff --git a/lisp/eshell/esh-test.el b/lisp/eshell/esh-test.el
index 2d9f4d4244d..1550553ece0 100644
--- a/lisp/eshell/esh-test.el
+++ b/lisp/eshell/esh-test.el
@@ -45,8 +45,7 @@
45 (((class color) (background dark)) (:foreground "Green" :bold t))) 45 (((class color) (background dark)) (:foreground "Green" :bold t)))
46 "*The face used to highlight OK result strings." 46 "*The face used to highlight OK result strings."
47 :group 'eshell-test) 47 :group 'eshell-test)
48;; backward-compatibility alias 48(define-obsolete-face-alias 'eshell-test-ok-face 'eshell-test-ok "22.1")
49(put 'eshell-test-ok-face 'face-alias 'eshell-test-ok)
50 49
51(defface eshell-test-failed 50(defface eshell-test-failed
52 '((((class color) (background light)) (:foreground "OrangeRed" :bold t)) 51 '((((class color) (background light)) (:foreground "OrangeRed" :bold t))
@@ -54,8 +53,7 @@
54 (t (:bold t))) 53 (t (:bold t)))
55 "*The face used to highlight FAILED result strings." 54 "*The face used to highlight FAILED result strings."
56 :group 'eshell-test) 55 :group 'eshell-test)
57;; backward-compatibility alias 56(define-obsolete-face-alias 'eshell-test-failed-face 'eshell-test-failed "22.1")
58(put 'eshell-test-failed-face 'face-alias 'eshell-test-failed)
59 57
60(defcustom eshell-show-usage-metrics nil 58(defcustom eshell-show-usage-metrics nil
61 "*If non-nil, display different usage metrics for each Eshell command." 59 "*If non-nil, display different usage metrics for each Eshell command."