From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Links and visual-line-mode Date: Wed, 01 Jun 2011 22:49:14 -0400 Message-ID: <13614.1306982954@alphaville.dokosmarshall.org> References: <4DE6CC11.6050309@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRxyl-0006Ie-T5 for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 22:49:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRxyk-0000Pd-KW for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 22:49:47 -0400 Received: from vms173011pub.verizon.net ([206.46.173.11]:35247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRxyk-0000Ot-6W for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 22:49:46 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LM500MFN6I3US00@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 21:49:20 -0500 (CDT) In-reply-to: Message from Scott Randby of "Wed, 01 Jun 2011 19:32:33 EDT." <4DE6CC11.6050309@gmail.com> 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: Scott Randby Cc: nicholas.dokos@hp.com, "[Orgmode]" Scott Randby wrote: > This is a problem that has been bugging me for some time because I use > visual-line-mode a lot when I'm working on my org-mode files. > > Say I have visual-line-mode turned on when I'm editing an org-mode file. > If I do C-c C-l, put in the link address, hit , put in a > description, and hit , then the long lines in the document are no > longer wrapped even though "(Org Wrap)" still appears on the mode line. > The only way I've been able to get wrapping back is to do M-x > visual-line-mode twice (which is just leaving the mode and then bringing > it back. This is very inconvenient, especially when I want to enter > several links. Is this a bug or is there an easy way to remind Emacs > that it is in visual-line-mode and that it should wrap long lines? > > I have org-mode 7.5 on Emacs 23.2.1 > Cannot reproduce this either on emacs 23.1.1 or emacs 24.0.50 - the only versions I have available here. org-mode is from earlier today. The word-wrap documentation suggests some interaction with truncate-lines and truncate-partial-width-windows, so that might be a path of investigation. But when I try setting truncate-lines to t (which does truncate long lines even though "Wrap" is still on the mode line) and then do (visual-line-mode 1), the variable is set back to nil again. In any case, inserting links does not cause any other changes, no matter what I set the variable to. Nick