unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: PJ Weisberg <pj@irregularexpressions.net>
To: help-gnu-emacs <Help-gnu-emacs@gnu.org>
Subject: Re: Someting with Emacs visual-line-mode
Date: Tue, 14 Sep 2010 17:06:14 -0700	[thread overview]
Message-ID: <AANLkTimzv9p9zedg330kKhDJC1EcsdMSbdKU5-=i=N9x@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimo-wKzU6j=D2aqH4Bw6S=4Ju0shAgGkd6zBboZ@mail.gmail.com>

On Tue, Sep 14, 2010 at 2:16 AM, Lennart Borgman
<lennart.borgman@gmail.com> wrote:

> Does not this suggest that Chinese characters should be treated
> different than English characters?

I was actually just getting hung up on the difference between a bug
report and a feature request (since it does exactly what the
documentation says it does), but I guess report-emacs-bug can be used
for either of them.

As a quick work-around, you could add this to your .emacs file:
(add-hook 'visual-line-mode-hook
          (lambda()
            (if visual-line-mode
                (setq word-wrap nil))))

That will turn off word-wrap in visual line mode without losing the
rest of the visual-line stuff.  Text will then always wrap at the end
of the window rather than at the last space.  I know the exact request
was for it to wrap at the last space or Chinese character, but I'm
making the guess that Chinese text consists mostly of Chinese
characters and this is roughly equivalent. ;-)

I still think it would be wrong to wrap a line between Chinese
characters within English text like in the following example
paragraph.*  The writer/readers of that text would see the Chinese
string as a word and expect it to be treated as one.  So the really
correct thing to do would depend on whether the *document* was
Chinese, not whether the last character on the line was Chinese.

*"The guy at the tattoo parlor told me that 彝体草 meant 'Courage, Honor,
Strength'.  It turns out it's just meaningless nonsense that I'll have
written on my chest for the rest of my life."



      parent reply	other threads:[~2010-09-15  0:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-13  2:22 Someting with Emacs visual-line-mode fanq
2010-09-13 15:54 ` Tim Visher
2010-09-13 20:58 ` Lennart Borgman
2010-09-14  0:36   ` PJ Weisberg
2010-09-14  0:43     ` Lennart Borgman
2010-09-14  0:46       ` suvayu ali
2010-09-14  7:09         ` PJ Weisberg
2010-09-14  9:16           ` Lennart Borgman
2010-09-14 10:18             ` suvayu ali
2010-09-15  0:06             ` PJ Weisberg [this message]

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='AANLkTimzv9p9zedg330kKhDJC1EcsdMSbdKU5-=i=N9x@mail.gmail.com' \
    --to=pj@irregularexpressions.net \
    --cc=Help-gnu-emacs@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.
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).