unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70716: flymake-cc creates `-.o` files
@ 2024-05-02 13:10 Mattias Engdegård
  2024-05-02 13:13 ` João Távora
  0 siblings, 1 reply; 6+ messages in thread
From: Mattias Engdegård @ 2024-05-02 13:10 UTC (permalink / raw)
  To: 70716; +Cc: João Távora

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

`flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a command like

  make check-syntax CHK_SOURCES="-x c -c -"

which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose name is mysterious and awkward to remove.

What about the patch below?


[-- Attachment #2: flymake-cc-null-output.diff --]
[-- Type: application/octet-stream, Size: 637 bytes --]

diff --git a/lisp/progmodes/flymake-cc.el b/lisp/progmodes/flymake-cc.el
index 60e7da5d617..01f463454e9 100644
--- a/lisp/progmodes/flymake-cc.el
+++ b/lisp/progmodes/flymake-cc.el
@@ -95,9 +95,10 @@ flymake-cc-use-special-make-target
   (unless (executable-find "make") (error "Make not found"))
   `("make"
     "check-syntax"
-    ,(format "CHK_SOURCES=-x %s -c -"
+    ,(format "CHK_SOURCES=-x %s -c - -o %s"
              (cond ((derived-mode-p 'c++-mode) "c++")
-                   (t "c")))))
+                   (t "c"))
+             null-device)))
 
 (defvar-local flymake-cc--proc nil "Internal variable for `flymake-cc'.")
 

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#70716: flymake-cc creates `-.o` files
  2024-05-02 13:10 bug#70716: flymake-cc creates `-.o` files Mattias Engdegård
@ 2024-05-02 13:13 ` João Távora
  2024-05-02 14:00   ` Mattias Engdegård
  2024-05-18  8:28   ` Eli Zaretskii
  0 siblings, 2 replies; 6+ messages in thread
From: João Távora @ 2024-05-02 13:13 UTC (permalink / raw)
  To: Mattias Engdegård, Spencer Baugh; +Cc: 70716

[-- Attachment #1: Type: text/plain, Size: 515 bytes --]

On Thu, May 2, 2024 at 2:10 PM Mattias Engdegård <
mattias.engdegard@gmail.com> wrote:

> `flymake-cc-use-special-make-target`, the standard value for
> `flymake-cc-command`, generates a command like
>
>   make check-syntax CHK_SOURCES="-x c -c -"
>
> which causes the compiler (at least Clang) to create the file `-.o` that
> is never cleaned up and whose name is mysterious and awkward to remove.
>
> What about the patch below?
>

Copying in Spencer Baugh, the new Flymake maintainer.

João

[-- Attachment #2: Type: text/html, Size: 898 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#70716: flymake-cc creates `-.o` files
  2024-05-02 13:13 ` João Távora
@ 2024-05-02 14:00   ` Mattias Engdegård
  2024-05-04 11:38     ` Eli Zaretskii
  2024-05-18  8:28   ` Eli Zaretskii
  1 sibling, 1 reply; 6+ messages in thread
From: Mattias Engdegård @ 2024-05-02 14:00 UTC (permalink / raw)
  To: João Távora; +Cc: sbaugh, 70716

2 maj 2024 kl. 15.13 skrev João Távora <joaotavora@gmail.com>:

> Copying in Spencer Baugh, the new Flymake maintainer. 

Would either of you please update the `Maintainer:` lines in lisp/progmodes/flymake*.el then?






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#70716: flymake-cc creates `-.o` files
  2024-05-02 14:00   ` Mattias Engdegård
@ 2024-05-04 11:38     ` Eli Zaretskii
  2024-05-18  8:33       ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2024-05-04 11:38 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: sbaugh, 70716, joaotavora

> Cc: sbaugh@catern.com, 70716@debbugs.gnu.org
> From: Mattias Engdegård <mattias.engdegard@gmail.com>
> Date: Thu, 2 May 2024 16:00:08 +0200
> 
> 2 maj 2024 kl. 15.13 skrev João Távora <joaotavora@gmail.com>:
> 
> > Copying in Spencer Baugh, the new Flymake maintainer. 
> 
> Would either of you please update the `Maintainer:` lines in lisp/progmodes/flymake*.el then?

Spencer, is it okay to mention you there as the maintainer of Flymake?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#70716: flymake-cc creates `-.o` files
  2024-05-02 13:13 ` João Távora
  2024-05-02 14:00   ` Mattias Engdegård
@ 2024-05-18  8:28   ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2024-05-18  8:28 UTC (permalink / raw)
  To: João Távora, sbaugh; +Cc: mattias.engdegard, 70716

> Cc: 70716@debbugs.gnu.org
> From: João Távora <joaotavora@gmail.com>
> Date: Thu, 2 May 2024 14:13:49 +0100
> 
> On Thu, May 2, 2024 at 2:10 PM Mattias Engdegård <mattias.engdegard@gmail.com> wrote:
> 
>  `flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a
>  command like
> 
>    make check-syntax CHK_SOURCES="-x c -c -"
> 
>  which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose
>  name is mysterious and awkward to remove.
> 
>  What about the patch below?
> 
>  
> Copying in Spencer Baugh, the new Flymake maintainer. 

Spencer, any comments or suggestions or patches?

Thanks.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#70716: flymake-cc creates `-.o` files
  2024-05-04 11:38     ` Eli Zaretskii
@ 2024-05-18  8:33       ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2024-05-18  8:33 UTC (permalink / raw)
  To: sbaugh; +Cc: mattias.engdegard, 70716, joaotavora

Ping!

> Cc: sbaugh@catern.com, 70716@debbugs.gnu.org, joaotavora@gmail.com
> Date: Sat, 04 May 2024 14:38:39 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > Cc: sbaugh@catern.com, 70716@debbugs.gnu.org
> > From: Mattias Engdegård <mattias.engdegard@gmail.com>
> > Date: Thu, 2 May 2024 16:00:08 +0200
> > 
> > 2 maj 2024 kl. 15.13 skrev João Távora <joaotavora@gmail.com>:
> > 
> > > Copying in Spencer Baugh, the new Flymake maintainer. 
> > 
> > Would either of you please update the `Maintainer:` lines in lisp/progmodes/flymake*.el then?
> 
> Spencer, is it okay to mention you there as the maintainer of Flymake?
> 
> 
> 
> 





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-18  8:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-02 13:10 bug#70716: flymake-cc creates `-.o` files Mattias Engdegård
2024-05-02 13:13 ` João Távora
2024-05-02 14:00   ` Mattias Engdegård
2024-05-04 11:38     ` Eli Zaretskii
2024-05-18  8:33       ` Eli Zaretskii
2024-05-18  8:28   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).