all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using grep with unsaved buffers.
@ 2007-05-10 12:36 mopi
  2007-05-10 13:36 ` Maciej Katafiasz
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mopi @ 2007-05-10 12:36 UTC (permalink / raw)
  To: help-gnu-emacs

I frequently use buffers that doesn't have a file assiociated to it.

Is it possible to make grep work on those buffers? Perhaps through
stdin? Other alternatives?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using grep with unsaved buffers.
  2007-05-10 12:36 Using grep with unsaved buffers mopi
@ 2007-05-10 13:36 ` Maciej Katafiasz
  2007-05-10 14:07 ` Pascal Bourguignon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Maciej Katafiasz @ 2007-05-10 13:36 UTC (permalink / raw)
  To: help-gnu-emacs

Den Thu, 10 May 2007 05:36:05 -0700 skrev mopi:

> I frequently use buffers that doesn't have a file assiociated to it.
> 
> Is it possible to make grep work on those buffers? Perhaps through
> stdin? Other alternatives?

M-x occur

In Emacs 22, also M-x multi-occur.

Cheers,
Maciej

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using grep with unsaved buffers.
  2007-05-10 12:36 Using grep with unsaved buffers mopi
  2007-05-10 13:36 ` Maciej Katafiasz
@ 2007-05-10 14:07 ` Pascal Bourguignon
  2007-05-10 14:10 ` Kai Grossjohann
       [not found] ` <mailman.489.1178806714.32220.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 5+ messages in thread
From: Pascal Bourguignon @ 2007-05-10 14:07 UTC (permalink / raw)
  To: help-gnu-emacs

mopi <52hands@gmail.com> writes:

> I frequently use buffers that doesn't have a file assiociated to it.
>
> Is it possible to make grep work on those buffers? Perhaps through
> stdin? Other alternatives?

C-x h  C-u M-| grep -e 'regexp' RET

Or

C-x h      M-| grep -e 'regexp' RET

if you want the result in a new buffer.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using grep with unsaved buffers.
  2007-05-10 12:36 Using grep with unsaved buffers mopi
  2007-05-10 13:36 ` Maciej Katafiasz
  2007-05-10 14:07 ` Pascal Bourguignon
@ 2007-05-10 14:10 ` Kai Grossjohann
       [not found] ` <mailman.489.1178806714.32220.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 5+ messages in thread
From: Kai Grossjohann @ 2007-05-10 14:10 UTC (permalink / raw)
  To: help-gnu-emacs

mopi <52hands@gmail.com> writes:

> I frequently use buffers that doesn't have a file assiociated to it.
>
> Is it possible to make grep work on those buffers? Perhaps through
> stdin? Other alternatives?

M-x occur RET

Kai

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using grep with unsaved buffers.
       [not found] ` <mailman.489.1178806714.32220.help-gnu-emacs@gnu.org>
@ 2007-05-10 21:07   ` mopi
  0 siblings, 0 replies; 5+ messages in thread
From: mopi @ 2007-05-10 21:07 UTC (permalink / raw)
  To: help-gnu-emacs

Thank you all. You are very helpful.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-10 21:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10 12:36 Using grep with unsaved buffers mopi
2007-05-10 13:36 ` Maciej Katafiasz
2007-05-10 14:07 ` Pascal Bourguignon
2007-05-10 14:10 ` Kai Grossjohann
     [not found] ` <mailman.489.1178806714.32220.help-gnu-emacs@gnu.org>
2007-05-10 21:07   ` mopi

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.