aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2007-12-20 15:19:44 +0000
committerJason Rumney2007-12-20 15:19:44 +0000
commit0526b9d0b7a5c27d03de5e20a51eccd0d62db19a (patch)
treeb676c360ba3c8084e01dc226f020daac7a4e9a71
parent92bbfd0ded8c7cae87028eb009f1d399cb34b9e0 (diff)
downloademacs-0526b9d0b7a5c27d03de5e20a51eccd0d62db19a.tar.gz
emacs-0526b9d0b7a5c27d03de5e20a51eccd0d62db19a.zip
(nxml-heading, nxml-outline-indicator)
(nxml-outline-active-indicator, nxml-outline-ellipsis): Rename, removing -face suffix. (nxml-highlighted-less-than, nxml-highlighted-greater-than) (nxml-highlighted-colon, nxml-highlighted-slash) (nxml-highlighted-ellipsis, nxml-highlighted-inactive-minus) (nxml-highlighted-active-minus, nxml-highlighted-active-plus) (nxml-highlighted-qname, nxml-outline-display-heading): Use new face names.
-rw-r--r--lisp/ChangeLog43
-rw-r--r--lisp/nxml/nxml-outln.el42
2 files changed, 64 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d07e5984d29..e6c0d0020ef 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,46 @@
12007-12-20 Jason Rumney <jasonr@gnu.org>
2
3 * nxml/nxml-mode.el (nxml-faces): Rename from nxml-highlighting-faces.
4 Parent group is font-lock-faces.
5 (nxml-light-blue-color, nxml-dark-blue-color, nxml-green-color)
6 (nxml-sky-blue-color, nxml-dark-green-color, nxml-light-green-color):
7 (nxml-version): Remove.
8 (nxml-delimited-data, nxml-name, nxml-ref, nxml-delimiter)
9 (nxml-text, nxml-comment-content, nxml-comment-delimiter)
10 (nxml-processing-instruction-delimiter)
11 (nxml-processing-instruction-target)
12 (nxml-processing-instruction-content, nxml-cdata-section-delimiter)
13 (nxml-cdata-section-CDATA, nxml-cdata-section-content)
14 (nxml-char-ref-number, nxml-char-ref-delimiter, nxml-entity-ref-name)
15 (nxml-entity-ref-delimiter, nxml-tag-delimiter, nxml-tag-slash)
16 (nxml-element-prefix, nxml-element-colon, nxml-element-local-name)
17 (nxml-attribute-prefix, nxml-attribute-colon)
18 (nxml-attribute-local-name, nxml-namespace-attribute-xmlns)
19 (nxml-namespace-attribute-colon, nxml-namespace-attribute-prefix)
20 (nxml-attribute-value, nxml-attribute-value-delimiter)
21 (nxml-namespace-attibute-value)
22 (nxml-namespace-attribure-value-delimiter)
23 (nxml-prolog-literal-delimiter, nxml-prolog-literal-content)
24 (nxml-prolog-keyword, nxml-markup-declaration-delimiter, nxml-hash)
25 (nxml-glyph): Rename, removing -face suffix.
26 Inherit from existing font-lock faces.
27 (nxml-apply-fontify-rule, nxml-char-ref-display-extra):
28 Use new face names.
29
30 * nxml/nxml-outln.el (nxml-heading, nxml-outline-indicator)
31 (nxml-outline-active-indicator, nxml-outline-ellipsis):
32 Rename, removing -face suffix.
33 (nxml-highlighted-less-than, nxml-highlighted-greater-than)
34 (nxml-highlighted-colon, nxml-highlighted-slash)
35 (nxml-highlighted-ellipsis, nxml-highlighted-inactive-minus)
36 (nxml-highlighted-active-minus, nxml-highlighted-active-plus)
37 (nxml-highlighted-qname, nxml-outline-display-heading):
38 Use new face names.
39
40 * nxml/rng-valid.el (rng-error): Rename from rng-error-face.
41
42 * nxml/rng-nxml.el (rng-nxml-easy-menu): Remove nxml-version.
43
12007-12-19 Martin Rudalics <rudalics@gmx.at> 442007-12-19 Martin Rudalics <rudalics@gmx.at>
2 45
3 * cus-start.el (all): Use correct group name for members of 46 * cus-start.el (all): Use correct group name for members of
diff --git a/lisp/nxml/nxml-outln.el b/lisp/nxml/nxml-outln.el
index 841e0e70146..96d8cebf5dc 100644
--- a/lisp/nxml/nxml-outln.el
+++ b/lisp/nxml/nxml-outln.el
@@ -111,25 +111,25 @@ See the variable `nxml-section-element-name-regexp' for more details."
111 :group 'nxml 111 :group 'nxml
112 :type 'integer) 112 :type 'integer)
113 113
114(defface nxml-heading-face 114(defface nxml-heading
115 '((t (:weight bold))) 115 '((t (:weight bold)))
116 "Face used for the contents of abbreviated heading elements." 116 "Face used for the contents of abbreviated heading elements."
117 :group 'nxml-highlighting-faces) 117 :group 'nxml-faces)
118 118
119(defface nxml-outline-indicator-face 119(defface nxml-outline-indicator
120 '((t (:inherit default))) 120 '((t (:inherit default)))
121 "Face used for `+' or `-' before element names in outlines." 121 "Face used for `+' or `-' before element names in outlines."
122 :group 'nxml-highlighting-faces) 122 :group 'nxml-faces)
123 123
124(defface nxml-outline-active-indicator-face 124(defface nxml-outline-active-indicator
125 '((t (:box t :inherit nxml-outline-indicator-face))) 125 '((t (:box t :inherit nxml-outline-indicator)))
126 "Face used for clickable `+' or `-' before element names in outlines." 126 "Face used for clickable `+' or `-' before element names in outlines."
127 :group 'nxml-highlighting-faces) 127 :group 'nxml-faces)
128 128
129(defface nxml-outline-ellipsis-face 129(defface nxml-outline-ellipsis
130 '((t (:bold t :inherit default))) 130 '((t (:bold t :inherit default)))
131 "Face used for `...' in outlines." 131 "Face used for `...' in outlines."
132 :group 'nxml-highlighting-faces) 132 :group 'nxml-faces)
133 133
134(defvar nxml-heading-scan-distance 1000 134(defvar nxml-heading-scan-distance 1000
135 "Maximum distance from section to scan for heading.") 135 "Maximum distance from section to scan for heading.")
@@ -514,19 +514,19 @@ non-transparent child section."
514 had-children)) 514 had-children))
515 515
516(defconst nxml-highlighted-less-than 516(defconst nxml-highlighted-less-than
517 (propertize "<" 'face 'nxml-tag-delimiter-face)) 517 (propertize "<" 'face 'nxml-tag-delimiter))
518 518
519(defconst nxml-highlighted-greater-than 519(defconst nxml-highlighted-greater-than
520 (propertize ">" 'face 'nxml-tag-delimiter-face)) 520 (propertize ">" 'face 'nxml-tag-delimiter))
521 521
522(defconst nxml-highlighted-colon 522(defconst nxml-highlighted-colon
523 (propertize ":" 'face 'nxml-element-colon-face)) 523 (propertize ":" 'face 'nxml-element-colon))
524 524
525(defconst nxml-highlighted-slash 525(defconst nxml-highlighted-slash
526 (propertize "/" 'face 'nxml-tag-slash-face)) 526 (propertize "/" 'face 'nxml-tag-slash))
527 527
528(defconst nxml-highlighted-ellipsis 528(defconst nxml-highlighted-ellipsis
529 (propertize "..." 'face 'nxml-outline-ellipsis-face)) 529 (propertize "..." 'face 'nxml-outline-ellipsis))
530 530
531(defconst nxml-highlighted-empty-end-tag 531(defconst nxml-highlighted-empty-end-tag
532 (concat nxml-highlighted-ellipsis 532 (concat nxml-highlighted-ellipsis
@@ -535,13 +535,13 @@ non-transparent child section."
535 nxml-highlighted-greater-than)) 535 nxml-highlighted-greater-than))
536 536
537(defconst nxml-highlighted-inactive-minus 537(defconst nxml-highlighted-inactive-minus
538 (propertize "-" 'face 'nxml-outline-indicator-face)) 538 (propertize "-" 'face 'nxml-outline-indicator))
539 539
540(defconst nxml-highlighted-active-minus 540(defconst nxml-highlighted-active-minus
541 (propertize "-" 'face 'nxml-outline-active-indicator-face)) 541 (propertize "-" 'face 'nxml-outline-active-indicator))
542 542
543(defconst nxml-highlighted-active-plus 543(defconst nxml-highlighted-active-plus
544 (propertize "+" 'face 'nxml-outline-active-indicator-face)) 544 (propertize "+" 'face 'nxml-outline-active-indicator))
545 545
546(defun nxml-display-section (last-pos 546(defun nxml-display-section (last-pos
547 section-start-pos 547 section-start-pos
@@ -642,14 +642,14 @@ non-transparent child section."
642 (if colon 642 (if colon
643 (concat (propertize (substring qname 0 colon) 643 (concat (propertize (substring qname 0 colon)
644 'face 644 'face
645 'nxml-element-prefix-face) 645 'nxml-element-prefix)
646 nxml-highlighted-colon 646 nxml-highlighted-colon
647 (propertize (substring qname (1+ colon)) 647 (propertize (substring qname (1+ colon))
648 'face 648 'face
649 'nxml-element-local-name-face)) 649 'nxml-element-local-name))
650 (propertize qname 650 (propertize qname
651 'face 651 'face
652 'nxml-element-local-name-face)))) 652 'nxml-element-local-name))))
653 653
654(defun nxml-outline-display-single-line-end-tag (last-pos) 654(defun nxml-outline-display-single-line-end-tag (last-pos)
655 (nxml-outline-set-overlay 'nxml-outline-display-hide 655 (nxml-outline-set-overlay 'nxml-outline-display-hide
@@ -727,7 +727,7 @@ non-transparent child section."
727(put 'nxml-outline-display-heading 'help-echo nxml-outline-show-help) 727(put 'nxml-outline-display-heading 'help-echo nxml-outline-show-help)
728(put 'nxml-outline-display-heading 'nxml-outline-display t) 728(put 'nxml-outline-display-heading 'nxml-outline-display t)
729(put 'nxml-outline-display-heading 'evaporate t) 729(put 'nxml-outline-display-heading 'evaporate t)
730(put 'nxml-outline-display-heading 'face 'nxml-heading-face) 730(put 'nxml-outline-display-heading 'face 'nxml-heading)
731 731
732(defvar nxml-outline-hiding-tag-map 732(defvar nxml-outline-hiding-tag-map
733 (let ((map (make-sparse-keymap))) 733 (let ((map (make-sparse-keymap)))