emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Matt Price <matt.price@utoronto.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: org-indent-mode and visual-line-mode
Date: Fri, 20 Nov 2009 08:28:11 +0100	[thread overview]
Message-ID: <D743F82A-306C-42E6-AA0B-A3AB2669A766@gmail.com> (raw)
In-Reply-To: <1258683126.10710.29.camel@gont>


On Nov 20, 2009, at 3:12 AM, Matt Price wrote:

> On Fri, 2009-11-20 at 09:33 +1100, Ben Finney wrote:
>> Matt Price <matt.price@utoronto.ca> writes:
>>
>>> Visual-line-mode is a replacement for longlines-mode; it soft-wraps
>>> text at the screen boundary, and does a much better job than
>>> longlines-mode did.
>>
>> I think you're confused by a (helpful) conflation.
>>
>> The ‘visual-lines-mode’ is indeed a replacement for ‘longlines-mode’,
>> but its job is to cause editing commands to act on visual, rather  
>> than
>> logical lines.
>>
>> The wrapping behaviour you're describing is performed by ‘word- 
>> wrap’, a
>> buffer-local variable that cuases lines to be visually broken at word
>> boundaries.
>>
>> The ‘word-wrap’ variable is set by ‘visual-lines-mode’, which is why
>> you're seeing it happen. But ‘word-wrap’ is independent of this.
>>
> that's very helpful.  but see below...
>
>>> Is that what you needed? I'm not sure where the code for
>>> visual-line-mode lives -- there isn't a visual-line.el anywhere  
>>> that i
>>> can find on my system.
>>
>> Fortunately, ‘visual-line-mode’ appears to be a distraction from what
>> you're describing; Carsten only needs to learn about ‘word-wrap’.
>>
> would you expect then that i should see the same difficulty if I
> evaluate '(word-wrap 1) in a buffer using org-indent-mode?  Because  
> when
> I do that, the wrapping seems to occur as expected and, importantly,  
> the
> indentation level is preserved too.  So to my extremely unpracticed  
> eye
> it seems that visual-lines-mode does something to the wrapping  
> behaviour
> that makes problems for org-mode.
>
> Does anyone else use visual-=line-mode with org?  I'm sort of  
> surprised
> no one would -- it seems a completely obvious choice to me and it  
> may be
> that I'm just missing something about optimum work flows or similar.

Hi Matt,

personally, I never use visual-line-mode, mainly because cursor motion  
becomes unpredictable to me (down doe not get me into the next line,  
so for example keyboard macros are much harder to make to consistently).

That said, I would expect that what you are describing should work,  
and my memory is also that it used to work - after all, I implemented  
not only line-prefix, but also wrap-prefix in org-indent-mode.  I am  
quite sure that this used to work.

I am not sure how to proceed.  Someone would have to bisect Emacs to  
find which commit changed this behavior.   Or maybe at lease someone  
can try with a vanilla 23.1 Emacs? If it works there, we might have  
enough to file a bug report.

- Carsten

- Carsten


>
> Anyway, thanks again,
> 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

- Carsten

  parent reply	other threads:[~2009-11-20  8:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18 20:07 org-indent-mode and visual-line-mode Matt Price
2009-11-19 13:17 ` Carsten Dominik
2009-11-19 15:20   ` Matt Price
2009-11-19 22:33     ` Ben Finney
2009-11-20  2:12       ` Matt Price
2009-11-20  2:17         ` Ben Finney
2009-11-20  7:28         ` Carsten Dominik [this message]
2009-11-20 13:03           ` Matt Price
2009-11-20 13:21             ` Carsten Dominik
2009-11-20 13:54             ` Carsten Dominik
2009-11-20 15:10               ` Matt Price

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D743F82A-306C-42E6-AA0B-A3AB2669A766@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=matt.price@utoronto.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).