all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: elint warnings
Date: Fri, 02 Aug 2013 11:37:58 +0200	[thread overview]
Message-ID: <86a9l0whzd.fsf@somewhere.org> (raw)

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


             reply	other threads:[~2013-08-02  9:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02  9:37 Sebastien Vauban [this message]
2013-08-02 14:42 ` elint warnings Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86a9l0whzd.fsf@somewhere.org \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=help-gnu-emacs-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.