aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Paul Wallington2003-01-29 21:45:56 +0000
committerJohn Paul Wallington2003-01-29 21:45:56 +0000
commite2cd29bdb4ab9ebcc99e136108f3f156577c9541 (patch)
tree45a756056c3496b17e870b591e0709b1ced7f605
parentee1f522d4efd1efd6b74c06830c61a5837754621 (diff)
downloademacs-e2cd29bdb4ab9ebcc99e136108f3f156577c9541.tar.gz
emacs-e2cd29bdb4ab9ebcc99e136108f3f156577c9541.zip
* font-lock.el (lisp-font-lock-keywords-1): Match `deftheme'.
* emacs-lisp/lisp-mode.el (toplevel): Define docstring offset for `deftheme'. Fix docstring offsets for `define-ibuffer-filter' and `define-ibuffer-sorter'. (lisp-imenu-generic-expression): Add `deftheme' to types. * custom.el (customize-mark-to-save, customize-mark-as-set) (custom-remove-theme): Doc fixes.
-rw-r--r--lisp/ChangeLog17
-rw-r--r--lisp/custom.el6
-rw-r--r--lisp/emacs-lisp/lisp-mode.el11
-rw-r--r--lisp/font-lock.el3
4 files changed, 28 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index dac69b4fa2e..ede4bfd1fd8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,20 @@
12003-01-29 John Paul Wallington <jpw@gnu.org>
2
3 * font-lock.el (lisp-font-lock-keywords-1): Match `deftheme'.
4
5 * emacs-lisp/lisp-mode.el (toplevel): Define docstring offset for
6 `deftheme'. Fix docstring offsets for `define-ibuffer-filter' and
7 `define-ibuffer-sorter'.
8 (lisp-imenu-generic-expression): Add `deftheme' to types.
9
10 * custom.el (customize-mark-to-save, customize-mark-as-set)
11 (custom-remove-theme): Doc fixes.
12
132003-01-29 Didier Verna <didier@xemacs.org>
14
15 * cus-edit.el (custom-save-variables): also save non theme'd ones.
16 * cus-edit.el (custom-save-faces): ditto.
17
12003-01-29 Juanma Barranquero <lektu@terra.es> 182003-01-29 Juanma Barranquero <lektu@terra.es>
2 19
3 * composite.el (decompose-composite-char): Fix docstring. 20 * composite.el (decompose-composite-char): Fix docstring.
diff --git a/lisp/custom.el b/lisp/custom.el
index a4a496c0bef..b3458bfce41 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -817,7 +817,7 @@ this sets the local binding in that buffer instead."
817 817
818If the default value of SYMBOL is different from the standard value, 818If the default value of SYMBOL is different from the standard value,
819set the `saved-value' property to a list whose car evaluates to the 819set the `saved-value' property to a list whose car evaluates to the
820default value. Otherwise, set it til nil. 820default value. Otherwise, set it to nil.
821 821
822To actually save the value, call `custom-save-all'. 822To actually save the value, call `custom-save-all'.
823 823
@@ -847,7 +847,7 @@ Return non-nil iff the `saved-value' property actually changed."
847If the default value of SYMBOL is different from the saved value if any, 847If the default value of SYMBOL is different from the saved value if any,
848or else if it is different from the standard value, set the 848or else if it is different from the standard value, set the
849`customized-value' property to a list whose car evaluates to the 849`customized-value' property to a list whose car evaluates to the
850default value. Otherwise, set it til nil. 850default value. Otherwise, set it to nil.
851 851
852Return non-nil iff the `customized-value' property actually changed." 852Return non-nil iff the `customized-value' property actually changed."
853 (let* ((get (or (get symbol 'custom-get) 'default-value)) 853 (let* ((get (or (get symbol 'custom-get) 'default-value))
@@ -896,7 +896,7 @@ by `custom-make-theme-feature'."
896 (custom-make-theme-feature theme)))) 896 (custom-make-theme-feature theme))))
897 897
898(defun custom-remove-theme (spec-alist theme) 898(defun custom-remove-theme (spec-alist theme)
899 "Detelete all elements from SPEC-ALIST whose car is THEME." 899 "Delete all elements from SPEC-ALIST whose car is THEME."
900 (let ((elt (assoc theme spec-alist))) 900 (let ((elt (assoc theme spec-alist)))
901 (while elt 901 (while elt
902 (setq spec-alist (delete elt spec-alist) 902 (setq spec-alist (delete elt spec-alist)
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 46f59dd5721..60110149388 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -107,9 +107,9 @@
107 (purecopy (concat "^\\s-*(" 107 (purecopy (concat "^\\s-*("
108 (eval-when-compile 108 (eval-when-compile
109 (regexp-opt 109 (regexp-opt
110 '("defgroup" "deftype" "defstruct" "defclass" 110 '("defgroup" "deftheme" "deftype" "defstruct"
111 "define-condition" "define-widget" "defface" 111 "defclass" "define-condition" "define-widget"
112 "defpackage") t)) 112 "defface" "defpackage") t))
113 "\\s-+'?\\(\\sw\\(\\sw\\|\\s_\\)+\\)")) 113 "\\s-+'?\\(\\sw\\(\\sw\\|\\s_\\)+\\)"))
114 2)) 114 2))
115 115
@@ -121,6 +121,7 @@
121(put 'defun* 'doc-string-elt 3) 121(put 'defun* 'doc-string-elt 3)
122(put 'defvar 'doc-string-elt 3) 122(put 'defvar 'doc-string-elt 3)
123(put 'defcustom 'doc-string-elt 3) 123(put 'defcustom 'doc-string-elt 3)
124(put 'deftheme 'doc-string-elt 2)
124(put 'defconst 'doc-string-elt 3) 125(put 'defconst 'doc-string-elt 3)
125(put 'defmacro 'doc-string-elt 3) 126(put 'defmacro 'doc-string-elt 3)
126(put 'defmacro* 'doc-string-elt 3) 127(put 'defmacro* 'doc-string-elt 3)
@@ -132,9 +133,9 @@
132(put 'define-generic-mode 'doc-string-elt 7) 133(put 'define-generic-mode 'doc-string-elt 7)
133;; define-global-mode has no explicit docstring. 134;; define-global-mode has no explicit docstring.
134(put 'easy-mmode-define-global-mode 'doc-string-elt 0) 135(put 'easy-mmode-define-global-mode 'doc-string-elt 0)
135(put 'define-ibuffer-filter 'doc-string-elt 3) 136(put 'define-ibuffer-filter 'doc-string-elt 2)
136(put 'define-ibuffer-op 'doc-string-elt 3) 137(put 'define-ibuffer-op 'doc-string-elt 3)
137(put 'define-ibuffer-sorter 'doc-string-elt 3) 138(put 'define-ibuffer-sorter 'doc-string-elt 2)
138 139
139(defun lisp-font-lock-syntactic-face-function (state) 140(defun lisp-font-lock-syntactic-face-function (state)
140 (if (nth 3 state) 141 (if (nth 3 state)
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 8f7d57c716c..cf47f77d40d 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1793,7 +1793,7 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item."
1793 ;; Variable declarations. 1793 ;; Variable declarations.
1794 "\\(const\\(ant\\)?\\|custom\\|face\\|parameter\\|var\\)\\|" 1794 "\\(const\\(ant\\)?\\|custom\\|face\\|parameter\\|var\\)\\|"
1795 ;; Structure declarations. 1795 ;; Structure declarations.
1796 "\\(class\\|group\\|package\\|struct\\|type\\)" 1796 "\\(class\\|group\\|theme\\|package\\|struct\\|type\\)"
1797 "\\)\\)\\>" 1797 "\\)\\)\\>"
1798 ;; Any whitespace and defined object. 1798 ;; Any whitespace and defined object.
1799 "[ \t'\(]*" 1799 "[ \t'\(]*"
@@ -2003,6 +2003,7 @@ The value of this variable is used when Font Lock mode is turned on."
2003 "ifndef" "include" "line" "pragma" "undef")))) 2003 "ifndef" "include" "line" "pragma" "undef"))))
2004 (c-preprocessor-directives-depth 2004 (c-preprocessor-directives-depth
2005 (regexp-opt-depth c-preprocessor-directives))) 2005 (regexp-opt-depth c-preprocessor-directives)))
2006
2006 (defconst c-font-lock-keywords-1 2007 (defconst c-font-lock-keywords-1
2007 (list 2008 (list
2008 ;; 2009 ;;