esh-opt trivia.
authorGlenn Morris <rgm@gnu.org>
Wed, 23 Mar 2011 02:52:52 +0000 (19:52 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 23 Mar 2011 02:52:52 +0000 (19:52 -0700)
* lisp/eshell/esh-opt.el (eshell-eval-using-options):
Do not bind unused local variable `eshell-option-stub'.

lisp/ChangeLog
lisp/eshell/esh-opt.el

index adfbc6c..6038884 100644 (file)
@@ -1,5 +1,8 @@
 2011-03-23  Glenn Morris  <rgm@gnu.org>
 
+       * eshell/esh-opt.el (eshell-eval-using-options):
+       Do not bind unused local variable `eshell-option-stub'.
+
        * progmodes/gdb-mi.el (gdb): Fix typo in previous change.
 
 2011-03-22  Juanma Barranquero  <lekktu@gmail.com>
index a9e8f11..91d3cac 100644 (file)
@@ -102,10 +102,9 @@ interned variable `args' (created using a `let' form)."
               macro-args
             (list 'eshell-stringify-list
                   (list 'eshell-flatten-list macro-args)))))
-     (let ,(append (mapcar (lambda (opt)
-                            (or (and (listp opt) (nth 3 opt))
-                                'eshell-option-stub))
-                          (cadr options))
+     (let ,(append (delq nil (mapcar (lambda (opt)
+                                      (and (listp opt) (nth 3 opt)))
+                                    (cadr options)))
                   '(usage-msg last-value ext-command args))
        (eshell-do-opt ,name ,options (quote ,body-forms)))))