[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56110: 27+; switching from line-mode to char-mode
From: |
Stefan Monnier |
Subject: |
bug#56110: 27+; switching from line-mode to char-mode |
Date: |
Sun, 26 Jun 2022 11:15:46 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>> > Simply speaking I meant one has to figure out whether one wants to
>> > `add-function' to var or to 'var.
>> `add-function` expects a "place", like `setf`.
> Thanks, I had an error in my mental model, partly induced by the SYMBOL
> without quote vs. (local 'SYMBOL) with quote thing.
Right, that's because for the argument to `local`, we can actually
accept any expression (i.e. an rvalue) as long as it returns a symbol
(just like for `(setf (car EXP) ..)` where can accept an expression EXP
as long as it returns a cons-cell).
I did hesitate to restrict the syntax to (local SYMBOL) because of the
asymmetry it between "SYMBOL" for the global case and "(local 'SYMBOL)"
for the local case, but there is no technical reason to restrict it
this way.
> Do we want a let-like environment (`let-function'?) that does the same
> as `add-function' temporarily?
I'm not sure it's common enough to be worthwhile. But if we do, then
we'd also want to add something for the `add/remove-hook` version of
the problem.
Stefan
- bug#56110: 27+; switching from line-mode to char-mode, (continued)
- bug#56110: 27+; switching from line-mode to char-mode, Stefan Monnier, 2022/06/22
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/23
- bug#56110: 27+; switching from line-mode to char-mode, Stefan Monnier, 2022/06/23
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/25
- bug#56110: 27+; switching from line-mode to char-mode, Stefan Monnier, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Stefan Monnier, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode,
Stefan Monnier <=
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Andreas Schwab, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, signal3, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Lars Ingebrigtsen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26