SiteMap Search ElispArea HowTo Glossary RecentChanges News Problems Suggestions

Comments on EmacsLispMode

Instead of

;; Recompile if .elc exists.
                (add-hook (make-local-variable 'after-save-hook)
                          (lambda ()
                            (byte-force-recompile default-directory)))

why not only do what’s necessary?

;; Recompile if .elc exists.
                (add-hook (make-local-variable 'after-save-hook)
                          (lambda ()
                            (byte-compile-file buffer-file-name)))

NetMage 2013-05-10 23:58 UTC


As the page says, “recompile on save if the ByteCompilation file does exist” [emphasis added]. That’s the difference.

AaronHawley 2013-05-13 13:22 UTC

Please make sure you contribute only your own work. IP numbers are made available via the page history. If you want to keep it a secret, you need to use Tor. See TextFormattingRules for how to format text. See StyleGuide for the suggested writing style on this wiki.

Please answer this captcha: