[Top][All Lists]

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

Re: Fixing numerous `message' bugs..

From: Glenn Morris
Subject: Re: Fixing numerous `message' bugs..
Date: Fri, 07 Dec 2007 19:56:16 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Stefan Monnier wrote:

> The problem is that all those bugs are here because the corresponding
> authors just didn't think, so they are unlikely to use this new
> arg either.

Is there any way to improve byte-compile-format-warn in this regard?

It's easy to make it warn if the first arg to format is not a fixed
string or nil, but that leaves false positives for things like:

  (setq fmt "%s")
  (message fmt some-variable)

Can the byte-compiler figure out what is a known constant at compile
time? One would only want it to warn where the first argument is not
fully known at compile-time.

Because everyone pays attention to compiler warnings, right? ;)

reply via email to

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