unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: rms@gnu.org
Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.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 02:14:18 +0300	[thread overview]
Message-ID: <87abjlcwq7.fsf@jurta.org> (raw)
In-Reply-To: <E1JoOmt-0001Wj-UK@fencepost.gnu.org> (Richard Stallman's message of "Tue, 22 Apr 2008 16:08:23 -0400")

>     In Emacs 22, M-x occur uses the previous regexp as default when invoked
>     a second time, so you could just press RET to look for it again.
>
> I think we should consider that a bug and fix it.

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.

>       Now
>     you have to use M-p to receive the previous regexp, if you forget that
>     Emacs hangs and uses 100% CPU (interruptible with C-g, backtrace
>     follows):
>
> Maybe one of these functions should signal an error if the regexp arg
> is "".

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 "".

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




  reply	other threads:[~2008-04-22 23:14 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 [this message]
2008-04-23  1:47     ` Stefan Monnier
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

  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=87abjlcwq7.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-pretest-bug@gnu.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 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).