unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Arthur Davis <adavis@torrentnet.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: does emacs wrap lines that are exactly 80 characters long??
Date: Thu, 30 Oct 2003 12:33:51 -0500	[thread overview]
Message-ID: <16289.19327.722828.794893@red.torrentnet.com> (raw)
In-Reply-To: <bf23f78f.0310291751.397da8b7@posting.google.com>

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

      parent reply	other threads:[~2003-10-30 17:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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=16289.19327.722828.794893@red.torrentnet.com \
    --to=adavis@torrentnet.com \
    --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).