[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding refactoring capabilities to Emacs
From: |
Stefan Monnier |
Subject: |
Re: Adding refactoring capabilities to Emacs |
Date: |
Thu, 07 Sep 2023 13:54:49 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Though when I used that for a stepper I run into some ambiguities
> with atoms after macro expansion (described in section 4.1). Might
> not be a problem here, as that problem was related to knowing
> which manifestations a given atom is actually evaluated. And I'd
> say that's not a problem for the "rename" refactoring action.
The symbols-with-position approach avoids this problem (for symbols,
tho not for other data without identity list fixnums) because every
occurrence of a symbol returns a different "symbol with position" (and
then we need a hack to allow those different symbol-with-positions to
be `eq` nevertheless because that's what is needed at too many places
we can't control).
>> It's what's used in the byte-compiler to provide position info in
>> the warnings.
>
> Hmmm, and we know it doesn't always get things right... :-/ Namely
> it fails when there is more than one manifestation of the warning.
> But then again, maybe that's a problem of compilation, not
> reading, source-tracking or macro-expansion.
[ I can already hear Alan prepare his reply :-) ]
Seriously, tho, the position is pretty damn exactly right almost every
time nowadays. When it's not, it's not because the
"symbol-with-position" info is wrong but because it's missing, or
something else like that.
Stefan
- Re: Adding refactoring capabilities to Emacs, (continued)
Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/04
Re: Adding refactoring capabilities to Emacs, Philip Kaludercic, 2023/09/04
Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, Stefan Monnier, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, Stefan Monnier, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07
- Re: Adding refactoring capabilities to Emacs,
Stefan Monnier <=
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, Stefan Monnier, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Lynn Winebarger, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Stefan Monnier, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/07
Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Eli Zaretskii, 2023/09/08
Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/08