]> code.delx.au - gnu-emacs/commitdiff
Avoid byte-compiler warnings due to 'declare-function'
authorEli Zaretskii <eliz@gnu.org>
Thu, 26 May 2016 19:48:35 +0000 (22:48 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 26 May 2016 19:48:35 +0000 (22:48 +0300)
* lisp/w32-fns.el (set-message-beep, w32-get-locale-info)
(w32-get-valid-locale-ids):
* lisp/progmodes/js.el (ido-mode): Specify arglist in
'declare-function' forms, to avoid byte-compiler warnings.

lisp/progmodes/js.el
lisp/w32-fns.el

index a35c4a31d064b376c0620ed35f124863630951bc..40f60c9277a228518cd77ef9b325317eeec4779e 100644 (file)
@@ -62,7 +62,7 @@
 (defvar moz-repl-name)
 (defvar ido-cur-list)
 (defvar electric-layout-rules)
-(declare-function ido-mode "ido")
+(declare-function ido-mode "ido" (arg))
 (declare-function inferior-moz-process "ext:mozrepl" ())
 
 ;;; Constants
index 4815f4b8c217f8b0761acb7f6695105700d07e63..91c0253042786e328a60a2ff7fbe91df6aa0f738 100644 (file)
@@ -31,9 +31,9 @@
 
 ;;;; Function keys
 
-(declare-function set-message-beep "w32fns.c")
-(declare-function w32-get-locale-info "w32proc.c")
-(declare-function w32-get-valid-locale-ids "w32proc.c")
+(declare-function set-message-beep "w32fns.c" (sound))
+(declare-function w32-get-locale-info "w32proc.c" (lcid &optional longform))
+(declare-function w32-get-valid-locale-ids "w32proc.c" ())
 
 ;; Map all versions of a filename (8.3, longname, mixed case) to the
 ;; same buffer.