[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Staying in the same place"
From: |
Karl Fogel |
Subject: |
Re: "Staying in the same place" |
Date: |
Mon, 04 Apr 2016 14:49:21 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) |
Lars Magne Ingebrigtsen <address@hidden> writes:
>> (defmacro fuzzy-save-excursion (&rest body)
>> record-the-position-fuzzily-using-mode-specific-code
>> run-the-body
>> restore-the-fuzzily-recorded-position
>> )
>
>Yes, I think having a macro for this would be very handy and encourage
>usage of this stuff. However, the restore-the-fuzzily-recorded-position
>thing should also be available in a handy fashion for when we're doing
>asynchronous fuzzy point restoration (with diff mode and compilation
>mode, for instance).
Yes, absolutely. A "fuzzily recorded position" should be a first-class object
that can be passed around like any value. There can be a macro that generates
and consumes such objects entirely internally to the macro, but the objects can
also be generated explicitly in code and consumed later.
- "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", Stefan Monnier, 2016/04/04
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", Stefan Monnier, 2016/04/04
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", Karl Fogel, 2016/04/04
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place",
Karl Fogel <=
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", John Wiegley, 2016/04/04
- RE: "Staying in the same place", Drew Adams, 2016/04/04