diff options
| author | Roland Winkler | 2007-04-16 18:03:29 +0000 |
|---|---|---|
| committer | Roland Winkler | 2007-04-16 18:03:29 +0000 |
| commit | 0dcfda42f3087389cd90520d63a3536b3203f9a2 (patch) | |
| tree | efe3fa92b3727a57712c9f643daa6f2a8be9ce04 | |
| parent | 84a8a8b81dc55ae42605ff2a299513fdf412186e (diff) | |
| download | emacs-0dcfda42f3087389cd90520d63a3536b3203f9a2.tar.gz emacs-0dcfda42f3087389cd90520d63a3536b3203f9a2.zip | |
(bibtex-entry-field-alist): Use defcustom.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/textmodes/bibtex.el | 44 |
2 files changed, 46 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7412a5d27b4..825487a0881 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-04-16 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> | ||
| 2 | |||
| 3 | * textmodes/bibtex.el (bibtex-entry-field-alist): Use defcustom. | ||
| 4 | |||
| 1 | 2007-04-16 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2007-04-16 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | * progmodes/perl-mode.el (perl-indent-level): Mark as safe local var. | 7 | * progmodes/perl-mode.el (perl-indent-level): Mark as safe local var. |
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 2c8406f8656..0545ca85812 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -224,7 +224,7 @@ If parsing fails, try to set this variable to nil." | |||
| 224 | :group 'bibtex | 224 | :group 'bibtex |
| 225 | :type 'boolean) | 225 | :type 'boolean) |
| 226 | 226 | ||
| 227 | (defvar bibtex-entry-field-alist | 227 | (defcustom bibtex-entry-field-alist |
| 228 | '(("Article" | 228 | '(("Article" |
| 229 | ((("author" "Author1 [and Author2 ...] [and others]") | 229 | ((("author" "Author1 [and Author2 ...] [and others]") |
| 230 | ("title" "Title of the article (BibTeX converts it to lowercase)") | 230 | ("title" "Title of the article (BibTeX converts it to lowercase)") |
| @@ -452,7 +452,47 @@ appears in the echo area, INIT is either the initial content of the | |||
| 452 | field or a function, which is called to determine the initial content | 452 | field or a function, which is called to determine the initial content |
| 453 | of the field, and ALTERNATIVE-FLAG (either nil or t) marks if the | 453 | of the field, and ALTERNATIVE-FLAG (either nil or t) marks if the |
| 454 | field is an alternative. ALTERNATIVE-FLAG may be t only in the | 454 | field is an alternative. ALTERNATIVE-FLAG may be t only in the |
| 455 | REQUIRED or CROSSREF-REQUIRED lists.") | 455 | REQUIRED or CROSSREF-REQUIRED lists." |
| 456 | :group 'bibtex | ||
| 457 | :type '(repeat (list (string :tag "Entry name") | ||
| 458 | (list (repeat :tag "required" | ||
| 459 | (group (string :tag "Field") | ||
| 460 | (string :tag "Comment") | ||
| 461 | (option (choice :tag "Init" :value nil | ||
| 462 | (const nil) | ||
| 463 | (string :tag "string") | ||
| 464 | (function :tag "function"))) | ||
| 465 | (option (choice (const nil) | ||
| 466 | (const :tag "Alternative" t))))) | ||
| 467 | (repeat :tag "optional" | ||
| 468 | (group (string :tag "Field") | ||
| 469 | (string :tag "Comment") | ||
| 470 | (option (choice :tag "Init" :value nil | ||
| 471 | (const nil) | ||
| 472 | (string :tag "string") | ||
| 473 | (function :tag "function"))) | ||
| 474 | (option (choice (const nil) | ||
| 475 | (const :tag "Alternative" t)))))) | ||
| 476 | (option | ||
| 477 | (list :tag "Crossref" | ||
| 478 | (repeat :tag "required" | ||
| 479 | (group (string :tag "Field") | ||
| 480 | (string :tag "Comment") | ||
| 481 | (option (choice :tag "Init" :value nil | ||
| 482 | (const nil) | ||
| 483 | (string :tag "string") | ||
| 484 | (function :tag "function"))) | ||
| 485 | (option (choice (const nil) | ||
| 486 | (const :tag "Alternative" t))))) | ||
| 487 | (repeat :tag "optional" | ||
| 488 | (group (string :tag "Field") | ||
| 489 | (string :tag "Comment") | ||
| 490 | (option (choice :tag "Init" :value nil | ||
| 491 | (const nil) | ||
| 492 | (string :tag "string") | ||
| 493 | (function :tag "function"))) | ||
| 494 | (option (choice (const nil) | ||
| 495 | (const :tag "Alternative" t)))))))))) | ||
| 456 | (put 'bibtex-entry-field-alist 'risky-local-variable t) | 496 | (put 'bibtex-entry-field-alist 'risky-local-variable t) |
| 457 | 497 | ||
| 458 | (defcustom bibtex-comment-start "@Comment" | 498 | (defcustom bibtex-comment-start "@Comment" |