emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unused local variables


From: Katsumi Yamaoka
Subject: Re: unused local variables
Date: Tue, 04 Dec 2007 20:12:57 +0900
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

>>>>> Kazu Yamamoto wrote:

> The XEmacs byte compiler tells unused local variables.

FYI: last week XEmacs in the CVS trunk (i.e. XEmacs 21.5-b28)
came to byte compile the default value section of defcustom
forms and report on undefined vars and functions found there.
For instance:

(defcustom foo (if (and (fboundp 'string-as-multibyte)
                        default-enable-multibyte-characters)
                   (string-as-multibyte "foo")
                 "foo")
  "doc string")

While compiling toplevel forms:
  ** reference to free variable default-enable-multibyte-characters
While compiling the end of the data:
  ** the function string-as-multibyte is not known to be defined.

(Emacs and XEmacs 21.4 don't do that.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]