emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <matt.price@utoronto.ca>
To: emacs-orgmode@gnu.org
Subject: Re: Re: org-indent-mode and visual-line-mode
Date: Thu, 19 Nov 2009 21:12:06 -0500	[thread overview]
Message-ID: <1258683126.10710.29.camel@gont> (raw)
In-Reply-To: <87zl6ign67.fsf@benfinney.id.au>


[-- Attachment #1.1: Type: text/plain, Size: 1853 bytes --]

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.  

Anyway, thanks again,
Matt


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  reply	other threads:[~2009-11-20  2:12 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 [this message]
2009-11-20  2:17         ` Ben Finney
2009-11-20  7:28         ` Carsten Dominik
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=1258683126.10710.29.camel@gont \
    --to=matt.price@utoronto.ca \
    --cc=emacs-orgmode@gnu.org \
    /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).