all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Error report on startup
@ 2007-03-01 13:48 Herbert Euler
  2007-03-01 14:30 ` Juanma Barranquero
  2007-03-02  3:28 ` Richard Stallman
  0 siblings, 2 replies; 10+ messages in thread
From: Herbert Euler @ 2007-03-01 13:48 UTC (permalink / raw)
  To: emacs-devel; +Cc: herberteuler

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/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-03-05  1:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01 13:48 Error report on startup Herbert Euler
2007-03-01 14:30 ` 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

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.