Commit Graph

582 Commits

Author SHA1 Message Date
Noam Postavsky
334750ada4 defun missing functions at runtime too
eval-when-compile -> eval-and-compile
2014-04-06 14:53:59 -04:00
Noam Postavsky
4c58f55920 fix more compilation warnings, missing functions
some functions were changed or introduced in 24.3
2014-04-06 14:53:59 -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
e3fab82ef9 fix el-get.el compilation
Move variables from el-get.el to el-get-custom.el; this lets the byte
compiler find them when looking at el-get-recipes.el, which is triggered
by (require 'el-get-recipes) from el-get.el. We can't (require 'el-get)
in el-get-recipes.el because that would cause circular requires which
the byte compiler rejects.
2014-03-22 17:44:19 -04:00
Noam Postavsky
e34fe97227 avoid many package-refresh-contents via let-bind
Previous flet hack is not needed since package-refresh-contents calls
are performed by code that is under our control, namely
el-get-elpa-update.
2014-03-18 21:23:13 -04:00
Noam Postavsky
2fc8cb5634 fix #340: el-get-make-recipes
454fb88192 introduced
el-get-read-all-recipe-files to fix el-get-make-recipes, but forgot to
actually call it.
2014-03-17 20:52:32 -04:00
Noam Postavsky
6c1562ee55 el-get-init-and-install: handle new :depends
If a package to be init'd has new dependencies, simply install them
rather than throwing an error about missing packages. A warning about
changing non-whitelisted properties is still issued.
2014-03-03 21:02:21 -05:00
Noam Postavsky
9c8d57bea1 remove unused variables
They're unused since 4b85baa9a1
2014-03-03 21:02:21 -05:00
Ryan C. Thompson
fdaaf51570 Cleanup indentation with custom indent rules 2014-03-01 16:19:46 -08: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
bfffd553f4 Move to version 5.1, rolling stable release. 2014-01-11 17:48:33 +01:00
Yakkala Yagnesh Raghava
f8a8008f23 Merge branch 'next' 2013-10-21 13:52:07 +09:00
Yakkala Yagnesh Raghava
146a43b887 Merge branch 'el-get-update-specific-backend' 2013-10-15 21:12:26 +09:00
Ryan C. Thompson
4310ef9db8 Reimplement el-get-update-specific-backend as el-get-update-packages-of-type
New definition is more canonical elisp, and uses two new el-get-core
functions "el-get-plist-keys" and "el-get-keyword-name".

Intended to improve #1412.
2013-10-15 01:13:51 -07:00
Yakkala Yagnesh Raghava
e71ba4c1fd * el-get.el: new defun el-get-update-specific-backend
for updating   specific backend recipes.

  Fixes #1042
2013-10-15 13:45:41 +09:00
Noam Postavsky
5c11d8e013 make el-get-sources docstring match code
Also remove a line of code that corresponded to the old description, but
wasn't actually doing anything.
2013-10-12 19:02:52 -04:00
Ryan C. Thompson
0f3068f072 Fix autoload removal
Combined with the byte-compile fix in f47d14b, changing el-get-remove
to set the pacakge status to "removed" before updating the autoloads
and removing the package results in correct autoload behavior when
removing packages.

Fixes #446.
2013-10-11 10:03:19 -07:00
Noam Postavsky
b1624e88b5 only need to preload autoloads when not lazy 2013-09-26 20:28:13 -04:00
Noam Postavsky
0848af2a13 load autoloads also before init'ing packages
Fixes #1006 with less performance concerns than 39846270a7b149. This one
only evaluates the autoloads file one extra time.
2013-09-26 20:27:15 -04:00
Xiao Hanyu
042540bdcb Add an defalias for lisp coding convention.
A new alias 'el-get-package-installed-p' for 'el-get-package-is-installed'.
2013-09-02 22:36:10 +08:00
Dimitri Fontaine
372e4ecec3 Merge pull request #1221 from ruediger/builtin-build
If :builtin matches do not execute :build/:info.
2013-07-21 15:33:01 -07:00
Rüdiger Sonderfeld
c305a0e927 If :builtin matches do not execute :build/:info.
Currently :build/:info properties are executed even if a package is
builtin.  This however is due to fail because the normal method is
being replaced.

Therefore if :type is 'builtin *and* the recipe has a :builtin
property neither :build nor :info are executed.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-05-15 14:56:20 +02:00
Dan Katz
53a135ad84 Simplify the patch to a single function since there's no known use for
the more general internal version.
2013-04-26 17:57:55 -04:00
Dan Katz
3dc440aa77 Ensure that el-get-cleanup preserves el-get.
Split the package removal logic into a dangerous internal function
which removes everything, and a user-friendly external
function (el-get-cleanup) which ensures that el-get doesn't get nuked.
2013-04-23 08:51:10 -04:00
Carlos A. Rocha
a4387d7727 Fix el-get-update-all for elpa packages
el-get-update-all overrode package-refresh-contents using flet to
avoid triggering a full refresh of all elpa packages when updating
each elpa package. The use of flet was incorrect, and the overridden
function was specified with different arguments, causing an error.
2013-04-11 01:27:47 -04: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
529a2e1f9a Add some sanity checks in el-get-remove and el-get-rmdir, fixing #944. 2012-12-03 15:45:21 +01:00
Daniel Szmulewicz
7ba81d6bf0 el-get-cleanup function 2012-09-28 23:17:58 +02:00
Keshav Kini
f1b0293549 Use trailing space with yes-or-no-p
The documentation of the built-in function yes-or-no-p says that the
argument "should end in a space".
2012-09-14 22:05:08 +08: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
Dimitri Fontaine
642ad14315 Release 4.1. 2012-08-28 23:07:48 +02:00
Dimitri Fontaine
3e5fed5585 Some editing of the changelog, release is Real Soon Now 2012-08-15 17:02:49 +02:00
Dimitri Fontaine
4b85baa9a1 Remove el-get 'wait that's been broken for a long time already, fixes #758.
The use case for el-get 'wait is very thin (setup file only), and fixing it
would be hard enough that we're not going to work on it. If you want to wait
until the packages are installed, just use 'sync.

One reason why fixing that situation is not easy is that some error cases
that happen at install time are not catched by El-Get code, so there's no
place where to set the package status as "failed" or something equivalent.
We wouls still have some "required" packages left, and if we don't count
them in the progress information we hang up completely.

This commit also refresh the test/README content to cope with the recent
status.old backup file, and in passing reformat the file as Markdown.
2012-07-30 19:22:30 +02:00
Dimitri Fontaine
db6a5596fc Fix el-get-init command. 2012-07-23 23:33:51 +02:00
Ryan C. Thompson
8ec40d632d Fix error in "(el-get 'wait ...)"
This prevents an error, but wait mode is still broken because it
doesn't actually wait until everything is done.
2012-07-23 23:25:33 +02:00
Dimitri Fontaine
a8ae68fce8 Fix #656, the provided test case now passes. 2012-07-17 15:09:56 +02:00
Ryan C. Thompson
5dfadefedd Add support for update hooks
Previously we had install hooks but no update hooks.
2012-06-18 16:32:47 -07:00
Ryan C. Thompson
82681cbbff Fix #619 after merging #660
Convert el-get-checksum to new el-get-with-status-sources usage
2012-06-03 07:53:55 -07:00
Ryan C. Thompson
16518d9d6c Fix #592 after merging #660 2012-06-03 07:53:55 -07:00
Ryan C. Thompson
c3c07e7169 Fix #583 after merging #660 2012-06-03 07:53:55 -07:00
Ryan C. Thompson
bdc2cb2aa6 Fix #303 after merging #660 2012-06-03 07:53:55 -07:00
Ryan Thompson
bcce1646bf Merge pull request #660 from DarwinAwardWinner/update-status-recipes
Auto-update status recipes when el-get-sources has changed
2012-06-02 20:51:08 -07:00
Ryan C. Thompson
ca85d4fc30 Merge branch 'emacs-version-check'
This adds the ability for recipes to specify a required minimum emacs
version. Attempting to install such a recipe in a lower version of
emacs will result in an error.
2012-05-28 13:52:46 -07:00
Ryan C. Thompson
619941cb31 Fix cedet recipe
This includes a fix to "el-get-reload" that ignores errors during
reloading package files, because CEDET raises errors if you try to
reload it. If a file raises an error during reloading, we issue a
warning telling the user that they might have to restart emacs to
finish the update.

Recipe fixes based on https://github.com/dimitri/el-get/pull/748
2012-05-27 12:43:07 -07:00
Ryan C. Thompson
df560dbf63 Better docstring for auto-update-cached-recipes 2012-05-06 01:51:19 -07:00
Ryan C. Thompson
25fa9aa4fa Minimize whitespace changes in el-get-init relative to master 2012-05-06 01:51:18 -07:00
Ryan C. Thompson
a31554e42c Make regular el-get-sources available to post-init hooks
This is critical because installation dependency chaining happens via
a post-init hook. This is done by putting the call to post-init-hooks
outside the "el-get-with-status-sources" block.
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
24ea4be1a5 Auto-update recipes before init
Should fix #659.
2012-05-06 01:48:04 -07:00