aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Oteiza2016-06-23 18:48:12 -0400
committerMark Oteiza2016-06-23 18:48:12 -0400
commit90d0833f24be04e4b36aabda8cae1681ae768258 (patch)
tree435ad616cf767cf2f15fc196d567fec2a6dc1773
parentc430f7e23fc2c22f251ace4254e37dea1452dfc3 (diff)
downloademacs-90d0833f24be04e4b36aabda8cae1681ae768258.tar.gz
emacs-90d0833f24be04e4b36aabda8cae1681ae768258.zip
Remove some more face aliases obsoleted in 22.1
* lisp/eshell/em-ls.el (eshell-ls-directory-face, eshell-ls-symlink-face, eshell-ls-executable-face, eshell-ls-readonly-face, eshell-ls-unreadable-face, eshell-ls-special-face, eshell-ls-missing-face, eshell-ls-archive-face, eshell-ls-backup-face, eshell-ls-product-face, eshell-ls-clutter-face): Remove. * lisp/isearch.el (isearch-lazy-highlight-face, lazy-highlight-face): Remove. (isearch-lazy-highlight-update): Use face symbol. * lisp/net/sieve-mode.el (sieve-control-commands-face, sieve-action-commands-face, sieve-test-commands-face, sieve-tagged-arguments-face): Remove. (sieve-font-lock-keywords): Use non-obsolete faces. * lisp/progmodes/sh-script.el (sh-heredoc-face): Remove. (sh-get-indent-info, sh-prev-line): Use face symbol. * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Use non-obsolete face. (tex-math-face, tex-verbatim-face): Remove. (tex-font-lock-syntactic-face-function): Use face symbols.
-rw-r--r--lisp/eshell/em-ls.el14
-rw-r--r--lisp/isearch.el8
-rw-r--r--lisp/net/sieve-mode.el32
-rw-r--r--lisp/progmodes/sh-script.el9
-rw-r--r--lisp/textmodes/tex-mode.el12
5 files changed, 13 insertions, 62 deletions
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el
index cf6609ff729..8616dd2479b 100644
--- a/lisp/eshell/em-ls.el
+++ b/lisp/eshell/em-ls.el
@@ -101,46 +101,36 @@ faster and conserves more memory."
101 (((class color) (background dark)) (:foreground "SkyBlue" :weight bold)) 101 (((class color) (background dark)) (:foreground "SkyBlue" :weight bold))
102 (t (:weight bold))) 102 (t (:weight bold)))
103 "The face used for highlighting directories.") 103 "The face used for highlighting directories.")
104(define-obsolete-face-alias 'eshell-ls-directory-face
105 'eshell-ls-directory "22.1")
106 104
107(defface eshell-ls-symlink 105(defface eshell-ls-symlink
108 '((((class color) (background light)) (:foreground "Dark Cyan" :weight bold)) 106 '((((class color) (background light)) (:foreground "Dark Cyan" :weight bold))
109 (((class color) (background dark)) (:foreground "Cyan" :weight bold))) 107 (((class color) (background dark)) (:foreground "Cyan" :weight bold)))
110 "The face used for highlighting symbolic links.") 108 "The face used for highlighting symbolic links.")
111(define-obsolete-face-alias 'eshell-ls-symlink-face 'eshell-ls-symlink "22.1")
112 109
113(defface eshell-ls-executable 110(defface eshell-ls-executable
114 '((((class color) (background light)) (:foreground "ForestGreen" :weight bold)) 111 '((((class color) (background light)) (:foreground "ForestGreen" :weight bold))
115 (((class color) (background dark)) (:foreground "Green" :weight bold))) 112 (((class color) (background dark)) (:foreground "Green" :weight bold)))
116 "The face used for highlighting executables (not directories, though).") 113 "The face used for highlighting executables (not directories, though).")
117(define-obsolete-face-alias 'eshell-ls-executable-face
118 'eshell-ls-executable "22.1")
119 114
120(defface eshell-ls-readonly 115(defface eshell-ls-readonly
121 '((((class color) (background light)) (:foreground "Brown")) 116 '((((class color) (background light)) (:foreground "Brown"))
122 (((class color) (background dark)) (:foreground "Pink"))) 117 (((class color) (background dark)) (:foreground "Pink")))
123 "The face used for highlighting read-only files.") 118 "The face used for highlighting read-only files.")
124(define-obsolete-face-alias 'eshell-ls-readonly-face 'eshell-ls-readonly "22.1")
125 119
126(defface eshell-ls-unreadable 120(defface eshell-ls-unreadable
127 '((((class color) (background light)) (:foreground "Grey30")) 121 '((((class color) (background light)) (:foreground "Grey30"))
128 (((class color) (background dark)) (:foreground "DarkGrey"))) 122 (((class color) (background dark)) (:foreground "DarkGrey")))
129 "The face used for highlighting unreadable files.") 123 "The face used for highlighting unreadable files.")
130(define-obsolete-face-alias 'eshell-ls-unreadable-face
131 'eshell-ls-unreadable "22.1")
132 124
133(defface eshell-ls-special 125(defface eshell-ls-special
134 '((((class color) (background light)) (:foreground "Magenta" :weight bold)) 126 '((((class color) (background light)) (:foreground "Magenta" :weight bold))
135 (((class color) (background dark)) (:foreground "Magenta" :weight bold))) 127 (((class color) (background dark)) (:foreground "Magenta" :weight bold)))
136 "The face used for highlighting non-regular files.") 128 "The face used for highlighting non-regular files.")
137(define-obsolete-face-alias 'eshell-ls-special-face 'eshell-ls-special "22.1")
138 129
139(defface eshell-ls-missing 130(defface eshell-ls-missing
140 '((((class color) (background light)) (:foreground "Red" :weight bold)) 131 '((((class color) (background light)) (:foreground "Red" :weight bold))
141 (((class color) (background dark)) (:foreground "Red" :weight bold))) 132 (((class color) (background dark)) (:foreground "Red" :weight bold)))
142 "The face used for highlighting non-existent file names.") 133 "The face used for highlighting non-existent file names.")
143(define-obsolete-face-alias 'eshell-ls-missing-face 'eshell-ls-missing "22.1")
144 134
145(defcustom eshell-ls-archive-regexp 135(defcustom eshell-ls-archive-regexp
146 (concat "\\.\\(t\\(a[rz]\\|gz\\)\\|arj\\|lzh\\|" 136 (concat "\\.\\(t\\(a[rz]\\|gz\\)\\|arj\\|lzh\\|"
@@ -155,7 +145,6 @@ files."
155 '((((class color) (background light)) (:foreground "Orchid" :weight bold)) 145 '((((class color) (background light)) (:foreground "Orchid" :weight bold))
156 (((class color) (background dark)) (:foreground "Orchid" :weight bold))) 146 (((class color) (background dark)) (:foreground "Orchid" :weight bold)))
157 "The face used for highlighting archived and compressed file names.") 147 "The face used for highlighting archived and compressed file names.")
158(define-obsolete-face-alias 'eshell-ls-archive-face 'eshell-ls-archive "22.1")
159 148
160(defcustom eshell-ls-backup-regexp 149(defcustom eshell-ls-backup-regexp
161 "\\(\\`\\.?#\\|\\(\\.bak\\|~\\)\\'\\)" 150 "\\(\\`\\.?#\\|\\(\\.bak\\|~\\)\\'\\)"
@@ -166,7 +155,6 @@ files."
166 '((((class color) (background light)) (:foreground "OrangeRed")) 155 '((((class color) (background light)) (:foreground "OrangeRed"))
167 (((class color) (background dark)) (:foreground "LightSalmon"))) 156 (((class color) (background dark)) (:foreground "LightSalmon")))
168 "The face used for highlighting backup file names.") 157 "The face used for highlighting backup file names.")
169(define-obsolete-face-alias 'eshell-ls-backup-face 'eshell-ls-backup "22.1")
170 158
171(defcustom eshell-ls-product-regexp 159(defcustom eshell-ls-product-regexp
172 "\\.\\(elc\\|o\\(bj\\)?\\|a\\|lib\\|res\\)\\'" 160 "\\.\\(elc\\|o\\(bj\\)?\\|a\\|lib\\|res\\)\\'"
@@ -179,7 +167,6 @@ ought to be recreatable if they are deleted."
179 '((((class color) (background light)) (:foreground "OrangeRed")) 167 '((((class color) (background light)) (:foreground "OrangeRed"))
180 (((class color) (background dark)) (:foreground "LightSalmon"))) 168 (((class color) (background dark)) (:foreground "LightSalmon")))
181 "The face used for highlighting files that are build products.") 169 "The face used for highlighting files that are build products.")
182(define-obsolete-face-alias 'eshell-ls-product-face 'eshell-ls-product "22.1")
183 170
184(defcustom eshell-ls-clutter-regexp 171(defcustom eshell-ls-clutter-regexp
185 "\\(^texput\\.log\\|^core\\)\\'" 172 "\\(^texput\\.log\\|^core\\)\\'"
@@ -192,7 +179,6 @@ really need to stick around for very long."
192 '((((class color) (background light)) (:foreground "OrangeRed" :weight bold)) 179 '((((class color) (background light)) (:foreground "OrangeRed" :weight bold))
193 (((class color) (background dark)) (:foreground "OrangeRed" :weight bold))) 180 (((class color) (background dark)) (:foreground "OrangeRed" :weight bold)))
194 "The face used for highlighting junk file names.") 181 "The face used for highlighting junk file names.")
195(define-obsolete-face-alias 'eshell-ls-clutter-face 'eshell-ls-clutter "22.1")
196 182
197(defsubst eshell-ls-filetype-p (attrs type) 183(defsubst eshell-ls-filetype-p (attrs type)
198 "Test whether ATTRS specifies a directory." 184 "Test whether ATTRS specifies a directory."
diff --git a/lisp/isearch.el b/lisp/isearch.el
index eabf05b0b17..721f2fc3181 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -354,11 +354,7 @@ A value of nil means highlight all matches."
354 "Face for lazy highlighting of matches other than the current one." 354 "Face for lazy highlighting of matches other than the current one."
355 :group 'lazy-highlight 355 :group 'lazy-highlight
356 :group 'basic-faces) 356 :group 'basic-faces)
357(define-obsolete-face-alias 'isearch-lazy-highlight-face 'lazy-highlight "22.1") 357
358(define-obsolete-variable-alias 'isearch-lazy-highlight-face
359 'lazy-highlight-face
360 "22.1")
361(defvar lazy-highlight-face 'lazy-highlight)
362 358
363;; Define isearch help map. 359;; Define isearch help map.
364 360
@@ -3259,7 +3255,7 @@ Attempt to do the search exactly the way the pending Isearch would."
3259 ;; 1000 is higher than ediff's 100+, 3255 ;; 1000 is higher than ediff's 100+,
3260 ;; but lower than isearch main overlay's 1001 3256 ;; but lower than isearch main overlay's 1001
3261 (overlay-put ov 'priority 1000) 3257 (overlay-put ov 'priority 1000)
3262 (overlay-put ov 'face lazy-highlight-face))) 3258 (overlay-put ov 'face 'lazy-highlight)))
3263 ;(overlay-put ov 'window (selected-window)))) 3259 ;(overlay-put ov 'window (selected-window))))
3264 ;; Remember the current position of point for 3260 ;; Remember the current position of point for
3265 ;; the next call of `isearch-lazy-highlight-update' 3261 ;; the next call of `isearch-lazy-highlight-update'
diff --git a/lisp/net/sieve-mode.el b/lisp/net/sieve-mode.el
index 77ab44f02db..6aa1b207ee2 100644
--- a/lisp/net/sieve-mode.el
+++ b/lisp/net/sieve-mode.el
@@ -61,9 +61,6 @@
61 61
62;; Font-lock 62;; Font-lock
63 63
64(defvar sieve-control-commands-face 'sieve-control-commands
65 "Face name used for Sieve Control Commands.")
66
67(defface sieve-control-commands 64(defface sieve-control-commands
68 '((((type tty) (class color)) (:foreground "blue" :weight light)) 65 '((((type tty) (class color)) (:foreground "blue" :weight light))
69 (((class grayscale) (background light)) (:foreground "LightGray" :bold t)) 66 (((class grayscale) (background light)) (:foreground "LightGray" :bold t))
@@ -72,12 +69,6 @@
72 (((class color) (background dark)) (:foreground "LightSteelBlue")) 69 (((class color) (background dark)) (:foreground "LightSteelBlue"))
73 (t (:bold t))) 70 (t (:bold t)))
74 "Face used for Sieve Control Commands.") 71 "Face used for Sieve Control Commands.")
75;; backward-compatibility alias
76(put 'sieve-control-commands-face 'face-alias 'sieve-control-commands)
77(put 'sieve-control-commands-face 'obsolete-face "22.1")
78
79(defvar sieve-action-commands-face 'sieve-action-commands
80 "Face name used for Sieve Action Commands.")
81 72
82(defface sieve-action-commands 73(defface sieve-action-commands
83 '((((type tty) (class color)) (:foreground "blue" :weight bold)) 74 '((((type tty) (class color)) (:foreground "blue" :weight bold))
@@ -85,12 +76,6 @@
85 (((class color) (background dark)) (:foreground "LightSkyBlue")) 76 (((class color) (background dark)) (:foreground "LightSkyBlue"))
86 (t (:inverse-video t :bold t))) 77 (t (:inverse-video t :bold t)))
87 "Face used for Sieve Action Commands.") 78 "Face used for Sieve Action Commands.")
88;; backward-compatibility alias
89(put 'sieve-action-commands-face 'face-alias 'sieve-action-commands)
90(put 'sieve-action-commands-face 'obsolete-face "22.1")
91
92(defvar sieve-test-commands-face 'sieve-test-commands
93 "Face name used for Sieve Test Commands.")
94 79
95(defface sieve-test-commands 80(defface sieve-test-commands
96 '((((type tty) (class color)) (:foreground "magenta")) 81 '((((type tty) (class color)) (:foreground "magenta"))
@@ -102,12 +87,6 @@
102 (((class color) (background dark)) (:foreground "Aquamarine")) 87 (((class color) (background dark)) (:foreground "Aquamarine"))
103 (t (:bold t :underline t))) 88 (t (:bold t :underline t)))
104 "Face used for Sieve Test Commands.") 89 "Face used for Sieve Test Commands.")
105;; backward-compatibility alias
106(put 'sieve-test-commands-face 'face-alias 'sieve-test-commands)
107(put 'sieve-test-commands-face 'obsolete-face "22.1")
108
109(defvar sieve-tagged-arguments-face 'sieve-tagged-arguments
110 "Face name used for Sieve Tagged Arguments.")
111 90
112(defface sieve-tagged-arguments 91(defface sieve-tagged-arguments
113 '((((type tty) (class color)) (:foreground "cyan" :weight bold)) 92 '((((type tty) (class color)) (:foreground "cyan" :weight bold))
@@ -117,9 +96,6 @@
117 (((class color) (background dark)) (:foreground "Cyan")) 96 (((class color) (background dark)) (:foreground "Cyan"))
118 (t (:bold t))) 97 (t (:bold t)))
119 "Face used for Sieve Tagged Arguments.") 98 "Face used for Sieve Tagged Arguments.")
120;; backward-compatibility alias
121(put 'sieve-tagged-arguments-face 'face-alias 'sieve-tagged-arguments)
122(put 'sieve-tagged-arguments-face 'obsolete-face "22.1")
123 99
124 100
125(defconst sieve-font-lock-keywords 101(defconst sieve-font-lock-keywords
@@ -128,19 +104,19 @@
128 ;; control commands 104 ;; control commands
129 (cons (regexp-opt '("require" "if" "else" "elsif" "stop") 105 (cons (regexp-opt '("require" "if" "else" "elsif" "stop")
130 'words) 106 'words)
131 'sieve-control-commands-face) 107 'sieve-control-commands)
132 ;; action commands 108 ;; action commands
133 (cons (regexp-opt '("fileinto" "redirect" "reject" "keep" "discard") 109 (cons (regexp-opt '("fileinto" "redirect" "reject" "keep" "discard")
134 'words) 110 'words)
135 'sieve-action-commands-face) 111 'sieve-action-commands)
136 ;; test commands 112 ;; test commands
137 (cons (regexp-opt '("address" "allof" "anyof" "exists" "false" 113 (cons (regexp-opt '("address" "allof" "anyof" "exists" "false"
138 "true" "header" "not" "size" "envelope" 114 "true" "header" "not" "size" "envelope"
139 "body") 115 "body")
140 'words) 116 'words)
141 'sieve-test-commands-face) 117 'sieve-test-commands)
142 (cons "\\Sw+:\\sw+" 118 (cons "\\Sw+:\\sw+"
143 'sieve-tagged-arguments-face)))) 119 'sieve-tagged-arguments))))
144 120
145;; Syntax table 121;; Syntax table
146 122
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 4fe47f026b6..10e56d0ddf9 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -925,8 +925,6 @@ See `sh-feature'.")
925 (:weight bold))) 925 (:weight bold)))
926 "Face to show quoted execs like \\=`blabla\\=`." 926 "Face to show quoted execs like \\=`blabla\\=`."
927 :group 'sh-indentation) 927 :group 'sh-indentation)
928(define-obsolete-face-alias 'sh-heredoc-face 'sh-heredoc "22.1")
929(defvar sh-heredoc-face 'sh-heredoc)
930 928
931(defface sh-escaped-newline '((t :inherit font-lock-string-face)) 929(defface sh-escaped-newline '((t :inherit font-lock-string-face))
932 "Face used for (non-escaped) backslash at end of a line in Shell-script mode." 930 "Face used for (non-escaped) backslash at end of a line in Shell-script mode."
@@ -1207,7 +1205,7 @@ subshells can nest."
1207 (if q 1205 (if q
1208 (if (characterp q) 1206 (if (characterp q)
1209 (if (eq q ?\`) 'sh-quoted-exec font-lock-string-face) 1207 (if (eq q ?\`) 'sh-quoted-exec font-lock-string-face)
1210 sh-heredoc-face) 1208 'sh-heredoc)
1211 font-lock-comment-face))) 1209 font-lock-comment-face)))
1212 1210
1213(defgroup sh-indentation nil 1211(defgroup sh-indentation nil
@@ -2902,7 +2900,7 @@ STRING This is ignored for the purposes of calculating
2902 ;;(This function never returns just t.) 2900 ;;(This function never returns just t.)
2903 (cond 2901 (cond
2904 ((or (nth 3 (syntax-ppss (point))) 2902 ((or (nth 3 (syntax-ppss (point)))
2905 (eq (get-text-property (point) 'face) sh-heredoc-face)) 2903 (eq (get-text-property (point) 'face) 'sh-heredoc))
2906 ;; String continuation -- don't indent 2904 ;; String continuation -- don't indent
2907 (setq result t) 2905 (setq result t)
2908 (setq have-result t)) 2906 (setq have-result t))
@@ -3108,8 +3106,7 @@ we go to the end of the previous line and do not check for continuations."
3108 (forward-comment (- (point-max))) 3106 (forward-comment (- (point-max)))
3109 (unless end (beginning-of-line)) 3107 (unless end (beginning-of-line))
3110 (when (and (not (bobp)) 3108 (when (and (not (bobp))
3111 (equal (get-text-property (1- (point)) 'face) 3109 (eq (get-text-property (1- (point)) 'face) 'sh-heredoc))
3112 sh-heredoc-face))
3113 (let ((p1 (previous-single-property-change (1- (point)) 'face))) 3110 (let ((p1 (previous-single-property-change (1- (point)) 'face)))
3114 (when p1 3111 (when p1
3115 (goto-char p1) 3112 (goto-char p1)
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index b38b147b3e5..bc5e5163fba 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -505,7 +505,7 @@ An alternative value is \" . \", if you use a font with a narrow period."
505 (funcall inbraces-re 505 (funcall inbraces-re
506 (concat "{" (funcall inbraces-re "{[^}]*}") "*}")) 506 (concat "{" (funcall inbraces-re "{[^}]*}") "*}"))
507 "*}\\)+\\$?\\$") 507 "*}\\)+\\$?\\$")
508 (0 tex-math-face)) 508 (0 tex-math))
509 ;; Heading args. 509 ;; Heading args.
510 (,(concat slash headings "\\*?" opt arg) 510 (,(concat slash headings "\\*?" opt arg)
511 ;; If ARG ends up matching too much (if the {} don't match, e.g.) 511 ;; If ARG ends up matching too much (if the {} don't match, e.g.)
@@ -800,15 +800,11 @@ Not smaller than the value set by `tex-suscript-height-minimum'."
800 '((t :inherit font-lock-string-face)) 800 '((t :inherit font-lock-string-face))
801 "Face used to highlight TeX math expressions." 801 "Face used to highlight TeX math expressions."
802 :group 'tex) 802 :group 'tex)
803(define-obsolete-face-alias 'tex-math-face 'tex-math "22.1")
804(defvar tex-math-face 'tex-math)
805 803
806(defface tex-verbatim 804(defface tex-verbatim
807 '((t :inherit fixed-pitch-serif)) 805 '((t :inherit fixed-pitch-serif))
808 "Face used to highlight TeX verbatim environments." 806 "Face used to highlight TeX verbatim environments."
809 :group 'tex) 807 :group 'tex)
810(define-obsolete-face-alias 'tex-verbatim-face 'tex-verbatim "22.1")
811(defvar tex-verbatim-face 'tex-verbatim)
812 808
813(defun tex-font-lock-verb (start delim) 809(defun tex-font-lock-verb (start delim)
814 "Place syntax table properties on the \\verb construct. 810 "Place syntax table properties on the \\verb construct.
@@ -836,10 +832,10 @@ START is the position of the \\ and DELIM is the delimiter char."
836 (let ((char (nth 3 state))) 832 (let ((char (nth 3 state)))
837 (cond 833 (cond
838 ((not char) 834 ((not char)
839 (if (eq 2 (nth 7 state)) tex-verbatim-face font-lock-comment-face)) 835 (if (eq 2 (nth 7 state)) 'tex-verbatim font-lock-comment-face))
840 ((eq char ?$) tex-math-face) 836 ((eq char ?$) 'tex-math)
841 ;; A \verb element. 837 ;; A \verb element.
842 (t tex-verbatim-face)))) 838 (t 'tex-verbatim))))
843 839
844 840
845(defun tex-define-common-keys (keymap) 841(defun tex-define-common-keys (keymap)