]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/ido.el (ido-completion-help): Fix up compiler warning.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 9 Aug 2013 00:54:22 +0000 (20:54 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 9 Aug 2013 00:54:22 +0000 (20:54 -0400)
lisp/ChangeLog
lisp/ido.el

index 382c580433040be683d48432ed355c2543860c12..46e8f62f19b9ff84c339c278b2897203a7b08179 100644 (file)
@@ -1,3 +1,7 @@
+2013-08-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * ido.el (ido-completion-help): Fix up compiler warning.
+
 2013-08-09  Juanma Barranquero  <lekktu@gmail.com>
 
        * frameset.el (frameset-p): Add autoload cookie.
index 5d017069c5efc20130d0cccf96c59fe807455866..39ad3137bc942d53a126db15c8127bc616ab4509 100644 (file)
@@ -3972,12 +3972,11 @@ If `ido-change-word-sub' cannot be found in WORD, return nil."
            (if (featurep 'xemacs)
                ;; XEmacs extents are put on by default, doesn't seem to be
                ;; any way of switching them off.
-               ;; This obscure code avoids a byte compiler warning in Emacs.
-               (let ((f 'display-completion-list))
-                 (funcall f completion-list
-                          :help-string "ido "
-                          :activate-callback
-                          (lambda (x y z) (message "Doesn't work yet, sorry!"))))
+                (display-completion-list
+                 completion-list
+                 :help-string "ido "
+                 :activate-callback
+                 (lambda (&rest _) (message "Doesn't work yet, sorry!")))
              ;; else running Emacs
              ;;(add-hook 'completion-setup-hook 'completion-setup-function)
              (display-completion-list completion-list)))))))