unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to read, in pieces, across a very wide line, eg 432 chars?
@ 2013-10-03  8:33 David Combs
  2013-10-03  9:33 ` Damien Wyart
  2013-10-03 15:56 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: David Combs @ 2013-10-03  8:33 UTC (permalink / raw)
  To: help-gnu-emacs

Easy enough to read the left end, or the right end, but the
stuff in between is just about impossible to see.

So, how to sort of "tab" your way across it?  (Maybe
that's the answer: redefine tab to be 120 chars, and
indeed tab across.  But how to back up "two tabs"
to again see that already viewed part of the line?

One place you get these super-wide lines is when copying
and pasting a series of amazon reviews into an emacs
buffer.  Each paragraph in a review pastes (yanks) in
as one *WIDE* line.

And to save vertical space on the screen, you do NOT
want to M-q (fill) the thing.  

In fact, you might
have to successive paragraphs, each existing within an 
emacs buffer as a super-wide string, almost identical strings (obviously
a contrived situation), and you want to "tab across"
the WHOLE BUFFER, so you can look at corresponding
parts of two WIDE lines.


So, I'd like to march across the line, or sometimes the entire screen
of such lines, in maybe 80-wide pieces if in a
90-wide window (so each piece has some overlap at its start and end).

Ideas?

Thanks,

David



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to read, in pieces, across a very wide line, eg 432 chars?
  2013-10-03  8:33 How to read, in pieces, across a very wide line, eg 432 chars? David Combs
@ 2013-10-03  9:33 ` Damien Wyart
  2013-10-03 15:56 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Damien Wyart @ 2013-10-03  9:33 UTC (permalink / raw)
  To: help-gnu-emacs

* dkcombs@panix.com (David Combs) in gnu.emacs.help:
> So, I'd like to march across the line, or sometimes the entire screen
> of such lines, in maybe 80-wide pieces if in a 90-wide window (so each
> piece has some overlap at its start and end).

You might define in elisp a few simple commands going by several chars
or words at once (using forward-char, forward-word and so on), but maybe
a simpler solution is to use the (relatively) recent additions of Emacs
to simplify working with long lines: long line mode and visual line
mode.

More details here:
http://www.emacswiki.org/emacs/LongLines
http://www.emacswiki.org/emacs/VisualLineMode
http://www.emacswiki.org/emacs/LineWrap

-- 
DW


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to read, in pieces, across a very wide line, eg 432 chars?
  2013-10-03  8:33 How to read, in pieces, across a very wide line, eg 432 chars? David Combs
  2013-10-03  9:33 ` Damien Wyart
@ 2013-10-03 15:56 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2013-10-03 15:56 UTC (permalink / raw)
  To: help-gnu-emacs

> From: dkcombs@panix.com (David Combs)
> Date: 3 Oct 2013 04:33:38 -0400
> 
> Easy enough to read the left end, or the right end, but the
> stuff in between is just about impossible to see.

Are you talking about the situation when truncate-lines is non-nil?
If not, then what is the problem to read the whole line?

If this is for truncate-lines non-nil, then just move across the line
with cursor motion commands: once you get too close to the right
margin, Emacs will scroll the line horizontally to bring the next
portion into view.

> One place you get these super-wide lines is when copying
> and pasting a series of amazon reviews into an emacs
> buffer.  Each paragraph in a review pastes (yanks) in
> as one *WIDE* line.
> 
> And to save vertical space on the screen, you do NOT
> want to M-q (fill) the thing.  

What about "M-x visual-line-mode RET"?  Does it do what you want?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-03 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-03  8:33 How to read, in pieces, across a very wide line, eg 432 chars? David Combs
2013-10-03  9:33 ` Damien Wyart
2013-10-03 15:56 ` Eli Zaretskii

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).