From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Smart(er) word wrapping with org-mode and visual-line-mode Date: Fri, 15 Jan 2010 08:25:13 +0100 Message-ID: <9965043F-EE8D-47A7-B5C5-E3500AC305C7@gmail.com> References: <4B44AB80.5070304@os.inf.tu-dresden.de> <57BC09A2-08C5-43B0-B255-E33EA8ABE4AE@gmail.com> <4B4A25E3.4020401@os.inf.tu-dresden.de> Mime-Version: 1.0 (Apple Message framework v936) 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 1NVh27-0007yN-4D for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVh22-0007wt-2w for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:50 -0500 Received: from [199.232.76.173] (port=39492 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVh20-0007wh-4P for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:44 -0500 Received: from mx20.gnu.org ([199.232.41.8]:3033) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVh1z-0005QK-Dd for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:43 -0500 Received: from mail-ew0-f209.google.com ([209.85.219.209]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVh1y-0002J2-K0 for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 02:55:42 -0500 Received: by mail-ew0-f209.google.com with SMTP id 1so410145ewy.8 for ; Thu, 14 Jan 2010 23:55:42 -0800 (PST) In-Reply-To: <4B4A25E3.4020401@os.inf.tu-dresden.de> 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: Martin Pohlack Cc: emacs-orgmode@gnu.org On Jan 10, 2010, at 8:09 PM, Martin Pohlack wrote: > Hi Carsten and Matthew, > > On 08.01.2010 18:24, Carsten Dominik wrote: >> On Jan 6, 2010, at 4:25 PM, Martin Pohlack wrote: >>> I just tried this out (only for headlines up to now) and it seems to >>> work great. >>> >>> Are there any plans to integrate something like this into upstream? >>> Especially the wrapping of headlines would enable extensive tag >>> usage. >> >> I have been thinking about that, but not arrived at a conclusion. >> One >> thing is the interaction with org-indent-mode. That mode already >> does >> the wrapping for headlines correctly by adding `wrap-prefix', and it >> will look really good if you set the variable word-wrap to t. > > Ah, I wasn't aware of that. I think the documentation to org-indent > doesn't mention wrapping (14.6 A cleaner outline view). How about > something like this: > > org-indent-mode also sets the wrap-prefix property, such that > visual-line-mode (or purely setting word-wrap) wraps long lines > (including headlines) correctly indented. I have added this, thank you very much for not only asking for improvement but actually formulating the sentence and pointing out where it should go. > [...]'m using Matthew's module right now for two reasons. > > * I had some trouble configuring org-indent-mode to only handle > line-wrapping for headlines, i.e., it shall only set wrap-prefix and > do nothing else. It always wanted to indent my headlines and body > texts additionally. Is this possible? Not yet. One way would be to make setting org-indent-indentation-per- level to 0, but that currently does not work. > > * Also, emacs segfaulted deterministically after globally collapsing > all trees with org-indent-mode active. I have to look into this ... > > Cheers, > Martin - Carsten