From: Noam Postavsky <npostavs@gmail.com> Date: Tue, 24 Oct 2017 23:19:37 +0000 (-0400) Subject: Fix compile warning for non-w32 builds X-Git-Tag: emacs-26.0.91~476 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8a06a5f9a98094d340dda1c9c8b195f3e66e2c8;p=emacs.git Fix compile warning for non-w32 builds Since 2017-07-25 "ls-lisp: Add an unload function and enable lexical binding", the non-w32 builds would treat the undeclared w32-collate-ignore-punctuation variable as lexical. * lisp/ls-lisp.el (top-level): Declare it as a dynamic variable. --- diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 66dddbbc17b..caddc7f760b 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el @@ -567,6 +567,8 @@ Responds to the window width as ls should but may not!" (setq list (cdr list))) result)) +(defvar w32-collate-ignore-punctuation) ; Declare for non-w32 builds. + (defsubst ls-lisp-string-lessp (s1 s2) "Return t if string S1 should sort before string S2. Case is significant if `ls-lisp-ignore-case' is nil.