GNU bug report logs - #13687
24.3.50; `read-regexp' should provide regex for symbol at point as defaults

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Mon, 11 Feb 2013 06:30:02 UTC

Severity: wishlist

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Jambunathan K'" <kjambunathan <at> gmail.com>
Cc: 'Juri Linkov' <juri <at> jurta.org>, 13687 <at> debbugs.gnu.org
Subject: bug#13687: /srv/bzr/emacs/trunk r111878: * lisp/replace.el(read-regexp): Let-bind `default' to the first
Date: Sat, 9 Mar 2013 09:55:56 -0800
> The question is why is this-command `exit-minibuffer' when it should
> have been `multi-occur-in-matching-buffers'.  Where does
> `exit-minibuffer' come from.
> 
> I am not concerned about the defaults, I am concerned about 
> how the cmd.  Do you have an explanation.  There should be an
> explanation... and the closest I have come to is to map RET to
> `exit-minibuffer'.

That IS the explanation, which you mentioned earlier as well.

`read-regexp' calls `read-from-minibuffer'.  When you hit `RET' during that
read, `exit-minibuffer' is the value of `this-command'.

You did not provide your recipe of testing interactions.  But if you enter
something in the minibuffer using `RET', then that explains why the current
command when `read-regexp-default's is eval'd is `exit-minibuffer'.





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

Previous Next


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