all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Display-based word wrapping
Date: Mon, 23 Jun 2008 12:42:01 -0400	[thread overview]
Message-ID: <877icgqf1i.fsf@stupidchicken.com> (raw)
In-Reply-To: <87d4m8dhze.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 22 Jun 2008 22:04:37 -0400")

Chong Yidong <cyd@stupidchicken.com> writes:

> To the problem of how to treat truncate-partial-window-width once
> word-wrapping is available as a third option for long lines (the first
> two options being line truncation and simple line continuation).
>
> Instead of adding `word-wrap' as a new value for truncate-lines, let's
> say we add a new per-buffer variable, `word-wrap', which if non-nil
> says to wrap lines at word boundaries rather than the middle of words.
> This variable has no effect if lines are truncated instead of
> continued.  Then truncate-partial-window-width need not "care" about
> whether non-truncation means simple line continuation or word
> wrapping.
>
> Finally, by allowing truncate-partial-window-width to take integer
> values as you suggested, and then setting the default to a number such
> as 30, we can ensure that word wrapping can still take place for
> reasonably-sized partial-width windows.

So, any objections to this set of variables?

  word-wrap (default: nil)
  *Non-nil means to use word-wrapping for continuation lines.
  When word-wrapping is on, continuation lines are wrapped at the space
  or tab character nearest to the right window edge.
  If nil, continuation lines are wrapped at the right screen edge.

  This variable has no effect if long lines are truncated (see
  `truncate-lines' and `truncate-partial-width-windows').


  truncate-partial-width-windows (default: 35)
  Non-nil means truncate lines in windows with less than the frame width.
  For an integer value, truncate lines in each window with less than the
  full frame width, provided the window width is less than that integer;
  otherwise, respect the value of `truncate-lines'.

  For any other non-nil value, truncate lines in all windows with
  less than the full frame width.

  Nil means to respect the value of `truncate-lines'.


For now, I will not provide a way to change the column at which line
wrapping/continuation/truncation takes place, but I know how to do it
(it's a separate set of changes).




  reply	other threads:[~2008-06-23 16:42 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-22 19:54 Display-based word wrapping Chong Yidong
2008-06-22 20:04 ` Lennart Borgman (gmail)
2008-06-22 20:33   ` Chong Yidong
2008-06-22 20:54     ` Lennart Borgman (gmail)
2008-06-22 22:08     ` David Reitter
2008-06-22 22:24       ` Chong Yidong
2008-06-22 23:45         ` David Reitter
2008-06-23  0:32     ` Miles Bader
2008-06-22 20:12 ` David Kastrup
2008-06-22 22:02   ` Stefan Monnier
2008-06-22 23:40     ` Chong Yidong
2008-06-23  1:23       ` Stefan Monnier
2008-06-23  2:04         ` Chong Yidong
2008-06-23 16:42           ` Chong Yidong [this message]
2008-06-23 18:29           ` Stefan Monnier
2008-06-22 23:38   ` Chong Yidong
2008-06-23  0:25     ` Miles Bader
2008-06-23  0:22 ` Miles Bader
2008-06-23  1:27   ` Stefan Monnier
2008-06-23  1:51     ` Miles Bader
2008-06-23  2:03       ` Stefan Monnier
2008-06-23  2:40         ` Miles Bader
2008-06-23 18:24           ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2008-06-24 18:06 Chong Yidong
2008-06-24 18:52 ` Stefan Monnier
2008-06-24 19:54   ` Chong Yidong
2008-06-24 20:23     ` Stefan Monnier
2008-06-24 21:52       ` Chong Yidong
2008-06-25  1:41         ` Stefan Monnier
2008-06-25  1:46           ` Miles Bader
2008-06-25  3:45             ` Stefan Monnier
2008-06-25  2:04           ` Chong Yidong
2008-06-25  3:48             ` Stefan Monnier
2008-06-25 18:14               ` Chong Yidong
2008-06-25 18:58                 ` Stefan Monnier

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=877icgqf1i.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.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 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.