unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Wolfgang Jenkner <wjenkner@inode.at>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 9514@debbugs.gnu.org, eggert@cs.ucla.edu
Subject: bug#9514: 24.0.50; eval + format weirdness
Date: Thu, 15 Sep 2011 19:24:57 +0200	[thread overview]
Message-ID: <8562ktk9au.fsf@iznogoud.viz> (raw)
In-Reply-To: <m2boulhj7x.fsf@igel.home> (Andreas Schwab's message of "Thu, 15 Sep 2011 18:18:58 +0200")

Andreas Schwab <schwab@linux-m68k.org> writes:

> Except that this has nothing to do with eval.

Nor with most anything else in my example...

So a better bug report would have been

Subject: format barfs on certain strings

For example,

(format "%%é")

evaluates to garbage.

However, the paradoxical thing was rather

(let* ((string1 "%%b")
       (string2 (with-temp-buffer (insert string1) (buffer-string))))
  (list (string-equal string1 string2)
	(format string1)
	(format string2)))

=> (t "%b" "%bb")

as it wouldn't have easily occurred to me that string1 and string2 can
have different representations on the C level, which format treats
differently (though this shouldn't show ;-)

Wolfgang






  reply	other threads:[~2011-09-15 17:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-15 14:11 bug#9514: 24.0.50; eval + format weirdness Wolfgang Jenkner
2011-09-15 16:14 ` Paul Eggert
2011-09-15 16:18   ` Andreas Schwab
2011-09-15 17:24     ` Wolfgang Jenkner [this message]
2011-09-15 18:15       ` Paul Eggert
2011-09-16  8:06         ` Andreas Schwab
2011-09-16  7:53       ` Andreas Schwab

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=8562ktk9au.fsf@iznogoud.viz \
    --to=wjenkner@inode.at \
    --cc=9514@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=schwab@linux-m68k.org \
    /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).