emacs-devel
[Top][All Lists]
Advanced

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

address@hidden: Formatting `interactive' strings.]


From: Richard Stallman
Subject: address@hidden: Formatting `interactive' strings.]
Date: Wed, 18 Oct 2006 01:12:24 -0400

Can someone please fix this and ack?

------- Start of forwarded message -------
From: address@hidden (Johan =?utf-8?Q?Bockg=C3=A5rd?=)
To: address@hidden
Date: Tue, 17 Oct 2006 15:48:55 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Subject: Formatting `interactive' strings.
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
        version=3.0.4

The doc for `interactive' claims that "prompts are passed to format".
This isn't quite true (it uses doprnt), and there are some problems:

* Number formatting is broken:

    (interactive "n\ns%d")  <-- C-x C-e 0 RET

        Instead of "0", some garbage number is used as a prompt for
        the second arg.

    (interactive "n\ns%f")  <-- C-x C-e 0 RET

        => error "Not enough arguments for format string"

    etc.

* %X isn't recognized. (Ditto for %i, but it's undocumented anyway.)

* The `#' flag isn't recognized.

- -- 
Johan Bockgård


_______________________________________________
emacs-pretest-bug mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------




reply via email to

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