GNU bug report logs - #60244
27.1; term-line-mode works poorly with git progress rewriting

Previous Next

Package: emacs;

Reported by: "Michael Hoffman" <emacs-hoffman <at> snkmail.com>

Date: Wed, 21 Dec 2022 20:38:02 UTC

Severity: normal

Found in version 27.1

Full log


Message #23 received at 60244 <at> debbugs.gnu.org (full text, mbox):

From: miha <at> kamnitnik.top
To: Michael Hoffman <emacs-hoffman <at> snkmail.com>, 60244 <at> debbugs.gnu.org
Subject: Re: bug#60244: 27.1; term-line-mode works poorly with git progress
 rewriting
Date: Mon, 09 Jan 2023 19:27:05 +0100
[Message part 1 (text/plain, inline)]
"Michael Hoffman" <emacs-hoffman <at> snkmail.com> writes:

> Thanks so much for looking into this.
>
> On Sat, Dec 24, 2022 at 10:01 AM miha wrote:
>
>     Two possible ideas to solve this:
>
>     - Introduce a new marker to separate user input from process output.
>
>     - Use text properties to distinguish user input from process output.
>       This is what comint.el does, it marks process output with 'field' =
>       'output'.
>
> Is one of these options preferred? The second idea sounds more robust, and also it is nice that the example of comint.el
> exists for it. But perhaps I am naive about what they require.

I prefer the second option. While it is probably more work to implement
than the first one, it opens up possibilities of more robust input
navigation and multi-line input editing in term-line-mode, just like in
comint.el with 'comint-use-prompt-regexp' = nil.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 162 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.