[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12399: 24.2.50; dired-do-touch doesn't recognize empty input in mini
From: |
Stefan Monnier |
Subject: |
bug#12399: 24.2.50; dired-do-touch doesn't recognize empty input in minibuffer |
Date: |
Tue, 11 Sep 2012 16:46:10 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
> 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