From: Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 7041@debbugs.gnu.org
Subject: bug#7041: comint seems to truncate from places other than the top
Date: Tue, 8 Dec 2020 19:18:34 +0000 [thread overview]
Message-ID: <CAOnWdohre-5wcpRzWwx9HOYw38UP3=qwz9TKdRQCYV=POVQp4w@mail.gmail.com> (raw)
In-Reply-To: <87y2i8dzap.fsf@gnus.org>
[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]
On Tue, 8 Dec 2020 at 16:43, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Reuben Thomas <rrt@sc3d.org> writes:
>
> > If I add comint-truncate-buffer to comint-output-filter-functions, and
> > set comint-buffer-maximum-size to 1024, then when a term buffer
> > reaches about that size, and I run a command that produces a lot of
> > output, then scroll back, some of the output is missing. In other
> > words, rather than truncate from the top of the buffer, some of the
> > truncation at least seems to happen much nearer the bottom.
>
> (This bug report unfortunately got no response at the time.)
>
> Do you have a step-by-step recipe to reproduce this error, starting from
> "emacs -Q"?
>
If I try it now, it doesn't seem to truncate the buffer as expected: for
example
emacs -Q
M-: (add-to-list 'comint-output-filter-functions 'comint-truncate-buffer)
M-x term
C-c M-x set-variable comint-buffer-maximum-size 256 ; do this after M-x
term because before comint-buffer-maximum-size is not defined
$ seq 1 1024
The entire output is retained, and not truncated. Truncation seems to
happen at 2048 lines. This does not even correspond to the original value
of the variable (1024).
However, I cannot detect any truncation at the bottom of the output.
If I run C-c M-x comint-truncate-buffer, the buffer is truncated as
expected, to 256 lines.
--
https://rrt.sc3d.org
[-- Attachment #2: Type: text/html, Size: 3425 bytes --]
next prev parent reply other threads:[~2020-12-08 19:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-16 11:42 bug#7041: comint seems to truncate from places other than the top Reuben Thomas
2020-12-08 16:42 ` Lars Ingebrigtsen
2020-12-08 19:18 ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2020-12-08 22:31 ` Lars Ingebrigtsen
2020-12-08 22:37 ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-08 22:42 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOnWdohre-5wcpRzWwx9HOYw38UP3=qwz9TKdRQCYV=POVQp4w@mail.gmail.com' \
--to=bug-gnu-emacs@gnu.org \
--cc=7041@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=rrt@sc3d.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 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.