From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#37862: [PATCH] Use alternative C++ source files for determining C/C++ header files. Date: Sat, 26 Oct 2019 15:19:20 +0000 Message-ID: <20191026151920.GE17424@ACM> References: <87r235scb0.fsf@topbug.net> <83eeyzvk8w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="2335"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 37862@debbugs.gnu.org, Hong Xu To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 26 17:20:28 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iONrd-0000Jm-5O for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Oct 2019 17:20:25 +0200 Original-Received: from localhost ([::1]:40478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iONrb-0002ie-PQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Oct 2019 11:20:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53671) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iONrJ-0002gQ-1p for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 11:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iONrH-0000Ah-4o for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 11:20:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iONrG-00009t-C9 for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 11:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iONrG-0000P5-67 for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 11:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Oct 2019 15:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37862-submit@debbugs.gnu.org id=B37862.15721031661486 (code B ref 37862); Sat, 26 Oct 2019 15:20:02 +0000 Original-Received: (at 37862) by debbugs.gnu.org; 26 Oct 2019 15:19:26 +0000 Original-Received: from localhost ([127.0.0.1]:41334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iONqg-0000Nu-FQ for submit@debbugs.gnu.org; Sat, 26 Oct 2019 11:19:26 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:52857 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iONqe-0000Nf-4y for 37862@debbugs.gnu.org; Sat, 26 Oct 2019 11:19:24 -0400 Original-Received: (qmail 35913 invoked by uid 3782); 26 Oct 2019 15:19:22 -0000 Original-Received: from acm.muc.de (p2E5D5144.dip0.t-ipconnect.de [46.93.81.68]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 26 Oct 2019 17:19:20 +0200 Original-Received: (qmail 22051 invoked by uid 1000); 26 Oct 2019 15:19:20 -0000 Content-Disposition: inline In-Reply-To: <83eeyzvk8w.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170203 Archived-At: Hello, Eli. On Sat, Oct 26, 2019 at 14:06:39 +0300, Eli Zaretskii wrote: > > From: Hong Xu > > 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).