aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorStefan Monnier2025-02-23 00:29:49 -0500
committerStefan Monnier2025-02-23 11:46:37 -0500
commitd84dbcb4504f6c53968a9f245b31676c90921b38 (patch)
tree4147d9d4290191202c0181374d65069b4d6804a7 /java
parent7972a3448d53c515b074e6681fe3a369ada642d6 (diff)
downloademacs-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')
0 files changed, 0 insertions, 0 deletions