[Top][All Lists]

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

Re: Fixing numerous `message' bugs..

From: David Kastrup
Subject: Re: Fixing numerous `message' bugs..
Date: Sat, 08 Dec 2007 11:55:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> 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?
> Kind of, but it's not very satifactory.  In contrast, if we change
> (message FOO) to behave like (if FOO (message "%s" FOO) (message nil)),
> then naive coders will simply not bump into any surprise, even if they
> don't look at byte-compiler warnings.  Also it will save people from
> quoting the % char in those cases.
> The only downside is the need to change existing code.

Yes.  There is indeed code using "%%" in a single argument.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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