1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-31 04:41:23 -08:00
emacs/test/src
Stefan Monnier d84dbcb450 (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.
2025-02-23 11:46:37 -05:00
..
comp-resources Update copyright year to 2025 2025-01-01 07:39:17 +00:00
emacs-module-resources Update copyright year to 2025 2025-01-01 07:39:17 +00:00
lread-resources Make force-load-doc-strings work again 2022-08-07 10:25:03 +02:00
regex-resources * src/regex-emacs.c (analyze_first): Fix incorrect optimization 2023-09-27 13:29:50 -04:00
syntax-resources Enhance syntax-tests.el to test nestable comments (Lisp style) 2020-11-17 16:51:49 +00:00
alloc-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
buffer-tests.el Prefer ert-with-temp-directory in tests 2025-02-23 03:46:57 +01:00
callint-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
callproc-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
casefiddle-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
character-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
charset-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
chartab-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
cmds-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
coding-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
comp-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
data-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
decompress-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
doc-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
editfns-tests.el (Ftranspose_regions): Fix text-properties for len1==len2 2025-02-23 11:46:37 -05:00
emacs-module-tests.el Prefer plusp/minusp to cl-plusp/cl-minusp 2025-02-17 22:46:56 +01:00
emacs-tests.el Port allows-stdout test to overly-suspicious bwrap 2025-01-22 11:04:57 -08:00
eval-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
fileio-tests.el Prefer ert-with-temp-directory in tests 2025-02-23 03:46:57 +01:00
filelock-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
floatfns-tests.el Prefer oddp/evenp to free-coding them in tests 2025-02-17 05:37:10 +01:00
fns-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
font-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
image-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
indent-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
inotify-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
json-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
keyboard-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
keymap-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
lcms-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
lread-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
marker-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
minibuf-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
print-tests.el Fix print-tests 2025-02-23 01:34:46 +01:00
process-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
regex-emacs-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
search-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
sqlite-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
syntax-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
textprop-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
thread-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
timefns-tests.el Use eabs in Fcurrent_time_zone 2025-01-13 01:05:42 +01:00
treesit-tests.el Rename treesit-add-simple-indent-rules 2025-02-17 13:38:15 -08:00
undo-tests.el Prefer oddp/evenp to free-coding them in tests 2025-02-17 05:37:10 +01:00
xdisp-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
xfaces-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
xml-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00