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

[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: Emanuel Berg
Subject: Re: How to get a file name with a warning like this
Date: Sat, 29 Aug 2020 04:12:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

>> Warning (bytecomp): Use ‘with-current-buffer’ ....
>> rather than save-excursion+set-buffer [...]
>> How can I make the warning message tell me which
>> file[s] it is finding the problem code in?
>
> Seem like a tough problem ... but ...
>
> wait!
>
> I just got a moment of inspiration!
>
> What about using `with-current-buffer' rather than
> `save-excursion' and `set-buffer'
>
> ???

Heh, sorry, but to answer you question ... the byte
compiler should tell you already what file is the
origin of the warning. B/c you yanked the error
message here, this makes it even weirder, b/c that
means you killed the part that tells in what file
it happened.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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