From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Juri Linkov <juri@linkov.net>
Newsgroups: gmane.emacs.bugs
Subject: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31
Date: Wed, 20 Nov 2024 09:15:10 +0200
Organization: LINKOV.NET
Message-ID: <87o72a2x6p.fsf@mail.linkov.net>
References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com>
 <87h683jdsr.fsf@mail.linkov.net>
 <23466bfc-9ec0-498d-a39a-5e2d5749808a@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="2378"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
Cc: 74412@debbugs.gnu.org
To: Taka Obsid <liaotx2@gmail.com>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 20 08:19:29 2024
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1tDezo-0000R5-9i
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Nov 2024 08:19:28 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1tDezS-0000y3-DN; Wed, 20 Nov 2024 02:19:06 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1tDezO-0000wb-PT
 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 02:19:02 -0500
Original-Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1tDezO-0003U0-GQ
 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 02:19:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=MIME-Version:Date:References:In-Reply-To:From:To:Subject;
 bh=DT+86dwXS0jDzgSkIrgTqOfizCm3pKW8RrAHYhpnMVU=; 
 b=Eig9SD+ZHSHpNS9vBs/U5HvZxSuKqS2plo/3lvpOQbI2ZLkLhkXjGa6ODNb6e6uyJO8xLquFuGulC/0vAcNtjdRwltdEUEtYk3tlN2Kfg4m0I0zo5LuENb3fI+y7OwE4aEIdt8iqP2XKe5JlzOUC8R71cpoZvV9vlIAKw7YcDrYxIM1Ioanvq1QXdjcgXSJHROm2rxbx6d0uojdDhcWUhzivAPyGeteVLd0XQ1jAfEoPPxzsdJ/lGMCqYZEHkAtvpeFYHULmKjJaoy9kzoe1UDPPtH73tCEUFS9DqSnA1VIPIgWzZMzEeJPlzuTxtgNhINIYEGNSmnGcfouxlk+tDQ==;
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tDezO-00041x-Bj
 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 02:19:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Juri Linkov <juri@linkov.net>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 20 Nov 2024 07:19:02 +0000
Resent-Message-ID: <handler.74412.B74412.173208713315469@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 74412
X-GNU-PR-Package: emacs
Original-Received: via spool by 74412-submit@debbugs.gnu.org id=B74412.173208713315469
 (code B ref 74412); Wed, 20 Nov 2024 07:19:02 +0000
Original-Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 07:18:53 +0000
Original-Received: from localhost ([127.0.0.1]:45030 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1tDezE-00041R-V8
 for submit@debbugs.gnu.org; Wed, 20 Nov 2024 02:18:53 -0500
Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:45323)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@linkov.net>) id 1tDezC-00040x-6T
 for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 02:18:50 -0500
Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 9EC6640005;
 Wed, 20 Nov 2024 07:18:20 +0000 (UTC)
In-Reply-To: <23466bfc-9ec0-498d-a39a-5e2d5749808a@gmail.com> (Taka Obsid's
 message of "Wed, 20 Nov 2024 11:34:17 +0800")
X-GND-Sasl: juri@linkov.net
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.bugs:295666
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/295666>

> I'm using `straight' so I start the emacs as
>
> ```sh
>
> /Applications/Emacs.app/Contents/MacOS/Emacs -q --eval "(progn
>           (add-to-list 'load-path
> \"~/.emacs.d/straight/build/java-ts-mode\")

Where do you get straight's version of java-ts-mode?

Does it differ from lisp/progmodes/java-ts-mode.el
provided by Emacs core?

Do you use treesit.el from `straight' too?

>           (add-to-list 'load-path \"~/.emacs.d/straight/build/outli\")
>           (require 'java-ts-mode)
>           (require 'outli))"
>
> ```
>
> The file I tried is
>
> ```java
>
> public class Test {
>     public static void main(String[] args) {
>
>     }
> }
>
> ```
>
> You might need to enable the outli-mode in the java file manually.

I tried this with lisp/progmodes/java-ts-mode.el,
and can't reproduce the bug.

> It seems this bug only appears in gui emacs. The `revert-buffer' works
> fine in tui.

Very strange, there should be no difference between gui and tui.