From: "Herbert Euler" <herberteuler@hotmail.com>
To: emacs-devel@gnu.org
Cc: herberteuler@hotmail.com
Subject: Error report on startup
Date: Thu, 01 Mar 2007 21:48:29 +0800 [thread overview]
Message-ID: <BAY112-F347A167E75380CD6E9F369DA800@phx.gbl> (raw)
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 had this problem when using Emacs on Windows. I turned on
type-break mode. For some reason I do not know until now, the file
~/.type-break was not written correctly for many times, so that the
functions `type-break-get-previous-time' and
`type-break-get-previous-count' failed on the invoking to `read'.
Then I saw the above message, this vague message took me so long to
find out the problem.
Is it possible to improve the error report? An approach might be
setting `load-file-name' temporarily, but there seem to be many
adjustments.
Regards,
Guanpeng Xu
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
next reply other threads:[~2007-03-01 13:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-01 13:48 Herbert Euler [this message]
2007-03-01 14:30 ` Error report on startup Juanma Barranquero
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY112-F347A167E75380CD6E9F369DA800@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=emacs-devel@gnu.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).