From: Andreas Schwab Date: Fri, 16 Feb 2007 13:18:29 +0000 (+0000) Subject: (Fformat): Add support for '+' flag. X-Git-Tag: emacs-pretest-22.0.94~130 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cb06e57015e38dbaff0904762a8cd728a6cd1275;p=emacs.git (Fformat): Add support for '+' flag. --- diff --git a/src/editfns.c b/src/editfns.c index 6ef2efe313e..5053119d0c4 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3396,7 +3396,7 @@ Use %% to put a single % into the output. The basic structure of a %-sequence is % character -where flags is [- #0]+, width is [0-9]+, and precision is .[0-9]+ +where flags is [-+ #0]+, width is [0-9]+, and precision is .[0-9]+ usage: (format STRING &rest OBJECTS) */) (nargs, args) @@ -3509,7 +3509,7 @@ usage: (format STRING &rest OBJECTS) */) where - flags ::= [- #0]+ + flags ::= [-+ #0]+ field-width ::= [0-9]+ precision ::= '.' [0-9]* @@ -3523,7 +3523,7 @@ usage: (format STRING &rest OBJECTS) */) while (format != end && (*format == '-' || *format == '0' || *format == '#' - || * format == ' ')) + || * format == ' ' || *format == '+')) ++format; if (*format >= '0' && *format <= '9') @@ -3700,7 +3700,7 @@ usage: (format STRING &rest OBJECTS) */) discarded[format - format_start] = 1; format++; - while (index("-0# ", *format)) + while (index("-+0# ", *format)) { if (*format == '-') {