Subject: bug#37862: [PATCH] Use alternative C++ source files for determining C/C++ header files.

From: Alan Mackenzie <[email-masked]>
Date: Sat, 26 Oct 2019 15:19:20 +0000

Hello, Eli.

On Sat, Oct 26, 2019 at 14:06:39 +0300, Eli Zaretskii wrote:
> > From: Hong Xu <[email-masked]>
> > 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).