[Top][All Lists]

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

package-install-from-buffer moves point

From: Peter Eisentraut
Subject: package-install-from-buffer moves point
Date: Sat, 18 Jul 2015 09:54:59 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

package-install-from-buffer moves the point to somewhere in the package
header, because it moves around there as it parses the header entries.
This is pretty annoying when developing and testing a package.

This could be fixed by wrapping the body of package-buffer-info into
save-excursion.  This worked well for me, but it somehow broke several
tests in package-test.el in ways that I don't understand.  E.g.,

Test package-test-describe-package condition:
    (wrong-type-argument number-or-marker-p "Trace/BPT trap: 5")
   FAILED   4/19  package-test-describe-package

Any ideas?

reply via email to

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