comparison lisp/ruler-mode.el @ 64993:fb2cad4cfb30

* mh-customize.el: Do not use face-alias compatibility for faces that did not appear in the previous Emacs release. * buff-menu.el: * compare-w.el: * emacs-lisp/testcover.el: * play/gomoku.el: * play/mpuz.el: * progmodes/flymake.el: * progmodes/gdb-ui.el: * progmodes/idlw-help.el: * progmodes/idlw-shell.el: * progmodes/ld-script.el: * progmodes/which-func.el: * ruler-mode.el: * strokes.el: * textmodes/sgml-mode.el: * textmodes/table.el: Do not use face-alias for backward compatibility for faces that did not appear in the previous Emacs release.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 15 Aug 2005 21:29:32 +0000
parents 6fb026ad601f
children 3bd95f4f2941 2d92f5c9d6ae
comparison
equal deleted inserted replaced
64992:ca80d536ea6d 64993:fb2cad4cfb30
219 :line-width 1 219 :line-width 1
220 :style released-button) 220 :style released-button)
221 ))) 221 )))
222 "Default face used by the ruler." 222 "Default face used by the ruler."
223 :group 'ruler-mode) 223 :group 'ruler-mode)
224 ;; backward-compatibility alias
225 (put 'ruler-mode-default-face 'face-alias 'ruler-mode-default)
226 224
227 (defface ruler-mode-pad 225 (defface ruler-mode-pad
228 '((((type tty)) 226 '((((type tty))
229 (:inherit ruler-mode-default 227 (:inherit ruler-mode-default
230 :background "grey50" 228 :background "grey50"
233 (:inherit ruler-mode-default 231 (:inherit ruler-mode-default
234 :background "grey64" 232 :background "grey64"
235 ))) 233 )))
236 "Face used to pad inactive ruler areas." 234 "Face used to pad inactive ruler areas."
237 :group 'ruler-mode) 235 :group 'ruler-mode)
238 ;; backward-compatibility alias
239 (put 'ruler-mode-pad-face 'face-alias 'ruler-mode-pad)
240 236
241 (defface ruler-mode-margins 237 (defface ruler-mode-margins
242 '((t 238 '((t
243 (:inherit ruler-mode-default 239 (:inherit ruler-mode-default
244 :foreground "white" 240 :foreground "white"
245 ))) 241 )))
246 "Face used to highlight margin areas." 242 "Face used to highlight margin areas."
247 :group 'ruler-mode) 243 :group 'ruler-mode)
248 ;; backward-compatibility alias
249 (put 'ruler-mode-margins-face 'face-alias 'ruler-mode-margins)
250 244
251 (defface ruler-mode-fringes 245 (defface ruler-mode-fringes
252 '((t 246 '((t
253 (:inherit ruler-mode-default 247 (:inherit ruler-mode-default
254 :foreground "green" 248 :foreground "green"
255 ))) 249 )))
256 "Face used to highlight fringes areas." 250 "Face used to highlight fringes areas."
257 :group 'ruler-mode) 251 :group 'ruler-mode)
258 ;; backward-compatibility alias
259 (put 'ruler-mode-fringes-face 'face-alias 'ruler-mode-fringes)
260 252
261 (defface ruler-mode-column-number 253 (defface ruler-mode-column-number
262 '((t 254 '((t
263 (:inherit ruler-mode-default 255 (:inherit ruler-mode-default
264 :foreground "black" 256 :foreground "black"
265 ))) 257 )))
266 "Face used to highlight number graduations." 258 "Face used to highlight number graduations."
267 :group 'ruler-mode) 259 :group 'ruler-mode)
268 ;; backward-compatibility alias
269 (put 'ruler-mode-column-number-face 'face-alias 'ruler-mode-column-number)
270 260
271 (defface ruler-mode-fill-column 261 (defface ruler-mode-fill-column
272 '((t 262 '((t
273 (:inherit ruler-mode-default 263 (:inherit ruler-mode-default
274 :foreground "red" 264 :foreground "red"
275 ))) 265 )))
276 "Face used to highlight the fill column character." 266 "Face used to highlight the fill column character."
277 :group 'ruler-mode) 267 :group 'ruler-mode)
278 ;; backward-compatibility alias
279 (put 'ruler-mode-fill-column-face 'face-alias 'ruler-mode-fill-column)
280 268
281 (defface ruler-mode-comment-column 269 (defface ruler-mode-comment-column
282 '((t 270 '((t
283 (:inherit ruler-mode-default 271 (:inherit ruler-mode-default
284 :foreground "red" 272 :foreground "red"
285 ))) 273 )))
286 "Face used to highlight the comment column character." 274 "Face used to highlight the comment column character."
287 :group 'ruler-mode) 275 :group 'ruler-mode)
288 ;; backward-compatibility alias
289 (put 'ruler-mode-comment-column-face 'face-alias 'ruler-mode-comment-column)
290 276
291 (defface ruler-mode-goal-column 277 (defface ruler-mode-goal-column
292 '((t 278 '((t
293 (:inherit ruler-mode-default 279 (:inherit ruler-mode-default
294 :foreground "red" 280 :foreground "red"
295 ))) 281 )))
296 "Face used to highlight the goal column character." 282 "Face used to highlight the goal column character."
297 :group 'ruler-mode) 283 :group 'ruler-mode)
298 ;; backward-compatibility alias
299 (put 'ruler-mode-goal-column-face 'face-alias 'ruler-mode-goal-column)
300 284
301 (defface ruler-mode-tab-stop 285 (defface ruler-mode-tab-stop
302 '((t 286 '((t
303 (:inherit ruler-mode-default 287 (:inherit ruler-mode-default
304 :foreground "steelblue" 288 :foreground "steelblue"
305 ))) 289 )))
306 "Face used to highlight tab stop characters." 290 "Face used to highlight tab stop characters."
307 :group 'ruler-mode) 291 :group 'ruler-mode)
308 ;; backward-compatibility alias
309 (put 'ruler-mode-tab-stop-face 'face-alias 'ruler-mode-tab-stop)
310 292
311 (defface ruler-mode-current-column 293 (defface ruler-mode-current-column
312 '((t 294 '((t
313 (:inherit ruler-mode-default 295 (:inherit ruler-mode-default
314 :weight bold 296 :weight bold
315 :foreground "yellow" 297 :foreground "yellow"
316 ))) 298 )))
317 "Face used to highlight the `current-column' character." 299 "Face used to highlight the `current-column' character."
318 :group 'ruler-mode) 300 :group 'ruler-mode)
319 ;; backward-compatibility alias
320 (put 'ruler-mode-current-column-face 'face-alias 'ruler-mode-current-column)
321 301
322 302
323 (defsubst ruler-mode-full-window-width () 303 (defsubst ruler-mode-full-window-width ()
324 "Return the full width of the selected window." 304 "Return the full width of the selected window."
325 (let ((edges (window-edges))) 305 (let ((edges (window-edges)))