Variable: bibtex-sort-entry-class
bibtex-sort-entry-class is a customizable variable defined in
bibtex.el.gz.
Value
(("String") (catch-all) ("Book" "Proceedings"))
Documentation
List of classes of BibTeX entry types, used for sorting entries.
If value of bibtex-maintain-sorted-entries is entry-class
entries are ordered according to the classes they belong to. Each
class contains a list of entry types. An entry catch-all applies
to all entries not explicitly mentioned.
Probably introduced at or before Emacs version 22.1.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defcustom bibtex-sort-entry-class
'(("String")
(catch-all)
("Book" "Proceedings"))
"List of classes of BibTeX entry types, used for sorting entries.
If value of `bibtex-maintain-sorted-entries' is `entry-class'
entries are ordered according to the classes they belong to. Each
class contains a list of entry types. An entry `catch-all' applies
to all entries not explicitly mentioned."
:group 'bibtex
:type '(repeat (choice :tag "Class"
(const :tag "catch-all" (catch-all))
(repeat :tag "Entry type" string)))
:safe (lambda (x)
(let ((ok t))
(while (consp x)
(let ((y (pop x)))
(while (consp y)
(let ((z (pop y)))
(unless (or (stringp z) (eq z 'catch-all))
(setq ok nil))))
(when y (setq ok nil))))
(unless x ok))))