GNU bug report logs - #19975
25.0.50; Add %s-like descriptor to `format' that treats nil like empty string

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 1 Mar 2015 15:34:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; Add %s-like descriptor to `format' that treats nil like
 empty string
Date: Sun, 1 Mar 2015 07:32:56 -0800 (PST)
Enhancement request.  Add a new format descriptor to `format' that would
behave just like %s except that a nil argument would be treated as if it
were "".

This is a convenience only, to obviate needing to pass an argument such
as `(if something "foobar" "")' or needing to combine use of `format'
with use of `concat'.

In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2014-10-20 on LEG570
Bzr revision: 118168 rgm <at> gnu.org-20141020195941-icp42t8ttcnud09g
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'




This bug report was last modified 9 years and 24 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.