]> git.eshelyaron.com Git - emacs.git/commit
* lisp/progmodes/compile.el: Use non-nil values for *-function
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 3 Apr 2019 15:24:12 +0000 (11:24 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 3 Apr 2019 15:24:12 +0000 (11:24 -0400)
commit32e19b2baee081b400b0f23428963f1412114961
tree2ae9a23185d0a41e293d4c4f7a3da721711442bc
parent3062f81dbf6d815110ad17d5cd19469767e53e5c
* lisp/progmodes/compile.el: Use non-nil values for *-function

(compilation-parse-errors-filename-function,compilation-exit-message-function)
(compilation-process-setup-function, compilation-buffer-name-function):
Give them non-nil default values.
(compilation-buffer-name): Restructure slightly.
(compilation--default-buffer-name): New function, extracted from it.
Use `name-of-mode` instead of `mode-command` to check if the current
buffer is already in the appropriate mode.
lisp/progmodes/compile.el