emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.60; M-x occur no longer uses previous regexp as default


From: Juri Linkov
Subject: Re: 23.0.60; M-x occur no longer uses previous regexp as default
Date: Wed, 23 Apr 2008 02:14:18 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

>     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 via email to

[Prev in Thread] Current Thread [Next in Thread]