unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
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: Wed, 23 Apr 2008 11:59:19 +0300	[thread overview]
Message-ID: <87hcdtt0a4.fsf@jurta.org> (raw)
In-Reply-To: <jwvy775nyev.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 22 Apr 2008 21:47:14 -0400")

>> 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))

It seems this is the best to do where foo is (car regexp-history).

-- 
Juri Linkov
http://www.jurta.org/emacs/




  reply	other threads:[~2008-04-23  8:59 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
2008-04-23  8:59       ` Juri Linkov [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hcdtt0a4.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).