GNU bug report logs - #24407
24.5; doc of `format'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sat, 10 Sep 2016 22:21:01 UTC

Severity: minor

Found in version 24.5

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 24407-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 24407-done <at> debbugs.gnu.org
Subject: Re: bug#24407: 24.5; doc of `format'
Date: Fri, 16 Sep 2016 12:58:18 +0300
> Date: Sat, 10 Sep 2016 15:20:25 -0700 (PDT)
> From: Drew Adams <drew.adams <at> 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.




This bug report was last modified 8 years and 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.