summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-09-17 19:45:31 -0700
committerGlenn Morris <rgm@gnu.org>2013-09-17 19:45:31 -0700
commit91c837fe7281b7588a8bfbd4c265a6d8cef69fb9 (patch)
tree3dbde12a66c040f71dcc994f69714d35e7a93af9
parent49a053fc5b27c7d1a32c42301fc66657dfc396ae (diff)
downloademacs-91c837fe7281b7588a8bfbd4c265a6d8cef69fb9.tar.gz
emacs-91c837fe7281b7588a8bfbd4c265a6d8cef69fb9.tar.bz2
emacs-91c837fe7281b7588a8bfbd4c265a6d8cef69fb9.zip
* eshell/esh-util.el (eshell-sublist): Remove unused local variable.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/eshell/esh-util.el3
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 439b1db7d5f..5b911a503b8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -5,6 +5,7 @@
* eshell/em-cmpl.el (eshell-complete-parse-arguments):
* eshell/em-hist.el (eshell/history, eshell-isearch-backward):
* eshell/em-pred.el (eshell-parse-modifiers, eshell-pred-file-time):
+ * eshell/esh-util.el (eshell-sublist):
Remove unused local variables.
* eshell/esh-io.el (x-select-enable-clipboard): Declare.
diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el
index 5e0aad8345f..6195f3976c1 100644
--- a/lisp/eshell/esh-util.el
+++ b/lisp/eshell/esh-util.el
@@ -217,8 +217,7 @@ then quoting is done by a backslash, rather than a doubled delimiter."
(defun eshell-sublist (l &optional n m)
"Return from LIST the N to M elements.
If N or M is nil, it means the end of the list."
- (let* ((a (copy-sequence l))
- result)
+ (let ((a (copy-sequence l)))
(if (and m (consp (nthcdr m a)))
(setcdr (nthcdr m a) nil))
(if n