From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Juri Linkov <juri@jurta.org>
Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.org, rms@gnu.org,
Sven Joachim <svenjoac@gmx.de>
Subject: Re: 23.0.60; M-x occur no longer uses previous regexp as default
Date: Tue, 22 Apr 2008 21:47:14 -0400 [thread overview]
Message-ID: <jwvy775nyev.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87abjlcwq7.fsf@jurta.org> (Juri Linkov's message of "Wed, 23 Apr 2008 02:14:18 +0300")
> The reason for removing the previous regexp from default was because
> it makes more inconvenient to retrieve more available values from
> the list of default values via M-n. But maybe we could just display
> the previous regexp in the prompt and accept it when the user types RET
> with the empty string, but don't make it available via M-n, because it is
> available via M-p for inserting into the minibuffer for editing.
Then why not use
(let ((ret (read-string (format "Regexp (default %s): " foo))))
(if (equal ret "") foo ret))
> Alternatively, we could change the occur engine to display all lines for
> the "" regexp. This is not useful, but at least can be expected for "".
Signalling an error in the function's code is better.
Making sure the interactive spec never returns "" is also better (and
not mutually exclusive).
Stefan
next prev parent reply other threads:[~2008-04-23 1:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 11:14 23.0.60; M-x occur no longer uses previous regexp as default Sven Joachim
2008-04-22 20:08 ` Richard Stallman
2008-04-22 23:14 ` Juri Linkov
2008-04-23 1:47 ` Stefan Monnier [this message]
2008-04-23 8:59 ` Juri Linkov
2008-04-23 15:58 ` Richard M Stallman
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=jwvy775nyev.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-pretest-bug@gnu.org \
--cc=juri@jurta.org \
--cc=rfrancoise@debian.org \
--cc=rms@gnu.org \
--cc=svenjoac@gmx.de \
/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.