* lisp/emacs-lisp/bytecomp.el (byte-recompile-file): New fun.
(byte-recompile-directory): * lisp/emacs-lisp/lisp-mode.el (emacs-lisp-byte-compile-and-load): * cedet/ede/proj-elisp.el (project-compile-target): * cedet/semantic/ede-grammar.el (project-compile-target): Use `byte-recompile-file'. Fixes: debbugs:7297
This commit is contained in:
parent
f486841f69
commit
430e7297cb
5 changed files with 71 additions and 30 deletions
|
@ -407,10 +407,7 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
|
|||
(if (and (buffer-modified-p)
|
||||
(y-or-n-p (format "Save buffer %s first? " (buffer-name))))
|
||||
(save-buffer))
|
||||
(let ((compiled-file-name (byte-compile-dest-file buffer-file-name)))
|
||||
(if (file-newer-than-file-p compiled-file-name buffer-file-name)
|
||||
(load-file compiled-file-name)
|
||||
(byte-compile-file buffer-file-name t))))
|
||||
(byte-recompile-file buffer-file-name nil 0 t))
|
||||
|
||||
(defcustom emacs-lisp-mode-hook nil
|
||||
"Hook run when entering Emacs Lisp mode."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue