From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Bell Date: Tue, 30 Mar 2010 20:24:11 -0400 Message-ID: References: <4BA0CDF9.40707@online.de> <76682E4761EA432EB929E5E199B0F92A@us.oracle.com> <87wrxb57e1.fsf@lola.goethe.zz> <20100317.200901.408057447.hanche@math.ntnu.no> <87sk7y2gh9.fsf@lola.goethe.zz> <87bpelic8g.fsf@mail.jurta.org> <878w9ox1x4.fsf@lola.goethe.zz> <87d3z074fs.fsf@stupidchicken.com> <87tyscysm2.fsf@mail.jurta.org> <87mxy23b3f.fsf@catnip.gol.com> <88262642C6164CD2872637E1309A66CB@us.oracle.com> <87iq8qikuu.fsf@mail.jurta.org> <874ojxddnw.fsf@mail.jurta.org> <87pr2l8mo2.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269995066 9493 80.91.229.12 (31 Mar 2010 00:24:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2010 00:24:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 31 02:24:22 2010 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.69) (envelope-from ) id 1NwljK-0003ER-3g for ged-emacs-devel@m.gmane.org; Wed, 31 Mar 2010 02:24:22 +0200 Original-Received: from localhost ([127.0.0.1]:34520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwljJ-0005S9-9t for ged-emacs-devel@m.gmane.org; Tue, 30 Mar 2010 20:24:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwljD-0005Q0-SF for emacs-devel@gnu.org; Tue, 30 Mar 2010 20:24:15 -0400 Original-Received: from [140.186.70.92] (port=44858 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwljB-0005Nr-Un for emacs-devel@gnu.org; Tue, 30 Mar 2010 20:24:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwljA-00057L-I3 for emacs-devel@gnu.org; Tue, 30 Mar 2010 20:24:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:23119 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwljA-00057G-F7 for emacs-devel@gnu.org; Tue, 30 Mar 2010 20:24:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAHczsktLd/h9/2dsb2JhbACbJ3LAGoUABIsj X-IronPort-AV: E=Sophos;i="4.51,338,1267419600"; d="scan'208";a="59897904" Original-Received: from 75-119-248-125.dsl.teksavvy.com (HELO ceviche.home) ([75.119.248.125]) by ironport2-out.pppoe.ca with ESMTP; 30 Mar 2010 20:24:11 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id ABD8C660BF; Tue, 30 Mar 2010 20:24:11 -0400 (EDT) In-Reply-To: <87pr2l8mo2.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 31 Mar 2010 01:33:33 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:122946 Archived-At: >>> + (signal (car err) nil))) >> Is there a particular reason why you used nil rather than (cdr err) as >> second argument? > The only reason is that other line-oriented commands in simple.el > call `signal' explicitly with the second arg nil like: > (signal 'beginning-of-buffer nil) > (signal 'end-of-buffer nil) > If it's more reliable with (cdr err), I will add it. It's not that it's more reliable, it's just that (cdr err) holds the info that was provided in the second arg of `signal' in the the signal caught by the condition-case, so it makes sense to propagate it further, whether it's nil or not. I.e. (signal (car err) (cdr err)) is the canonical way to re-throw a signal previously caught by condition-case. Stefan