[Top][All Lists]

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

Re: package-install-from-buffer moves point

From: Artur Malabarba
Subject: Re: package-install-from-buffer moves point
Date: Sat, 7 Nov 2015 22:51:44 +0000

2015-11-07 18:03 GMT+00:00 Peter Eisentraut <address@hidden>:
> On 7/19/15 1:06 PM, Artur Malabarba wrote:
> >>> This is due to calls to some `lm-*' functions inside
> >>> `package-buffer-info' (possibly one of the calls I added myself
> >>> yesterday). I can just wrap those in save-excursions, but I'm thinking
> >>> that the `lm-*' functions themselves should not be moving the point.
> >>> Shall I use save-excursion inside those functions instead?
> >>
> >> Well, there is also a goto-char call right at the top of
> >> package-buffer-info.
> >
> > Clearly I should stop replying to messages on my phone where I can't
> > look at the code first. :)
> >
> >> But I agree that the lm-* functions should
> >> probably save the point themselves, too. There are some calls to
> >> save-excursion in lisp-mnt.el, but it seems it's not applied consistently.
> >
> > Yes. `lm-header' always moves point to the header (besides returning
> > it). All the others I looked through seem to be fine.
> Did you (or someone) have a chance to work on this?

Regrettably, no.
Feel free to do it if you'd like. It's really just a matter of fixing the tests that fail when you save excursion.

reply via email to

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