aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-06-23 04:53:48 +0000
committerGerd Moellmann2000-06-23 04:53:48 +0000
commit047c1280be6adaaaa40528cf4070e5a76373ce3a (patch)
tree111f317aa897fdd941d700228af6a0f95fca2ab1
parent26b4dc849fc474ff9f1c6cc0a9f33f3c2cf086ba (diff)
downloademacs-047c1280be6adaaaa40528cf4070e5a76373ce3a.tar.gz
emacs-047c1280be6adaaaa40528cf4070e5a76373ce3a.zip
(eshell-sublist): Use eshell-copy-list
instead of copy-list.
-rw-r--r--lisp/eshell/esh-util.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el
index eb69e5e0f98..cf789930ae0 100644
--- a/lisp/eshell/esh-util.el
+++ b/lisp/eshell/esh-util.el
@@ -206,7 +206,7 @@ then quoting is done by a backslash, rather than a doubled delimiter."
206(defun eshell-sublist (l &optional n m) 206(defun eshell-sublist (l &optional n m)
207 "Return from LIST the N to M elements. 207 "Return from LIST the N to M elements.
208If N or M is nil, it means the end of the list." 208If N or M is nil, it means the end of the list."
209 (let* ((a (copy-list l)) 209 (let* ((a (eshell-copy-list l))
210 result) 210 result)
211 (if (and m (consp (nthcdr m a))) 211 (if (and m (consp (nthcdr m a)))
212 (setcdr (nthcdr m a) nil)) 212 (setcdr (nthcdr m a) nil))