diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-01-13 15:45:14 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-01-13 15:46:44 -0800 |
commit | 1a722e888454a0cb24dffc35455467688b4b4c60 (patch) | |
tree | 715e89cb287001ec3857aacbe988bf5ec0d9f6fd /lisp/emacs-lisp | |
parent | 800d3815e4a82f83b98cf87b205dcfdb0670907f (diff) | |
download | emacs-1a722e888454a0cb24dffc35455467688b4b4c60.tar.gz emacs-1a722e888454a0cb24dffc35455467688b4b4c60.tar.bz2 emacs-1a722e888454a0cb24dffc35455467688b4b4c60.zip |
Fix translation-region bug with MAX_CHAR
Also, clean up the code a bit.
Actually I discovered the bug while cleaning up the code.
* src/editfns.c (Fsubst_char_in_region)
(Ftranslate_region_internal): Use bool for booleans.
(Ftranslate_region_internal): Fix off-by-1 bug when a
translation table translates the maximum char. Assume C99
decl-after-statement, similar minor cleanups.
* test/src/editfns-tests.el (test-translate-region-internal):
New test.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions