unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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 --
2004-07-28  4:04 subsequent prompting for occur Dan Jacobson
     [not found] <mailman.1912.1091033677.1960.bug-gnu-emacs@gnu.org>
2004-07-29  0:17 ` Kevin Rodgers

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