Actually it is the emacs sort sort-subr form that does this. Restoring point after a major buffer churn is questionable. If I have point in a buffer and then sort the buffer, where should point end up? At the same numerical position? In the same record it was in before?
On Sat, Dec 13, 2014 at 3:44 PM, Andrew Schwartzmeyer < [email protected]> wrote: > > Hi, > > When ledger-mode-clean-buffer executes, the call to ledger-sort-buffer > seems to break the usage of save-excursion; the point is always left at > point-min. I’ve traced it to some movement in ledger-sort-region, but I > cannot for the life of me seem to find what screws up the values for > save-excursion, which ought to be restoring the point. My *guess* is that > some of the navigate functions which sort-buffer uses messes it up. > > I have found a work-around hack by saving the point beforehand and using > goto-char saved-point after the call to ledger-sort-buffer, but this is > hardly a fix. > > Any clues or ideas? > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Ledger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
