From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: (error (format ... Date: Thu, 16 Jun 2005 16:07:17 +0200 Message-ID: <85ekb2wg2y.fsf@lola.goethe.zz> References: <85is0ewgwv.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118930661 19680 80.91.229.2 (16 Jun 2005 14:04:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2005 14:04:21 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 16 16:04:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Diuxf-0003MD-DQ for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2005 16:03:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Div35-0007wl-LL for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2005 10:08:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Div2Z-0007mF-Qk for emacs-devel@gnu.org; Thu, 16 Jun 2005 10:08:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Div2U-0007k3-7K for emacs-devel@gnu.org; Thu, 16 Jun 2005 10:08:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Div2T-0007jY-R3 for emacs-devel@gnu.org; Thu, 16 Jun 2005 10:08:13 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Div3S-0002Zk-BM for emacs-devel@gnu.org; Thu, 16 Jun 2005 10:09:14 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Div1P-0002Xy-7W; Thu, 16 Jun 2005 10:07:10 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 987761C15384; Thu, 16 Jun 2005 16:07:18 +0200 (CEST) Original-To: Juanma Barranquero In-Reply-To: (Juanma Barranquero's message of "Thu, 16 Jun 2005 16:03:37 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:38957 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38957 Juanma Barranquero writes: >> I'd probably be tempted to use >> >> (error (concat "No further undo information" >> (and transient-mark-mode mark-active >> " for region"))) > > Yes, in this case I think yours is better. But if the argument is a variable: > > (lambda (arg) (error (format "This is the error: %s" arg))) > > would be preferable to > > (lambda (arg) (error "This is the error: %s" arg)) > > ? Not at all. The former is prone to bug out when "arg" contains "%" somewhere. The latter works fine in this case. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum