summaryrefslogtreecommitdiff
path: root/lisp/eshell
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-09-17 21:48:00 -0400
committerGlenn Morris <rgm@gnu.org>2013-09-17 21:48:00 -0400
commit49a053fc5b27c7d1a32c42301fc66657dfc396ae (patch)
treecdea9c4b74ae44743f76c0ea43f906b9bed9b9c0 /lisp/eshell
parent35cc47373edddb3642a8486b3052f6530ab9a778 (diff)
downloademacs-49a053fc5b27c7d1a32c42301fc66657dfc396ae.tar.gz
emacs-49a053fc5b27c7d1a32c42301fc66657dfc396ae.tar.bz2
emacs-49a053fc5b27c7d1a32c42301fc66657dfc396ae.zip
Address some "unused lexical variable" warnings
* lisp/dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape): Declare. * lisp/eshell/esh-io.el (x-select-enable-clipboard): Declare. * lisp/erc/erc-button.el (erc-button-add-buttons): * lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): * lisp/eshell/em-hist.el (eshell/history, eshell-isearch-backward): * lisp/eshell/em-pred.el (eshell-parse-modifiers, eshell-pred-file-time): Remove unused local variables.
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/em-cmpl.el2
-rw-r--r--lisp/eshell/em-hist.el7
-rw-r--r--lisp/eshell/em-pred.el4
-rw-r--r--lisp/eshell/esh-io.el2
4 files changed, 8 insertions, 7 deletions
diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el
index a940eb5cd36..5cb5d931700 100644
--- a/lisp/eshell/em-cmpl.el
+++ b/lisp/eshell/em-cmpl.el
@@ -370,7 +370,7 @@ to writing a completion function."
(cl-assert (= (length args) (length posns)))
(let ((a args)
(i 0)
- l final)
+ l)
(while a
(if (and (consp (car a))
(eq (caar a) 'eshell-operator))
diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el
index 8e56de251a1..12ec8ce1f35 100644
--- a/lisp/eshell/em-hist.el
+++ b/lisp/eshell/em-hist.el
@@ -330,7 +330,7 @@ unless a different file is specified on the command line.")
(and (or (not (ring-p eshell-history-ring))
(ring-empty-p eshell-history-ring))
(error "No history"))
- (let (length command file)
+ (let (length file)
(when (and args (string-match "^[0-9]+$" (car args)))
(setq length (min (eshell-convert (car args))
(ring-length eshell-history-ring))
@@ -346,8 +346,7 @@ unless a different file is specified on the command line.")
(write-history (eshell-write-history file))
(append-history (eshell-write-history file t))
(t
- (let* ((history nil)
- (index (1- (or length (ring-length eshell-history-ring))))
+ (let* ((index (1- (or length (ring-length eshell-history-ring))))
(ref (- (ring-length eshell-history-ring) index)))
;; We have to build up a list ourselves from the ring vector.
(while (>= index 0)
@@ -945,7 +944,7 @@ If N is negative, search backwards for the -Nth previous match."
(defun eshell-isearch-backward (&optional invert)
"Do incremental regexp search backward through past commands."
(interactive)
- (let ((inhibit-read-only t) end)
+ (let ((inhibit-read-only t))
(eshell-prepare-for-search)
(goto-char (point-max))
(set-marker eshell-last-output-end (point))
diff --git a/lisp/eshell/em-pred.el b/lisp/eshell/em-pred.el
index f7d7605107f..a3aebc23faa 100644
--- a/lisp/eshell/em-pred.el
+++ b/lisp/eshell/em-pred.el
@@ -306,7 +306,7 @@ predicate functions. MOD-FUNC-LIST is a list of result modifier
functions. PRED-FUNCS take a filename and return t if the test
succeeds; MOD-FUNCS take any string and preform a modification,
returning the resultant string."
- (let (result negate follow preds mods)
+ (let (negate follow preds mods)
(condition-case nil
(while (not (eobp))
(let ((char (char-after)))
@@ -399,7 +399,7 @@ returning the resultant string."
(defun eshell-pred-file-time (mod-char mod-type attr-index)
"Return a predicate to test whether a file matches a certain time."
(let* ((quantum 86400)
- qual amount when open close end)
+ qual when open close end)
(when (memq (char-after) '(?M ?w ?h ?m ?s))
(setq quantum (char-after))
(cond
diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el
index c4c0bd43790..90b1f8ec972 100644
--- a/lisp/eshell/esh-io.el
+++ b/lisp/eshell/esh-io.el
@@ -118,6 +118,8 @@ from executing while Emacs is redisplaying."
:type 'integer
:group 'eshell-io)
+(defvar x-select-enable-clipboard) ; term/common-win
+
(defcustom eshell-virtual-targets
'(("/dev/eshell" eshell-interactive-print nil)
("/dev/kill" (lambda (mode)