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:
parent
676ee88eea
commit
8da4072344
1 changed files with 1 additions and 0 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue