From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Protecting comment lines from fill-paragraph Date: Fri, 8 May 2009 09:26:07 +0200 Message-ID: <2743709A-25A4-4D9F-9101-2F20616E8722@gmail.com> References: <87ocumm3cg.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2LHR-0005lp-Mx for emacs-orgmode@gnu.org; Fri, 08 May 2009 04:18:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2LHL-0005gf-To for emacs-orgmode@gnu.org; Fri, 08 May 2009 04:18:04 -0400 Received: from [199.232.76.173] (port=48129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2LHL-0005gb-JP for emacs-orgmode@gnu.org; Fri, 08 May 2009 04:17:59 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:50070) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M2LHL-00089m-3s for emacs-orgmode@gnu.org; Fri, 08 May 2009 04:17:59 -0400 Received: by mail-ew0-f162.google.com with SMTP id 6so1759070ewy.42 for ; Fri, 08 May 2009 01:17:58 -0700 (PDT) In-Reply-To: <87ocumm3cg.fsf@fastmail.fm> 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: Matthew Lundin Cc: Org Mode Mailing List I don't know how to fix this, unfortunately. - Carsten On Apr 24, 2009, at 6:19 PM, Matthew Lundin wrote: > Hi Carsten, > > Thanks to the addition your wonderful org-footnote, I increasingly use > org-mode for all my writing. And just as I do in LaTeX, I like to use > comment lines to insert notes in my text. I have a couple of > questions, > however, about the behavior of comment lines in relation to > fill-paragraph. > > I find that if I add a comment such as the following... > > --8<---------------cut here---------------start------------->8--- > Here is some text. > # Here is a comment > Here is some text. > --8<---------------cut here---------------end--------------->8--- > > When I invoke fill-paragraph on lines two or three, line three is > folded > into the comment line, as follows: > > --8<---------------cut here---------------start------------->8--- > Here is some text. > # Here is a comment Here is some text. > --8<---------------cut here---------------end--------------->8--- > > But when I invoke fill paragraph on line one, the text stays as it is. > In other words, the comment symbol blocks filling into the preceding > line, but not the line that follows it. > > The same behavior affects other comment blocks. E.g., > > --8<---------------cut here---------------start------------->8--- > #+begin_quote > Here is a quote. > #+end_quote > --8<---------------cut here---------------end--------------->8--- > > becomes... > > --8<---------------cut here---------------start------------->8--- > #+begin_quote Here is a quote. > #+end_quote > --8<---------------cut here---------------end--------------->8--- > > In short, would it be possible to prevent lines that follow comment > lines from being folded into comment lines when fill-paragraph is > invoked. The reason I ask is because I like to place comments in > paragraphs while retaining the integrity of the paragraph for export. > > Thanks in advance for considering this. > Matt > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode