unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9514: 24.0.50; eval + format weirdness
@ 2011-09-15 14:11 Wolfgang Jenkner
  2011-09-15 16:14 ` Paul Eggert
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Jenkner @ 2011-09-15 14:11 UTC (permalink / raw)
  To: 9514; +Cc: eggert

The form

(let* ((string (with-temp-buffer (insert "%%b") (buffer-string)))
       (form `(format ,string)))
  (list form
	(eval form)))

evaluates to

((format "%%b") "%bb")

but it should evaluate to

((format "%%b") "%b")

Note that bzr trunk rev. 104389 gives the correct result whereas
rev. 104390 gives the wrong result.

In GNU Emacs 24.0.50.1 (amd64-unknown-freebsd8.2, GTK+ Version 2.24.6)
 of 2011-09-13 on iznogoud.viz
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  'CC=gcc46' '--without-gsettings''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-09-16  8:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-09-15 18:15       ` Paul Eggert
2011-09-16  8:06         ` Andreas Schwab
2011-09-16  7:53       ` Andreas Schwab

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