* does emacs wrap lines that are exactly 80 characters long??
@ 2003-10-29 19:30 Christian Seberino
2003-10-29 20:02 ` Barry Margolin
0 siblings, 1 reply; 5+ messages in thread
From: Christian Seberino @ 2003-10-29 19:30 UTC (permalink / raw)
I don't know what this means but Python style guide says to set Emacs to 79
character long lines....
There are still many devices around that are limited to 80
character lines; plus, limiting windows to 80 characters makes it
possible to have several windows side-by-side. The default
wrapping on such devices looks ugly. Therefore, please limit all
lines to a maximum of 79 characters (Emacs wraps lines that are
exactly 80 characters long). For flowing long blocks of text
(docstrings or comments), limiting the length to 72 characters is
recommended.
I don't seem to have a problem with 80 char long lines. Maybe I'm missing something
here??
Chris
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: does emacs wrap lines that are exactly 80 characters long??
2003-10-29 19:30 does emacs wrap lines that are exactly 80 characters long?? Christian Seberino
@ 2003-10-29 20:02 ` Barry Margolin
2003-10-30 1:51 ` Christian Seberino
0 siblings, 1 reply; 5+ messages in thread
From: Barry Margolin @ 2003-10-29 20:02 UTC (permalink / raw)
In article <bf23f78f.0310291130.16f9c787@posting.google.com>,
Christian Seberino <seberino@spawar.navy.mil> wrote:
>I don't know what this means but Python style guide says to set Emacs to 79
>character long lines....
>
> There are still many devices around that are limited to 80
> character lines; plus, limiting windows to 80 characters makes it
> possible to have several windows side-by-side. The default
> wrapping on such devices looks ugly. Therefore, please limit all
> lines to a maximum of 79 characters (Emacs wraps lines that are
> exactly 80 characters long). For flowing long blocks of text
> (docstrings or comments), limiting the length to 72 characters is
> recommended.
>
>I don't seem to have a problem with 80 char long lines. Maybe I'm
>missing something
>here??
What size is your window? The comment is probably referring to Emacs being
used on a traditional 24x80 terminal. With a window system, you can change
the window size, and the wrapping will be appropriate to that size.
Also, prior to Emacs 21, Emacs wasted a column for the "\" character that's
used to indicate that a line has wrapped (Emacs 21 replaced this with a
marker closer to the window border). So a line that's exactly the window's
width would be wrapped -- the first n-1 characters would be on the line,
then there would be a "\", and then the next line would contain the nth
character.
--
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: does emacs wrap lines that are exactly 80 characters long??
2003-10-29 20:02 ` Barry Margolin
@ 2003-10-30 1:51 ` Christian Seberino
2003-10-30 17:02 ` Stefan Monnier
2003-10-30 17:33 ` Arthur Davis
0 siblings, 2 replies; 5+ messages in thread
From: Christian Seberino @ 2003-10-30 1:51 UTC (permalink / raw)
So if I understand you correctly, 80 char long lines WERE a problem
in 80 char long windows PRIOR TO VERSION 21 because of the slash at the end??
But, in current version of Emacs and beyond this is not a problem
anymore and I don't need to have <= 79 char wide l lines??
Chris
Barry Margolin <barry.margolin@level3.com> wrote in message news:<f1Vnb.292$lK3.9@news.level3.com>...
> In article <bf23f78f.0310291130.16f9c787@posting.google.com>,
> Christian Seberino <seberino@spawar.navy.mil> wrote:
> >I don't know what this means but Python style guide says to set Emacs to 79
> >character long lines....
> >
> > There are still many devices around that are limited to 80
> > character lines; plus, limiting windows to 80 characters makes it
> > possible to have several windows side-by-side. The default
> > wrapping on such devices looks ugly. Therefore, please limit all
> > lines to a maximum of 79 characters (Emacs wraps lines that are
> > exactly 80 characters long). For flowing long blocks of text
> > (docstrings or comments), limiting the length to 72 characters is
> > recommended.
> >
> >I don't seem to have a problem with 80 char long lines. Maybe I'm
> >missing something
> >here??
>
> What size is your window? The comment is probably referring to Emacs being
> used on a traditional 24x80 terminal. With a window system, you can change
> the window size, and the wrapping will be appropriate to that size.
>
> Also, prior to Emacs 21, Emacs wasted a column for the "\" character that's
> used to indicate that a line has wrapped (Emacs 21 replaced this with a
> marker closer to the window border). So a line that's exactly the window's
> width would be wrapped -- the first n-1 characters would be on the line,
> then there would be a "\", and then the next line would contain the nth
> character.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: does emacs wrap lines that are exactly 80 characters long??
2003-10-30 1:51 ` Christian Seberino
@ 2003-10-30 17:02 ` Stefan Monnier
2003-10-30 17:33 ` Arthur Davis
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2003-10-30 17:02 UTC (permalink / raw)
> So if I understand you correctly, 80 char long lines WERE a problem in 80
> char long windows PRIOR TO VERSION 21 because of the slash at the end??
Actually, it's still the same problem, just slightly different. With an 80
char line, all 80 chars are displayed on the same line, but the line is
wrapped nevertheless (you'll see the little curled arrows on both sides of
the line and the next line is use to display "the rest" which in this case
is empty).
The reason for this empty line is basically just in order to have a place to
put the cursor when it's at the end of the line. Hopefully some day someone
will come forward to write the code necessary to fix that (by displaying the
cursor in the fringe, for example).
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: does emacs wrap lines that are exactly 80 characters long??
2003-10-30 1:51 ` Christian Seberino
2003-10-30 17:02 ` Stefan Monnier
@ 2003-10-30 17:33 ` Arthur Davis
1 sibling, 0 replies; 5+ messages in thread
From: Arthur Davis @ 2003-10-30 17:33 UTC (permalink / raw)
Cc: help-gnu-emacs
Even though the extra column exists to give the long line wrap
indication (which is an improvement, I agree), emacs still displays an
additional, blank line below the 80 char line. This has always been
an irritation to me that I have just learned to ignore. However, is
there something that I can set to cause emacs to not display a new
line until it actually contains characters from a line wrap? Showing
the cursor on the first column of the new line is fine, but if I
pressed return at the end of an 80 character line, I would want the
cursor to stay put.
But regarding the quote from the original post referring to long lines
in program code, I couldn't agree more. It makes code *very*
unreadable when lines wrap 4 and 5 (or more) times in the window. A
few characters wrapped to the next line are occasionally tolerable,
but I still feel that there is rarely a time when you are unable to
keep lines within the 80 character limit, assuming you don't use
8-character tab widths.
Arthur
Christian Seberino writes:
> So if I understand you correctly, 80 char long lines WERE a problem
> in 80 char long windows PRIOR TO VERSION 21 because of the slash at the end??
>
> But, in current version of Emacs and beyond this is not a problem
> anymore and I don't need to have <= 79 char wide l lines??
>
> Chris
>
> Barry Margolin <barry.margolin@level3.com> wrote in message news:<f1Vnb.292$lK3.9@news.level3.com>...
> > In article <bf23f78f.0310291130.16f9c787@posting.google.com>,
> > Christian Seberino <seberino@spawar.navy.mil> wrote:
> > >I don't know what this means but Python style guide says to set Emacs to 79
> > >character long lines....
> > >
> > > There are still many devices around that are limited to 80
> > > character lines; plus, limiting windows to 80 characters makes it
> > > possible to have several windows side-by-side. The default
> > > wrapping on such devices looks ugly. Therefore, please limit all
> > > lines to a maximum of 79 characters (Emacs wraps lines that are
> > > exactly 80 characters long). For flowing long blocks of text
> > > (docstrings or comments), limiting the length to 72 characters is
> > > recommended.
> > >
> > >I don't seem to have a problem with 80 char long lines. Maybe I'm
> > >missing something
> > >here??
> >
> > What size is your window? The comment is probably referring to Emacs being
> > used on a traditional 24x80 terminal. With a window system, you can change
> > the window size, and the wrapping will be appropriate to that size.
> >
> > Also, prior to Emacs 21, Emacs wasted a column for the "\" character that's
> > used to indicate that a line has wrapped (Emacs 21 replaced this with a
> > marker closer to the window border). So a line that's exactly the window's
> > width would be wrapped -- the first n-1 characters would be on the line,
> > then there would be a "\", and then the next line would contain the nth
> > character.
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-10-30 17:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-29 19:30 does emacs wrap lines that are exactly 80 characters long?? Christian Seberino
2003-10-29 20:02 ` Barry Margolin
2003-10-30 1:51 ` Christian Seberino
2003-10-30 17:02 ` Stefan Monnier
2003-10-30 17:33 ` Arthur Davis
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).