From da89c18163c90d941e45daac146c7c1fd2b54934 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 26 Nov 2024 23:30:36 +0200 Subject: [PATCH] * lisp/files.el (major-mode-remap-alist): Add :tag annotations to :type. (cherry picked from commit 298bbf3cd76ffaf0c88a6a9ec56aa33c4103b8e6) --- lisp/files.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index bdcf0f4c00d..016b9edfe38 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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. -- 2.39.5