From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.devel Subject: Re: condition-case with multiple handlers Date: Sat, 28 Jul 2012 23:25:49 -0500 Message-ID: <87boiz5h2q.fsf@gmail.com> References: <87k3xncm5h.fsf@gmail.com> Reply-To: jay.p.belanger@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343535966 6968 80.91.229.3 (29 Jul 2012 04:26:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2012 04:26:06 +0000 (UTC) Cc: jay.p.belanger@gmail.com, "emacs-devel@gnu.org" To: "Herring\, Davis" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 29 06:26:06 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SvL4r-0005J7-JA for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2012 06:26:01 +0200 Original-Received: from localhost ([::1]:57670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvL4q-0000eo-Et for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2012 00:26:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvL4o-0000ei-Bc for emacs-devel@gnu.org; Sun, 29 Jul 2012 00:25:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvL4n-0002Bk-7s for emacs-devel@gnu.org; Sun, 29 Jul 2012 00:25:58 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:42631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvL4n-0002Bc-2G for emacs-devel@gnu.org; Sun, 29 Jul 2012 00:25:57 -0400 Original-Received: by obhx4 with SMTP id x4so8398651obh.0 for ; Sat, 28 Jul 2012 21:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:reply-to:cc:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=zKYraJMmkvE1fmECXrIXc+lTUiUPsha3g+lwIDD6Gn4=; b=VieTDeYTs6YMbDrRzZePwKjU3kIUVlSR1J6TE2vobB8lS0d7aNh1P3zwVgI3ZVq97w w7JT2CUuDC1tRc3KtIQvlK8sRMnSaM239P3iYSAyHs4w4Ku5j7gb0UHbWGljsIUqbhQY g5ro2LVktWfCE7RvX8ViXUsfeK4r3HqcJB+1dRQXEnWJeFzXltI6lwNGSdtmjAwiVT7N 5nbfiBYj9iEErqZhZqPaYz9oqi0Yom8Gtugh9X9GC0C5OgO5NWVVN16sNaC0dCDAFsyA D5pemYmpTn6/+okOUKuO96bO5cuwTL42VK6+gNsimnOqxFaRC45LAmUkICF3NFNrVx+Z 8LXQ== Original-Received: by 10.60.2.42 with SMTP id 10mr11310959oer.9.1343535956590; Sat, 28 Jul 2012 21:25:56 -0700 (PDT) Original-Received: from belanger-home (184-155-88-117.cpe.cableone.net. [184.155.88.117]) by mx.google.com with ESMTPS id c6sm5918508obn.13.2012.07.28.21.25.54 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 28 Jul 2012 21:25:55 -0700 (PDT) In-Reply-To: (Davis Herring's message of "Sun, 29 Jul 2012 03:26:51 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151948 Archived-At: "Herring, Davis" writes: >> I'm dealing with a condition-case construct that has more than one >> handler and I need some way to indicate (outside the construct) when any >> one of the errors has occurred. > > How about: > > (let (noerror) > (condition-case ... > (progn > ... > (setq noerror t)) > (some-error ...) > (other-error ...)) > ...) Good idea, but it messes with the return value of the condition-case body. I thought there might be some built-in method for handling this, but I'm thinking not. Jay