This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+spacemacs
Miciah Masters 7852c3b36e Delete compilation finish hook
Before this commit, Spacemacs assigned an anonymous function to the
compilation-finish-function variable.  This variable was deprecated
in Emacs 22.1 and removed in Emacs 27.1 in favor of the
compilation-finish-functions hook.  Consequently, the assignment has
no practical effect in Emacs 27.1.

Although we could add the Spacemacs function to the new
compilation-finish-functions hook, the function serves little purpose; it
prints a generic message when compilation succeeds:

    compilation ok.

and it prints the key binding for spacemacs/next-error when compilation
fails:

    There were errors. Use SPC e n to visit.

However Emacs already prints messages to indicate success or failure,
respectively:

    Compilation finished

or (for example)

    Compilation exited abnormally with code 1

Because the Spacemacs function prints its "There were errors" message
immediately after Emacs prints its "Compilation exited abnormally" message,
the latter was obscured.  Because the exit code in Emacs's message could be
useful and the added value of the Spacemacs function's message is minimal,
we can simply delete the Spacemacs function.

* layers/+spacemacs/spacemacs-defaults/funcs.el
(compilation-finish-function): Delete the assignment and anonymous
function.
2018-09-03 21:29:53 +01:00
..
spacemacs-completion make spacemacs/counsel-search with proper highlighting 2018-09-01 00:13:03 +03:00
spacemacs-defaults Delete compilation finish hook 2018-09-03 21:29:53 +01:00
spacemacs-editing lsp-layer configuration and building blocks for derived layers. 2018-08-23 23:02:52 +01:00
spacemacs-editing-visual Defer volatile hightlight by 2 seconds 2018-06-14 02:06:19 -04:00
spacemacs-evil Revert "Disable evil-ediff for now" 2018-08-31 16:58:05 +03:00
spacemacs-language
spacemacs-layouts Only disable eyebrowse advice if it exists 2018-08-28 21:57:27 +01:00
spacemacs-misc
spacemacs-modeline spaceline: fix copy-paste error in lazy-load hook name 2018-06-20 09:51:45 +03:00
spacemacs-navigation Lazy load flx-ido 2018-06-14 21:09:40 -04:00
spacemacs-org org: fix https links 2018-05-22 13:08:43 +03:00
spacemacs-project Fix the projectile layer 2018-07-09 23:17:08 +02:00
spacemacs-purpose Remove obsolete purpose-conf argument for good 2018-06-20 23:56:41 +03:00
spacemacs-visual Adds *Process List* to popwin:special-display-config 2018-06-26 09:11:17 +03:00