From: npostavs@users.sourceforge.net
To: Ivan Vilata i Balaguer <ivan@selidor.net>
Cc: 12777@debbugs.gnu.org
Subject: bug#12777: 24.2; Please support '$' in format specifications
Date: Tue, 13 Jun 2017 20:45:53 -0400 [thread overview]
Message-ID: <87injztn0e.fsf@users.sourceforge.net> (raw)
In-Reply-To: <87a9v1ii04.fsf@rampella.terramar.selidor.net> (Ivan Vilata i. Balaguer's message of "Thu, 01 Nov 2012 14:12:59 +0100")
tags 12777 fixed
close 12777 26.1
quit
Ivan Vilata i Balaguer <ivan@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
prev parent reply other threads:[~2017-06-14 0:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-01 13:12 bug#12777: 24.2; Please support '$' in format specifications Ivan Vilata i Balaguer
2017-06-14 0:45 ` npostavs [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87injztn0e.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=12777@debbugs.gnu.org \
--cc=ivan@selidor.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.