emacs-devel
[Top][All Lists]
Advanced

[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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]