emacs-devel
[Top][All Lists]
Advanced

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

Re: package-install-from-buffer moves point


From: Peter Eisentraut
Subject: Re: package-install-from-buffer moves point
Date: Sun, 19 Jul 2015 12:12:52 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 7/18/15 11:13 AM, 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.  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.




reply via email to

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