]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/files.el (major-mode-remap-alist): Add :tag annotations to :type.
authorDmitry Gutov <dmitry@gutov.dev>
Tue, 26 Nov 2024 21:30:36 +0000 (23:30 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 27 Nov 2024 19:55:57 +0000 (20:55 +0100)
(cherry picked from commit 298bbf3cd76ffaf0c88a6a9ec56aa33c4103b8e6)

lisp/files.el

index bdcf0f4c00d72debe0b9262c00847483973a41a2..016b9edfe38816939021e5ebbaf30529be7f5229 100644 (file)
@@ -3669,7 +3669,10 @@ instead.
 FUNCTION is typically a major mode which \"does the same thing\" as
 MODE, but can also be nil to hide other entries (either in this var or
 in `major-mode-remap-defaults') and means that we should call MODE."
-  :type '(alist (symbol) (function)))
+  :type '(alist
+          :tag "Remappings"
+          :key-type (symbol :tag "From major mode")
+          :value-type (function :tag "To mode (or function)")))
 
 (defvar major-mode-remap-defaults nil
   "Alist mapping file-specified modes to alternative modes.