From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Error report on startup Date: Thu, 01 Mar 2007 21:48:29 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1172761182 22343 80.91.229.12 (1 Mar 2007 14:59:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 14:59:42 +0000 (UTC) Cc: herberteuler@hotmail.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 01 15:59:28 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMleJ-0006lk-NS for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2007 14:48:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMleL-0008Ae-Dw for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2007 08:48:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMleA-00088K-Ph for emacs-devel@gnu.org; Thu, 01 Mar 2007 08:48:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMle8-00083D-3d for emacs-devel@gnu.org; Thu, 01 Mar 2007 08:48:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMle7-000835-TS for emacs-devel@gnu.org; Thu, 01 Mar 2007 08:48:35 -0500 Original-Received: from bay0-omc3-s7.bay0.hotmail.com ([65.54.246.207]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMle7-0004M7-FY for emacs-devel@gnu.org; Thu, 01 Mar 2007 08:48:35 -0500 Original-Received: from hotmail.com ([64.4.26.44]) by bay0-omc3-s7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 1 Mar 2007 05:48:34 -0800 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Mar 2007 05:48:33 -0800 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Thu, 01 Mar 2007 13:48:29 GMT X-Originating-IP: [216.145.54.7] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com X-OriginalArrivalTime: 01 Mar 2007 13:48:33.0953 (UTC) FILETIME=[4DE27910:01C75C08] X-detected-kernel: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67132 Archived-At: 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/