bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20445: excessive redisplay / echo area resizing during byte-compilat


From: martin rudalics
Subject: bug#20445: excessive redisplay / echo area resizing during byte-compilation
Date: Tue, 28 Apr 2015 19:43:03 +0200

> This effectively disables the log control executed via
> byte-compile--interactive.  So the question is: how can we solve it
> without that adverse effect?

To solve the case at hand we could probably get away with something like


--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -181,7 +181,8 @@ All commands in `lisp-mode-shared-map' are inherited by this 
map.")
   "Byte compile the file containing the current buffer."
   (interactive)
   (if buffer-file-name
-      (byte-compile-file buffer-file-name)
+      (let ((byte-compile--interactive t))
+        (byte-compile-file buffer-file-name))
     (error "The buffer must be saved in a file first")))

 (defun emacs-lisp-byte-compile-and-load ()


But there might be lots of cases where `byte-compile-file' and friends
are called by a command.

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]