]> git.eshelyaron.com Git - emacs.git/commitdiff
In bibtex.el, fix widgets for customization types (bug#74409)
authorRoland Winkler <winkler@gnu.org>
Sat, 11 Jan 2025 04:34:16 +0000 (22:34 -0600)
committerEshel Yaron <me@eshelyaron.com>
Sat, 11 Jan 2025 11:19:38 +0000 (12:19 +0100)
* lisp/textmodes/bibtex.el (bibtex-field-list, bibtex-entry-alist)
(bibtex-field-alist): Fix widgets for customization types (bug#74409).

(cherry picked from commit 2f63dab3ee566f5794fac4139a8f8b8b9e250a00)

lisp/textmodes/bibtex.el

index 5e79ccc6e55a873356147ba68b7cc163d2217f77..601331cbce2ca48dad72f8811c261499b7c84fca 100644 (file)
@@ -283,6 +283,7 @@ If parsing fails, try to set this variable to nil."
 
 (define-widget 'bibtex-field-list 'lazy
   "Format of fields of entries in `bibtex-BibTeX-entry-alist' and friends."
+  :tag "Field list"
   :type '(group (string :tag "Field")
                 (option (choice :tag "Comment" :value nil
                                 (const nil) string))
@@ -293,7 +294,9 @@ If parsing fails, try to set this variable to nil."
 
 (define-widget 'bibtex-entry-alist 'lazy
   "Format of `bibtex-BibTeX-entry-alist' and friends."
+  :tag "Entry alist"
   :type '(repeat
+          :format "\n%v"
           (choice (group :tag "Alias"
                          (string :tag "Entry type")
                          (string :tag "Documentation")
@@ -860,8 +863,11 @@ Use this, e.g., for custom fields, see Sec. 2.2.4 of the biblatex manual."
 
 (define-widget 'bibtex-field-alist 'lazy
   "Format of `bibtex-BibTeX-field-alist' and friends."
-  :type '(repeat (group (string :tag "Field type")
-                        (string :tag "Comment"))))
+  :tag "Field alist"
+  :type '(repeat
+          :format "\n%v"
+          (group (string :tag "Field type")
+                 (string :tag "Comment"))))
 
 (defcustom bibtex-BibTeX-field-alist
   '(("author" "Author1 [and Author2 ...] [and others]")