From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#19975: 25.0.50; Add %s-like descriptor to `format' that treats nil like empty string Date: Sun, 1 Mar 2015 23:07:13 -0800 (PST) Message-ID: <8f839957-d30e-4b42-85bd-3759a09a05ec@default> References: <8368a437-5e9c-42e1-8add-f1275553c27a@default> <874mq47jlt.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1425280121 2669 80.91.229.3 (2 Mar 2015 07:08:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2015 07:08:41 +0000 (UTC) Cc: 19975@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 02 08:08:28 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YSKSm-0002RH-NK for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Mar 2015 08:08:24 +0100 Original-Received: from localhost ([::1]:55339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSKSl-0002cd-UI for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Mar 2015 02:08:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSKSU-00029V-4q for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 02:08:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSKSQ-0002U0-V9 for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 02:08:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSKSQ-0002Tu-SR for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 02:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YSKSQ-0006io-Hs for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 02:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Mar 2015 07:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19975-submit@debbugs.gnu.org id=B19975.142528004925795 (code B ref 19975); Mon, 02 Mar 2015 07:08:02 +0000 Original-Received: (at 19975) by debbugs.gnu.org; 2 Mar 2015 07:07:29 +0000 Original-Received: from localhost ([127.0.0.1]:33750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSKRs-0006hy-Qa for submit@debbugs.gnu.org; Mon, 02 Mar 2015 02:07:29 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:47808) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSKRq-0006hc-0I for 19975@debbugs.gnu.org; Mon, 02 Mar 2015 02:07:27 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t2277IUW031470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 Mar 2015 07:07:18 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t2277IRD012927 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Mar 2015 07:07:18 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t2277IN7018831; Mon, 2 Mar 2015 07:07:18 GMT In-Reply-To: <874mq47jlt.fsf@igel.home> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99947 Archived-At: > > Enhancement request. Add a new format descriptor to `format' that woul= d > > behave just like %s except that a nil argument would be treated as if i= t > > were "". >=20 > It's easy enough to use (or foo ""). Yes of course "it's easy enough". That's what we've all been doing for decades. It would be even clearer and simpler still to have a format descriptor for this common use case. That is what this enhancement request is about - not needing to write such "easy enough" code. And of course it is not always (or foo ""). It might well be (if foo "whatever" ""). Or if you prefer, (let ((bar "whatever")) (or (and foo bar) "")).