unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Geoff Jacobsen <geoffjacobsen@gmail.com>
To: 11167@debbugs.gnu.org
Subject: bug#11167: trunk; term.el inserts newline when erasing-to-eol [PATCH]
Date: Wed, 4 Apr 2012 18:06:15 +1200	[thread overview]
Message-ID: <CADU7wBCS1nb5tmvarCa5hmX8i0Xy-kggjUJcD41rvesheomZQw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 704 bytes --]

When term.el receives a "^[[K" erase-end-of-line the term-erase-in-line
function inserts a new line.
When variable term-scroll-show-maximum-output is set to t this can result
in a blank line at the bottom of the buffer.

This breaks programs such as less which won't display the top line.

I can't see the purpose for the new-line. The following patch removes it.


=== modified file 'lisp/term.el'
--- lisp/term.el 2012-01-26 02:32:56 +0000
+++ lisp/term.el 2012-04-04 05:26:53 +0000
@@ -3751,7 +3751,6 @@
       ;; extra space when wrapped is false.
       (when wrapped
  (insert ? ))
-      (insert ?\n)
       (put-text-property saved-point (point) 'face 'default)
       (goto-char saved-point))))

[-- Attachment #2: Type: text/html, Size: 1163 bytes --]

             reply	other threads:[~2012-04-04  6:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-04  6:06 Geoff Jacobsen [this message]
2012-11-30  7:48 ` bug#11167: trunk; term.el inserts newline when erasing-to-eol [PATCH] Chong Yidong
2012-12-05 23:36   ` Geoff Jacobsen

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=CADU7wBCS1nb5tmvarCa5hmX8i0Xy-kggjUJcD41rvesheomZQw@mail.gmail.com \
    --to=geoffjacobsen@gmail.com \
    --cc=11167@debbugs.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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