Commit Graph

29 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
Noam Postavsky
05e46c15e0 Only print 1st :description line in package list
* el-get-list-packages.el (el-get-print-package): Truncate description
to first line.  Fix indentation when called with nil TYPE and DESC
parameters (i.e., when called from `el-get-save-package-status' to do a
partial update).
* recipes/rtags.rcp (rtags): Move mention of
`el-get-rtags-no-build-clang' from comment into :description.  Don't
throw error if that variable is not set.

See #2427.
2016-08-16 20:33:20 -04:00
Noam Postavsky
eb264f7c64 Fix compilation on different Emacs versions
* .travis.yml:
* test/travis-ci.sh: Don't treat byte-compilation warnings as errors for
downloaded package.el and ert.

* el-get-dependencies.el (el-get-auto-dependencies): Don't use
`read-from-whole-string', it's obsolete in Emacs 25.

* el-get-list-packages.el (el-get-package-menu-sort-by-column): Don't
assume `mouse-select-window' is fbound, it may not be for non-X builds.
2016-05-14 07:47:28 -04:00
Noam Postavsky
3c38b31ac7 Package menu: make the Type column a bit narrower
* el-get-list-packages.el (el-get-package-list-column-alist): New
  constant.
(el-get-print-package, el-get-package-menu): Use it.
2015-09-01 22:51:11 -04:00
Sebastien Le Maguer
42a7606541 type as optional 2015-08-25 17:33:59 +02:00
Sebastien Le Maguer
c557bcffaa add type of source in list of packages 2015-08-25 17:24:48 +02: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
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
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
fd3a3f5197 fontify package-list menu correctly
Fontify before inserting description+NL so that we fontify the current
line rather than the next (not yet generated) one.
2014-03-14 18:38:59 -04:00
Noam Postavsky
7e05182170 don't use called-interactively-p
Replace it with always t interactive spec, as suggested by its
docstring.
2014-03-05 00:07:54 -05: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
Rüdiger Sonderfeld
ef950e521c el-get-describe: Show install path and provide `el-get-cd'.
If the package is installed `el-get-describe' will now show the
install path and provide an interface similar to `el-get-cd'.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-09-16 15:50:45 +02:00
Rüdiger Sonderfeld
19c3fa3f16 el-get-describe: Inform user about minimum version requirement.
* el-get-list-packages.el (el-get-describe-1): Inform user about
  minimum version requirement.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-07-26 15:59:26 +02:00
Rüdiger Sonderfeld
6005050337 el-get-describe: Add punctuation after installation method.
* el-get-list-packages.el (el-get-describe-1): Add punctuation after
  installation method.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-07-26 15:58:28 +02:00
Rüdiger Sonderfeld
e6e92bfe48 Improve `el-get-describe' of :builtin packages.
Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-07-08 20:44:48 +02:00
Rüdiger Sonderfeld
ea84558902 Handle :builtin correctly in `el-get-describe'.
So far :builtin is ignored by `el-get-describe' and the regular
install method is always displayed.  With this patch the builtin
information is instead displayed.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-05-13 23:22:39 +02:00
Reuben Thomas
ed740af662 Add keymap to docstring for el-get-package-menu-mode. 2013-04-16 10:19:40 +01:00
Victor Deryagin
0a202ea35d changed mentions of 'README.asciidoc' to 'README.md' in source files 2013-04-01 15:46:34 +03:00
Sébastien Gross
dd7cd1617e Add function to display recipe file from the package menu using the 'v' key.
Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2013-01-17 14:33:09 +01: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
b96ae5bbb9 Remove reference to removed function
Also, require a package's directory to exist before considering it
installed.
2012-03-06 01:11:55 -08:00
Ryan C. Thompson
59c8c440e7 Add support for method website guessers 2012-02-28 17:58:28 -08:00
Julien Danjou
491ed855ba Add missing autoload flags for interactive functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2011-10-14 16:30:16 +02:00
Kyle Hargraves
57ff1cc90e el-get-describe: guess a project's github URL if no website was defined in the recipe 2011-09-30 17:28:26 -05: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