[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make format-spec accept a function as the substitution
From: |
Stefan Kangas |
Subject: |
Re: Make format-spec accept a function as the substitution |
Date: |
Thu, 29 Sep 2022 05:59:48 -0700 |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Code should be quoted with `lambda` (which you run with `funcall` or
> `apply`), not with `quote` (for which you need to use `eval`).
>
> So we should aim for a source code of the form:
>
> (format-spec "Go to line %n in file %f %g"
> `((?n . ,(λ () (read-number "Number: ")))
> (?g . "now")
> (?f . ,(λ () (read-file-name "File: ")))))
I agree, which is why that's what my patch does.
- Re: master fe7c015b20: Support XFCE in wallpaper.el, (continued)
- Re: master fe7c015b20: Support XFCE in wallpaper.el, Stefan Kangas, 2022/09/27
- Re: master fe7c015b20: Support XFCE in wallpaper.el, Visuwesh, 2022/09/27
- Re: master fe7c015b20: Support XFCE in wallpaper.el, Stefan Kangas, 2022/09/27
- Re: master fe7c015b20: Support XFCE in wallpaper.el, Thierry Volpiatto, 2022/09/27
- Re: master fe7c015b20: Support XFCE in wallpaper.el, Eli Zaretskii, 2022/09/27
- Re: master fe7c015b20: Support XFCE in wallpaper.el, Stefan Kangas, 2022/09/27
- Re: master fe7c015b20: Support XFCE in wallpaper.el, Eli Zaretskii, 2022/09/27
- Make format-spec accept a function as the substitution, Stefan Kangas, 2022/09/27
- Re: Make format-spec accept a function as the substitution, Thierry Volpiatto, 2022/09/29
- Re: Make format-spec accept a function as the substitution, Stefan Monnier, 2022/09/29
- Re: Make format-spec accept a function as the substitution,
Stefan Kangas <=
- Re: Make format-spec accept a function as the substitution, Philip Kaludercic, 2022/09/29
- Re: Make format-spec accept a function as the substitution, Stefan Kangas, 2022/09/29
- Re: Make format-spec accept a function as the substitution, Philip Kaludercic, 2022/09/29
- Re: Make format-spec accept a function as the substitution, Stefan Kangas, 2022/09/29
- Re: Make format-spec accept a function as the substitution, Stefan Monnier, 2022/09/29
- Re: Make format-spec accept a function as the substitution, Thierry Volpiatto, 2022/09/29
- Re: Make format-spec accept a function as the substitution, Stefan Kangas, 2022/09/29
- Re: master fe7c015b20: Support XFCE in wallpaper.el, Stefan Kangas, 2022/09/29