From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Flymake support for C/C++ Date: Thu, 12 Oct 2017 20:45:23 +0000 Message-ID: <20171012204523.GC6106@ACM> References: <87zi8wmmhw.fsf@gmail.com> <20171012175044.GA6106@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1507841274 6794 195.159.176.226 (12 Oct 2017 20:47:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 20:47:54 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= , eliz@gnu.org, emacs-devel@gnu.org, sdl.web@gmail.com, npostavs@users.sourceforge.net To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 12 22:47:49 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2kOQ-0000ad-0v for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2017 22:47:46 +0200 Original-Received: from localhost ([::1]:47158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2kOX-0006G9-B9 for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2017 16:47:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2kOO-0006G3-9U for emacs-devel@gnu.org; Thu, 12 Oct 2017 16:47:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2kOJ-0005cB-Aq for emacs-devel@gnu.org; Thu, 12 Oct 2017 16:47:44 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:13809 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1e2kOI-0005az-VO for emacs-devel@gnu.org; Thu, 12 Oct 2017 16:47:39 -0400 Original-Received: (qmail 48048 invoked by uid 3782); 12 Oct 2017 20:47:37 -0000 Original-Received: from acm.muc.de (p548C7111.dip0.t-ipconnect.de [84.140.113.17]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 12 Oct 2017 22:47:36 +0200 Original-Received: (qmail 8466 invoked by uid 1000); 12 Oct 2017 20:45:23 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219430 Archived-At: Hello, Stefan. On Thu, Oct 12, 2017 at 14:45:39 -0400, Stefan Monnier wrote: > > What is stopping the needed setup and initialisation being in a > > function to be added to one of the mode's hooks: say c-mode-common-hook, > > or even c-initialization-hook (which are documented in the CC Mode > > manual)? > The same could apply to font-lock support in CC-mode, or indentation > support in CC-mode, or imenu support, or ... Font-lock and indentation support are essential to the major mode. But all of these, bar indentation, are connected to major modes via hooks of one sort or another. > I'm not saying that the flymake support for C code has to be in CC-mode, > but I think it's a natural place for it. What does Flymake mode do, anyway? There's no documentation for it in the Emacs manual, and its doc string, at least in 25.3, only says how to turn it on and off, not what it's for. > Stefan -- Alan Mackenzie (Nuremberg, Germany).