From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: elint warnings Date: Fri, 02 Aug 2013 11:37:58 +0200 Organization: Sebastien Vauban Message-ID: <86a9l0whzd.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375436416 14066 80.91.229.3 (2 Aug 2013 09:40:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Aug 2013 09:40:16 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri Aug 02 11:40:20 2013 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 1V5BqL-0000Re-Tu for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Aug 2013 11:40:18 +0200 Original-Received: from localhost ([::1]:41587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5BqL-0004Zm-JA for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Aug 2013 05:40:17 -0400 X-Received: by 10.180.73.49 with SMTP id i17mr630613wiv.7.1375436295228; Fri, 02 Aug 2013 02:38:15 -0700 (PDT) Original-Path: usenet.stanford.edu!el7no286846wib.1!news-out.google.com!cc8ni6947wib.1!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Injection-Info: mx05.eternal-september.org; posting-host="402b34550bd938aa98825778083dce0e"; logging-data="25441"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX19Aet/DCSFOIX+3rcNHPC1C" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (windows-nt) X-Url: Under construction... X-Archive: encrypt Cancel-Lock: sha1:KJMuCgXUUj5wwBwBoyPyHU2M3nI= sha1:UqSuMwfwyWy2Rf/i5Ai/3j3qb8w= Original-Xref: usenet.stanford.edu gnu.emacs.help:200394 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:92661 Archived-At: Hello, When elint'ing simple .emacs files such as: --8<---------------cut here---------------start------------->8--- (when (require 'package) ;; archives from which to fetch (setq package-archives (append '(("org" . "http://orgmode.org/elpa/") ("melpa" . "http://melpa.milkbox.net/packages/") ("marmalade" . "http://marmalade-repo.org/packages/") ("ELPA" . "http://tromey.com/elpa/")) package-archives)) ;; ... ) ;; ensure a file ends in a newline when it is saved (setq require-final-newline t) --8<---------------cut here---------------end--------------->8--- I get hundreds of warnings (in the real case, with many more lines in my .emacs file), such as: --8<---------------cut here---------------start------------->8--- Linting d:/Users/fni/src/emacs-leuven/elint.el In top level expression: elint.el:1:Warning: Setting previously unbound symbol: package-archives elint.el:1:Warning: Reference to unbound symbol: package-archives In top level expression: elint.el:16:Warning: Setting previously unbound symbol: require-final-newline Linting finished. --8<---------------cut here---------------end--------------->8--- I don't understand them: why is `package-archives' said to be unknown, while it will only execute after the lib `package' has been loaded? So, elint does not load the packages? Then, what's the purpose of elint? Why real warnings should I be aware of (and how)? Best regards, Seb -- Sebastien Vauban