GNU bug report logs - #67616
[PATCH] Fix: add comint hook locally in lua-ts-inferior-lua

Previous Next

Package: emacs;

Reported by: Noah Peart <noah.v.peart <at> gmail.com>

Date: Mon, 4 Dec 2023 03:28:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67616 in the body.
You can then email your comments to 67616 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#67616; Package emacs. (Mon, 04 Dec 2023 03:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Noah Peart <noah.v.peart <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 04 Dec 2023 03:28:02 GMT) Full text and rfc822 format available.

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

From: Noah Peart <noah.v.peart <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Fix: add comint hook locally in lua-ts-inferior-lua
Date: Sun, 3 Dec 2023 19:26:54 -0800
[Message part 1 (text/plain, inline)]
Tags: patch


Bug: In `lua-ts-inferior-lua`, `comint-preoutput-filter-functions` hook
isn't added locally.


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.33, cairo version 1.16.0) of 2023-12-03 built on noah-X580VD
Repository revision: 9c1f24d7a497ee8b9c1ec3f1161a3ed7d6e34bd0
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Ubuntu 22.04.3 LTS

Configured using:
 'configure --prefix=/usr/local --with-modules --with-tree-sitter
--with-threads --with-x-toolkit=gtk3 --with-xwidgets --with-gnutls
--with-json --with-mailutils --with-jpeg --with-png --with-rsvg
--with-tiff --with-xml2 --with-xpm --with-imagemagick CC=gcc-12
CXX=gcc-12'
[Message part 2 (text/html, inline)]
[lua-ts-inferior-hook.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67616; Package emacs. (Mon, 04 Dec 2023 04:31:01 GMT) Full text and rfc822 format available.

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

From: john muhl <jm <at> pub.pink>
To: Noah Peart <noah.v.peart <at> gmail.com>
Cc: 67616 <at> debbugs.gnu.org
Subject: Re: bug#67616: [PATCH] Fix: add comint hook locally in
 lua-ts-inferior-lua
Date: Sun, 03 Dec 2023 22:18:22 -0600
[Message part 1 (text/plain, inline)]
Noah Peart <noah.v.peart <at> gmail.com> writes:

> Tags: patch
>
> Bug: In `lua-ts-inferior-lua`, `comint-preoutput-filter-functions` hook
> isn't added locally.

Thanks. I think that obsoletes the buffer-name check at the
beginning. A quick test looks that way to me. Could you give a try?

[0001-Fix-add-comint-hook-locally-in-lua-ts-inferior-lua.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67616; Package emacs. (Mon, 04 Dec 2023 08:00:02 GMT) Full text and rfc822 format available.

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

From: Noah Peart <noah.v.peart <at> gmail.com>
To: john muhl <jm <at> pub.pink>
Cc: 67616 <at> debbugs.gnu.org
Subject: Re: bug#67616: [PATCH] Fix: add comint hook locally in
 lua-ts-inferior-lua
Date: Sun, 3 Dec 2023 23:58:46 -0800
[Message part 1 (text/plain, inline)]
Yea, that looks good to me.  Is it necessary to set
`comint-use-prompt-regexp` to `t`?
The behaviour of `comint-previous/next-prompt` seems better when that is
nil.
Thanks!

On Sun, Dec 3, 2023 at 8:30 PM john muhl <jm <at> pub.pink> wrote:

> Noah Peart <noah.v.peart <at> gmail.com> writes:
>
> > Tags: patch
> >
> > Bug: In `lua-ts-inferior-lua`, `comint-preoutput-filter-functions` hook
> > isn't added locally.
>
> Thanks. I think that obsoletes the buffer-name check at the
> beginning. A quick test looks that way to me. Could you give a try?
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67616; Package emacs. (Mon, 04 Dec 2023 19:41:01 GMT) Full text and rfc822 format available.

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

From: john muhl <jm <at> pub.pink>
To: Noah Peart <noah.v.peart <at> gmail.com>
Cc: 67616 <at> debbugs.gnu.org
Subject: Re: bug#67616: [PATCH] Fix: add comint hook locally in
 lua-ts-inferior-lua
Date: Mon, 04 Dec 2023 12:17:27 -0600
[Message part 1 (text/plain, inline)]
Noah Peart <noah.v.peart <at> gmail.com> writes:

> Yea, that looks good to me.  Is it necessary to set
> `comint-use-prompt-regexp` to `t`?
> The behaviour of `comint-previous/next-prompt` seems better when
> that is nil.
> Thanks!

You’re right. I wasn’t able to get creative enough to merge them
into a single commit so it’s separate.

[0001-Fix-add-comint-hook-locally-in-lua-ts-inferior-lua.patch (text/x-patch, attachment)]
[0001-Fix-comint-next-previous-prompt-in-lua-ts-mode.patch (text/x-patch, attachment)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 16 Dec 2023 09:40:01 GMT) Full text and rfc822 format available.

Notification sent to Noah Peart <noah.v.peart <at> gmail.com>:
bug acknowledged by developer. (Sat, 16 Dec 2023 09:40:01 GMT) Full text and rfc822 format available.

Message #19 received at 67616-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: john muhl <jm <at> pub.pink>
Cc: noah.v.peart <at> gmail.com, 67616-done <at> debbugs.gnu.org
Subject: Re: bug#67616: [PATCH] Fix: add comint hook locally in
 lua-ts-inferior-lua
Date: Sat, 16 Dec 2023 11:39:04 +0200
> Cc: 67616 <at> debbugs.gnu.org
> Date: Mon, 04 Dec 2023 12:17:27 -0600
> From:  john muhl via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Noah Peart <noah.v.peart <at> gmail.com> writes:
> 
> > Yea, that looks good to me.  Is it necessary to set
> > `comint-use-prompt-regexp` to `t`?
> > The behaviour of `comint-previous/next-prompt` seems better when
> > that is nil.
> > Thanks!
> 
> You’re right. I wasn’t able to get creative enough to merge them
> into a single commit so it’s separate.

Thanks, installed on the master branch, and closing the bug.

P.S. Please both of you see how I edited the commit log messages in
minor ways, and try to follow this in the future.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 13 Jan 2024 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 119 days ago.

Previous Next


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