Commit Graph

38 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
INA Lintaro
175a5f378c Merge pull request #1976 from tarao/bundle
Merging bundle-el into el-get
2015-01-06 10:47:11 +09:00
tarao
f2c9d0fdfa Add an optional parameter to enable byte compilation warnings. 2014-11-15 15:21:04 +09:00
immerrr
4243577745 el-get-byte-compile-file: delete old compiled file
This should prevent the discrepancy that occurred before when
compilation failed.
2014-11-07 09:07:14 +03:00
Noam Postavsky
629a99c389 setq rather than let-bind load-path
during compilation. This ensures the same load-path is still in effect
during shutdown, when any kill-emacs-hooks that may be set during
compilation are run.

* el-get-byte-compile.el (el-get-byte-compile-from-stdin): setq
  load-path.
2014-10-16 20:06:17 -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
e0c90c11c9 el-get-byte-compile: don't require el-get-status
The byte compilation subprocess doesn't have el-get-status on its load
path.
2014-04-03 21:15:16 -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
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
Adam Spiers
d1febab63a Allow el-get-byte-compile to be called interactively
This is useful for package developers who modify package code in situ
under ~/.el-get.
2013-12-14 16:43:06 +00:00
Ryan C. Thompson
f47d14b2f7 Fix el-get-byte-compile
Previously, if the el and elc files had the same modification time,
byte-compilation would not occur, when it actually should have because
it cannot be determined which file was created first.
2013-10-11 01:03:52 -07:00
Victor Deryagin
0a202ea35d changed mentions of 'README.asciidoc' to 'README.md' in source files 2013-04-01 15:46:34 +03:00
Ryan C. Thompson
34fd8f9a2f Merge branch 'compile-after-build'
Conflicts:
	el-get-build.el
	test/el-get-issue-592.el
2012-03-18 13:56:28 -07:00
Ryan C. Thompson
454b9d7444 Ensure batch-mode for el-get-byte-compile-from-stdin
It raises an error if it is run interactively.
2012-03-07 18:23:32 -08:00
Ryan C. Thompson
9826d96669 Prevent printing "Lisp expression: " when reading expression from stdin 2012-03-07 18:23:32 -08:00
Ryan C. Thompson
85f273b740 Clean elc file if it is the *same* age as el file
Before, it would only be cleaned if it was older. Now being exactly
the same age also means it gets cleaned. This is because if they are
the same age, we don't know which came first, so we just have to
assume that the elc file is stale and recreate it.
2012-02-26 14:51:27 -08:00
Ryan C. Thompson
d639825957 Eliminate unnecessary quotes 2012-02-26 14:50:12 -08:00
Ryan C. Thompson
267e846afa Always run el-get-compile-process
Since el-get-byte-compile-process now does stale elc cleaning, it
needs to be run even if there's nothing to compile.
2012-02-26 14:33:32 -08:00
Ryan C. Thompson
8eff9779d9 Adjust warning in byte-compilation subprocess
It now only warns if both the list of files to compile and the
directory to clean are *both* nil.
2012-02-26 14:32:25 -08:00
Dimitri Fontaine
7bfcb21573 Fix the new function `el-get-clean-stale-compiled-files'. 2012-02-26 15:01:56 +01:00
Diego Sevilla Ruiz
b1f0dfdf87 Fix of el-get-clean-stale-compiled-files'. Was missing an ending )'. 2012-02-26 12:54:49 +01:00
Ryan C. Thompson
2bc05e2fdc Don't recurse into various special directories.
Mostly version control directories and cache directories and the like.
2012-02-26 03:04:11 -08:00
Ryan C. Thompson
dc4c44b0e5 Move "el-get-clean-stale-compiled-files" before the function that uses it 2012-02-25 13:41:31 -08:00
Ryan C. Thompson
541782b61f Do pre-compile cleaning in the same process as compiling 2012-02-25 13:41:31 -08:00
Ryan C. Thompson
9dc0d0465c Clean stale elc files before compiling 2012-02-25 11:34:47 -08:00
Ryan C. Thompson
e233dcef76 Add warning for possible corrupted input 2012-02-20 13:11:11 -08:00
Ryan C. Thompson
eb1f654327 Remove obsolete functions 2012-02-14 14:41:12 -08:00
Ryan C. Thompson
9c3a09f5f4 Remove obsolete variables 2012-02-14 14:37:55 -08:00
Ryan C. Thompson
647b123f70 Pass a plist instead of code over stdin 2012-02-14 10:59:15 -08:00
Ryan C. Thompson
7c52c7b5a6 Fix syntax 2012-02-13 17:05:04 -08:00
Ryan C. Thompson
4ac2018566 Pass code to eval via stdin instead of command-line 2012-02-13 16:22:09 -08:00
Sudish Joseph
edc100fd4d Fix typo naming el-get-all-symbol-files-1 2012-02-13 16:09:54 -08:00
Ryan C. Thompson
74f8a59fb6 Pass load-path to byte-compiling child process
Also, pass list of files to be byte-compiled as a lisp form on the
command line instead of stdin, and use a more future-proof method of
determining which elisp files the child process needs to load.
2012-02-13 16:09:08 -08:00
Sudish Joseph
01970efaa0 Fix file matching when :compile contains regexps. 2012-02-11 06:56:39 +08:00
Dimitri Fontaine
ce8a7e3899 Fix el-get-byte-compile in recent Emacs snapshot.
byte-compile-file behaviour changed yet again, so stop trying to guess if we
can rely on it and just define our own behaviour.
2011-10-11 20:40:57 +02:00
Ryan C. Thompson
996e798bfc Don't call shell-quote-argument in el-get-byte-compile-process
Same reason as in 11ef806a. The result of this function is passed to
`el-get-start-process-list` with a `:shell t` option, which results in
shell-quoting. So doing it here is redundant and potentially harmful.
2011-10-06 01:49:35 -07: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