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 20:23:46 +0200
Organization: LINKOV.NET
Message-ID: <87plmpwyq5.fsf@mail.linkov.net>
References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com>
 <87h683jdsr.fsf@mail.linkov.net>
 <23466bfc-9ec0-498d-a39a-5e2d5749808a@gmail.com>
 <87o72a2x6p.fsf@mail.linkov.net>
 <037e3f70-75cf-4ccc-b450-74b1cd0f6aad@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="26753"; 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 19:31:24 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 1tDpU4-0006kt-09
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Nov 2024 19:31:24 +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 1tDpTq-0007Tu-DO; Wed, 20 Nov 2024 13:31:11 -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 1tDpTj-0007TM-1J
 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 13:31:03 -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 1tDpTi-00006b-PN
 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 13:31: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=yaNqfSyUBq0aJwzSd8Y9A0Yq6fldX0t8dmmTG1H12YQ=; 
 b=fmAinjnOMdb4l5SQw26PVvtRPDFkwKbb7Pv4du1Z9jl5GQcgY5+cEowViIEATNq7JUR1Wh5rvbW/qUtQxX2SG32vzlSvam1imtvbXT37DdTM0mPaAWvXFjS95hutEVdwuUV/+M7g5NkTAFWZGg3gXnTx0gU/sEFNuqw737leMlS9qnI9sI6SixafBZzgn6KaXWv8XeTxVmW+XCPFZjTY3gDS8YmL9F1YAu3CAAXoruQ9TobPUda5V3SB8A7Pdyif/YBRW8V0sbUWGU4ig7P4LjDJbgNgwKduy5pdjjzsBe3xdYFT3jkiIYe0pZJ7Ifz50e2iWIT8aCUCqgG9d67tJA==;
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tDpTi-0001fr-Bz
 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 13:31: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 18:31:02 +0000
Resent-Message-ID: <handler.74412.B74412.17321274056011@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.17321274056011
 (code B ref 74412); Wed, 20 Nov 2024 18:31:02 +0000
Original-Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 18:30:05 +0000
Original-Received: from localhost ([127.0.0.1]:47711 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1tDpSm-0001Yd-Ow
 for submit@debbugs.gnu.org; Wed, 20 Nov 2024 13:30:05 -0500
Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51333)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@linkov.net>) id 1tDpSj-0001WT-FA
 for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 13:30:02 -0500
Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 5EA85E0006;
 Wed, 20 Nov 2024 18:29:53 +0000 (UTC)
In-Reply-To: <037e3f70-75cf-4ccc-b450-74b1cd0f6aad@gmail.com> (Taka Obsid's
 message of "Wed, 20 Nov 2024 22:06:52 +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:295689
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/295689>

> I commented the line `(register-definition-prefixes "outli" '("outli-"))',
> and load `~/.emacs.d/straight/build/outli/outli.el',
> and the `revert-buffer' works. 

Ok, I looked more at the package outli, and now can reproduce the issue,
I get the same backtrace:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  #f(compiled-function () #<bytecode -0x19404f988c6a0bab>)()
  outline-map-region(#f(compiled-function () #<bytecode -0x19404f988c6a0bab>) 1 75)
  outline--hidden-headings-paths()
  outline-revert-buffer-restore-visibility()
  #f(compiled-function (f) #<bytecode 0x1cc541c8fdc4ae5e>)(outline-revert-buffer-restore-visibility)
  revert-buffer(t t)
  revert-buffer-quick(nil)
  funcall-interactively(revert-buffer-quick nil)
  command-execute(revert-buffer-quick)

This error comes after I removed the line

  outline-search-function nil

from `outli-mode'.  Please note that this line was added
quite recently in this commit:

https://github.com/jdtsmith/outli/commit/1366c230421aa834a9f4c986e31e63aa54e1c70b

So I'm 100% sure that you are using an old straight version from
(add-to-list 'load-path \"~/.emacs.d/straight/build/outli\")

Please upgrade the outli straight package to resolve the problem.