GNU bug report logs - #8715
23.3.50; Use GNU, not Windows syntax in example code in flymake manual

Previous Next

Package: emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Sat, 21 May 2011 22:22:01 UTC

Severity: minor

Found in version 23.3.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 8715 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Reuben Thomas <rrt <at> sc3d.org>
Cc: 8715 <at> debbugs.gnu.org
Subject: Re: 23.3.50;
	Use GNU, not Windows syntax in example code in flymake manual
Date: Fri, 15 Jul 2011 16:01:05 +0200
Reuben Thomas <rrt <at> sc3d.org> writes:

> The flymake manual contains the following handy sample make rule:
>
> check-syntax:
> 	gcc -o nul -S ${CHK_SOURCES}
>
> But using “nul” is useful on Windows (it works on GNU too, but creates
> an output file, and the point of the rule is to avoid doing that).
> Hence, use the GNU syntax:
>
> check-syntax:
> 	gcc -o /dev/null -S ${CHK_SOURCES}

I've now done this change in Emacs 24.

> A further suggestion is to suggest the following rule for automake users:
>
> check-syntax:
> 	$(COMPILE) -o /dev/null -S $(CHK_SOURCES)
>
> As this adds compiler flags which may be needed, for example to find
> include files. A further reason this is handy is that the undocumented
> make target dumpvars which is used by
> flymake-get-project-include-dirs-imp cannot easily be implemented in
> automake (at least, my attempt ended in tears, since it required the use
> of a GNU make construct, which is not permitted in automake). The above
> check-syntax target makes this unnecessary.

I know next to nothing about flymake, so I'm afraid I'm not a good judge
of this change, though.  Anybody?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




This bug report was last modified 13 years and 78 days ago.

Previous Next


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