From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r107126: Document yet more things that were never added to NEWS Date: Tue, 07 Feb 2012 20:02:12 +0100 Message-ID: <85aa4uea4v.fsf@iznogoud.viz> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328641605 26274 80.91.229.3 (7 Feb 2012 19:06:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2012 19:06:45 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 07 20:06:44 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuqNG-0006JG-AC for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2012 20:06:42 +0100 Original-Received: from localhost ([::1]:51381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuqNF-00067n-LB for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2012 14:06:41 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuqN8-0005vP-7X for emacs-devel@gnu.org; Tue, 07 Feb 2012 14:06:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuqN3-0006wh-VK for emacs-devel@gnu.org; Tue, 07 Feb 2012 14:06:34 -0500 Original-Received: from mx02.lb01.inode.at ([62.99.145.2]:9076 helo=mx.inode.at) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuqN3-0006w6-LE; Tue, 07 Feb 2012 14:06:29 -0500 Original-Received: from [85.127.18.164] (port=4273 helo=iznogoud.viz) by smartmx-02.inode.at with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1RuqN1-0006xr-N3; Tue, 07 Feb 2012 20:06:27 +0100 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1RuqMy-0000mo-L5; Tue, 07 Feb 2012 20:06:24 +0100 Mail-Followup-To: Stefan Monnier , Leo , emacs-devel@gnu.org, Glenn Morris User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 62.99.145.2 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:148311 Archived-At: On Mon, Feb 06 2012, Stefan Monnier wrote: >> Is there a better name for this macro _condition-case-no-debug_? > > Not yet. How 'bout "condition-case-unless-debugging"? The newly added parts in mention that with-demoted-errors is implemented in terms of condition-case-no-debug, but this leaves me wondering why, in this or other cases, this should be better than using condition-case with the `debug' pseudo-condition, viz. #+begin_src emacs-lisp (defmacro with-demoted-errors (&rest body) "Run BODY and demote any errors to simple messages. If `debug-on-error' is non-nil, run BODY without catching its errors. This is to be used around code which is not expected to signal an error but which should be robust in the unexpected case that an error is signaled." (declare (debug t) (indent 0)) (let ((err (make-symbol "err"))) `(condition-case ,err (progn ,@body) ((debug error) (message "Error: %S" ,err) nil)))) #+end_src Wolfgang