* subsequent prompting for occur
@ 2004-07-28 4:04 Dan Jacobson
0 siblings, 0 replies; 2+ messages in thread
From: Dan Jacobson @ 2004-07-28 4:04 UTC (permalink / raw)
When we type M-x occur for a subsequent time, we are prompted with the
regexp we used the last time:
List lines matching regexp (default `^[A-Z]'):
The problem is that we normal people will then try and edit the
expression, which lives in read-only land.
Therefore, kindly prompt like this:
List lines matching regexp: ^[A-Z]
So we can edit it without thinking.
And while you are at it, finally bind "q" to bury the occur buffer.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: subsequent prompting for occur
[not found] <mailman.1912.1091033677.1960.bug-gnu-emacs@gnu.org>
@ 2004-07-29 0:17 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-07-29 0:17 UTC (permalink / raw)
Dan Jacobson wrote:
> When we type M-x occur for a subsequent time, we are prompted with the
> regexp we used the last time:
> List lines matching regexp (default `^[A-Z]'):
>
> The problem is that we normal people will then try and edit the
> expression, which lives in read-only land.
Normal people know to type `M-p' at any minibuffer prompt to insert the
previous input, or `M-n' to insert the default, either of which can then
be edited.
> And while you are at it, finally bind "q" to bury the occur buffer.
(define-key occur-mode-map "q" 'bury-buffer)
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-29 0:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1912.1091033677.1960.bug-gnu-emacs@gnu.org>
2004-07-29 0:17 ` subsequent prompting for occur Kevin Rodgers
2004-07-28 4:04 Dan Jacobson
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.