From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: elint and the byte-compiler Date: Fri, 26 Jun 2015 17:48:29 +0200 Organization: Aioe.org NNTP Server Message-ID: <87y4j6lbci.fsf@nl106-137-147.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435333823 12958 80.91.229.3 (26 Jun 2015 15:50:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jun 2015 15:50:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 26 17:50:23 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z8VtW-0000zA-V8 for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jun 2015 17:50:23 +0200 Original-Received: from localhost ([::1]:60958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8VtW-0006uN-Ew for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jun 2015 11:50:22 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: XwNaU1PHGZjHP5Qeu7q7fg.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:gHy8E5j7RgVUQ6/vh2b0Jnh6CCM= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:212916 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105201 Archived-At: 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