From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Subject: Re: #+CATEGORY line being archived Date: Sun, 18 Mar 2007 20:16:36 +0000 Message-ID: References: <87fy82v8hf.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HT1q7-0000aZ-Il for emacs-orgmode@gnu.org; Sun, 18 Mar 2007 16:18:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HT1q5-0000XO-QU for emacs-orgmode@gnu.org; Sun, 18 Mar 2007 16:18:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HT1q5-0000XL-KX for emacs-orgmode@gnu.org; Sun, 18 Mar 2007 15:18:49 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HT1oh-0003xG-TE for emacs-orgmode@gnu.org; Sun, 18 Mar 2007 16:17:24 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HT1oN-0007qv-K3 for emacs-orgmode@gnu.org; Sun, 18 Mar 2007 21:17:03 +0100 Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Mar 2007 21:17:03 +0100 Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Mar 2007 21:17:03 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 2007-03-18, Carsten Dominik said: > On Mar 18, 2007, at 17:09, Bastien wrote: > >> Leo writes: >> >>> I found that if I do 'C-c C-x C-s' on headline "Done Task", all text >>> up to the next headline "CR" is archived. This clearly is not the >>> right behavior. Am I doing something wrong or is this a bug? >> >> I had this problem before and I'm now using #+ARCHIVE like this: >> >> ,---- >> | * Head1 >> | * Done Task >> | >> | * CR >> | #+CATEGORY: CR >> | #+ARCHIVE: %s_archive::* CR >> | * anything >> `---- >> > > This is a fundamental problem, for which there are only work-arounds, > no solutions. Because of the structure of an outline, there is no such > thing as a "location between sections". So just like Bastien describes, > I also use work-arounds for this. Two come to mind. > > 1. Bastiens proposal, i.e. placing the parameter lines after the > top-level > heading. This works as long as the top-level heading itself is never > pointed to by an agenda entry (the category would be wrong) and as > long as > you neve atempt to archive the top-level heading itself. > > 2. If (1) is not good enough, the only way I see is to insert a > "parameter section", like this: > > > ,---- > | * Head1 > | * Done Task > | > | * Params for the next file section > | #+CATEGORY: CR > | #+ARCHIVE: %s_archive::* CR > | > | * CR > | * anything > `---- > > You could add an ARCHIVE tag to the parameter section, to keep it from > opening. > > - Carsten Thanks, Carsten. Bastien's seems simpler. -- Leo (GPG Key: 9283AA3F)