emacs-devel
[Top][All Lists]
Advanced

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

Re: Percent sign in message


From: Stefan Monnier
Subject: Re: Percent sign in message
Date: Mon, 11 Sep 2006 18:05:22 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>> 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>))

Well, only if <exp> contains escaped % signs.  It's generally not the case.

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

But it then comes with some arguments as well, doesn't it?


        Stefan




reply via email to

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