aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Winkler2006-05-21 17:45:09 +0000
committerRoland Winkler2006-05-21 17:45:09 +0000
commiteab10abb18a5e7c4d9fd3e666589ee61bfd06465 (patch)
tree3b6d16395d623c39ca8d2577f0d798ad8271d5a7
parent193948a0b045d5b261232b30105650ffdd22735e (diff)
downloademacs-eab10abb18a5e7c4d9fd3e666589ee61bfd06465.tar.gz
emacs-eab10abb18a5e7c4d9fd3e666589ee61bfd06465.zip
(bibtex-maintain-sorted-entries): Mark as safe.
-rw-r--r--lisp/textmodes/bibtex.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
index e4f0a3db545..c2a9f697790 100644
--- a/lisp/textmodes/bibtex.el
+++ b/lisp/textmodes/bibtex.el
@@ -87,7 +87,7 @@ If this is a function, call it to generate the initial field text."
87 :type '(choice (const :tag "None" nil) 87 :type '(choice (const :tag "None" nil)
88 (string :tag "Initial text") 88 (string :tag "Initial text")
89 (function :tag "Initialize Function" :value fun) 89 (function :tag "Initialize Function" :value fun)
90 (other :tag "Default" t))) 90 (const :tag "Default" t)))
91(put 'bibtex-include-OPTkey 'risky-local-variable t) 91(put 'bibtex-include-OPTkey 'risky-local-variable t)
92 92
93(defcustom bibtex-user-optional-fields 93(defcustom bibtex-user-optional-fields
@@ -153,7 +153,7 @@ narrowed to just the entry."
153(defcustom bibtex-maintain-sorted-entries nil 153(defcustom bibtex-maintain-sorted-entries nil
154 "If non-nil, BibTeX mode maintains all entries in sorted order. 154 "If non-nil, BibTeX mode maintains all entries in sorted order.
155Allowed non-nil values are: 155Allowed non-nil values are:
156plain All entries are sorted alphabetically. 156plain or t All entries are sorted alphabetically.
157crossref All entries are sorted alphabetically unless an entry has a 157crossref All entries are sorted alphabetically unless an entry has a
158 crossref field. These crossrefed entries are placed in 158 crossref field. These crossrefed entries are placed in
159 alphabetical order immediately preceding the main entry. 159 alphabetical order immediately preceding the main entry.
@@ -165,7 +165,10 @@ See also `bibtex-sort-ignore-string-entries'."
165 :type '(choice (const nil) 165 :type '(choice (const nil)
166 (const plain) 166 (const plain)
167 (const crossref) 167 (const crossref)
168 (const entry-class))) 168 (const entry-class)
169 (const t)))
170(put 'bibtex-maintain-sorted-entries 'safe-local-variable
171 (lambda (a) (memq a '(nil t plain crossref entry-class))))
169 172
170(defcustom bibtex-sort-entry-class 173(defcustom bibtex-sort-entry-class
171 '(("String") 174 '(("String")