[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37862: [PATCH] Use alternative C++ source files for determining C/C+
From: |
Alan Mackenzie |
Subject: |
bug#37862: [PATCH] Use alternative C++ source files for determining C/C++ header files. |
Date: |
Sat, 26 Oct 2019 15:19:20 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Hello, Eli.
On Sat, Oct 26, 2019 at 14:06:39 +0300, Eli Zaretskii wrote:
> > From: Hong Xu <hong@topbug.net>
> > Date: Mon, 21 Oct 2019 20:12:51 -0700
> > * lisp/progmodes/cc-mode.el (c-or-c++-mode): Add check for the
> > existence of alternative C++ source files.
> Thanks.
> Alan, are you looking at this?
Yes, I've been thinking about it for a few days, now.
I think what we could do with is a function `auto-mode' which, given a
file name, would return the corresponding major mode as recorded in
auto-mode-alist. At the moment, this functionality is a part of
set-auto-mode, making it more difficult for other functions to do the
same thing. It shouldn't be difficult.
--
Alan Mackenzie (Nuremberg, Germany).