all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Question about eval and compile-command
@ 2023-08-03  9:29 Eshel Yaron
  2023-08-03  9:56 ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Eshel Yaron @ 2023-08-03  9:29 UTC (permalink / raw)
  To: emacs-devel

Hi all,

I'm curious as to why `compile` and `recompile` use `eval` to evaluate
the value of `compile-command`.  AFAICT since commit
5b6858da26e4e6671ee93b67b921a86309b3d6a2 (July 19 2001), these commands
evaluate `compile-command`, as if it's expected to be an expression that
evaluates to a string rather than just a plain string.

The commit message says:

    (compilation-parse-errors): `linenum' might return a this-error using
    the alternative format (a pair of markers).

But I don't quite understand how that relates to `compile-command`.

Also, the `:type` of `compile-command` remains `string`, and I couldn't
find any mention of the value of `compile-command` being evaluated that
way in the relevant documentation.

I wonder if this is just a remnant of a past experiment or an
undocumented feature.  Or maybe there's something else I'm missing?

Thanks,

Eshel




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

end of thread, other threads:[~2023-08-04  7:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03  9:29 Question about eval and compile-command Eshel Yaron
2023-08-03  9:56 ` Eli Zaretskii
2023-08-03 15:14   ` Stefan Monnier
2023-08-03 16:23     ` Eshel Yaron
2023-08-03 17:24       ` Stefan Monnier
2023-08-03 20:02     ` Philip Kaludercic
2023-08-03 20:39       ` Stefan Monnier
2023-08-03 21:14       ` Andreas Schwab
2023-08-03 21:35         ` [External] : " Drew Adams
2023-08-04  5:40           ` Eli Zaretskii
2023-08-04  6:51           ` Andreas Schwab
2023-08-04  7:00             ` Philip Kaludercic

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.