bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12017: term-mode: allow reflowable text


From: Michael Hoffman
Subject: bug#12017: term-mode: allow reflowable text
Date: Fri, 20 Jul 2012 15:14:04 -0700
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:11.0) Gecko/20120312 Thunderbird/11.0

In term-mode, when the terminal process supplies more text than can fit on a line, term-emulate-terminal puts text into the buffer up to the current number of columns, inserts a hard newline, and starts again on the next line.

The included patch modifies term-emulate-terminal to just keep putting text into the buffer without these hard breaks. This allows one to resize the window later and text produced in this way will reflow dynamically, which is very convenient for most programs I run, avoiding new awkward soft line breaks when the window becomes smaller later.

Previously described on emacs-devel:
http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00252.html

2012-07-20  Michael Hoffman  <mmh1@uw.edu>

        * term.el (term-suppress-hard-newline): New customizable
        variable.
        (term-emulate-terminal): Don't add hard newlines when
        term-suppress-hard-newline is non-nil.

Michael Hoffman

Attachment: term.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]