unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11167: trunk; term.el inserts newline when erasing-to-eol [PATCH]
@ 2012-04-04  6:06 Geoff Jacobsen
  2012-11-30  7:48 ` Chong Yidong
  0 siblings, 1 reply; 3+ messages in thread
From: Geoff Jacobsen @ 2012-04-04  6:06 UTC (permalink / raw)
  To: 11167

[-- 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 --]

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

end of thread, other threads:[~2012-12-05 23:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-04  6:06 bug#11167: trunk; term.el inserts newline when erasing-to-eol [PATCH] Geoff Jacobsen
2012-11-30  7:48 ` Chong Yidong
2012-12-05 23:36   ` Geoff Jacobsen

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