From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#47677: [PATCH] condition-case success continuation Date: Mon, 12 Apr 2021 11:10:40 -0400 Message-ID: References: <219007D9-0FD0-4AC2-A8B0-24A0FC277AE8@acm.org> <87lf9nzy48.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2538"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 47677@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 12 17:11:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVyDX-0000Vl-SB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 17:11:12 +0200 Original-Received: from localhost ([::1]:49728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVyDV-000208-Cr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 11:11:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVyDO-0001zl-RZ for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2021 11:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVyDO-000374-Jy for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2021 11:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVyDO-0001mh-EF for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2021 11:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Apr 2021 15:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47677 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 47677-submit@debbugs.gnu.org id=B47677.16182402576842 (code B ref 47677); Mon, 12 Apr 2021 15:11:02 +0000 Original-Received: (at 47677) by debbugs.gnu.org; 12 Apr 2021 15:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:57729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVyDI-0001mH-T0 for submit@debbugs.gnu.org; Mon, 12 Apr 2021 11:10:57 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVyDH-0001m2-5t for 47677@debbugs.gnu.org; Mon, 12 Apr 2021 11:10:55 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 8725710021D; Mon, 12 Apr 2021 11:10:49 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5B673100040; Mon, 12 Apr 2021 11:10:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1618240247; bh=RlrkGOcziaPgU+fnE75YTgTEYCoIBBLIW16ULJRpjdE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cR7Ii94+O9/aCFL+9GyWdocSkYPNOdm8j17vl74o/24YBgAmBvtiVmqBosE34cm/y WjDTPOriXFC2CWXyLdYoLJtQEd6CNbN+nQ6MTkpcMf0Vk3cQ6UYHstJfCfsmP1lVh1 fZUNAoRrq/UZzYxHleqgRvsT0BqvqqFp+9L1rp+3FcUlj23s6ZuvJ2Yvzp8aO8rOmd XLz/ujGwPm3LvSEXP0FIgVCVRFmjE4l118R69Mugdy0khk7vxMspfus3DBabJpM1NP tKIfhKAYNIC29QoKGf75Cf8crL9rkitzNVBRoqN/hnenBKchYn0sw5LsCB3SVmRS1S NQYcua/yHPMrA== Original-Received: from alfajor (104-222-126-84.cpe.teksavvy.com [104.222.126.84]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2B6AA12076A; Mon, 12 Apr 2021 11:10:47 -0400 (EDT) In-Reply-To: <87lf9nzy48.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 12 Apr 2021 10:49:11 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203910 Archived-At: >> It may be a bit too far over the moon though. Would >> :not-a-complete-failure be better? Fits my gloomy national >> temperaments (all of them) better. > > :-) > > I like :success here. Let's bring some positivity. And I also like > the feature -- you sometimes see people doing > > (condition-case > (progn > (something-that-may-fail) > (setq didnt-fail t)) > (error ...)) > (when didnt-fail > ...) > > and this would be much nicer. Indeed, a nice sidekick to Mattias's patch would be another patch which rewrites some of those condition-cases. I know I wrote some of those but somehow can't remember where, nor can I think of a good way to grep for them. Stefan