GNU bug report logs - #12399
24.2.50; dired-do-touch doesn't recognize empty input in minibuffer

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Sun, 9 Sep 2012 22:50:01 UTC

Severity: normal

Found in version 24.2.50

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Juri Linkov <juri <at> jurta.org>
Cc: Bastien <bzg <at> altern.org>, 12399 <at> debbugs.gnu.org
Subject: Re: bug#12399: 24.2.50;
	dired-do-touch doesn't recognize empty input in minibuffer
Date: Tue, 11 Sep 2012 16:46:10 -0400
> Fortunately, thanks to `completing-read-function'
> it's easy to fix this with a small change that adds
> a new function `completing-read-without-default'
> that works like `completing-read-default'
> but returns the empty string for empty input
> like `read-from-minibuffer':

There's another way to do that: check (eq val default), since the
returned value will be `eq' to the `default' if the minibuffer was
empty, whereas if it comes from a non-empty minibuffer it will at best
be `equal'.


        Stefan




This bug report was last modified 12 years and 330 days ago.

Previous Next


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