From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 Date: Mon, 18 Nov 2024 14:29:38 +0200 Message-ID: <86h684vi6l.fsf@gnu.org> References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33558"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74412@debbugs.gnu.org To: Taka Obsid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 18 13:30:18 2024 Return-path: 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 ) id 1tD0tV-0008Zx-Hn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Nov 2024 13:30:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tD0tJ-0000Wm-IL; Mon, 18 Nov 2024 07:30:05 -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 ) id 1tD0tH-0000WH-CG for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2024 07:30: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 ) id 1tD0tG-00037Y-VZ for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2024 07:30:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=EDnKJ75NWFjV/ZkQbmufFm1MOyYd4/BWlhzXzIuHBzU=; b=Yr5twBBGv5f6kaOmiia/yvX3h8nIx9tPdNdcgFtL3hMtjaRDv7YpJxN61DTBo7Of6eKY6wApGbPmMeMNp67vXmuzIiJscpH55tVJfRalwB+/ghep4e3mlAz5bNWlbtCrBBcEndqcD0Ypc8l1JtOX9NGJL6hPofksCDXwecewJcpigO1spvaUysmUrdYzRpc6N5T+/A0F8MmP5bRqXL9EYa1QBQBS/35xHhwETSpOJycZfqb9YuN9W8+TlEUEzKSoEp0MWuWrZ4t0o2v6hFvsNoyEiPyuIes3wCPNZsbhdAJ8ld5Qdi2jXnoHn5ytDvy4+ScgskSOFUYiQZbNhP41Lw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tD0tG-0007fh-Qo for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2024 07:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Nov 2024 12:30:02 +0000 Resent-Message-ID: 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.173193299029443 (code B ref 74412); Mon, 18 Nov 2024 12:30:02 +0000 Original-Received: (at 74412) by debbugs.gnu.org; 18 Nov 2024 12:29:50 +0000 Original-Received: from localhost ([127.0.0.1]:60404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tD0t4-0007eo-19 for submit@debbugs.gnu.org; Mon, 18 Nov 2024 07:29:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tD0t2-0007eY-9V for 74412@debbugs.gnu.org; Mon, 18 Nov 2024 07:29:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD0sw-00034z-SU; Mon, 18 Nov 2024 07:29:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EDnKJ75NWFjV/ZkQbmufFm1MOyYd4/BWlhzXzIuHBzU=; b=ourHBo58RSEy 7gDAGH2+tb9Dc4Wbr6QSPfwma7C8cWBgSY+EiX0FHbM602/nSRhOYQc8dTKNb/2z7YQuVHtJVznsY zwz/yZK78tNFkHVmzbYybZbebkt8m9E9dNUecAqDpJ/y4LS0v0J6e6ofOvfXeSocHrq4c6EzlS2Dg JQIT7hYsTBDek9HbKYB4OsH+2gr8DwiosEnlOi5iaP7HfB92eFYLU2+MR96nayYPlXkhUOv7VeQTl rc1vWFOYUlO2YGBhlFpFA6G6rVEQbJFU+oYh4Nw4AYVRe2bhcA1Qm1El97F/b6SGsnl/cN5oiHeMI SqmogRSnSHAouvew15XTcg==; In-Reply-To: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> (message from Taka Obsid on Mon, 18 Nov 2024 10:59:00 +0800) 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:295591 Archived-At: > Date: Mon, 18 Nov 2024 10:59:00 +0800 > From: Taka Obsid > > Hi, I'm using `java-ts-mode' and https://github.com/jdtsmith/outli. > > 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 () #)() > outline-map-region(#f(compiled-function () # -0x1964e0de811a96ab>) 1 31382) > outline--hidden-headings-paths() > outline-revert-buffer-restore-visibility() > #f(compiled-function (f) # 0x6badcbe8273644b>)(outline-revert-buffer-restore-visibility) > run-hook-wrapped(#f(compiled-function (f) #) > outline-revert-buffer-restore-visibility) > revert-buffer(t) > funcall-interactively(revert-buffer t) > call-interactively(revert-buffer record nil) > command-execute(revert-buffer record) > execute-extended-command(nil "revert-buffer" "rev") > funcall-interactively(execute-extended-command nil "revert-buffer" "rev") > call-interactively(execute-extended-command nil nil) > command-execute(execute-extended-command) > ``` > > To repreduce it: > > 1. start Emacs with `java-ts-mode' and `outli' installed; > > 2. go to a java file; > > 3. `M-x outli-mode'; > > 4. `M-x revert-buffer'. > > The `outline-search-function' is `#'treesit-outline-search' and while I > set it to `nil', I can successfully revert the buffer. > > > ``` > emacs -q --eval "(progn > (add-to-list 'load-path \"/path/to/java-ts-mode/\") > (add-to-list 'load-path \"/path/to/outli/\") > (require 'java-ts-mode) > (require 'outli))" > ``` Thanks, this seems to be a problem in the outli package? Because the error is signaled by one of its functions (a hook it places on revert-buffer-function, I guess?). Did you report this to the developer of outli? If not, I suggest to report it there first.