spacemacs/recompile-elpa with argument deletes all existing *.elc files

Rationale: very often users required to find and delete all *.elc files
manually. That's a bit tedious.
This commit is contained in:
Ag Ibragimov 2019-06-12 10:38:46 -07:00 committed by duianto
parent ddf7459a02
commit cf796a4224
3 changed files with 8 additions and 1 deletions

View File

@ -475,6 +475,7 @@ Other:
(thanks to Dieter Komendera) (thanks to Dieter Komendera)
- Added line text object using =evil-textobj-line= (thanks to Uroš Perišić) - Added line text object using =evil-textobj-line= (thanks to Uroš Perišić)
- Added more =kaolin-themes= (thanks to ogdenwebb) - Added more =kaolin-themes= (thanks to ogdenwebb)
- Calling ~spacemacs/recompile-elpa~ with an argument nukes all *.elc files (thanks to Ag Ibragimov)
- Fixed: - Fixed:
- Avoid non-idempotent use of push in init code (thanks to Miciah Masters) - Avoid non-idempotent use of push in init code (thanks to Miciah Masters)
- Moved Spacemacs startup progress bar to =core-progress-bar.el=, removed - Moved Spacemacs startup progress bar to =core-progress-bar.el=, removed

View File

@ -269,6 +269,12 @@ result, incrementing passed-tests and total-tests."
(interactive "P") (interactive "P")
;; First argument must be 0 (not nil) to get missing .elc files rebuilt. ;; First argument must be 0 (not nil) to get missing .elc files rebuilt.
;; Bonus: Optionally force recompilation with universal ARG ;; Bonus: Optionally force recompilation with universal ARG
(when arg
(seq-do
(lambda (fname)
(when (file-exists-p fname)
(delete-file fname)))
(directory-files-recursively user-emacs-directory "\\.elc$" t)))
(byte-recompile-directory package-user-dir 0 arg)) (byte-recompile-directory package-user-dir 0 arg))
(defun spacemacs/register-repl (feature repl-func &optional tag) (defun spacemacs/register-repl (feature repl-func &optional tag)

View File

@ -3513,7 +3513,7 @@ usable; if it is not then restart Emacs with =emacs --debug-init= and open a
** Upgrading/Downgrading Emacs version ** Upgrading/Downgrading Emacs version
To ensure that packages are correctly compiled for the new Emacs version you To ensure that packages are correctly compiled for the new Emacs version you
installed, be sure to run the interactive command =spacemacs/recompile-elpa= installed, be sure to run the interactive command =spacemacs/recompile-elpa=
with ~SPC SPC spacemacs/recompile-elpa~. with ~SPC u SPC SPC spacemacs/recompile-elpa~.
* Achievements * Achievements
** Issues ** Issues