unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: whitfield.diffie@sun.com, storm@cua.dk,
	michael.cadilhac@lrde.org, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Percent sign in message
Date: Mon, 11 Sep 2006 18:05:22 -0400	[thread overview]
Message-ID: <jwvlkoq9i1u.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <85hczedsjo.fsf@lola.goethe.zz> (David Kastrup's message of "Mon\, 11 Sep 2006 23\:03\:55 +0200")

>>> 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	other threads:[~2006-09-11 22:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-11  6:15 Percent sign in message Whitfield Diffie
2006-09-11  6:38 ` Michaël Cadilhac
2006-09-11  6:57   ` Whitfield Diffie
2006-09-11  7:18     ` David Kastrup
2006-09-11  8:26       ` Kim F. Storm
2006-09-11 14:07         ` Stefan Monnier
2006-09-11 19:57           ` Richard Stallman
2006-09-11 21:00             ` Stefan Monnier
2006-09-11 21:03               ` David Kastrup
2006-09-11 22:05                 ` Stefan Monnier [this message]
2006-09-11 22:13                   ` David Kastrup
2006-09-12  3:20                     ` Stefan Monnier
2006-09-12 15:27               ` Richard Stallman
2006-09-12 15:37                 ` David Kastrup
2006-09-19 19:39                   ` Stuart D. Herring
2006-09-19 21:49                     ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvlkoq9i1u.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=michael.cadilhac@lrde.org \
    --cc=rms@gnu.org \
    --cc=storm@cua.dk \
    --cc=whitfield.diffie@sun.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).