unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Ivan Andrus <darthandrus@gmail.com>, 11759@debbugs.gnu.org
Subject: bug#11759: 24.1.50; word-wrap should wrap on non-words if the current word is too long
Date: Sat, 23 Jun 2012 19:14:12 +0800	[thread overview]
Message-ID: <87vcii701n.fsf@gnu.org> (raw)
In-Reply-To: <jwvbokck379.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 21 Jun 2012 13:09:32 -0400")

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> if the entire line is one "word" but indented, which is not uncommon
>> in some files that I regularly edit, then the entire line is wrapped
>> to the next line leaving a completely blank visual line.
>
> I also use word-wrap everywhere, including programming modes and see the
> same problem.
>
> - if the word is the first non-blank char on the line, wrapping to the
>   next line results in a visually empty line, losing the
>   indentation info.
> - if the word is wider than the window (plus the wrap-prefix), then even
>   after word-wrapping it to the next line, it gets char-wrapped anyway,
>   so we didn't win anything.

FWIW, word wrap behaves the same way in other editors (checked with
gedit and with a text box in Firefox).





  reply	other threads:[~2012-06-23 11:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21 16:27 bug#11759: 24.1.50; word-wrap should wrap on non-words if the current word is too long Ivan Andrus
2012-06-21 17:09 ` Stefan Monnier
2012-06-23 11:14   ` Chong Yidong [this message]
2012-06-23 11:27     ` Lennart Borgman
2012-06-23 12:48       ` Eli Zaretskii
2012-06-23 13:06         ` Lennart Borgman
2012-06-23 15:15     ` 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

  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=87vcii701n.fsf@gnu.org \
    --to=cyd@gnu.org \
    --cc=11759@debbugs.gnu.org \
    --cc=darthandrus@gmail.com \
    --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).