]> git.eshelyaron.com Git - emacs.git/commit
files.el (major-mode-remap-alist): New custom var (bug#58075)
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 3 Oct 2022 15:17:51 +0000 (11:17 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 3 Oct 2022 15:17:51 +0000 (11:17 -0400)
commit59f8c56d9e71a1b61ca8cc0794a6de4aa2f240e4
treed23a5838d344d534165eb79231c0cb4f9e9c30cb
parent5fec9182dbeffa88cef6651d8c798ef9665d6681
files.el (major-mode-remap-alist): New custom var (bug#58075)

* lisp/files.el (major-mode-remap-alist): New custom var.
(set-auto-mode--last): New var.
(set-auto-mode-0): Obey `major-mode-remap-alist`.

* doc/emacs/modes.texi (Choosing Modes): Document `major-mode-remap-alist`.

* lisp/progmodes/cperl-mode.el: Recommend the use of
`major-mode-remap-alist` over the crude `defalias` solution.

* lisp/textmodes/tex-mode.el (tex--guess-mode): Simplify.
(tex--redirect-to-submode): Obey `major-mode-remap-alist`.
doc/emacs/modes.texi
etc/NEWS
lisp/files.el
lisp/progmodes/cperl-mode.el
lisp/textmodes/tex-mode.el