all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Possible problem with compile
@ 2022-04-21 10:06 Immanuel Litzroth
  2022-04-21 10:41 ` Philip Kaludercic
  2022-04-21 12:18 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Immanuel Litzroth @ 2022-04-21 10:06 UTC (permalink / raw)
  To: emacs-devel

This triggers a problem
(compile '(error "you have a problem"))
;; here compile-command is (error "you have a problem")
;; and the next compilation(s) will eval that so they fail
(compile "ls")

This is the relevant code from compile.el:

 (unless (equal command (eval compile-command))
    (setq compile-command command))

I don't quite understand why the compile-command is evalled before setting
in this context. Documentation seems to suggest it should be a string whether
whether it is set via (compile something) or (setq compile-command something)
Immanuel


-- 
-- A man must either resolve to point out nothing new or to become a
slave to defend it. -- Sir Isaac Newton



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

end of thread, other threads:[~2022-04-21 13:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-21 10:06 Possible problem with compile Immanuel Litzroth
2022-04-21 10:41 ` Philip Kaludercic
2022-04-21 12:18 ` Stefan Monnier
2022-04-21 12:55   ` Immanuel Litzroth
2022-04-21 13:25     ` Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.