From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Juri Linkov <juri@jurta.org>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: read-regexp
Date: Sat, 18 Oct 2008 17:47:52 -0400 [thread overview]
Message-ID: <jwv3aito9tz.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ljwlr8ch.fsf@jurta.org> (Juri Linkov's message of "Sat, 18 Oct 2008 22:55:22 +0300")
>>> The problem is in the ambiguous name of the argument DEFAULT.
>>> It was intended to provide exactly the same functionality as the
>>> argument STRING-DESCRIBING-DEFAULT of the function `read-face-name',
>>> i.e. to display in the minibuffer prompt what default the function
>>> will use if the user types RET.
>>
>> The question is rather: why isn't that string available via M-n as
>> defaults usually do? I think adding that regexp to M-n is a better
>> option, and that makes the use of the name `default'
>> completely justified.
> This string is not available via M-n due to historical requirements of
> `occur'. It used to display the last element of regexp-history
> in the prompt and use it when the user types RET. Other commands
> that use read-regexp historically don't require such a string.
I still don't understand. Your occur explanation explains why it's
displayed in the prompt and used as default value, but not why it's not
in the M-n.
Stefan
next prev parent reply other threads:[~2008-10-18 21:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-18 12:41 read-regexp Eli Zaretskii
2008-10-18 16:19 ` read-regexp Juri Linkov
2008-10-18 19:13 ` read-regexp Stefan Monnier
2008-10-18 19:55 ` read-regexp Juri Linkov
2008-10-18 21:47 ` Stefan Monnier [this message]
2008-10-18 23:29 ` read-regexp Juri Linkov
2008-10-18 19:21 ` read-regexp Eli Zaretskii
2008-10-18 19:59 ` read-regexp Juri Linkov
2008-10-18 16:23 ` Word Delimited Query Replace (was: read-regexp) Juri Linkov
2008-10-18 19:21 ` Word Delimited Query Replace Stefan Monnier
2008-10-18 19:52 ` Juri Linkov
2008-10-18 21:37 ` Stefan Monnier
2008-10-18 23:29 ` Juri Linkov
2008-10-19 2:08 ` Stefan Monnier
2008-10-19 22:48 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv3aito9tz.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.