From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Copy/Search Outline Date: Tue, 26 Jul 2011 08:35:19 +0200 Message-ID: <4E2E6027.5070906@christianmoe.com> References: <87d3h2xe2t.fsf@sophokles.streitblatt.de> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlbBn-0008Mu-Ma for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 02:32:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlbBm-0007pT-T1 for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 02:32:23 -0400 Received: from mars.hitrost.net ([91.185.211.18]:32768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlbBm-0007l6-N3 for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 02:32:22 -0400 In-Reply-To: <87d3h2xe2t.fsf@sophokles.streitblatt.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Florian Beck Cc: emacs-orgmode@gnu.org On 7/22/11 10:20 PM, Florian Beck wrote: > Hi all, > > when working with outlines (tabbing until CONTENTS), there are two > things I cannot figure out: > > Firstly, I want to copy the *visible* text (minus the …, but never mind > that); C-c C-e v [SPACE] C-x h M-w C-x k In other words: Begin exporting only the visible part with `C-c C-e v', then press space at the prompt for output formats. This leaves you in a second buffer with a copy of the visible part (and yes, you do get rid of the ellipses). Then select all with `C-c h' (alternately, select the region of your choice) and copy. Kill the copy buffer when you're done with it. You may want to record a keyboard macro if you need this often. > secondly, I want to be able to search only the visible text. You can do that, albeit only in a copy of your document in a separate buffer, with the approach above. But why would you want to? Perhaps if you state a use case, someone can point out a different approach. > More generally (and less org specific), how do I restrict commands to > the visible parts of the buffer? I don't know. Yours, Christian