unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: <brianjiang@gdnt.com.cn>
To: <help-gnu-emacs@gnu.org>
Subject: RE: Why doesn't Emacs have a horizontal scroll bar?
Date: Wed, 4 Jul 2007 09:56:48 +0800	[thread overview]
Message-ID: <63F95800EDD046419F17688AAFD41CCF01A9138B@rnd-ex01.rnd.gdnt.local> (raw)
In-Reply-To: <87y7hxiii1.fsf@gmail.com>

Thanks Amy! longlines-mode is exactly what I need. And I configure 'longlines-wrap-follows-window-size' to 't'.

"In Long Lines mode, long lines are wrapped if they extend beyond
`fill-column'.  The soft newlines used for line wrapping will not
show up when the text is yanked or saved to disk."

Regards,
Brian

-----Original Message-----
From: help-gnu-emacs-bounces+brianjiang=gdnt.com.cn@gnu.org [mailto:help-gnu-emacs-bounces+brianjiang=gdnt.com.cn@gnu.org] On Behalf Of Amy Templeton
Sent: 2007年7月4日 0:01
To: help-gnu-emacs@gnu.org
Subject: Re: Why doesn't Emacs have a horizontal scroll bar?

<brianjiang@gdnt.com.cn> wrote:
> Also, I think "Truncate long lines in this buffer" is good enough too. 
> It is not "word wrap". It truncate the words at any position (e.g., 
> "words" can be truncate to "wo" in current line and "ords"
> in the next line.) It is really make the text difficult to read.
> Any solution for this? (auto-fill can wrap the text in a word basis, 
> but 1). It doesn't wrap the word based on the window width, 2). It 
> will modify the file while we don't want to change
> anything.)

There's a mode called longlines-mode you might like. You seem to be working with files that for some reason can't be wrapped, which in and of itself tends to make things difficult. What this mode does is to change the *appearance* of the buffer such that long lines are wrapped at the fill-column, but in actuality it takes an actual newline (<RET>) to finish a line when the actual file is saved. I'd suggest checking it out (M-x longlines-mode <RET>).

Amy

--
You can learn many things from children.  How much patience you have, for instance.
                -- Franklin P. Jones


_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  reply	other threads:[~2007-07-04  1:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2963.1183391480.32220.help-gnu-emacs@gnu.org>
2007-07-02 19:36 ` Why doesn't Emacs have a horizontal scroll bar? Johan Bockgård
2007-07-03  7:36 ` Mathias Dahl
2007-07-03 12:52   ` brianjiang
2007-07-03 16:01     ` Amy Templeton
2007-07-04  1:56       ` brianjiang [this message]
2007-07-07 17:03 ` thorne
2007-07-02  9:41 Save on losing focus in Emacs Tassilo Horn
2007-07-02 15:01 ` Why doesn't Emacs have a horizontal scroll bar? brianjiang
2007-07-02 15:58   ` Peter Dyballa
2007-07-02 16:25     ` Lennart Borgman (gmail)
2007-07-02 17:53       ` Peter Dyballa
     [not found]     ` <mailman.2967.1183393563.32220.help-gnu-emacs@gnu.org>
2007-07-02 16:49       ` Pascal Bourguignon
2007-07-03 20:51         ` Dieter Wilhelm
     [not found]         ` <mailman.3029.1183495887.32220.help-gnu-emacs@gnu.org>
2007-07-03 22:16           ` David Kastrup
2007-07-03 22:45             ` David Kastrup
2007-07-04  5:58             ` Dieter Wilhelm
     [not found]             ` <mailman.3044.1183528715.32220.help-gnu-emacs@gnu.org>
2007-07-04 17:16               ` David Kastrup
2007-07-05  6:37         ` Andreas Röhler
2007-07-05  7:11         ` Gordon Beaton
2007-07-05  7:56           ` Peter Dyballa

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=63F95800EDD046419F17688AAFD41CCF01A9138B@rnd-ex01.rnd.gdnt.local \
    --to=brianjiang@gdnt.com.cn \
    --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).