all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* elint and the byte-compiler
@ 2015-06-26 15:48 Emanuel Berg
  2015-06-26 17:07 ` Ian Zimmerman
  0 siblings, 1 reply; 8+ messages in thread
From: Emanuel Berg @ 2015-06-26 15:48 UTC (permalink / raw)
  To: help-gnu-emacs

I just did `elint-directory' on my 3964 lines
of Elisp.

The only warning it found was of the type:

    In top level expression:
    mail.el:46:Warning: Setting previously unbound symbol: read-mail-command

which was found countless of times.

This sounds sort of the same as the familiar warning
from the byte-compiler:

    ~/.emacs:25:7:Warning: assignment to free variable `tramp-verbose'

which can be muted either with

    (require 'tramp)

or

    (defvar tramp-verbose)

Questions:

Is there a difference between an unbound symbol and
a free variable? No? If so, why does the byte-compiler
react to some, but not nearly as many as elint? Is it
because the byte-compiler considers to context whereas
elint only the individual file? Is there any sense
muting the elint warnings as well with the same
method(s)? And what method is prefered, to `require'
or do the `defvar' hack? As for me, I'm fine loading
things when I need them first time (and then have them
loaded) only then if I set the variable before that,
is there a danger what is loaded will in it's own init
process write over what I already set?

-- 
underground experts united
http://user.it.uu.se/~embe8573


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-27  1:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26 15:48 elint and the byte-compiler Emanuel Berg
2015-06-26 17:07 ` Ian Zimmerman
2015-06-26 22:27   ` Emanuel Berg
2015-06-26 23:15     ` Ian Zimmerman
2015-06-26 23:19       ` Emanuel Berg
2015-06-27  0:18         ` Ian Zimmerman
2015-06-27  1:40           ` Emanuel Berg
2015-06-27  1:45           ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.