GNU bug report logs - #23476
25.0.93; Visiting C files on master signals an error

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Sat, 7 May 2016 07:28:01 UTC

Severity: normal

Found in version 25.0.93

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23476 <at> debbugs.gnu.org, andrewjmoreton <at> gmail.com
Subject: bug#23476: 25.0.93; Visiting C files on master signals an error
Date: Sat, 7 May 2016 18:52:25 +0000
Hello, Eli.

On Sat, May 07, 2016 at 09:19:13PM +0300, Eli Zaretskii wrote:
> > Date: Sat, 7 May 2016 17:50:30 +0000
> > Cc: Andy Moreton <andrewjmoreton <at> gmail.com>, 23476 <at> debbugs.gnu.org
> > From: Alan Mackenzie <acm <at> muc.de>

> > > Thanks.  This eliminates the error, but not the annoying question
> > > about unsafe variables.

> > The annoying question, you only need to answer once (with !).  The
> > setting eliminates the annoying misfontification of the constructs using
> > the IF_LINT macro, e.g. in window.c, in the following:

> >     int top IF_LINT (= 0), ...

> > , top now gets correctly fontified as a variable declaration, not as a
> > function declaration, as still happens in the emacs-25 branch.

> No, I'd like that question to go away completely.  Visiting Emacs
> sources shouldn't trigger such questions, IMO it's absurd.

IF_LINT is an absurd macro, and C macros in general are absurd (unlike
Lisp ones).  Something's got to give.

> > To be fair, I did warn everybody about this in a post to emacs-devl on
> > 2016-04-30.

> Why warn?  Just let's not do it at all.

Because the one-time inconvenience (not counting emacs -Q invocations) of
answering the question is far less than the irritation and possible
misunderstading caused by the unvarying mis-fontification of variables
near IF_LINTs (of which there are 84 in the C sources, including 15 in
xdisp.c).

> Thanks.

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 9 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.