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: Tue, 19 Nov 2024 20:09:40 +0200
Organization: LINKOV.NET
Message-ID: <87h683jdsr.fsf@mail.linkov.net>
References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="4063"; 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 Tue Nov 19 19:14:28 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 1tDSk7-0000w3-0E
	for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Nov 2024 19:14:27 +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 1tDSjp-0003kv-2G; Tue, 19 Nov 2024 13:14:09 -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 1tDSji-0003it-8E
 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2024 13:14:04 -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 1tDSji-0002Tc-0K
 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2024 13:14: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=D6rXhtnUYpYD0FOczVsAZEJggV+V5ZnpPHrITbP6nnU=; 
 b=eEGFe00IrvI0ry0NxOnTmaF9MbpMmhG1YlPmGx4Q8eGFnniClFEPduObj6Cf8lK4rvD+Qk558uxVj+qSUmhsiBqcad0V1enq39EiebB3jyS6twO+L4hW0GaQeAod/pN+kyWe+zoTxbtrHBW6DE8R7pm36dVKSjpEc20GKqiyXbHRQHVJmkdwV+fnAm2XTZkgkc0JA1kmljb7SQ2FzDRCimXkyYZfmO46Sd80sFNFPWrw7bbk3xLHYPwHj7uZCMtjGXs7iI41Mt1fs2IBGWAtDbUjCP2RzEVHX7Q9iBz4SJvBa4XrzMbRPkozbtNmK9gRk8XR1VcdQXtlMs2gg8bMng==;
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tDSjh-0002Wn-KY
 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2024 13:14:01 -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: Tue, 19 Nov 2024 18:14:01 +0000
Resent-Message-ID: <handler.74412.B74412.17320400339694@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.17320400339694
 (code B ref 74412); Tue, 19 Nov 2024 18:14:01 +0000
Original-Received: (at 74412) by debbugs.gnu.org; 19 Nov 2024 18:13:53 +0000
Original-Received: from localhost ([127.0.0.1]:43951 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1tDSjZ-0002WH-1Q
 for submit@debbugs.gnu.org; Tue, 19 Nov 2024 13:13:53 -0500
Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:57039)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@linkov.net>) id 1tDSjX-0002W3-IF
 for 74412@debbugs.gnu.org; Tue, 19 Nov 2024 13:13:52 -0500
Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 73CD5240004;
 Tue, 19 Nov 2024 18:13:22 +0000 (UTC)
In-Reply-To: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> (Taka Obsid's
 message of "Mon, 18 Nov 2024 10:59:00 +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:295651
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/295651>

> While I tried to `revert-buffer' in a java file, it reports
> `outline-map-region: Wrong type argument: number-or-marker-p, nil'.
>
> The backtrace is:
>
> ```bt
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
> #f(compiled-function () #<bytecode -0x1964e0de811a96ab>)()
> outline-map-region(#f(compiled-function () #<bytecode -0x1964e0de811a96ab>)
> 1 31382)
> outline--hidden-headings-paths()
> outline-revert-buffer-restore-visibility()
> #f(compiled-function (f) #<bytecode
>  0x6badcbe8273644b>)(outline-revert-buffer-restore-visibility)
> run-hook-wrapped(#f(compiled-function (f) #<bytecode 0x6badcbe8273644b>)
> outline-revert-buffer-restore-visibility)
> revert-buffer(t)

I suspect this depends on your java file since I tried some java files
existing in the emacs repo, and all they work fine.  Could you try
to find a minimal java file to reproduce the problem?