unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24407: 24.5; doc of `format'
@ 2016-09-10 22:20 Drew Adams
  2016-09-16  9:58 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2016-09-10 22:20 UTC (permalink / raw)
  To: 24407

The Elisp manual doc for `format' (node Formatting Strings) looks OK.
But the doc string has this bug:

  where flags is [+ #-0]+, width is [0-9]+, and precision is .[0-9]+

                                  must be a literal `.' here ^

The precision part should be this (or equivalent): "[.][0-9]+", not
".[0-9]+".


In GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/usr --host=i686-pc-mingw32'





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

* bug#24407: 24.5; doc of `format'
  2016-09-10 22:20 bug#24407: 24.5; doc of `format' Drew Adams
@ 2016-09-16  9:58 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2016-09-16  9:58 UTC (permalink / raw)
  To: Drew Adams; +Cc: 24407-done

> Date: Sat, 10 Sep 2016 15:20:25 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> 
> The Elisp manual doc for `format' (node Formatting Strings) looks OK.
> But the doc string has this bug:
> 
>   where flags is [+ #-0]+, width is [0-9]+, and precision is .[0-9]+
> 
>                                   must be a literal `.' here ^

Yes, using a period in a regexp-like expression is confusing, when we
mean a literal period.

> The precision part should be this (or equivalent): "[.][0-9]+", not
> ".[0-9]+".

But this is not the best solution.  I opted for telling that precision
is a literal period followed by [0-9]+ instead.

Thanks, fixed on master.





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

end of thread, other threads:[~2016-09-16  9:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-10 22:20 bug#24407: 24.5; doc of `format' Drew Adams
2016-09-16  9:58 ` Eli Zaretskii

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