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: Fri, 2 Mar 2007 02:57:54 +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 1172800697 16859 80.91.229.12 (2 Mar 2007 01:58:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2007 01:58:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Herbert Euler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 02 02:58:11 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 1HMx2A-0004Gi-4d for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2007 02:58:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMx29-0000i5-PZ for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2007 20:58:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMx1y-0000hw-Dz for emacs-devel@gnu.org; Thu, 01 Mar 2007 20:57:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMx1w-0000hD-1y for emacs-devel@gnu.org; Thu, 01 Mar 2007 20:57:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMx1v-0000hA-RK for emacs-devel@gnu.org; Thu, 01 Mar 2007 20:57:55 -0500 Original-Received: from an-out-0708.google.com ([209.85.132.248]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMx1v-0002pU-Ec for emacs-devel@gnu.org; Thu, 01 Mar 2007 20:57:55 -0500 Original-Received: by an-out-0708.google.com with SMTP id b8so521000ana for ; Thu, 01 Mar 2007 17:57:55 -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=oVn9v9mHT1wHHg1RLfvTniMZlsazRVIgiBNN6CR+7asoFL3VW+q/NwXWy1B6E5zhiP67n3crhM6/zUYGliqqMVt4WV527+0N3Hm6T39yBhaUNdJuS/gt5iVVtd3NBCdU8Bdq6jJgCGadly3t18TkTV60Gt78rv8neD7iLfj/Bgw= 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=FjDc4WNdbdL1MdSz/WPUBNlOnpwcp+hmhnyyXo1MRnZLxfZT8XaFT1FHjINh4/LdwJib0O0SLNEM+pE+jhZa1mIA5VKp/tfSB2q6iDMeI/VAUrxbXfaDnZZl0lwPRmwuMWlVeNWfDI2NQBkm27IGsVxkRL3+VUXb7PWEjred9Zo= Original-Received: by 10.114.25.3 with SMTP id 3mr50415way.1172800674492; Thu, 01 Mar 2007 17:57:54 -0800 (PST) Original-Received: by 10.114.234.16 with HTTP; Thu, 1 Mar 2007 17:57:54 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: Linux 2.6 (newer, 2) 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:67185 Archived-At: On 3/2/07, Herbert Euler wrote: > (defun type-break-get-previous-time () > "Get previous break time from `type-break-file-name'. > Returns nil if the file is missing or if the time breaks with the > `current-time' format." > (let ((file (type-break-choose-file))) > (if file > (timep ;; returns expected format, else nil > (with-current-buffer (find-file-noselect file 'nowarn) > (save-excursion > (goto-char (point-min)) > (read (current-buffer)))))))) I stand by what I said. If type-break-get-previous-time loads elisp code in such a way, it is to be *expected* that erroneous input (in the file being read) will be reported as a problem of type-break-get-previous-time. If the code's author would've wanted normal loading semantics, s/he would've used (load file). Juanma