aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
authorPaul Eggert2017-06-04 08:39:37 -0700
committerPaul Eggert2017-06-04 08:42:53 -0700
commitd5fcf9e458053af1c50f0d4dad4c59db056790e5 (patch)
treef6fe65eb1823c49d771d520c4e6d66b92525ac2d /src/coding.h
parent6ad42aecc243d378d38468fd3efd89bc1fbfb187 (diff)
downloademacs-d5fcf9e458053af1c50f0d4dad4c59db056790e5.tar.gz
emacs-d5fcf9e458053af1c50f0d4dad4c59db056790e5.zip
Tune ‘format’ after recent fix
* doc/lispref/strings.texi (Formatting Strings): * src/editfns.c (Fformat): Format field numbers no longer need to be unique, reverting the previous doc change since that has now been fixed. Also, document that %% should not have modifiers. * src/editfns.c (styled_format): Improve performance. Remove the need for the new prepass over the format string, by using a typically-more-generous bound for the info array size. Initialize the info array lazily. Move string inspection to the same area to help caching. Avoid the need for a converted_to_string bitfield by using EQ. Cache arg in a local and avoid some potential aliasing issues to help the compiler. Info array is now 0-origin, not 1-origin.
Diffstat (limited to 'src/coding.h')
0 files changed, 0 insertions, 0 deletions