all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
To: Leo <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: longlines-mode and visual-line-mode
Date: Sun, 31 May 2009 19:17:17 +0200	[thread overview]
Message-ID: <7b501d5c0905311017o2a2394bblbd4c2ea424979308@mail.gmail.com> (raw)
In-Reply-To: <xbai4ov1qjt5.fsf@cam.ac.uk>

2009/5/31 Leo <sdl.web@gmail.com>:
> On 2009-05-31 17:26 +0100, Deniz Dogan wrote:
>> 2009/5/31 Leo <sdl.web@gmail.com>:
>>> Hi there,
>>>
>>> After briefly trying these two modes, I haven't found any significant
>>
>>> difference between them. It looks like longlines has all the features
>>> for visual-line-mode. Is my impression correct? Thank you.
>>>
>>
>> This is not the case, as I understand it.  For an example, fill a
>> buffer with a very long line in longlines-mode and resize the window.
>> Then turn it off and switch to visual-line-mode and resize the window.
>>  Notice the difference!  visual-line-mode turns on word-wrap (a
>> variable) which is what gives this differente behaviour.
>>
>> IIRC, longlines-mode is/was a hack which was introduced due to the
>> lack of something like word-wrap in earlier versions of Emacs.
>
> After (setq longlines-wrap-follows-window-size 10), I haven't noticed
> any difference.
>
> Could you elaborate the different you were referring to? Thanks.
>
> Leo
>

I think Miles explained it pretty well...  longlines-mode does roughly
the same thing by actually modifying the buffer contents.  It's rare
to actually see this break anything, but I've experienced myself when
blogging from Emacs using, among other things, Muse.  longlines-mode
is simply the wrong thing to use now that we have real word-wrapping
with visual-line-mode and word-wrap.

-- 
Deniz Dogan




  reply	other threads:[~2009-05-31 17:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-31 16:05 longlines-mode and visual-line-mode Leo
2009-05-31 16:26 ` Deniz Dogan
2009-05-31 17:03   ` Miles Bader
2009-05-31 17:11   ` Leo
2009-05-31 17:17     ` Deniz Dogan [this message]
2009-05-31 17:21     ` David Reitter
2009-05-31 17:55       ` Leo
2009-05-31 21:21         ` Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2009-06-01  0:53 MON KEY
2009-06-01  2:27 ` Leo
2009-06-01 14:08   ` Stefan Monnier
2009-06-01  5:14 MON KEY
2009-06-01  9:55 ` tomas
2009-06-01 10:01   ` Lennart Borgman
2009-06-01 13:27 ` Leo
2009-06-03  3:09 MON KEY

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

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

  git send-email \
    --in-reply-to=7b501d5c0905311017o2a2394bblbd4c2ea424979308@mail.gmail.com \
    --to=deniz.a.m.dogan@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.