emacs-pretest-bug
[Top][All Lists]
Advanced

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

Formatting `interactive' strings.


From: Johan Bockgård
Subject: Formatting `interactive' strings.
Date: Tue, 17 Oct 2006 15:48:55 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

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




reply via email to

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