emacs-devel
[Top][All Lists]
Advanced

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

Re: Percent sign in message


From: David Kastrup
Subject: Re: Percent sign in message
Date: Mon, 11 Sep 2006 23:03:55 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>     Of course, we could also add a compiler warning whenever we see
>>     (message <exp>) and <exp> is not a constant string.
>
>> I think that would give too many false warnings, because it is not
>> unusual to obtain the format string from some non-constant source.
>
> Could be.  But the warning can be turned off by using (message "%s" <exp>).

That would need to be
(message "%s" (format <exp>))

It is not unusual to obtain a _format_ string from some non-constant
source.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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