Commit Graph

84 Commits

Author SHA1 Message Date
INA Lintaro
1c5b0eb7fa
Merge pull request #2890 from yewton/master
Ensure ps not to be t
2024-04-08 17:37:28 +09:00
stephan-cr
cd99807894
Add Emacs 28.2 to CI builds and fix newly introduced warnings (#2905)
Currently, there are no builds for Emacs 28.

Emacs 28 seems have introduced warnings about the line length in code
documentation. These warnings have been fixed as well.
2023-06-18 16:53:50 +02:00
Yuto SASAKI
3fa2530407 Ensure ps not to be t
Addressing this change: bef1edc9ca
2023-01-03 21:31:41 +09:00
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
Vedang Manerikar
c736dedffe Pass the correct number of arguments to define-obsolete-function-alias
Otherwise, the code breaks on the feature/native-comp branch for Emacs 28.
2021-02-14 13:40:53 +05:30
Noam Postavsky
bd291d0771 el-get-diagnosis-properties: only 1 level flatten
fixes #2242
2015-09-14 11:59:26 -04:00
Noam Postavsky
5be02713fc add :build/* to update whitelist 2015-09-07 15:07:01 -04:00
Noam Postavsky
e1a4e0c7de Refine stale recipe warning
Make it say exactly which operation(s) are required to update the
recipe.

* el-get-status.el (el-get-classify-new-properties): Return a partition
  of updates for each operation instead of (dis)allowed lists for a
  given operation.
(el-get-diagnosis-properties): Return the required operation(s) instead
of update-p.
(el-get-merge-properties-into-status): Make the warning only suggest to
update if that would actually succeed given the properties needing
updating.
2015-09-05 23:32:21 -04:00
Noam Postavsky
d7743181da compact warning for failed .status.el prop merge 2015-09-05 17:56:21 -04:00
Noam Postavsky
39790b78fe add some special case update safe properties
* el-get-status.el (el-get-classify-new-properties): Consider :url
  changes update safe for :type http*, builtin.  Consider :builtin
  changes safe if not crossing current Emacs version.
2015-09-05 17:52:02 -04:00
Noam Postavsky
cf1d2f93b7 merge recipe changes to .status.el on update too
Previously, the recipe in .status.el was only updated on init, since
only some properties are safe for change on init the unsafe ones were
never updated.  Therefore, we classify addtional properties as safe fo
change on update, and update .status.el after el-get-update too.

* el-get-core.el (el-get-as-string): Handle number argument.
* el-get-status.el (el-get-status-init-whitelist): Rename from
  el-get-status-recipe-update-whitelist.
(el-get-status-update-whitelist): New constant.
(el-get-classify-new-properties): Add OPERATION argument to choose white
whitelist to use.  The :builtin property is safe to change if it doesn't
change the :type.
(el-get-diagnosis-properties, el-get-merge-properties-into-status): Add
OPERATION argument.
* el-get.el (el-get-do-init): Call el-get-merge-properties-into-status
  with OPERATION 'init.
(el-get-post-update-build): Call el-get-merge-properties-into-status
  with OPERATION 'update.
2015-09-05 17:52:02 -04:00
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