]> git.eshelyaron.com Git - emacs.git/commit
Ensure proper mode of *Compile-Log* buffer (bug#67920)
authorMattias EngdegÄrd <mattiase@acm.org>
Thu, 21 Dec 2023 17:56:04 +0000 (18:56 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 22 Dec 2023 18:11:12 +0000 (19:11 +0100)
commit95641fe5ac40fb63df619e9a8bec2e779bf96b59
tree33373a7160ed66eca8e0dfb017eb0ab5c6e5e039
parentcfe6d2eddc97a93ed85afdf9373ab5a6964639fd
Ensure proper mode of *Compile-Log* buffer (bug#67920)

Reported by OGAWA Hirofumi.

* lisp/emacs-lisp/bytecomp.el (displaying-byte-compile-warnings):
Move most of the innards to...
(bytecomp--displaying-warnings): ...this new function, for ease
of maintenance.
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
Wrap early warning about missing lexbind declaration in
`displaying-byte-compile-warnings` so that it doesn't cause the
creation of a compile-log buffer with the wrong mode.

(cherry picked from commit c638a40d88f6ca105babbf9078b086491b649797)
lisp/emacs-lisp/bytecomp.el