From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: Error report on startup Date: Thu, 1 Mar 2007 15:30:51 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172760888 18294 80.91.229.12 (1 Mar 2007 14:54:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 14:54:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Herbert Euler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 01 15:54:38 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 1HMmJP-0000fE-5k for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2007 15:31:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMmJQ-000657-QX for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2007 09:31:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMmJF-000621-AA for emacs-devel@gnu.org; Thu, 01 Mar 2007 09:31:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMmJC-0005yA-Oa for emacs-devel@gnu.org; Thu, 01 Mar 2007 09:31:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMmJC-0005y5-L5 for emacs-devel@gnu.org; Thu, 01 Mar 2007 09:31:02 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.168]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMmJC-0003mG-8U for emacs-devel@gnu.org; Thu, 01 Mar 2007 09:31:02 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so407898ugf for ; Thu, 01 Mar 2007 06:31:01 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Xxts67aAfb61hTYHMQ9tZWvkKqn1O3xb9A4AzJYKuq2MOqRCESvPyqLGALkARbxKXyP/M8kCPbbXjudtDIEcjxlhRgGZGv/zIbYft+wq/BCr7FHlzpm2i6um9Y7O2lZWPyX+xUy8bfUIiZF8FjWkTb9n8ocE51srd7JRy47aru0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sL4XiqeOYcYvzyAZV29Fyihsuta9PPYZZfFrk7628tQVU6WQVEKT+FrzUd9Acsk/5hB1DfsAFtkALj54spSrLzDabqj7/yTFDjIysZoeTJLXnScMh6FEeiV4w5TwW+AeiEmI7gK9gWyGSNqsfV7vpZzjBk9QhX3mnDCkcSINK4s= Original-Received: by 10.114.179.1 with SMTP id b1mr339054waf.1172759451936; Thu, 01 Mar 2007 06:30:51 -0800 (PST) Original-Received: by 10.114.234.16 with HTTP; Thu, 1 Mar 2007 06:30:51 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) 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:67131 Archived-At: On 3/1/07, Herbert Euler 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