Commit Graph

56 Commits

Author SHA1 Message Date
Stephan Creutz
ccca97f226 Replace cl by cl-lib
Since Emacs 27 the package cl is deprecated, the replacement is
cl-lib, which is available since Emacs 24.3.

This patch replaces cl by cl-lib and drops support for Emacs versions
less than 24.3. Dropping older Emacsen is required, because cl-lib is
a builtin starting from version 24.3 and doesn't need an extra package
from ELPA.

Testcases for past issues still contain cl. Most of them seem to be
broken and need further investigation.

This patch is tested with test/run-ert.sh, which outputs:

Ran 10 tests, 10 results as expected, 0 unexpected (2021-01-30 13:24:54+0100, 0.672122 sec)
1 expected failures

and manually by daily usage for a month now.
2021-06-13 16:03:08 +02:00
Adam Spiers
2a74721d05 fix 'developper' typo
'developer' is the correct spelling.
2015-11-17 16:15:54 +00:00
Noam Postavsky
b33e6e98cd change to pkg dir when loading usr init files
* el-get-recipes.el (el-get-load-package-user-init-file): Let-bind
  default-directory to package directory.

fix #2266
2015-10-18 09:32:05 -04:00
Noam Postavsky
14fae0c994 el-get-read-{recipe=>from}-file: rename and move
to el-get-core.el
2015-07-23 10:05:47 -04:00
Noam Postavsky
6968ff8ada split el-get-check.el from el-get-recipes.el
Move checking functions from el-get-recipes.el
2015-07-05 15:53:05 -04:00
Noam Postavsky
cd712b87ad Move error count increment to el-get-check-warning
Was in el-get-check-recipe-in-current-buffer.
2015-07-05 15:53:05 -04:00
Noam Postavsky
253f1899ec el-get-check-recipe: check for non keywords
Catches things like (:name foo :depends bar baz)

Fix some broken recipes: evil-rails.rcp, top-mode.rcp.
2015-03-03 18:21:05 -05:00
Noam Postavsky
e04caeb256 el-get-describe: pretty print recipe definition
* el-get-recipes.el (el-get-recipe-pprint): New function.
* el-get.el (el-get-write-recipe): Use it.
* el-get-list-packages.el (el-get-describe-1): Use it instead of princ.
(el-get-describe): Call el-get-describe-1 inside with-current-buffer
invocation, since el-get-recipe-pprint causes output to go straight to
the current buffer rather than standard-output.
2015-01-21 22:12:17 -05:00
Desmond O. Chang
eb8951db9e Return correct library from :pkgname for github based recipe
If `:library` and `:feature` are not specified, `eval-after-load` will
use `:pkgname` as its first argument.  For a github based recipe, the
`:pkgname` has two parts: "username/reponame".  We need to remove the
"username" part before passing `:pkgname` to `eval-after-load`.
2015-01-01 23:22:03 +08:00
Iqbal Ansari
483683d77e Use 'path-separator' for splitting/joining environment variables
This is more portable than current approach, which leads to errors in
windows, since it uses ':' in drive names and ';' to separate entries in
environment variables
2014-09-29 21:26:02 +05:30
Noam Postavsky
ad1c2aa7c6 Optimize el-get-read-all-recipe-names
This function is used to create completion candidates, so its slowness
is quite noticable. The main cause of slowness was the reading of all
the recipe files which can be avoided because the file name gives the
recipe name.

* el-get-recipes.el (el-get-all-recipe-file-names): new function.
* el-get.el (el-get-read-all-recipe-names): use new function
  el-get-all-recipe-file-names instead of el-get-read-all-recipes to
  avoid having to read every recipe file.
2014-06-20 00:49:39 -04:00
Noam Postavsky
1b8053617f Make package list use merged recipe definitions
el-get-list-packages wasn't showing descriptions when a partial recipe
in el-get-sources didn't have a :description field.

* el-get-recipes.el
(el-get-read-all-recipes): merge el-get-sources recipes into file
recipes rather than override.
(el-get-recipe-merge): new function.
(el-get-package-def): use it.
2014-06-20 00:40:40 -04:00
Noam Postavsky
4b31e99a4a check-recipe-batch: recipes/*.rcp -> recipes/
The travis script has set -e enabled which prints out command line to be
executed. However, it prints the command line after glob expansion, so
having recipes/*.rcp in a command would be a pain to scroll through.
2014-05-01 21:00:32 -04:00
Noam Postavsky
09f9d9a82e check recipes in travis, fix or muffle warnings
suppressed warnings: -Wno-features -Wno-github -Wno-autoloads, because
too many recipes trigger them to handle right now.
2014-05-01 21:00:31 -04:00
Noam Postavsky
7f1193cb69 add more warning suppressions
remove redundant erase-buffer call
2014-05-01 21:00:31 -04:00
Noam Postavsky
729d516dcd el-get-check-recipe-batch: set exit status 2014-05-01 21:00:31 -04:00
Noam Postavsky
e943b0e5c7 check-recipe: report parse errors
also fix previous commit which caused recipe warnings to show up
in *Warnings* instead of *el-get check recipe*.
2014-05-01 21:00:31 -04:00
Noam Postavsky
b35cd9cfe7 check-recipe in batch mode, -Wno-features
Allow checking recipes in --batch mode. Add option to suppress warnings
about :features since there are so many recipes that trigger this.
2014-05-01 21:00:31 -04:00
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
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
Rüdiger Sonderfeld
f1c742dde8 Add special-mode for el-get-check-recipes.
Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2014-01-19 16:14:11 +01:00
Rüdiger Sonderfeld
33eb2c8814 el-get-recipes.el: Docstring fixes.
This fixes a few `checkdoc' errors and some column length issues.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2014-01-19 16:14:04 +01:00
Dimitri Fontaine
d8640f1f40 Merge pull request #1130 from ruediger/recipe-file-name
Recipe file name: helm-c-mocuur and recipe check
2013-10-05 11:56:17 -07:00
Ryan Thompson
3238311309 Merge pull request #1262 from Silex/master
Fix emacswiki/elpa recipes created in the parent directory
2013-08-30 10:25:41 -07:00
Alex Ott
ee49108bc1 prevent the "Source does not have a :name property: nil" error
this error arise on my installation, as 'el-get-read-all-recipe-files' returned a list
with nil inside
2013-08-03 11:01:03 +02:00
Philippe Vaucher
9c61faf58f Create emacswiki/elpa recipes in el-get recipes directory 2013-07-27 10:26:02 +02:00
Reuben Thomas
b2e3794afa Make el-get-recipe-path non-customizable, and explain how to use it (issue #1164) 2013-04-21 17:23:08 +01:00
Victor Deryagin
0a202ea35d changed mentions of 'README.asciidoc' to 'README.md' in source files 2013-04-01 15:46:34 +03:00
Rüdiger Sonderfeld
a16a6ac89a Check if file name matches recipe name.
This should prevent mistakes such as 5002d1a.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-03-27 16:24:01 +01:00
Rüdiger Sonderfeld
9fb0c6b1ba Convert integer :builtin to string and warn user.
Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-03-04 01:52:34 +01:00
Rüdiger Sonderfeld
2c31220504 Add check for obsolete integer :builtin to check-recipe.
Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-03-04 01:51:49 +01:00
Rüdiger Sonderfeld
ca239fcfa6 Only accept strings for :builtin.
Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-03-01 18:09:35 +01:00
Rüdiger Sonderfeld
6d405dcef7 Extend :builtin to allow matching the complete `emacs-version'.
* el-get-recipes.el: If :builtin is a string use `version<=' to
  compare against `emacs-version'.

Minor version matching is required for `cl-lib' because it is a
builtin in version 24.3.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-02-25 14:34:34 +01:00
Sébastien Gross
27f8973cf9 Check for required properties.
Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2013-01-29 15:09:31 +01:00
Takafumi Arakaki
15bd4cfa61 Add recipe checker command and script
* Add el-get-check-recipe command
* Add a script test/check-recipe.el
* Mention recipe checker in the document
* Add warnings to el-get-check-recipe
* Use @command instead of @code
* make el-get.info
* Use more expressive name than el-get-check-recipe-1
2013-01-05 11:56:49 +09:00
Dimitri Fontaine
55b6085b1f Fix reading all recipes to only read the first recipe file.
It appears that Emacs Lisp loop will generate its own symbols/bindings for
the collect keyword even when you try to reference an already existing
binding in an outer block, and that I didn't test that properly before.

Seeing duplicates in the el-get-xxx commands completion did annoy me and
seeing them in M-x el-get-list-packages looked too much as a bug for me to
continue ignore it.
2012-12-18 11:42:09 +01:00
dim@tapoueh.org
454fb88192 My attempt at fixing #340. 2012-11-21 22:27:13 +01:00
Dimitri Fontaine
9d7c022764 Merge pull request #823 from DamienCassou/honor-el-get-byte-compile-for-init-files
Honor el-get-byte-compile for init files
2012-07-30 08:39:45 -07:00
Damien Cassou
98bf27fd83 Try to fix indentation
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-07-29 14:10:10 +02:00
Damien Cassou
23d2ffcbf9 el-get must honor `el-get-byte-compile' even for init files
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-07-29 14:04:19 +02:00
Takafumi Arakaki
2f74ac4aa1 Add el-get-envpath-prepend util function
el-get-envpath-prepend is added in order to simplify settings
related to python-related recipes, including newly added traad.rcp.
This function is general enough to use to modify, for example,
the $PATH environment variable.
2012-07-24 12:24:05 +02:00
Ryan C. Thompson
dd99a00a72 Better docstring for el-get-recipe-path 2012-06-03 08:14:37 -07:00
Ryan C. Thompson
f42c023e10 Allow version to be specified as number, string, or list.
See "el-get-version-to-list" for details.
2012-05-28 13:50:46 -07:00
Ryan C. Thompson
2fbf696f93 Rename version requirement to :minimum-emacs-version 2012-05-28 13:16:20 -07:00
Ryan C. Thompson
2985c0c6fb Add functions for getting and asserting a package's required emacs version 2012-05-06 00:55:27 -07:00
Dimitri Fontaine
981572235c Merge pull request #572 from sudish/load-init-elc
Allow loading byte-compiled package init files.
2012-02-19 02:04:29 -08:00
Sudish Joseph
41441b7067 Load byte-compiled package init files.
Compile the init file as needed.
2012-02-18 18:23:18 -05:00
Matthew L. Fidler
6f1e6c91ea Added el-get-elpa-build-local-recipies so that I can mirror elpa packages in el-get. (Whats the point of building thes packages by hand) 2012-02-18 10:46:50 -06:00