all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Few enhancements to ansi-term
@ 2019-04-30 17:21 John Shahid
  2019-04-30 17:23 ` John Shahid
  0 siblings, 1 reply; 4+ messages in thread
From: John Shahid @ 2019-04-30 17:21 UTC (permalink / raw)
  To: emacs-devel


This is a follow up to this thread [1] where I proposed some changes to
ansi-term to get rid of `term-suppress-hard-newline'.

In that thread Stefan proposed adding an assertion to ensure the code
only removes line-wrap newlines.  This assertion I think is useful but
turned out to be problematic for me.  I would accidentally insert a
character in the term buffer.  For example, I would sometimes type `p'
instead of `C-p' to go up a line, which ends up adding a `p' to the
buffer.  The inserted character would inherit the text property and
generate assertion error when I resize the terminal window.  I attached
a patch to make the line-wrap newlines have the `rear-nonsticky' to
prevent it from extending to nearby characters.

The other issue I ran into is having `term-scroll-with-delete' randomly
getting set to `t'.  This causes the terminal to truncate text that grow
past of the top of the terminal, as opposed to letting it accumulate in
the buffer.  For example assuming the terminal is 3 lines high and I cat
a 5 lines file, normally the terminal buffer will keep all 5 lines while
showing the last 3.  When `term-scroll-with-delete' gets turned on, the
terminal buffer will be limited to the last 3 lines and the first 2
lines will get deleted, as in gone from the history.


[1]: https://lists.gnu.org/archive/html/emacs-devel/2019-02/msg00766.html



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

end of thread, other threads:[~2019-04-30 21:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-30 17:21 Few enhancements to ansi-term John Shahid
2019-04-30 17:23 ` John Shahid
2019-04-30 18:34   ` Stefan Monnier
2019-04-30 21:50     ` John Shahid

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.