all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "Herbert Euler" <herberteuler@hotmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Error report on startup
Date: Thu, 1 Mar 2007 15:30:51 +0100	[thread overview]
Message-ID: <f7ccd24b0703010630v3c6ae02cwed2c2e40c9678a4@mail.gmail.com> (raw)
In-Reply-To: <BAY112-F347A167E75380CD6E9F369DA800@phx.gbl>

On 3/1/07, Herbert Euler <herberteuler@hotmail.com> wrote:

> Error report on startup could be confusing.  Consider the following in
> ~/.emacs:
>
>     (with-current-buffer (find-file-noselect "some-file.el")
>       (read (current-buffer)))
>
> If ``some-file'' does not contain valid Lisp expression, the user will
> see an error saying ``End of file during parsing:
> /home/somebody/.emacs''.  However, the ~/.emacs file is valid; what is
> not valid is the file some-file.el.

I don't see anything confusing. You're manually loading some-file.el
and reading its content in the context of loading .emacs, so certainly
it is ~/.emacs which is not valid (or, which is doing something
invalid). That the error comes from processing an elisp module is
irrelevant. It's not different to loading a non-lispy data file in
.emacs and then doing some kind of processing with it that causes an
error.

If instead you used `load' or `require' to load some-file.el you'd get:

  An error has occurred while loading `c:/home/.emacs':

  End of file during parsing: c:/emacs/site-lisp/some-file.el

  To ensure normal operation, you should investigate and remove the
  cause of the error in your initialization file.  Start Emacs with
  the `--debug-init' option to view a complete error backtrace.

             Juanma

  reply	other threads:[~2007-03-01 14:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-01 13:48 Error report on startup Herbert Euler
2007-03-01 14:30 ` Juanma Barranquero [this message]
2007-03-01 15:04   ` Herbert Euler
2007-03-01 15:26     ` Juanma Barranquero
2007-03-02  1:23       ` Herbert Euler
2007-03-02  1:57         ` Juanma Barranquero
2007-03-02  8:26           ` Richard Stallman
2007-03-02 23:46             ` Richard Stallman
2007-03-05  1:41               ` Herbert Euler
2007-03-02  3:28 ` Richard Stallman

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=f7ccd24b0703010630v3c6ae02cwed2c2e40c9678a4@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=herberteuler@hotmail.com \
    /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.