emacs-devel
[Top][All Lists]
Advanced

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

Re: unused local variables


From: Dan Nicolaescu
Subject: Re: unused local variables
Date: Tue, 04 Dec 2007 07:28:48 -0800

Katsumi Yamaoka <address@hidden> writes:

  > >>>>> 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.)

I proposed the same thing here recently. Stefan implemented it, but it
was rejected. You should be able to find the patch in the archives...




reply via email to

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