Commit Graph

79 Commits

Author SHA1 Message Date
Ryan C. Thompson
35d8dbc014 Add interactive form to "el-get-merge-updatable-properties" 2012-05-06 01:48:04 -07:00
Ryan C. Thompson
426c6d2625 Added "el-get-merge-updatable-properties" with test
This is the first step on the way to fixing #659.
2012-05-06 01:48:04 -07:00
Ryan C. Thompson
cb787b2a7a Always print with "print-level" and "print-length" nil
This prevents Emacs from inserting "..." in place of very deep or long
data structures, which could corrupt the status file in some cases.
This is done by defining a wrapper function "el-get-print-to-string",
which el-get should use for all "critical" stringification tasks.

As noted in #689.
2012-03-29 14:52:43 -07:00
Ryan C. Thompson
110e4030bb Remove custom pretty-printing.
It was nice when it worked, but it was too unreliable.

Fixes #689.
2012-03-29 13:00:09 -07:00
Ryan C. Thompson
321967a915 Fall back to standard pp-to-string when custom pretty-printer fails
Addresses #677.
2012-03-20 11:01:24 -07:00
Ryan C. Thompson
5d5ff1629f Fix pretty printing of status file
It was broken by introducing the possibility of nil recipes for
removed packages.
2012-03-18 16:53:58 -07:00
Ryan C. Thompson
51d8eafc7d Fix migration code to only store recipes for installed packages 2012-03-18 12:57:35 -07:00
Ryan C. Thompson
27445f9db4 Only save and load status recipes for installed packages
If a package's status is anything other than "installed", the recipe
property is always saved as nil in the status file, and the recipe
property is not loaded from the status file at all.

This fixes a bug in migration from the old status format. If a package
was listed as removed and its recipe file was no longer available, the
status migration would fail when el-get tried to read the recipe for
that package so that it could store that recipe in the status file,
even though there was no need to do so.
2012-03-18 11:30:41 -07:00
Ryan C. Thompson
933aaefbfa Only catch expected errors in "status-alist-to-string"
Specifically, we catch only "scan-error" which is thrown by the
movement commands. Now any unexpected error would be propogated as
normal.
2012-03-12 09:17:20 -07:00
Ryan C. Thompson
a0a7680fcc Make el-get-status require pp explicitly
Previously it would rely on having it loaded already (or possibly
relied on autoloaded functions).
2012-03-12 09:08:58 -07:00
Ryan C. Thompson
739ec60f61 Explain why apparently-infinite loops are not infinite
Also explain why "forward-sexp is followed immediately by
"backward-sexp".
2012-03-12 08:31:45 -07:00
Ryan C. Thompson
b5ca858021 Better pretty-printing of status file
This comes with an assertion that ensures that my custom
pretty-printing doesn't break anything.

Fixes #661.
2012-03-11 13:58:48 -07:00
Ryan C. Thompson
7bd62253b3 Add macro "el-get-with-status-sources"
It is like "progn" but it dynamically binds "el-get-sources" to the
list of recipes stored in the status file while evaluating the BODY.
2012-03-08 13:03:04 -08:00
Ryan C. Thompson
a51d6af43a Remove remnant of el-get-strip-keyword-colon 2012-03-07 16:15:51 -08:00
Ryan C. Thompson
5766ca34df Remove vestigal cache variable 2012-03-07 12:54:40 -08:00
Ryan C. Thompson
5cee690295 Remove caching of status file 2012-03-07 10:17:08 -08:00
Ryan C. Thompson
8c49dc92de Re-add el-get-package-name function
Also add its natural counterparts el-get-package-symbol and
el-get-package-keyword, and remove the temporary replacement
el-get-strip-keyword-colon.
2012-03-07 09:48:28 -08:00
Ryan C. Thompson
031ad6fc95 Fix #640 2012-03-06 12:06:04 -08:00
Ryan C. Thompson
0e36fdaf4e Fix string/symbol confusion 2012-03-06 01:52:31 -08:00
Ryan C. Thompson
f7ba092f7a Define obsolete alias for removed function 2012-03-06 01:24:02 -08:00
Ryan C. Thompson
2a7b8ff537 Refactor duplicated code in el-get-sattus.el
Also pluralize "status" to "statuses" when it is used as an &rest
argument.
2012-03-06 01:11:55 -08:00
Ryan C. Thompson
fb9b762de8 Remove reference to removed function 2012-03-06 01:11:55 -08:00
Ryan C. Thompson
9edc8671c8 Cache package statuses in a variable
This prevents needing to read the package status from status fileon
disk every time el-get wants to know the status of a package (which is
often.)
2012-03-06 01:11:55 -08:00
Dimitri Fontaine
c51609718e Add recipe into the status file and use that at init time, to fix #553. 2012-03-05 18:51:33 +01:00
Sébastien Gross
2033c64143 Set print-length and print-level to nil.
This prevents .status.el from being written in an abbreviated form.

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2012-01-28 02:11:34 +01:00
Dimitri Fontaine
ff504e2d4d Implement `el-get-reload' with ideas from #434. 2011-10-10 22:04:10 +02:00
Dimitri Fontaine
976ca293a6 Status file fixes, now that we deal with a package symbol.
There's a difference between 'package and :package even if both are symbolp.
2011-09-23 14:07:50 +02:00
Dimitri Fontaine
8db0c4d49b Fix the refactoring so that it actually works.
This includes teaching methods that they now work with a symbolp PACKAGE,
some more cleaning up, and some load-path adjustments now that a part of the
code is in a subdirectory (methods).

Also include some of the tests used to convince oneself that the refactoring
didn't break any and all use cases for el-get, with some rough documentation
about how to use them.
2011-09-22 21:48:11 +02:00
Dimitri Fontaine
0433ca0ce9 Refactoring it all: a beginning. No time for testing yet, just showing ideas. 2011-09-20 15:15:52 +02:00