unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: visual-line-mode and line wrapping
Date: Mon, 24 May 2010 20:18:46 +0100	[thread overview]
Message-ID: <xbaiwrutf6qx.fsf@cam.ac.uk> (raw)
In-Reply-To: <jwvocg5cij2.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 24 May 2010 13:34:32 -0400")

On 2010-05-24 18:34 +0100, Stefan Monnier wrote:
>> In the discussion of the trashbin feature, visual-line-mode came up.
>> It seems many of us would like it to be able to wrap lines at
>> a position other than the window edge.
>
> I still haven't heard any good argument for it, as compared to using
> wide fringes, wide margins, or by splitting windows.

There's clearly desire for it. Otherwise Lennart wouldn't have created
that wrap fill mode. Screens are getting wider so having lines of 200
chars is painful to read. Would be nice if 'visual-line-mode' gives user
an option to set a maximum width.

Using fringes or margins (now that I have tried it and I can imagine how
Lennart implement his mode) are all workarounds and they are not much
different than opening up a frame with the desired width but then it is
a waste of screen estate and it has impact on productivity.

> I do think it could make sense in one case: when you want the
> wrap-width to be larger than the window-width.  But AFAICT nobody has
> asked for that yet.
> 
> You can also split the window to set its width as desired. That will let
> you use the extra horizontal space for something useful.

This is also another workaround, something I have been doing myself for
quite a while now with this tiny function.

(defun adhoc-workspace-setup ()
  (interactive)
  (delete-other-windows (get-largest-window))
  (save-selected-window
    (split-window-horizontally (floor (* 0.6 (frame-parameter nil
  'width))))
    (switch-to-buffer-other-window nil t)))

The thing is very easy to lose the setup, C-x 1, switch buffer etc etc.
If I save the setup to a register it also restores the point, something
quite annoying when writing.

>         Stefan

Leo



  reply	other threads:[~2010-05-24 19:18 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-24 14:09 visual-line-mode and line wrapping Leo
2010-05-24 14:12 ` Lennart Borgman
2010-05-24 15:08   ` Leo
2010-05-24 15:29     ` Lennart Borgman
2010-05-24 16:42       ` Leo
2010-05-24 17:41         ` Lennart Borgman
2010-05-24 17:34 ` Stefan Monnier
2010-05-24 19:18   ` Leo [this message]
2010-05-24 19:31     ` Chong Yidong
2010-05-24 19:53       ` Leo
2010-05-24 20:33         ` Lennart Borgman
2010-05-24 19:58       ` Lennart Borgman
2010-05-24 20:27         ` Leo
2010-05-24 20:36           ` Lennart Borgman
2010-05-25  1:05         ` Johan Bockgård
2010-05-24 20:26     ` Stefan Monnier
2010-05-24 21:26       ` Lennart Borgman
2010-05-25 12:59         ` Sean Sieger
2010-05-25  5:10       ` Leo
2010-05-25  7:37   ` Miles Bader
2010-05-25 10:05     ` João Távora
2010-05-25 11:11       ` Lennart Borgman
2010-05-25 13:27         ` João Távora
2010-05-25 11:09     ` Lennart Borgman
2010-05-25 14:04     ` Stefan Monnier
2010-05-25 14:18       ` Lennart Borgman
2010-05-25 15:06         ` Drew Adams
2010-05-25 14:49       ` Drew Adams
2010-05-25 16:33       ` Leo
2010-05-25  8:36   ` Uday S Reddy
2010-05-25 11:48     ` Stephen J. Turnbull
2010-05-25 13:16       ` Uday S Reddy
2010-05-25 14:40         ` Drew Adams
2010-06-05  9:21     ` Uday S Reddy
2010-06-07 20:34       ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2010-05-25  2:52 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=xbaiwrutf6qx.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.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.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).