[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get a file name with a warning like this
From: |
Stefan Monnier |
Subject: |
Re: How to get a file name with a warning like this |
Date: |
Sat, 29 Aug 2020 01:12:37 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> Warning (bytecomp): Use ‘with-current-buffer’ ....
> rather than save-excursion+set-buffer
Usually, this comes from the byte-compiler when it's called directly via
`byte-compile` with an Elisp expression as argument, rather than by
compiling a file, so the compiler has no idea which file it comes from.
You might try `M-x trace-function RET byte-compile RET` but you have to
do that before the warning is emitted.
Stefan