bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: save-excursion doesn't save point?


From: Miles Bader
Subject: Re: save-excursion doesn't save point?
Date: Sat, 08 Jun 2002 07:01:30 GMT

paul.stoeber@stud.tu-ilmenau.de (Paul Stoeber) writes:
> ;; Point has changed, but shuffle-lines has only one body form, which
> ;; is a save-excursion form.  Is that supposed to happen?

Yes.

save-excursion doesn't work by saving a character number, but setting a
marker at the old point-location, and restoring to the marker later.

If you insert or delete text adjacent to a marker, it will end up shoved
to one side or the other -- and transpose-lines works by deleting and
inserting.

-Miles
-- 
[|nurgle|]  ddt- demonic? so quake will have an evil kinda setting? one that 
            will  make every christian in the world foamm at the mouth? 
[iddt]      nurg, that's the goal 



reply via email to

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