unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: copy visible text with some lines hidden with hide-lines
Date: Mon, 25 Feb 2008 21:22:14 -0700	[thread overview]
Message-ID: <fq0450$vge$2@ger.gmane.org> (raw)
In-Reply-To: <Q8-dnbjOHZHhwFzanZ2dnUVZ_jKdnZ2d@giganews.com>

Rupert Swarbrick wrote:
> On Thu, 21 Feb 2008 16:46:20 -0800, jdzhang wrote:
> 
>> 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





  reply	other threads:[~2008-02-26  4:22 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 [this message]
     [not found]   ` <mailman.7946.1203999732.18990.help-gnu-emacs@gnu.org>
2008-02-26 19:54     ` jdzhang
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='fq0450$vge$2@ger.gmane.org' \
    --to=kevin.d.rodgers@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).