GNU bug report logs -
#67795
[PATCH] Handle local-variable major-mode remaps specifying non-existent mode
Previous Next
Reported by: Brian Leung <leungbk <at> posteo.net>
Date: Tue, 12 Dec 2023 13:54:02 UTC
Severity: normal
Tags: patch
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 67795 <at> debbugs.gnu.org (full text, mbox):
> From: Brian Leung <leungbk <at> posteo.net>
> Date: Tue, 12 Dec 2023 13:52:53 +0000
>
> >From 46435cac589506ecb131f480171a2ec1f0f03c55 Mon Sep 17 00:00:00 2001
> From: Brian Leung <leungbk <at> posteo.net>
> Date: Tue, 12 Dec 2023 05:42:56 -0800
> Subject: [PATCH] Handle local-variable major-mode remaps specifying
> non-existent mode
>
> In the .clang-format file of current Emacs HEAD, the major mode is
> specified as yaml-mode via a local variable. However, a user who has
> loaded yaml-ts-mode and executed
>
> (add-to-list 'major-mode-remap-alist '(yaml-mode . yaml-ts-mode)
>
> but does not have yaml-mode defined will find that opening the
> .clang-format file does not use yaml-ts-mode.
>
> This patch fixes that.
Thanks, but if we want to integrate major-mode-remap-alist better, I'd
rather we did that in some lower-level place, so that we wouldn't need
to sprinkle these alist-get calls all over Emacs.
Also, if we do this, there will be no way for specifying a particular
mode in file-local variables. Do we really want that?
Stefan, WDYT?
This bug report was last modified 1 year and 63 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.