Show
Ignore:
Timestamp:
2005年11月26日 08時33分26秒 (3 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vendor/emacs-CVS_HEAD/lisp/font-lock.el

    r3939 r3988  
    217217  :group 'faces) 
    218218 
    219 (defgroup font-lock-highlighting-faces nil 
     219(defgroup font-lock-faces nil 
    220220  "Faces for highlighting text." 
    221221  :prefix "font-lock-" 
     
    16471647;;; Colour etc. support. 
    16481648 
    1649 ;; Originally face attributes were specified via `font-lock-face-attributes'. 
    1650 ;; Users then changed the default face attributes by setting that variable. 
    1651 ;; However, we try and be back-compatible and respect its value if set except 
    1652 ;; for faces where M-x customize has been used to save changes for the face. 
    1653 (when (boundp 'font-lock-face-attributes) 
    1654   (let ((face-attributes font-lock-face-attributes)) 
    1655     (while face-attributes 
    1656       (let* ((face-attribute (pop face-attributes)) 
    1657              (face (car face-attribute))) 
    1658         ;; Rustle up a `defface' SPEC from a `font-lock-face-attributes' entry. 
    1659         (unless (get face 'saved-face) 
    1660           (let ((foreground (nth 1 face-attribute)) 
    1661                 (background (nth 2 face-attribute)) 
    1662                 (bold-p (nth 3 face-attribute)) 
    1663                 (italic-p (nth 4 face-attribute)) 
    1664                 (underline-p (nth 5 face-attribute)) 
    1665                 face-spec) 
    1666             (when foreground 
    1667               (setq face-spec (cons ':foreground (cons foreground face-spec)))) 
    1668             (when background 
    1669               (setq face-spec (cons ':background (cons background face-spec)))) 
    1670             (when bold-p 
    1671               (setq face-spec (append '(:weight bold) face-spec))) 
    1672             (when italic-p 
    1673               (setq face-spec (append '(:slant italic) face-spec))) 
    1674             (when underline-p 
    1675               (setq face-spec (append '(:underline t) face-spec))) 
    1676             (custom-declare-face face (list (list t face-spec)) nil))))))) 
    1677  
    1678 ;; But now we do it the custom way.  Note that `defface' will not overwrite any 
    1679 ;; faces declared above via `custom-declare-face'. 
     1649;; Note that `defface' will not overwrite any faces declared above via 
     1650;; `custom-declare-face'. 
    16801651(defface font-lock-comment-face 
    16811652  '((((class grayscale) (background light)) 
     
    16971668    (t (:weight bold :slant italic))) 
    16981669  "Font Lock mode face used to highlight comments." 
    1699   :group 'font-lock-highlighting-faces) 
     1670  :group 'font-lock-faces) 
    17001671 
    17011672(defface font-lock-comment-delimiter-face 
     
    17081679     :foreground "red1")) 
    17091680  "Font Lock mode face used to highlight comment delimiters." 
    1710   :group 'font-lock-highlighting-faces) 
     1681  :group 'font-lock-faces) 
    17111682 
    17121683(defface font-lock-string-face 
     
    17201691    (t (:slant italic))) 
    17211692  "Font Lock mode face used to highlight strings." 
    1722   :group 'font-lock-highlighting-faces) 
     1693  :group 'font-lock-faces) 
    17231694 
    17241695(defface font-lock-doc-face 
    17251696  '((t :inherit font-lock-string-face)) 
    17261697  "Font Lock mode face used to highlight documentation." 
    1727   :group 'font-lock-highlighting-faces) 
     1698  :group 'font-lock-faces) 
    17281699 
    17291700(defface font-lock-keyword-face 
     
    17371708    (t (:weight bold))) 
    17381709  "Font Lock mode face used to highlight keywords." 
    1739   :group 'font-lock-highlighting-faces) 
     1710  :group 'font-lock-faces) 
    17401711 
    17411712(defface font-lock-builtin-face 
     
    17491720    (t (:weight bold))) 
    17501721  "Font Lock mode face used to highlight builtins." 
    1751   :group 'font-lock-highlighting-faces) 
     1722  :group 'font-lock-faces) 
    17521723 
    17531724(defface font-lock-function-name-face 
     
    17591730    (t (:inverse-video t :weight bold))) 
    17601731  "Font Lock mode face used to highlight function names." 
    1761   :group 'font-lock-highlighting-faces) 
     1732  :group 'font-lock-faces) 
    17621733 
    17631734(defface font-lock-variable-name-face 
     
    17731744    (t (:weight bold :slant italic))) 
    17741745  "Font Lock mode face used to highlight variable names." 
    1775   :group 'font-lock-highlighting-faces) 
     1746  :group 'font-lock-faces) 
    17761747 
    17771748(defface font-lock-type-face 
     
    17851756    (t (:weight bold :underline t))) 
    17861757  "Font Lock mode face used to highlight type and classes." 
    1787   :group 'font-lock-highlighting-faces) 
     1758  :group 'font-lock-faces) 
    17881759 
    17891760(defface font-lock-constant-face 
     
    17991770    (t (:weight bold :underline t))) 
    18001771  "Font Lock mode face used to highlight constants and labels." 
    1801   :group 'font-lock-highlighting-faces) 
     1772  :group 'font-lock-faces) 
    18021773 
    18031774(defface font-lock-warning-face 
    18041775  '((((class color) (min-colors 88) (background light)) (:foreground "Red1" :weight bold)) 
    18051776    (((class color) (min-colors 88) (background dark)) (:foreground "Pink" :weight bold)) 
    1806     (((class color) (min-colors 16) (background light)) (:foreground "Red" :weight bold)) 
     1777    (((class color) (min-colors 16) (background light)) (:foreground "Red1" :weight bold)) 
    18071778    (((class color) (min-colors 16) (background dark)) (:foreground "Pink" :weight bold)) 
    18081779    (((class color) (min-colors 8)) (:foreground "red")) 
    18091780    (t (:inverse-video t :weight bold))) 
    18101781  "Font Lock mode face used to highlight warnings." 
    1811   :group 'font-lock-highlighting-faces) 
     1782  :group 'font-lock-faces) 
    18121783 
    18131784(defface font-lock-negation-char-face 
    18141785  '((t nil)) 
    18151786  "Font Lock mode face used to highlight easy to overlook negation." 
    1816   :group 'font-lock-highlighting-faces) 
     1787  :group 'font-lock-faces) 
    18171788 
    18181789(defface font-lock-preprocessor-face 
    18191790  '((t :inherit font-lock-builtin-face)) 
    18201791  "Font Lock mode face used to highlight preprocessor directives." 
    1821   :group 'font-lock-highlighting-faces) 
     1792  :group 'font-lock-faces) 
    18221793 
    18231794(defface font-lock-regexp-grouping-backslash 
    18241795  '((t :inherit bold)) 
    18251796  "Font Lock mode face for backslashes in Lisp regexp grouping constructs." 
    1826   :group 'font-lock-highlighting-faces) 
     1797  :group 'font-lock-faces) 
    18271798 
    18281799(defface font-lock-regexp-grouping-construct 
    18291800  '((t :inherit bold)) 
    18301801  "Font Lock mode face used to highlight grouping constructs in Lisp regexps." 
    1831   :group 'font-lock-highlighting-faces) 
     1802  :group 'font-lock-faces) 
    18321803 
    18331804;;; End of Colour etc. support.