1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

* lisp/emacs-lisp/range.el (range-add-list): Don't mutate argument.

It's clear from the doc strings that this function isn't meant
to mutate its arguments.
This commit is contained in:
Mattias Engdegård 2025-10-30 10:58:50 +01:00
parent 676ee88eea
commit 8da4072344

View file

@ -198,6 +198,7 @@ these ranges."
Note: LIST has to be sorted over `<'."
(if (not ranges)
(range-compress-list list)
(setq ranges (copy-tree ranges))
(setq list (copy-sequence list))
(unless (listp (cdr ranges))
(setq ranges (list ranges)))