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: Fixing numerous `message' bugs.. Date: Sat, 08 Dec 2007 11:55:40 +0100 Message-ID: <85d4thihg3.fsf@lola.goethe.zz> References: <87myso8yrs.fsf@marie.gnufans.net> <87ve7b4xt6.fsf@marie.gnufans.net> <85abonpxnw.fsf@lola.goethe.zz> <85fxyel8o8.fsf@lola.goethe.zz> <87hciugzal.fsf@marie.gnufans.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197111711 13943 80.91.229.12 (8 Dec 2007 11:01:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2007 11:01:51 +0000 (UTC) Cc: Glenn Morris , Dave Goel , rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 08 12:02:00 2007 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.50) id 1J0xRY-00025h-4R for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 12:02:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0xRH-0002HB-4H for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 06:01:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J0xQz-0002AO-SH for emacs-devel@gnu.org; Sat, 08 Dec 2007 06:01:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J0xQz-00029v-14 for emacs-devel@gnu.org; Sat, 08 Dec 2007 06:01:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0xQy-00029q-Ue for emacs-devel@gnu.org; Sat, 08 Dec 2007 06:01:24 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J0xQy-0000b7-Gx for emacs-devel@gnu.org; Sat, 08 Dec 2007 06:01:24 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J0xQr-0004Jv-QY; Sat, 08 Dec 2007 06:01:17 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 6AA221C46130; Sat, 8 Dec 2007 11:55:40 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Fri, 07 Dec 2007 21:21:12 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:84867 Archived-At: Stefan Monnier writes: >>> The problem is that all those bugs are here because the corresponding >>> authors just didn't think, so they are unlikely to use this new >>> arg either. > >> Is there any way to improve byte-compile-format-warn in this regard? > > Kind of, but it's not very satifactory. In contrast, if we change > (message FOO) to behave like (if FOO (message "%s" FOO) (message nil)), > then naive coders will simply not bump into any surprise, even if they > don't look at byte-compiler warnings. Also it will save people from > quoting the % char in those cases. > The only downside is the need to change existing code. Yes. There is indeed code using "%%" in a single argument. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum