Gnus development mailing list
 help / color / mirror / Atom feed
* How to make a warning message reveal the file it involves
@ 2020-08-23 13:14 Harry Putnam
  2020-08-23 17:02 ` Jude DaShiell
  0 siblings, 1 reply; 2+ messages in thread
From: Harry Putnam @ 2020-08-23 13:14 UTC (permalink / raw)
  To: ding

I've been getting this warning message:

Warning (bytecomp): Use ‘with-current-buffer’ ....
             rather than save-excursion+set-buffer

... (for some months now) ...

emacs version:
,----
| GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
|    version 1.14.8, Xaw3d scroll bars) of 2020-05-31
`----

I've searched obvious files like ~/.emacs ~/.gnus ...site-start.el
with no result.

How can I make the warning message tell me which file it is finding
the problem code in?






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to make a warning message reveal the file it involves
  2020-08-23 13:14 How to make a warning message reveal the file it involves Harry Putnam
@ 2020-08-23 17:02 ` Jude DaShiell
  0 siblings, 0 replies; 2+ messages in thread
From: Jude DaShiell @ 2020-08-23 17:02 UTC (permalink / raw)
  To: Harry Putnam, ding

Even better would be the problem line in that file along with the file
name.  Emacs has a --debug option for this, but I haven't been able to
figure out how to use it.  Maybe improve the emacs tutorial by showing a
file with one or more deliberate errors in it then have emacs --debug
run and show what to do to find the error(s) and how to fix them.  That
would likely beneficially effect most users especially new users.

On Sun, 23 Aug 2020, Harry Putnam wrote:

> Date: Sun, 23 Aug 2020 09:14:19
> From: Harry Putnam <reader@newsguy.com>
> To: ding@gnus.org
> Subject: How to make a warning message reveal the file it involves
>
> I've been getting this warning message:
>
> Warning (bytecomp): Use ?with-current-buffer? ....
>              rather than save-excursion+set-buffer
>
> ... (for some months now) ...
>
> emacs version:
> ,----
> | GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
> |    version 1.14.8, Xaw3d scroll bars) of 2020-05-31
> `----
>
> I've searched obvious files like ~/.emacs ~/.gnus ...site-start.el
> with no result.
>
> How can I make the warning message tell me which file it is finding
> the problem code in?
>
>
>
>
>
>

-- 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-23 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-23 13:14 How to make a warning message reveal the file it involves Harry Putnam
2020-08-23 17:02 ` Jude DaShiell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).