1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 11:50:51 -08:00
emacs/test/src
Michal Nazarewicz 6220faeb4e casing: don’t assume letters are *either* upper- or lower-case (bug#24603)
A compatibility digraph characters, such as Dž, are neither upper- nor
lower-case.  At the moment however, those are reported as upper-case¹
despite the fact that they change when upper-cased.

Stop checking if a character is upper-case before trying to up-case it
so that title-case characters are handled correctly.  This fixes one of
the issues mentioned in bug#24603.

¹ Because they change when converted to lower-case.  Notice an asymmetry
  in that for a character to be considered lower-case it must not be
  upper-case (plus the usual condition of changing when upper-cased).

* src/buffer.h (upcase1): Delete.
(upcase): Change to upcase character unconditionally just like downcase
does it.  This is what upcase1 was.

* src/casefiddle.c (casify_object, casify_region): Use upcase instead
of upcase1 and don’t check !uppercasep(x) before calling upcase.

* src/keyboard.c (read_key_sequence): Don’t check if uppercase(x), just
downcase(x) and see if it changed.

* test/src/casefiddle-tests.el (casefiddle-tests--characters,
casefiddle-tests-casing): Update test cases which are now passing.
2017-02-15 16:54:07 +01:00
..
regex-resources
alloc-tests.el
buffer-tests.el
callproc-tests.el
casefiddle-tests.el casing: don’t assume letters are *either* upper- or lower-case (bug#24603) 2017-02-15 16:54:07 +01:00
chartab-tests.el
cmds-tests.el
coding-tests.el
data-tests.el
decompress-tests.el
doc-tests.el
editfns-tests.el
eval-tests.el Check that variable lists are actually lists 2017-01-19 17:17:50 +01:00
fns-tests.el Fix typos in tests for lax-plist-get etc. 2017-02-12 12:55:29 -08:00
font-tests.el
inotify-tests.el
keymap-tests.el
lread-tests.el
marker-tests.el
minibuf-tests.el
print-tests.el
process-tests.el
regex-tests.el Add support for Unicode whitespace in [:blank:] 2017-01-06 20:12:48 +01:00
syntax-tests.el Fix comment detection on open parens 2017-01-23 19:28:30 -05:00
textprop-tests.el
thread-tests.el Rudimentary error handling for non-main threads 2017-01-18 18:00:16 +02:00
undo-tests.el
xml-tests.el