From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Paul Eggert <eggert@cs.ucla.edu>
Newsgroups: gmane.emacs.devel
Subject: Re: RFC: String interpolation
Date: Tue, 13 Dec 2016 16:17:58 -0800
Organization: UCLA Computer Science Department
Message-ID: <a3a0b2d1-03da-cf90-a75a-1f8ba1e77a7e@cs.ucla.edu>
References: <51825111-ace4-f750-4077-026a3b648d27@gmail.com>
	<8737hwnc52.fsf@lifelogs.com> <m34m2bj2m2.fsf@gnus.org>
	<8c117f5c-209a-97d8-79ce-a78f707f0545@gmail.com>
	<m3wpf7hjzf.fsf@gnus.org>
	<76c9c475-0180-aa49-3d4a-006d4e3f943c@gmail.com>
	<m3oa0ifgvd.fsf@gnus.org>
	<m2k2b6rxaj.fsf@gmail.com> <m38trmdun6.fsf@gnus.org>
	<jwvr35dub31.fsf-monnier+gmane.emacs.devel@gnu.org>
	<m3r35dcwht.fsf@gnus.org>
	<89a6a20d-e135-caad-6b31-760ab7ac90fc@cs.ucla.edu>
	<87fultkjte.fsf@lifelogs.com>
	<3ff9e7e4-aee7-191e-5e3b-4d4ac0006a1f@cs.ucla.edu>
	<9e138d20-782d-2a56-75f8-37e3fa1885df@cs.ucla.edu>
	<E1cGr5w-0000yZ-0w@fencepost.gnu.org>
	<4e9c0a7e-2d44-5fc7-79d8-7b19758fef01@cs.ucla.edu>
	<m3vaun4c62.fsf@gnus.org>
	<ab263415-9c3a-6c2d-afd1-7e135a88355d@cs.ucla.edu>
	<m2d1gvtloj.fsf@newartisans.com>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: blaine.gmane.org 1481674735 2261 195.159.176.226 (14 Dec 2016 00:18:55 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 14 Dec 2016 00:18:55 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
	Thunderbird/45.5.1
To: Lars Ingebrigtsen <larsi@gnus.org>, rms@gnu.org, emacs-devel@gnu.org
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 14 01:18:51 2016
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1cGxHU-0007wd-Fc
	for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2016 01:18:48 +0100
Original-Received: from localhost ([::1]:44736 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1cGxHY-0007oN-Pj
	for ged-emacs-devel@m.gmane.org; Tue, 13 Dec 2016 19:18:52 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54629)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1cGxGo-0007hw-99
	for emacs-devel@gnu.org; Tue, 13 Dec 2016 19:18:07 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1cGxGj-000367-Ba
	for emacs-devel@gnu.org; Tue, 13 Dec 2016 19:18:06 -0500
Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:42714)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <eggert@cs.ucla.edu>)
	id 1cGxGj-00035y-4j; Tue, 13 Dec 2016 19:18:01 -0500
Original-Received: from localhost (localhost [127.0.0.1])
	by zimbra.cs.ucla.edu (Postfix) with ESMTP id D0F8A16008E;
	Tue, 13 Dec 2016 16:17:59 -0800 (PST)
Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1])
	by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
	with ESMTP id 4XL_gDE6fDiY; Tue, 13 Dec 2016 16:17:59 -0800 (PST)
Original-Received: from localhost (localhost [127.0.0.1])
	by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2845216009B;
	Tue, 13 Dec 2016 16:17:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1])
	by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id m0YyqtfZP1w2; Tue, 13 Dec 2016 16:17:59 -0800 (PST)
Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
	by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 0D63216008E;
	Tue, 13 Dec 2016 16:17:59 -0800 (PST)
In-Reply-To: <m2d1gvtloj.fsf@newartisans.com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 131.179.128.68
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel/>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.devel:210426
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/210426>

On 12/13/2016 04:10 PM, John Wiegley wrote:
> This way you could just say:
>
>      (format "This %d" 10 " and this %d" 20)
>
> Or:
>
>      (format "This %d and %d" 10 20 " and this %d" 30)
>
> Or:
>
>      (format "This %d and %d and %d" 10 20 30)

Although that would work, it's an incompatible change to documented 
behavior. The manual currently says that excess arguments are ignored, 
which means that currently all three expressions have well-defined (and 
differing) behaviors.

A few months ago I changed 'message' in an incompatible way, figuring 
that almost nobody would care. Boy, was I wrong! That being said, I 
agree that the above style is simpler and would be easy to implement, 
and I can do it that way if you prefer.