Commit Graph

73 Commits

Author SHA1 Message Date
Noam Postavsky
decec7e4a8 el-get-merge-properties-into-status: no return-from
Since efaa866bfe changed defun* to defun
return-from no longer works in that context.

fix #2100
2015-02-18 10:15:01 -05:00
Noam Postavsky
efaa866bfe el-get-merge-properties-into-status: no defun*
Use defun instead of defun* to interpret keyword args. This let's us be
a bit more forgiving about accepting badly formatted keyword arg
lists (e.g. calls using the signature from before package-status-alist
was removed).
2015-02-17 20:53:53 -05:00
Noam Postavsky
84bbac1da7 Allow package-status-alist arg
In el-get-do-init and el-get-reload but mark it obsolete. This avoids
an error while updating el-get, since the code doing the updating still
uses the old calling convention.

For the el-get-with-status-sources macro, just keep the argument but
always pass nil when calling it (because the obsolete arg is followed
by &rest args, the calling convention can't be changed in a
distinguishable way).
2015-02-17 20:53:53 -05:00
Noam Postavsky
145177c2a4 Remove &optional package-status-alist argument
It seems many functions have an &optional package-status-alist argument
that is never used anywhere.

* el-get-status.el (el-get-package-status-alist,
el-get-package-status-recipes, el-get-read-package-status,
el-get-read-package-status-recipe, el-get-with-status-sources,
el-get-read-cached-recipe, el-get-merge-properties-into-status):
* el-get.el (el-get-init, el-get-do-init, el-get-reload, el-get-remove,
el-get-checksum): Remove &optional package-status-alist argument.
2015-02-17 20:53:53 -05:00
Noam Postavsky
881ea22416 Make sure ~/.emacs.d/el-get exists
* el-get-status.el (el-get-read-status-file-force): If there is no
  status file, ensure the directory exists so it will be possible to
  create it.
2014-10-29 18:44:07 -04:00
Noam Postavsky
94a4a62b92 Fix compilation errors/warnings under elpa
* el-get-list-packages.el (el-get-read-package-status): Declare.
* el-get-status.el (el-get-print-package): Declare.
(el-get-status-cache): Move definition before use.
* el-get-methods.el (add-to-list): Set load-path during compilation too.
2014-10-29 18:28:00 -04:00
Noam Postavsky
fdc523943a require el-get be installed 2014-10-29 18:15:02 -04:00
Noam Postavsky
6998a504c8 Don't "convert" empty status to new format 2014-10-29 18:15:01 -04:00
Noam Postavsky
650f77436f keep package menu aligned when updating it
Note that this problem only shows up in after
  (setq-default indent-tabs-mode nil)
2014-04-18 12:27:03 -04:00
Noam Postavsky
d30ddb78e1 fix byte compile warnings
Move more variables to el-get-custom.el, add requires or
declare-functions as needed.

There were a few places that appeared to be actual bugs: wrong or
missing variable names.
2014-03-22 18:43:42 -04:00
Noam Postavsky
2ad18dfdba don't throw error when package menu lacks package
New packages could have become available since the menu was built.
2014-03-09 14:51:49 -04:00
Dimitri Fontaine
7e418558b2 Merge pull request #1586 from npostavs/update-menu
Update package list/menu as packages are installed/removed
2014-03-02 23:29:45 +01:00
Ryan C. Thompson
fdaaf51570 Cleanup indentation with custom indent rules 2014-03-01 16:19:46 -08:00
Noam Postavsky
0ffbca2df9 only fetch description when first building menu 2014-02-28 23:04:25 -05:00
Noam Postavsky
e9fab9a78f update package list when status changes
Since installation can be asynchronous, refreshing the menu at the end
of el-get-package-menu-execute doesn't help, therefore we update from
el-get-save-package-status instead.
2014-02-28 23:04:25 -05:00
Ryan C. Thompson
cf34f9aa0a Clean up whitespace
This commit is the result of running cleanup-whitespace.sh.

Fixes #549.
2014-02-21 10:52:48 -08:00
Dimitri Fontaine
628c06cf8c Fix el-get-read-cached-recipe when target package is found in the status file. 2013-05-10 20:56:07 +02:00
Dimitri Fontaine
be39fa8a63 Fix cached lookup for new dependencies that are :builtin... just install them! 2013-05-07 15:44:27 +02:00
Victor Deryagin
0a202ea35d changed mentions of 'README.asciidoc' to 'README.md' in source files 2013-04-01 15:46:34 +03:00
Dimitri Fontaine
f2a3b5bc2d Merge pull request #907 from renard/do-not-save-removed-packages
Do not save removed package to el-get-status-file.
2012-12-14 13:21:57 -08:00
Rafael Laboissiere
0269893d61 Fix spelling of word "package" 2012-11-02 15:32:19 +01:00
Ryan C. Thompson
60a6870b7e Remove skip-non-updatable argument from el-get-merge-properties-into-status
This option no longer makes sense given how things work now.
2012-10-07 02:28:15 -07:00
Ryan C. Thompson
54466581ee Merge remote-tracking branch 'refs/remotes/tkf/fix-835' 2012-10-06 18:46:46 -07:00
Sébastien Gross
0e1d2d2444 Do not save removed package to el-get-status-file.
Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2012-10-03 23:22:10 +02:00
Takafumi Arakaki
848c90a518 Clear status cache before init/install/update, etc.
The cache is cleared before running these functions *interactively*:

* el-get-init
* el-get-install
* el-get-reload
* el-get-update
* el-get-remove
2012-09-03 18:03:07 +02:00
Takafumi Arakaki
93a769334e Remove an unneeded auxiliary function 2012-09-01 15:20:47 +02:00
Takafumi Arakaki
f4447fc3f1 Fix the merge function (test passes now) 2012-09-01 15:18:45 +02:00
Takafumi Arakaki
aa0aae272b Fix #835: el-get-update treat prop removal now
Use the new source or abort if non-whitelisted properties are changed.

fixes #835
2012-08-31 23:45:27 +02:00
Dimitri Fontaine
2198da6543 Merge pull request #836 from tkf/more-whitelist
Add more properties to el-get-status-recipe-update-whitelist
2012-08-15 14:40:15 -07:00
Takafumi Arakaki
e3b1c10756 Make docstring for the whitelist clearer 2012-08-15 17:03:06 +02:00
Takafumi Arakaki
56cb9fb5c5 Add more properties to whitelist 2012-08-15 17:02:09 +02:00
Takafumi Arakaki
ed5ac2eebf Cache el-get-status-cache 2012-08-12 15:05:04 +02:00
Takafumi Arakaki
fd0562cdfc Check if update is needed when merging status 2012-08-12 15:05:01 +02:00
Takafumi Arakaki
eb3cb92785 Fix el-get-package-name/symbol 2012-08-12 13:42:20 +02:00
Dimitri Fontaine
f3767251d8 Downgrade "installed" package to "required" when the directory is missing, fix #766. 2012-07-23 23:16:14 +02:00
Dimitri Fontaine
cf818d78fd Fix #785 by saving the old status format file before converting it. 2012-07-23 22:56:14 +02:00
Ryan C. Thompson
7256607fc2 Prevent errors when migrating status file
Previously, if a package is listed as installed but it doesn't have a
recipe available, then status file migration would fail with an error
because it requires a recipe to save into the new status format. Now,
when this occurs, it just saves a "dummy" recipe that does nothing
instead. This does not result in any loss of functionality, since
without an available recipe the package in question is unusable
anyway.
2012-06-19 16:22:51 -07:00
Ryan C. Thompson
967e58498d Fix missing paren in el-get-status.el
Fixes #764.
2012-06-03 07:53:44 -07:00
Ryan C. Thompson
9a048af390 Tweak whitespace in error message 2012-05-06 01:51:18 -07:00
Ryan C. Thompson
66ac07520f Small but tricky fixes 2012-05-06 01:51:18 -07:00
Ryan C. Thompson
d4892a1e64 Refactoring 2012-05-06 01:48:05 -07:00
Ryan C. Thompson
590ebf784b Also allow recipe updates from recipe files
As suggested in
https://github.com/dimitri/el-get/issues/659#issuecomment-4433757
2012-05-06 01:48:05 -07:00
Ryan C. Thompson
8aea873464 Code fixes in el-get-status.el 2012-05-06 01:48:04 -07:00
Ryan C. Thompson
f31b503ed1 Add optional package-status-alist arg
This lets el-get-merge-updatable-properties work either on the status
file directly or on a given alist, which it modifies in place.
2012-05-06 01:48:04 -07:00
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