From: jdzhang@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: copy visible text with some lines hidden with hide-lines
Date: Tue, 26 Feb 2008 11:54:12 -0800 (PST) [thread overview]
Message-ID: <98acf58b-ef8d-43e5-b63c-7da2518ab810@s19g2000prg.googlegroups.com> (raw)
In-Reply-To: mailman.7946.1203999732.18990.help-gnu-emacs@gnu.org
On Feb 25, 8:22 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> Rupert Swarbrick wrote:
> > On Thu, 21 Feb 2008 16:46:20 -0800,jdzhangwrote:
>
> >> I need looking at large (10s of MB) log files regularly. I use hide-
> >> lines to filter out the lines I don't care. However, I was able to
> >> figure out how to copy only the text being displayed. Any suggestions
> >> are welcome.
>
> >> Thanks.
>
> >> Jason Zhang
>
> > One thing I've done in the past was to use C-M-! and run a grep command
> > which will give me the lines I want (and not too much cruft). Then you
> > get a temporary buffer, with which you can't accidentally blat your log
> > file by saving (so you needn't be scared of deleting lots more stuff) and
> > which is hopefully small enough the Emacs won't get upset about buffer
> > size.
>
> I think you meant `M-!'. Have you tried `M-x occur'?
>
> > If it's a regular job, I suspect one could write a short elisp function
> > to get the relevant bits in this way, and maybe rename the buffer to
> > something more informative than the standard thing with ** in it.
>
> > Rupert
>
> --
> Kevin Rodgers
> Denver, Colorado, USA
M-x occur works great. Thanks.
Jason.
next prev parent reply other threads:[~2008-02-26 19:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-22 0:46 copy visible text with some lines hidden with hide-lines jdzhang
2008-02-24 11:39 ` Mathias Dahl
2008-02-24 12:05 ` Rupert Swarbrick
2008-02-26 4:22 ` Kevin Rodgers
[not found] ` <mailman.7946.1203999732.18990.help-gnu-emacs@gnu.org>
2008-02-26 19:54 ` jdzhang [this message]
2008-02-27 0:05 ` Rupert Swarbrick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=98acf58b-ef8d-43e5-b63c-7da2518ab810@s19g2000prg.googlegroups.com \
--to=jdzhang@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).