GNU bug report logs -
#12777
24.2; Please support '$' in format specifications
Previous Next
Reported by: Ivan Vilata i Balaguer <ivan <at> selidor.net>
Date: Thu, 1 Nov 2012 13:16:02 UTC
Severity: wishlist
Tags: fixed
Found in version 24.2
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
Message #8 received at 12777 <at> debbugs.gnu.org (full text, mbox):
tags 12777 fixed
close 12777 26.1
quit
Ivan Vilata i Balaguer <ivan <at> selidor.net> writes:
> Hello! It'd be nice if the "format" function allowed "%m$"
> specifications (as long supported by glibc) so that arguments can be
> formatted in a different order than they were provided to the function.
>
> - It's very useful for translating format strings, e.g:
>
> (format "%d %s-%s" 2 "1KiB" "blocks") -> "2 1KiB-blocks"
> v some string translation...
> (format "%1$d %3$s de %2$d" 2 "1KiB" "bloques") -> "2 bloques de 1KiB"
This is now implemented in master.
http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00901.html
http://lists.gnu.org/archive/html/emacs-devel/2017-06/msg00000.html
[1: 0dd1bbb0bb]: 2017-06-02 00:22:13 +0200
Implement field numbers in format strings
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=0dd1bbb0bb228acab21b8e16f2f2a0b5a17b19ab
[2: 5324710841]: 2017-06-02 00:25:48 +0200
Minor improvements to format field numbers
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=53247108411a1e9d1aa5352c231fa049f3f918aa
[3: 8de2581a64]: 2017-06-01 16:06:38 -0700
Limit format fields to more POSIX-like spec
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=8de2581a64dac3785fc3877f7cd87c4164fd2936
[4: 0147cdd4d9]: 2017-06-03 01:31:52 -0700
Document uniqueness limitation of ‘format’
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=0147cdd4d96f1eaeef720ee0b89bddd27eaf4233
[5: 7d413cb4da]: 2017-06-03 11:19:02 +0200
Fix a bug when using format field numbers
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=7d413cb4da89e0bdd70068e6a5e1dbc57190ed10
[6: d5fcf9e458]: 2017-06-04 08:42:53 -0700
Tune ‘format’ after recent fix
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d5fcf9e458053af1c50f0d4dad4c59db056790e5
This bug report was last modified 7 years and 348 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.