[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Partial wdired (edit just filename at the point)
From: |
Tomas Hlavaty |
Subject: |
Re: Partial wdired (edit just filename at the point) |
Date: |
Mon, 22 Mar 2021 23:39:11 +0100 |
On Mon 22 Mar 2021 at 18:16, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> No, I was talking about #'(lambda...) not about #'<symbol>.
> IOW, I was talking about having `lambda` returning an actual function
> object instead of returning a "list that can be treated as a
> function".
I see, the case of interpreted (type-of (lambda () 42))
> The use of #'<symbol> to refer to the actual symbol (so that it will
> change its semantics whenever that symbol's definition is changed) is
> much too ingrained in ELisp, I think changing it would introduce a lot
> of breakage and I'm not sure what the benefit would be: there's already
> `symbol-function` for that.
OK, that clarifies it for me.
> Use #' when you refer to a function by name, use ' when you're just
> referring to the symbol for some other reason (it might be a face,
> a variable's name, some arbitrary constant, ...).
>
> My rule of thumb is to write #'<foo> whenever I could also place here the
> content of (symbol-function 'foo), just with a slightly different semantics.
That's great, thank you!
- Re: Partial wdired (edit just filename at the point), (continued)
- Re: Partial wdired (edit just filename at the point), Stefan Monnier, 2021/03/22
- Re: Partial wdired (edit just filename at the point), Tomas Hlavaty, 2021/03/22
- Re: Partial wdired (edit just filename at the point), Andreas Schwab, 2021/03/22
- Re: Partial wdired (edit just filename at the point), Stefan Monnier, 2021/03/22
- Re: Partial wdired (edit just filename at the point), Tomas Hlavaty, 2021/03/22
- Re: Partial wdired (edit just filename at the point), Stefan Monnier, 2021/03/22
- Re: Partial wdired (edit just filename at the point),
Tomas Hlavaty <=
- Re: Partial wdired (edit just filename at the point), Andreas Schwab, 2021/03/22