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

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

Re: Source file '.../killer-source.el' newer than byte-compiled file


From: Emanuel Berg
Subject: Re: Source file '.../killer-source.el' newer than byte-compiled file
Date: Wed, 24 Apr 2019 03:33:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

> However, I think I can modify the Makefile so
> that, whenever there is this warning, output
> the name of the file that is being compiled!
>
> The simplest solution, right?

In the Makefile [1]

%.elc: %.el
        $(byte-compile) $< $(sed-filter) > $(error-file)
        if [ -s $(error-file) ]; then echo -n "\n$<: "; cat $(error-file); fi
        rm -f $<~

Test run:

$ touch a-require-b.el b-provide-b.el
  c-has-an-error.el d-has-no-error.el
$ emake

a-require-b.el: Source file
‘/home/incal/.emacs.d/emacs-init/b-provide-b.el’
newer than byte-compiled file

c-has-an-error.el: 
In toplevel form:
c-has-an-error.el:1:1:Warning: value returned from (/ 1 0) is unused

SKILLS!


[1] http://user.it.uu.se/~embe8573/emacs-init/Makefile

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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