diff options
| author | Stefan Monnier | 2025-02-23 00:29:49 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2025-02-23 11:46:37 -0500 |
| commit | d84dbcb4504f6c53968a9f245b31676c90921b38 (patch) | |
| tree | 4147d9d4290191202c0181374d65069b4d6804a7 /java/debug.sh | |
| parent | 7972a3448d53c515b074e6681fe3a369ada642d6 (diff) | |
| download | emacs-d84dbcb4504f6c53968a9f245b31676c90921b38.tar.gz emacs-d84dbcb4504f6c53968a9f245b31676c90921b38.zip | |
(Ftranspose_regions): Fix text-properties for len1==len2
When `len1_byte == len2_byte`, the code presumed that len1==len2
as well in its handling of text-properties. Fix that case.
While at it, try and reduce code duplication by hoisting common
code out of `if`s, and throw away the optimization for `len_mid == 0`
which only saved 3 trivial function calls.
* src/editfns.c (Ftranspose_regions): Shuffle the code a bit.
* test/src/editfns-tests.el (editfns-tests--transpose-equal-but-not):
New test.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions