[Top][All Lists]

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

Re: subsequent prompting for occur

From: Kevin Rodgers
Subject: Re: subsequent prompting for occur
Date: Wed, 28 Jul 2004 18:17:41 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

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

reply via email to

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