From unknown Sun Aug 17 01:46:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#74412 <74412@debbugs.gnu.org> To: bug#74412 <74412@debbugs.gnu.org> Subject: Status: 31.0.50; Treesit-outline conflict with outli in Emacs 31 Reply-To: bug#74412 <74412@debbugs.gnu.org> Date: Sun, 17 Aug 2025 08:46:18 +0000 retitle 74412 31.0.50; Treesit-outline conflict with outli in Emacs 31 reassign 74412 emacs submitter 74412 Taka Obsid severity 74412 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 00:05:01 2024 Received: (at submit) by debbugs.gnu.org; 18 Nov 2024 05:05:01 +0000 Received: from localhost ([127.0.0.1]:59506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCtwX-0003e6-QN for submit@debbugs.gnu.org; Mon, 18 Nov 2024 00:05:01 -0500 Received: from lists.gnu.org ([209.51.188.17]:53680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCryq-0006LK-Ps for submit@debbugs.gnu.org; Sun, 17 Nov 2024 21:59:14 -0500 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 1tCryq-0002Bd-JX for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 21:59:12 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCrym-0007Jr-Kt for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 21:59:12 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-431695fa98bso29881685e9.3 for ; Sun, 17 Nov 2024 18:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731898745; x=1732503545; darn=gnu.org; h=content-transfer-encoding:from:subject:to:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=KyPWTQ3DBJuqfxx5ji/lbaYViUukcMVuXa+NrwTQk4g=; b=SdU4OtoSMP0C/ix5IovFBOsVDyPR7Kz9yG5MDk8WzO2Wp3DFvpD81XycvOziYQCJng ceLCo2VY5i1juTkTmD8zRI1tasaTbyYCsj8tgp2sRuxfJ9ghsIvpnMpiFUuvfGaAQOo9 ev6ehXlcPYYB0W3WfTFIETgyRvNdqhE/TAPheUbj20X7alUNj1iU6tKl2gZ+AntZbwgz 0e4BTBHow5SugRX4RlmEtHVrlnedk7vGiMf7A13iCkOZdrZ/ibgoVtqp7nMDNTNYxCYr XBZHm8Y8s3be/ueTdMQnscUM2/WzTzLqpM7BcpTz2AjVZt5kyMCGHA2h88y+TTWnmjEc Zqow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731898745; x=1732503545; h=content-transfer-encoding:from:subject:to:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KyPWTQ3DBJuqfxx5ji/lbaYViUukcMVuXa+NrwTQk4g=; b=GO8PqHjyhY7vlWXLiQ4/5FSitCriP3O4IEKuL5ajL2ItbysX0eUG1rQ+h29KPTDFw2 NABmsgY5hnmWdbD40FggQSwBwDdVmvMMUkeXcxJDzB1WLsY6ovX97fA/6gRGMy3qnMrA L4DI/txIUyqBtJ2kvSiTT1JqDz4IyV+Mde7xtyXrFLpVI2HopZDbzl80LUBab2G/N8yd 8QZUHDp67231Hy1WWwy2UiCwSWCm3EBwUZiAG9tIYSpa6Fmo0LS9AVQToKNdY7oW4QCH hbxCHl6oaGM8zr0fgHjdehDRtnh6oBbOjKrWcCU41KxobVTK0afSZ2S5KM4kqvi+IeY/ AAUw== X-Gm-Message-State: AOJu0YzIpXNIfydZcAZ8CaHqQ9cjO0staOoNmRKghgX5kH1V+MuJFTh3 lKKABdFOxmjaJSw8Yu5QjY1UVRdG8Bsu2Dc1MqudWpXsLUtVRGpxpQED9BrI X-Google-Smtp-Source: AGHT+IGEhan8Q3tUZku15meUcyQllPeQXT6nJyJb/J4ZY1j21iekz6qoEQMWNxcIJh7U38kPHer9EA== X-Received: by 2002:a5d:584d:0:b0:382:3d04:964c with SMTP id ffacd0b85a97d-3823d0498f5mr4722859f8f.59.1731898744555; Sun, 17 Nov 2024 18:59:04 -0800 (PST) Received: from [198.18.0.1] ([185.217.110.129]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3821adadba4sm11203740f8f.24.2024.11.17.18.59.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Nov 2024 18:59:03 -0800 (PST) Message-ID: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> Date: Mon, 18 Nov 2024 10:59:00 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Treesit-outline conflict with outli in Emacs 31 From: Taka Obsid Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=liaotx2@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 18 Nov 2024 00:04:55 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) 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 () #) 1 31382) outline--hidden-headings-paths() outline-revert-buffer-restore-visibility() #f(compiled-function (f) #)(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))" ``` In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.1.0, NS appkit-2575.20 Version 15.1 (Build 24B83), git sha1 0756b1f2f54) of 2024-11-11 built on Leyline Windowing system distributor 'Apple', version 10.3.2575 System Description: macOS 15.1 Configured using: 'configure --without-native-compilation --without-dbus --with-xwidgets --with-tree-sitter --with-modules --with-pgtk 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath /opt/local/lib/gcc14 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64'' Configured features: ACL GIF GMP GNUTLS JPEG LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER XIM XWIDGETS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Java Minor modes in effect: eglot-java-mode: t outli-mode: t indent-bars--ts-mode: t indent-bars-mode: t copilot-mode: t electric-pair-mode: t projectile-mode: t global-dict-line-mode: t dict-line-mode: t popper-echo-mode: t popper-mode: t adaptive-wrap-prefix-mode: t visual-fill-column-mode: t global-auto-revert-mode: t save-place-mode: t default-text-scale-mode: t window-numbering-mode: t auto-dim-other-buffers-mode: t global-page-break-lines-mode: t minions-mode: t doom-modeline-mode: t dogears-mode: t recentf-mode: t company-quickhelp-mode: t company-quickhelp-local-mode: t company-box-mode: t global-company-mode: t company-mode: t vertico-mode: t dirvish-override-dired-mode: t dape-breakpoint-global-mode: t eglot-inlay-hints-mode: t eglot--managed-mode: t flymake-mode: t hexl-follow-ascii: t emt-mode: t mpvi-emms-integrated-mode: t puni-global-mode: t puni-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t keyfreq-autosave-mode: t keyfreq-mode: t sis-global-inline-mode: t sis-inline-mode: t sis-global-context-mode: t sis-context-mode: t sis-global-respect-mode: t sis-global-cursor-color-mode: t sis-auto-refresh-mode: t savehist-mode: t consult-org-roam-mode: t org-roam-db-autosync-mode: t outline-minor-mode: t marginalia-mode: t global-blamer-mode: t blamer-mode: t global-diff-hl-mode: t diff-hl-mode: t yas-global-mode: t yas-minor-mode: t meow-global-mode: t meow-mode: t meow-normal-mode: t meow-esc-mode: t good-scroll-mode: t focus-autosave-mode: t override-global-mode: t straight-use-package-mode: t straight-package-neutering-mode: t global-hl-line-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t window-divider-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /Users/takaobsid/.emacs.d/straight/build/web-mode/web-mode hides /Users/takaobsid/.emacs.d/elpa/web-mode-17.3.20/web-mode /Users/takaobsid/.emacs.d/straight/build/web-mode/web-mode-autoloads hides /Users/takaobsid/.emacs.d/elpa/web-mode-17.3.20/web-mode-autoloads /Users/takaobsid/.emacs.d/straight/build/editorconfig/editorconfig hides /Applications/Emacs.app/Contents/Resources/lisp/editorconfig /Users/takaobsid/.emacs.d/straight/build/external-completion/external-completion hides /Applications/Emacs.app/Contents/Resources/lisp/external-completion /Users/takaobsid/.emacs.d/straight/build/editorconfig/editorconfig-core hides /Applications/Emacs.app/Contents/Resources/lisp/editorconfig-core /Users/takaobsid/.emacs.d/straight/build/editorconfig/editorconfig-conf-mode hides /Applications/Emacs.app/Contents/Resources/lisp/editorconfig-conf-mode /Users/takaobsid/.emacs.d/straight/build/jsonrpc/jsonrpc hides /Applications/Emacs.app/Contents/Resources/lisp/jsonrpc /Users/takaobsid/.emacs.d/straight/build/editorconfig/editorconfig-tools hides /Applications/Emacs.app/Contents/Resources/lisp/editorconfig-tools /Users/takaobsid/.emacs.d/straight/build/transient/transient hides /Applications/Emacs.app/Contents/Resources/lisp/transient /Users/takaobsid/.emacs.d/straight/build/editorconfig/editorconfig-core-handle hides /Applications/Emacs.app/Contents/Resources/lisp/editorconfig-core-handle /Users/takaobsid/.emacs.d/straight/build/editorconfig/editorconfig-fnmatch hides /Applications/Emacs.app/Contents/Resources/lisp/editorconfig-fnmatch /Users/takaobsid/.emacs.d/straight/build/xref/xref hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/xref /Users/takaobsid/.emacs.d/straight/build/project/project hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/project /Users/takaobsid/.emacs.d/straight/build/eglot/eglot hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/eglot /Users/takaobsid/.emacs.d/straight/build/flymake/flymake hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/flymake /Users/takaobsid/.emacs.d/straight/build/org/ob-exp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-exp /Users/takaobsid/.emacs.d/straight/build/org/ob-emacs-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-emacs-lisp /Users/takaobsid/.emacs.d/straight/build/org/oc hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc /Users/takaobsid/.emacs.d/straight/build/org/ob-css hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-css /Users/takaobsid/.emacs.d/straight/build/org/ob-lob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lob /Users/takaobsid/.emacs.d/straight/build/org/ol-irc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-irc /Users/takaobsid/.emacs.d/straight/build/org/ob-forth hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-forth /Users/takaobsid/.emacs.d/straight/build/org/org-macs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macs /Users/takaobsid/.emacs.d/straight/build/org/ob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob /Users/takaobsid/.emacs.d/straight/build/org/org-version hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-version /Users/takaobsid/.emacs.d/straight/build/org/ob-scheme hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-scheme /Users/takaobsid/.emacs.d/straight/build/org/ox hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox /Users/takaobsid/.emacs.d/straight/build/org/ob-C hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-C /Users/takaobsid/.emacs.d/straight/build/org/org-capture hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-capture /Users/takaobsid/.emacs.d/straight/build/org/ob-ref hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ref /Users/takaobsid/.emacs.d/straight/build/org/ob-clojure hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-clojure /Users/takaobsid/.emacs.d/straight/build/org/org-mouse hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mouse /Users/takaobsid/.emacs.d/straight/build/org/org-persist hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-persist /Users/takaobsid/.emacs.d/straight/build/org/org-ctags hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-ctags /Users/takaobsid/.emacs.d/straight/build/org/org-entities hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-entities /Users/takaobsid/.emacs.d/straight/build/org/org-archive hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-archive /Users/takaobsid/.emacs.d/straight/build/org/ob-screen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-screen /Users/takaobsid/.emacs.d/straight/build/org/ol-bibtex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-bibtex /Users/takaobsid/.emacs.d/straight/build/org/ob-haskell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-haskell /Users/takaobsid/.emacs.d/straight/build/org/org-loaddefs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-loaddefs /Users/takaobsid/.emacs.d/straight/build/org/org-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-table /Users/takaobsid/.emacs.d/straight/build/org/ol-eww hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-eww /Users/takaobsid/.emacs.d/straight/build/org/ol-man hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-man /Users/takaobsid/.emacs.d/straight/build/org/ox-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-org /Users/takaobsid/.emacs.d/straight/build/org/org-num hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-num /Users/takaobsid/.emacs.d/straight/build/org/org-plot hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-plot /Users/takaobsid/.emacs.d/straight/build/org/ol-rmail hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-rmail /Users/takaobsid/.emacs.d/straight/build/org/ob-awk hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-awk /Users/takaobsid/.emacs.d/straight/build/org/ob-groovy hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-groovy /Users/takaobsid/.emacs.d/straight/build/org/ob-octave hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-octave /Users/takaobsid/.emacs.d/straight/build/org/org-faces hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-faces /Users/takaobsid/.emacs.d/straight/build/org/oc-biblatex hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc-biblatex /Users/takaobsid/.emacs.d/straight/build/org/org-colview hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-colview /Users/takaobsid/.emacs.d/straight/build/org/ob-R hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-R /Users/takaobsid/.emacs.d/straight/build/org/org-refile hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-refile /Users/takaobsid/.emacs.d/straight/build/org/org-timer hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-timer /Users/takaobsid/.emacs.d/straight/build/org/org-mobile hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mobile /Users/takaobsid/.emacs.d/straight/build/org/ob-fortran hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-fortran /Users/takaobsid/.emacs.d/straight/build/org/ob-shell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-shell /Users/takaobsid/.emacs.d/straight/build/org/ob-perl hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-perl /Users/takaobsid/.emacs.d/straight/build/org/ob-sqlite hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sqlite /Users/takaobsid/.emacs.d/straight/build/org/oc-basic hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc-basic /Users/takaobsid/.emacs.d/straight/build/org/ob-sed hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sed /Users/takaobsid/.emacs.d/straight/build/org/org-list hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-list /Users/takaobsid/.emacs.d/straight/build/org/ob-ruby hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ruby /Users/takaobsid/.emacs.d/straight/build/org/ob-eval hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eval /Users/takaobsid/.emacs.d/straight/build/org/org-habit hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-habit /Users/takaobsid/.emacs.d/straight/build/org/org-clock hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-clock /Users/takaobsid/.emacs.d/straight/build/org/org-goto hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-goto /Users/takaobsid/.emacs.d/straight/build/org/ox-html hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-html /Users/takaobsid/.emacs.d/straight/build/org/org-src hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-src /Users/takaobsid/.emacs.d/straight/build/org/ob-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lisp /Users/takaobsid/.emacs.d/straight/build/org/ol-eshell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-eshell /Users/takaobsid/.emacs.d/straight/build/org/ob-ditaa hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ditaa /Users/takaobsid/.emacs.d/straight/build/org/org-pcomplete hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-pcomplete /Users/takaobsid/.emacs.d/straight/build/org/org-lint hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-lint /Users/takaobsid/.emacs.d/straight/build/org/ox-latex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-latex /Users/takaobsid/.emacs.d/straight/build/org/ob-sass hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sass /Users/takaobsid/.emacs.d/straight/build/org/ob-tangle hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-tangle /Users/takaobsid/.emacs.d/straight/build/org/ob-calc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-calc /Users/takaobsid/.emacs.d/straight/build/org/ob-java hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-java /Users/takaobsid/.emacs.d/straight/build/org/ox-icalendar hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-icalendar /Users/takaobsid/.emacs.d/straight/build/org/ol-mhe hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-mhe /Users/takaobsid/.emacs.d/straight/build/org/org-attach-git hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach-git /Users/takaobsid/.emacs.d/straight/build/org/ox-md hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-md /Users/takaobsid/.emacs.d/straight/build/org/ox-beamer hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-beamer /Users/takaobsid/.emacs.d/straight/build/org/org-element hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-element /Users/takaobsid/.emacs.d/straight/build/org/oc-natbib hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc-natbib /Users/takaobsid/.emacs.d/straight/build/org/org-protocol hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-protocol /Users/takaobsid/.emacs.d/straight/build/org/ob-gnuplot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-gnuplot /Users/takaobsid/.emacs.d/straight/build/org/org-tempo hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-tempo /Users/takaobsid/.emacs.d/straight/build/org/ob-latex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-latex /Users/takaobsid/.emacs.d/straight/build/org/ol-w3m hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-w3m /Users/takaobsid/.emacs.d/straight/build/org/org-id hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-id /Users/takaobsid/.emacs.d/straight/build/org/ox-man hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-man /Users/takaobsid/.emacs.d/straight/build/org/ol-doi hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-doi /Users/takaobsid/.emacs.d/straight/build/org/org-feed hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-feed /Users/takaobsid/.emacs.d/straight/build/org/org-fold-core hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-fold-core /Users/takaobsid/.emacs.d/straight/build/org/ob-julia hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-julia /Users/takaobsid/.emacs.d/straight/build/org/ob-lua hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lua /Users/takaobsid/.emacs.d/straight/build/org/ob-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-table /Users/takaobsid/.emacs.d/straight/build/org/ob-ocaml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ocaml /Users/takaobsid/.emacs.d/straight/build/org/oc-csl hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc-csl /Users/takaobsid/.emacs.d/straight/build/org/ol-gnus hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-gnus /Users/takaobsid/.emacs.d/straight/build/org/org-indent hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-indent /Users/takaobsid/.emacs.d/straight/build/org/ob-lilypond hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lilypond /Users/takaobsid/.emacs.d/straight/build/org/ob-matlab hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-matlab /Users/takaobsid/.emacs.d/straight/build/org/org-datetree hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-datetree /Users/takaobsid/.emacs.d/straight/build/org/ol-docview hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-docview /Users/takaobsid/.emacs.d/straight/build/org/oc-bibtex hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc-bibtex /Users/takaobsid/.emacs.d/straight/build/org/ob-python hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-python /Users/takaobsid/.emacs.d/straight/build/org/ob-makefile hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-makefile /Users/takaobsid/.emacs.d/straight/build/org/org-duration hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-duration /Users/takaobsid/.emacs.d/straight/build/org/org-agenda hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-agenda /Users/takaobsid/.emacs.d/straight/build/org/ob-dot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-dot /Users/takaobsid/.emacs.d/straight/build/org/ob-js hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-js /Users/takaobsid/.emacs.d/straight/build/org/ox-publish hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-publish /Users/takaobsid/.emacs.d/straight/build/org/org-inlinetask hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-inlinetask /Users/takaobsid/.emacs.d/straight/build/org/ob-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-org /Users/takaobsid/.emacs.d/straight/build/org/org-keys hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-keys /Users/takaobsid/.emacs.d/straight/build/org/ob-core hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-core /Users/takaobsid/.emacs.d/straight/build/org/org-compat hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-compat /Users/takaobsid/.emacs.d/straight/build/org/ol hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol /Users/takaobsid/.emacs.d/straight/build/org/ox-odt hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-odt /Users/takaobsid/.emacs.d/straight/build/org/ol-info hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-info /Users/takaobsid/.emacs.d/straight/build/org/ob-plantuml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-plantuml /Users/takaobsid/.emacs.d/straight/build/org/ob-eshell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eshell /Users/takaobsid/.emacs.d/straight/build/org/ox-ascii hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-ascii /Users/takaobsid/.emacs.d/straight/build/org/ox-koma-letter hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-koma-letter /Users/takaobsid/.emacs.d/straight/build/org/ob-maxima hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-maxima /Users/takaobsid/.emacs.d/straight/build/org/org hides /Applications/Emacs.app/Contents/Resources/lisp/org/org /Users/takaobsid/.emacs.d/straight/build/org/ol-bbdb hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-bbdb /Users/takaobsid/.emacs.d/straight/build/org/org-macro hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macro /Users/takaobsid/.emacs.d/straight/build/org/org-fold hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-fold /Users/takaobsid/.emacs.d/straight/build/org/ob-sql hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sql /Users/takaobsid/.emacs.d/straight/build/org/org-attach hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach /Users/takaobsid/.emacs.d/straight/build/org/org-cycle hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-cycle /Users/takaobsid/.emacs.d/straight/build/org/ob-processing hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-processing /Users/takaobsid/.emacs.d/straight/build/org/ox-texinfo hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-texinfo /Users/takaobsid/.emacs.d/straight/build/org/org-crypt hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-crypt /Users/takaobsid/.emacs.d/straight/build/org/org-footnote hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-footnote /Users/takaobsid/.emacs.d/straight/build/org/org-element-ast hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-element-ast /Users/takaobsid/.emacs.d/straight/build/org/ob-comint hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-comint /Users/takaobsid/.emacs.d/straight/build/compat/compat hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/compat /Users/takaobsid/.emacs.d/straight/build/track-changes/track-changes hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/track-changes /Users/takaobsid/.emacs.d/straight/build/seq/seq hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/seq /Users/takaobsid/.emacs.d/straight/build/let-alist/let-alist hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/let-alist /Users/takaobsid/.emacs.d/straight/build/map/map hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/map /Users/takaobsid/.emacs.d/straight/build/eldoc/eldoc hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eldoc Features: (puni disp-table shadow sort mail-extr emacsbug help-fns radix-tree cl-print vertico-directory eglot-java outli indent-bars-ts indent-bars cus-edit cus-start cus-load copilot copilot-balancer editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch elec-pair java-ts-mode c-ts-common orderless projectile lisp-mnt grep ibuf-ext all-the-icons-ibuffer-autoloads ibuffer ibuffer-loaddefs vertico-repeat dict-line gnutls popper-echo popper network-stream url-http url-gw nsm url-cache url-auth adaptive-wrap visual-fill-column time autorevert saveplace tramp-cache time-stamp tramp-sh default-text-scale window-numbering auto-dim-other-buffers page-break-lines minions doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core shrink-path f s dogears which-func welcome-dashboard nerd-icons nerd-icons-faces nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon recentf company-quickhelp pos-tip company-box company-box-doc frame-local company-box-icons all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons company-oddmuse company-keywords company-etags etags fileloop company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company vertico dirvish transient dape eglot external-completion xref flymake seq-25 diff ert debug backtrace filenotify imenu jsonrpc warnings hexl gdb-mi bindat gud tree-widget wid-edit repeat pulse jka-compr emt init-keybinding init-secrets init-dictionary dict-line-autoloads init-translate emacs-immersive-translate-autoloads init-ai copilot-chat-autoloads chatgpt-shell-autoloads shell-maker-autoloads aider-autoloads gptel-autoloads init-fileinfo file-info-autoloads browse-at-remote-autoloads init-tokenizer emt-autoloads init-emms mpvi-autoloads mpvi mpvi-ps emms-player-mpv emms-playing-time emms-info emms-later-do emms-player-simple emms emms-compat ffap emms-autoloads init-esup esup-autoloads init-cloud emacs-dropbox-autoloads init-typst typst-ts-mode-autoloads init-wolfram init-web grip-mode-autoloads search-web-autoloads init-ejc-sql ejc-sql-autoloads clomacs-autoloads auto-complete-autoloads popup-autoloads init-clojure clj-refactor-autoloads inflections-autoloads multiple-cursors-autoloads paredit-autoloads cider-autoloads sesman-autoloads queue-autoloads parseedn-autoloads parseclj-autoloads inf-clojure-autoloads clojure-mode-autoloads init-languages geiser-mit-autoloads geiser-autoloads json-mode-autoloads json-snatcher-autoloads yaml-mode-autoloads mvn-el-autoloads dape-autoloads devdocs-autoloads protobuf-mode-autoloads ein-autoloads polymode-autoloads anaphora-autoloads puni-autoloads quickrun-autoloads conda-autoloads pythonic-autoloads init-telega telega-autoloads rainbow-identifiers-autoloads init-gpg init-autocompile auto-compile auto-compile-autoloads init-keyfreq keyfreq keyfreq-autoloads init-treemacs treemacs-tab-bar-autoloads treemacs-persp-autoloads persp-mode-autoloads treemacs-magit-autoloads treemacs-icons-dired-autoloads treemacs-projectile-autoloads treemacs-autoloads cfrs-autoloads hydra-autoloads pfuture-autoloads ace-window-autoloads avy-autoloads init-projectile init-rg rg-autoloads wgrep-autoloads init-terminal-here terminal-here-autoloads init-vterm eat-autoloads init-rime sis sis-autoloads phi-search-autoloads init-pdftools pdf-tools-autoloads tablist-autoloads init-treesitter treesitter-context-autoloads posframe-plus-autoloads nix-ts-mode-autoloads nix-mode-autoloads init-dirvish dirvish-autoloads init-blink blink-search-autoloads init-vertico deadgrep-autoloads savehist consult-dir-autoloads consult-org-roam consult-org-roam-buffer consult bookmark pp emacsql-sqlite-builtin sqlite org-roam-migrate org-roam-log org-roam-mode org-roam-capture org-roam-id org-roam-node org-roam-db org-roam-utils org-roam-compat org-roam org-capture org-element org-persist avl-tree generator org-attach org-id org-refile org-element-ast inline ob-scheme ob-rust ob-latex ob-shell ob-python python project ob-js ob-java ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie treesit executable ob-comint org-pcomplete org-list org-footnote org-faces org-entities noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs thingatpt find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs emacsql-sqlite emacsql-sqlite-common emacsql emacsql-compiler magit-section cursor-sensor dash consult-org-roam-autoloads embark-consult-autoloads embark-autoloads marginalia marginalia-autoloads orderless-autoloads vertico-autoloads init-magit blamer async vc-git posframe tramp rx trampver tramp-integration files-x tramp-message tramp-compat xdg parse-time iso8601 format-spec tramp-loaddefs blamer-autoloads diff-hl log-view log-edit message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader add-log pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode track-changes diff-hl-autoloads forge-autoloads yaml-autoloads ghub-autoloads treepy-autoloads let-alist-autoloads closql-autoloads magit-autoloads git-commit-autoloads with-editor-autoloads transient-autoloads init-lspmode lsp-ui-autoloads lsp-mode-autoloads lv-autoloads markdown-mode-autoloads spinner-autoloads ht-autoloads init-completion lsp-copilot-autoloads copilot-autoloads editorconfig-autoloads use-package-ensure company-box-autoloads frame-local-autoloads company-quickhelp-autoloads pos-tip-autoloads company-autoloads cape-keyword cape-char cape compat cape-autoloads nerd-icons-corfu-autoloads consult-eglot-autoloads consult-autoloads eglot-booster-autoloads eglot-java-autoloads eglot-autoloads track-changes-autoloads jsonrpc-autoloads external-completion-autoloads flymake-autoloads eldoc-autoloads init-yasnippet yasnippet yasnippet-autoloads init-dashboard welcome-dashboard-autoloads init-ibuffer ibuffer-projectile-autoloads projectile-autoloads init-dogears dogears-autoloads map-autoloads init-meow meow meow-tutor meow-cheatsheet meow-cheatsheet-layout meow-core meow-shims delsel meow-esc meow-command array meow-beacon meow-thing meow-visual meow-keypad meow-helpers meow-util meow-keymap meow-face meow-var meow-autoloads init-themes transwin-autoloads beacon-autoloads svg-tag-mode svg-lib svg dom xml svg-tag-mode-autoloads svg-lib-autoloads flycheck-autoloads minions-autoloads hide-mode-line-autoloads doom-modeline-autoloads shrink-path-autoloads f-autoloads nerd-icons-autoloads page-break-lines-autoloads mixed-pitch-autoloads iscroll-autoloads use-package-diminish doom-themes-ext-org doom-themes-ext-visual-bell face-remap doom-nord-light-theme pcase doom-themes doom-themes-base doom-themes-autoloads indent-bars-autoloads all-the-icons-autoloads init-fonts unicad-autoloads color init-popper popper-autoloads init-window transpose-frame-autoloads auto-dim-other-buffers-autoloads window-numbering-autoloads init-pixel-scroll good-scroll good-scroll-linear good-scroll-bezier good-scroll-autoloads init-gui-frames default-text-scale-autoloads init-osx-keys osx-location-autoloads init-org org-popup-posframe-autoloads posframe-autoloads org-noter-autoloads nov-autoloads esxml-autoloads kv-autoloads djvu-autoloads org-download-autoloads async-autoloads xeft-autoloads htmlize-autoloads org-tidy-autoloads org-visual-outline-autoloads zotxt-autoloads deferred-autoloads request-autoloads org-xlatex-autoloads org-roam-ui-autoloads websocket-autoloads simple-httpd-autoloads finder-inf org-roam-autoloads magit-section-autoloads emacsql-autoloads dash-autoloads s-autoloads valign-autoloads org-modern-autoloads compat-autoloads seq-autoloads org-appear-autoloads org-remoteimg-autoloads tex-mode compile text-property-search shell pcomplete comint ansi-osc ansi-color ring org-autoloads ob-rust-autoloads adaptive-wrap-autoloads visual-fill-column-autoloads init-latex cdlatex-autoloads auctex-autoloads tex-site info init-outli edmacro kmacro outli-autoloads use-package-bind-key init-autosave focus-autosave-mode focus-autosave-mode-autoloads bind-key easy-mmode init-exec-path use-package-core project-autoloads xref-autoloads init-straight straight-autoloads cl-extra help-mode straight init-site-lisp init-basic hl-line init-const init-utils emacs-git-version clangd-inactive-regions-autoloads web-mode-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 632317 328409) (symbols 48 45976 0) (strings 32 207152 14405) (string-bytes 1 7619467) (vectors 16 82361) (vector-slots 8 1183471 97559) (floats 16 1382 9124) (intervals 56 6455 117) (buffers 992 25)) From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 07:29:50 2024 Received: (at 74412) by debbugs.gnu.org; 18 Nov 2024 12:29:50 +0000 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 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 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==; Date: Mon, 18 Nov 2024 14:29:38 +0200 Message-Id: <86h684vi6l.fsf@gnu.org> From: Eli Zaretskii To: Taka Obsid In-Reply-To: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> (message from Taka Obsid on Mon, 18 Nov 2024 10:59:00 +0800) Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 20:48:43 2024 Received: (at 74412) by debbugs.gnu.org; 19 Nov 2024 01:48:43 +0000 Received: from localhost ([127.0.0.1]:39882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDDMA-0007Jm-GO for submit@debbugs.gnu.org; Mon, 18 Nov 2024 20:48:42 -0500 Received: from mail-wm1-f47.google.com ([209.85.128.47]:60567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDDM7-0007Jd-IZ for 74412@debbugs.gnu.org; Mon, 18 Nov 2024 20:48:40 -0500 Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4315df7b43fso3286625e9.0 for <74412@debbugs.gnu.org>; Mon, 18 Nov 2024 17:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731980859; x=1732585659; darn=debbugs.gnu.org; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=GDkHuxI/vv/ei8KWTLa3cwlfgiF2gL06A9KlSa1Qj8k=; b=VjiGOruwzy0/XNoXVOHRDqgH3/zaPXvX2yVBGH9r4cMgT04Zdt85a3kuBbuAALo58C nk2aJoQuPTSeBu07wrp0L/YrZmG3SAK8mm6BW0uM2zuj8K0h59i+NIqQqHO4A5sA2+16 1Wk8VfSV7N2VaAUYKHTfwFwa0inASPodclBcq4ESM2xsWJXuprRvhoy8AdNKhHNY6PNH XFrFCrliTzIrjTAMJpiWQcq74jxo4ksmNatpL46LhYwmiekwL2EI4UiWZev7k2EGrVV1 TfdmGcgc7Cp8AgIkuttCAzEMaO0WQbs4vNqMz9tEl/p+fJXkVyO2+4KcY4t6uZAXapGJ Ud5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731980859; x=1732585659; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GDkHuxI/vv/ei8KWTLa3cwlfgiF2gL06A9KlSa1Qj8k=; b=T4N9A7ZfmK+eW0nmSWcItKfpAlURfUZSI1UCQ0rlWP29+AkapV2WyCBbWBbL8K9qcl hvvCyJTyixAodbm4nrr+L9ZWlhihEj91fr3sBynSkfQPAlwZKOHXFmcjFlfctOE1TqTK ob618KDkMrJZR1E8IpGps14S+Bd9zdq3UJZJsIX6jjQufvcAUfN3FG7aNHFF/pvdezhS rq931JoJaD3/FOj3mmoDFIbNnN6zJAtg1R69Nd52kNvc6Y2H44p16it5RQp1eUvGqJTz LZFCUlIRftWpXkojCOCBdwnOEuJwbfpfUMXlRek81in7RvAOFEdtAQcvSmXuZRoeO1nA ZFLA== X-Gm-Message-State: AOJu0YynVrtUsHay68AeIl+RsNpSBy/z/ejZrB3tyZhLxZFrOX8Bu2HY YKfi976y+WsRcU0g9F7Ts6vM6Q4qGAEhFNbAlLLuSU7YGr2+ycxR X-Google-Smtp-Source: AGHT+IED6XQ2g6PtA978e84neW6WoccdoFsiCLGS2M+hkLKEIWeGxrMb9gSmRAOhRKvbjOqRPU7H3A== X-Received: by 2002:a05:600c:46c3:b0:431:40ca:ce44 with SMTP id 5b1f17b1804b1-432df7906e3mr131255465e9.30.1731980858575; Mon, 18 Nov 2024 17:47:38 -0800 (PST) Received: from [198.18.0.1] ([185.217.110.129]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3823a0e8f26sm8073919f8f.31.2024.11.18.17.47.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Nov 2024 17:47:37 -0800 (PST) Content-Type: multipart/alternative; boundary="------------rcHVY0xVwfq0xLn9zyfNeXLj" Message-ID: <7a42b50d-39f1-4628-a1d6-eb036946ee8a@gmail.com> Date: Tue, 19 Nov 2024 09:47:34 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 To: Eli Zaretskii References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> <86h684vi6l.fsf@gnu.org> From: Taka Obsid In-Reply-To: <86h684vi6l.fsf@gnu.org> X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) This is a multi-part message in MIME format. --------------rcHVY0xVwfq0xLn9zyfNeXLj Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Yes, I have reported it in https://github.com/jdtsmith/outli/issues/17 and the developer recommended me to file this bug report. This is what he said: > This seems to be a new conflict with Emacs 31, and potentially a problem with |treesit-outline|. > Can you please file an Emacs bug report and link it here? 在 2024/11/18 20:29, Eli Zaretskii 写道: >> Date: Mon, 18 Nov 2024 10:59:00 +0800 >> From: Taka Obsid >> >> Hi, I'm using `java-ts-mode' andhttps://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. --------------rcHVY0xVwfq0xLn9zyfNeXLj Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Yes, I have reported it in https://github.com/jdtsmith/outli/issues/17 and the developer
recommended me to file this bug report. This is what he said:

> This seems to be a new conflict with Emacs 31, and potentially a problem with treesit-outline.
> Can you please file an Emacs bug report and link it here?

在 2024/11/18 20:29, Eli Zaretskii 写道:
Date: Mon, 18 Nov 2024 10:59:00 +0800
From: Taka Obsid <liaotx2@gmail.com>

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 () #<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)
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.
--------------rcHVY0xVwfq0xLn9zyfNeXLj-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 19 10:37:41 2024 Received: (at 74412) by debbugs.gnu.org; 19 Nov 2024 15:37:41 +0000 Received: from localhost ([127.0.0.1]:43693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDQIP-0003zu-6g for submit@debbugs.gnu.org; Tue, 19 Nov 2024 10:37:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDQIN-0003zh-0e for 74412@debbugs.gnu.org; Tue, 19 Nov 2024 10:37:39 -0500 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 1tDQIH-0000gx-Pg; Tue, 19 Nov 2024 10:37:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SDtqvS+VGTO9okKaQg3tMIGENSpTH6x2vNMt6Z/NLEY=; b=a35f8WMfK/LAHBJZeT39 mEWH300s4sEuwXDHdgu60K4fIVR+MvlLAbQgpV2bDX48LNhLy7IVPYSRMIx35Nr2goS4hRZ9Mn2vv ptiXjcxMTLj/N/Z/XP4kiAlUWtBi0zc8brH2yFhCMv4hyuEyN2M9igXw2mwwsB+elXcHFhqhPRVFo KEoFPVA+a3lK3OlQlv4RFqeQucfo3KvNxQGD5McMeHMJw/SHffOiXyh8h6Ftc0FK2mnxf/xU/gbiq 3NxdxMyKHBaIKj5AUMDJJMMkMz0pf2AJFGBgXeedcVU7W2NdOvP4aqxCBJlYfWbQyTlwS87JBfi+Z dxa4XF659zhSLQ==; Date: Tue, 19 Nov 2024 17:37:31 +0200 Message-Id: <86r077tetg.fsf@gnu.org> From: Eli Zaretskii To: Taka Obsid , Yuan Fu In-Reply-To: <7a42b50d-39f1-4628-a1d6-eb036946ee8a@gmail.com> (message from Taka Obsid on Tue, 19 Nov 2024 09:47:34 +0800) Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> <86h684vi6l.fsf@gnu.org> <7a42b50d-39f1-4628-a1d6-eb036946ee8a@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 19 Nov 2024 09:47:34 +0800 > Cc: 74412@debbugs.gnu.org > From: Taka Obsid > > Yes, I have reported it in https://github.com/jdtsmith/outli/issues/17 and the developer > recommended me to file this bug report. This is what he said: > > > This seems to be a new conflict with Emacs 31, and potentially a problem with treesit-outline. > > Can you please file an Emacs bug report and link it here? Yuan, could you please take a look? > 在 2024/11/18 20:29, Eli Zaretskii 写道: > > 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 19 13:13:53 2024 Received: (at 74412) by debbugs.gnu.org; 19 Nov 2024 18:13:53 +0000 Received: from localhost ([127.0.0.1]:43951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDSjZ-0002WH-1Q for submit@debbugs.gnu.org; Tue, 19 Nov 2024 13:13:53 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:57039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDSjX-0002W3-IF for 74412@debbugs.gnu.org; Tue, 19 Nov 2024 13:13:52 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 73CD5240004; Tue, 19 Nov 2024 18:13:22 +0000 (UTC) From: Juri Linkov To: Taka Obsid Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 In-Reply-To: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> (Taka Obsid's message of "Mon, 18 Nov 2024 10:59:00 +0800") Organization: LINKOV.NET References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> Date: Tue, 19 Nov 2024 20:09:40 +0200 Message-ID: <87h683jdsr.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > 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 () #) > 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) 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? From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 19 22:35:36 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 03:35:36 +0000 Received: from localhost ([127.0.0.1]:44753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDbV5-0001lB-He for submit@debbugs.gnu.org; Tue, 19 Nov 2024 22:35:36 -0500 Received: from mail-wm1-f51.google.com ([209.85.128.51]:42129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDbV2-0001kv-IK for 74412@debbugs.gnu.org; Tue, 19 Nov 2024 22:35:29 -0500 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-431616c23b5so2299155e9.0 for <74412@debbugs.gnu.org>; Tue, 19 Nov 2024 19:35:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732073663; x=1732678463; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=XlryavT/hLrPIVgaFpAxuKyU6guINFknsmEgQ+8uFBY=; b=Da0mpR+TTszwQYW8k9rOPPdWBA6WeG/mp2GYYULGA7+sBvumid3g+YsJ9IZqZE2Vrw VssnK8PWNZJAeTGLRwwPWvHYkWsxxXUUtpLE6A8Op0Q/3lnz5xO8yfQI+duxir6Knc8t XW+9aYh/ExVpsYyZAflzPbX6b3adwRSjgDP7YwI7W7blRIIh7QWAdiUV68NBuJpth98q EOZ03IF9wRZK9buddgHOktkj6U5oAqqcB63hTdSOESfWiOn9Ir68FgA0ippUeMAiRO7N CLt3AeNlVLl6JR2pgJqSeaMOJKn/LH+LYUNRsxZ/5Y6NyCgRiOA5yeZGDVp6nINOc0sm nrqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732073663; x=1732678463; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=XlryavT/hLrPIVgaFpAxuKyU6guINFknsmEgQ+8uFBY=; b=i/r/9RLlw2J/GwHVwkgsCwhOvuyoDnQyZiNvjiuuk7n/uCe21m1Tx0feA7A+Zs0ME/ Rq87YqYx5X9O5lqDnaZPHdWrKEF/nSLmpG1iH1tLSjvf+UwxD0d0J3GsYujTwphQxGMo wCthOkYfcGiofySIbHqqgVAXI1VGVCaYDO9jHiX/VnIon1MyvXNKTOIJuETwhTW+8or9 +kVhxon40094pHhrxwOzUsilFSsL3ZOgwqZTFgNP8RmPkAVEdO2crYBjAfmXRuSHnK/n SDAIOfzpYOZvqF6/XLWptygh9bAePZv092xD9Eu3cHQ+86vT4d/N9SMaU38bgy6NJOGl cEQw== X-Gm-Message-State: AOJu0Yy/ToJtoofjI6sQnlF3zm2ErMyLrax59wjoeyC/bAgLxseO+VWj LLVsxnUnRB1wr/61FsfG3XBoYxLAGK3767ijCEpouYZDzzbjXPHgRiV5x2RNFKU= X-Google-Smtp-Source: AGHT+IEcLDLJeIM8aVNU5huoez9GH2Cq22EHauQhq2QqnxIu4kseL5Z4Tlrw92CqZK4UAYif0Vsdsw== X-Received: by 2002:a05:600c:1390:b0:42c:b54c:a6d7 with SMTP id 5b1f17b1804b1-432f57f3456mr47934425e9.14.1732073662578; Tue, 19 Nov 2024 19:34:22 -0800 (PST) Received: from [198.18.0.1] ([185.217.110.129]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825490c682sm860431f8f.31.2024.11.19.19.34.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Nov 2024 19:34:21 -0800 (PST) Message-ID: <23466bfc-9ec0-498d-a39a-5e2d5749808a@gmail.com> Date: Wed, 20 Nov 2024 11:34:17 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 To: Juri Linkov References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> <87h683jdsr.fsf@mail.linkov.net> From: Taka Obsid In-Reply-To: <87h683jdsr.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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\")           (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. It seems this bug only appears in gui emacs. The `revert-buffer' works fine in tui. 在 2024/11/20 02:09, Juri Linkov 写道: >> 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 () #) >> 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) > 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? From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 02:18:53 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 07:18:53 +0000 Received: from localhost ([127.0.0.1]:45030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDezE-00041R-V8 for submit@debbugs.gnu.org; Wed, 20 Nov 2024 02:18:53 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:45323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDezC-00040x-6T for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 02:18:50 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 9EC6640005; Wed, 20 Nov 2024 07:18:20 +0000 (UTC) From: Juri Linkov To: Taka Obsid Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 In-Reply-To: <23466bfc-9ec0-498d-a39a-5e2d5749808a@gmail.com> (Taka Obsid's message of "Wed, 20 Nov 2024 11:34:17 +0800") Organization: LINKOV.NET References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> <87h683jdsr.fsf@mail.linkov.net> <23466bfc-9ec0-498d-a39a-5e2d5749808a@gmail.com> Date: Wed, 20 Nov 2024 09:15:10 +0200 Message-ID: <87o72a2x6p.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 09:08:00 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 14:08:00 +0000 Received: from localhost ([127.0.0.1]:45871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDlN9-0005zU-DK for submit@debbugs.gnu.org; Wed, 20 Nov 2024 09:07:59 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:56375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDlN7-0005zK-40 for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 09:07:57 -0500 Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-38248b810ffso1481830f8f.0 for <74412@debbugs.gnu.org>; Wed, 20 Nov 2024 06:07:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732111616; x=1732716416; darn=debbugs.gnu.org; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=E/Gx+csw1gH0D0wx7czfCX5USacUK5D2U5OCeygVsqU=; b=cy0f45upuL/QZzypsqqJBcstbUvUHP88JOikMVTlHKvRPuQiJ36ynNSvA2nx+3UqmJ RYO9Zdgyez6wEV2ElE+GJsA0FcwINctBeSbyK7ZaQq5vvnAwSzYd5nxXcDD6/UU5eAKG vWtFML7qeVS1GBHgO13Wu0cREcNL0md/ch9rwiKav8y17uha5GVH/aa3zy2wmz4cL9wD Dfhsx2sY0B4rAq0wtKtTyxZ9xq4DDWLrQJR0j+d1Xv6thf2GurteUW+KLJCS1rM/coig TyDCtj4FlxbtBEvvuVTr8X9HwcH5w7WlfbBC1PEBNKTzP98kFbkjzidsWN2PQrIkl86g 4Rxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732111616; x=1732716416; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=E/Gx+csw1gH0D0wx7czfCX5USacUK5D2U5OCeygVsqU=; b=Ycdf+AlWj1oBctvtwxTkhqk+ZTEK9VMpokjVfXOluTO3Lcfsz+Rjlt8RwAjy7hByTj OxQL/r836d/6pqvDr9KAa5PbYdlG9Bpu4LIjqF1dMAFzf/ljbCjaZ9k+2+E8W5KySFCM TKjp1OXvR689FopuBRgmONO2LbfL/mo5CWRalA0cUMkAwP+Yuvk1i3q2fviwRIHH0ltS vhphP0+LIoXW6NWA3r+aGlXTvG7fHkB/5jTsnQRNhgFqbeEzm4OciBF7MrsDLtLEpsmJ GXRuNJun71y2uruIGuj+HZ4+5vJmT2k7VPgV8tBqUpBJ436OYkBumt0H6Gs4e182QrSo n33A== X-Gm-Message-State: AOJu0Yzdw2AGia2xgO/Hx7Vwzrk6VxxZ9BFYw3JBpbX/hpbyfooHJOvs /We0puWlboU9euhbMygrHn0ErTvTUX6TZ3ydM0UYY7OEb/e4VSI5ROLiJmC3 X-Google-Smtp-Source: AGHT+IG5M7WMvkwYfS+6dRovqqUPAM8g5Zwq3cHrVOdle7qYomLBtIuj+0e78hjgwpGAvT1uhfPy+w== X-Received: by 2002:a5d:47a6:0:b0:382:4e57:48e7 with SMTP id ffacd0b85a97d-38254ade9b9mr2419197f8f.10.1732111615982; Wed, 20 Nov 2024 06:06:55 -0800 (PST) Received: from [198.18.0.1] ([185.217.110.129]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825493e7d2sm2248519f8f.86.2024.11.20.06.06.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Nov 2024 06:06:55 -0800 (PST) Content-Type: multipart/alternative; boundary="------------pEJFq9SuONL20cmxLo7JlT2N" Message-ID: <037e3f70-75cf-4ccc-b450-74b1cd0f6aad@gmail.com> Date: Wed, 20 Nov 2024 22:06:52 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 To: Juri Linkov 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> From: Taka Obsid In-Reply-To: <87o72a2x6p.fsf@mail.linkov.net> X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) This is a multi-part message in MIME format. --------------pEJFq9SuONL20cmxLo7JlT2N Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit OK I just find the java-ts-mode and treesit.el is not from `straight'... So the start script now only load `outli'. I tried clone `outli' into `~/src/outli', and it works fine, while the straight build version is not. I diffed the `~/.emacs.d/straight/build/outli/outli.el' with `~/src/outli/outli.el' and found that they are same. But there is a file `outli-autoloads.el' in `~/.emacs.d/straight/build/outli', which be generated by `straight'. This file contains: ```elisp (autoload 'outli-mode "outli" "\ Simple outline mode interaction based on comment-headings. This is a minor mode. If called interactively, toggle the `Outli mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is `toggle'. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate the variable `outli-mode'. The mode's hook is called both when the mode is enabled and when it is disabled. \\{outli-mode-map} (fn &optional ARG)" t) (register-definition-prefixes "outli" '("outli-")) ``` I commented the line `(register-definition-prefixes "outli" '("outli-"))', and load `~/.emacs.d/straight/build/outli/outli.el', and the `revert-buffer' works. 在 2024/11/20 15:15, Juri Linkov 写道: >> 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. --------------pEJFq9SuONL20cmxLo7JlT2N Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

OK I just find the java-ts-mode and treesit.el is not from `straight'... So the start script now only load `outli'.


I tried clone `outli' into `~/src/outli', and it works fine, while the straight build version is not.


I diffed the `~/.emacs.d/straight/build/outli/outli.el' with `~/src/outli/outli.el' and found that they are same. But there is a

file `outli-autoloads.el' in `~/.emacs.d/straight/build/outli', which be generated by `straight'. This file contains:

```elisp

(autoload 'outli-mode "outli" "\ Simple outline mode interaction based on comment-headings. This is a minor mode. If called interactively, toggle the `Outli mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is `toggle'. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate the variable `outli-mode'. The mode's hook is called both when the mode is enabled and when it is disabled. \\{outli-mode-map} (fn &optional ARG)" t) (register-definition-prefixes "outli" '("outli-"))

```

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

and the `revert-buffer' works.

在 2024/11/20 15:15, Juri Linkov 写道:
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.
--------------pEJFq9SuONL20cmxLo7JlT2N-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 12:07:50 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 17:07:50 +0000 Received: from localhost ([127.0.0.1]:47588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDoBC-0006PJ-EG for submit@debbugs.gnu.org; Wed, 20 Nov 2024 12:07:50 -0500 Received: from mail-pg1-f174.google.com ([209.85.215.174]:51420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDoBA-0006PA-AS for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 12:07:48 -0500 Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-7ede82dbb63so8034a12.2 for <74412@debbugs.gnu.org>; Wed, 20 Nov 2024 09:07:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732122407; x=1732727207; darn=debbugs.gnu.org; h=mime-version:subject:message-id:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=egMqdc0a9k/DDADlBvOtUGsCt7aFs907PmFC++L6LBQ=; b=E3Q6kVK42GI9VOC2Nb7cNR6DsH0GEYtMW6g4SUlXGOjmf55RiusP6moR+ToNANEetc 1KKUXYb9hL/4nAfO5ZeeVnB5BnyLx9FFhxVXY4Ma6c3l/WuDlMumI3BRsgK7PoVR1SIl /4wvUWlWRw0rSvpVn4VgVUWKKBjcVsBHPYJrXHknqGrPZqF+OatDyeFaVx7mBwzjs0CB OEMy8IQRlhn3XPdoXVvOuZ9xG9+0TIBy1q2uAbLbkGCjD/6S/PuBEbCc3c3fntlO4gOy NuFnMjcw0GH7YA/TWJxelHCVpZdXCrMUni7l+QOGh0xnRKBiW4HN6y5sq1Mj/xxpDyCk KnzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732122407; x=1732727207; h=mime-version:subject:message-id:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=egMqdc0a9k/DDADlBvOtUGsCt7aFs907PmFC++L6LBQ=; b=BUGBWlAaqzFumgPpMwo/pw4ZKGJrwMbjMWUAJ9OWo1ufhf9F5bM8ft43u8wbD5as0J UdCVGdKbrAdy4D2523VPWGWjkyOBm4Zi0ocYf5NW9e+6biPhZuY8Ki+Dh3leYf20wwRW iZebZkS2/llxrQCKqfOiFAivT+4ieU4Sr7it82hhfm1to73ITzDUFF2ABKSAUHWPvRLK 5NvTgDvVrbUXRy/TL5Z7As0Qwf63DfauNfUirWGtBCVwjo/otwJDReW2ed1UksJH8thm HweJOfk2NbdLwItNumoYbiEYJO24Z89zbcHS0F7I3XfaT8jJFRt4JJOW2l6/inkximSw UeZg== X-Gm-Message-State: AOJu0YyC22BeRwCCeD2bGHmAr6T6VSEj+WaCj+YweTqd2Q75qbsKqXb7 vloC/e0QsSP5D9lZM+uUFaAegTiq3AZNi6ucRX84vvK5LK8UDjC1eW7gjQoiwz4= X-Google-Smtp-Source: AGHT+IFy1CxB4sifXA8X/1SBjIdlfl0LeLfJKUheDljjgbTuhOvnCAjuPrBQHCa08RkUwpyl4hTEcw== X-Received: by 2002:a05:6a20:c511:b0:1db:ec0f:5cf4 with SMTP id adf61e73a8af0-1ddb11d80damr3359998637.39.1732122406664; Wed, 20 Nov 2024 09:06:46 -0800 (PST) Received: from dan-laptop ([2405:4802:bfff:6f10:4e7e:a8aa:eff7:d8f]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724befb27bfsm1871953b3a.169.2024.11.20.09.06.45 for <74412@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Nov 2024 09:06:45 -0800 (PST) Date: Thu, 21 Nov 2024 00:06:41 +0700 From: Daan Ro To: "=?utf-8?Q?liaotx2=40gmail.com?=" Message-ID: <8316FFB6-1373-4EC5-9EFB-5B05A1DE0F72@getmailspring.com> Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="673e1721_4d6dc96a_921" X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Personally I also find treesit's decision to set outline variables somewhat intrusive. I have to advice `treesit-major-mode-setup` to disable that. If only there is an easier way to do it like the att [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [209.85.215.174 listed in sa-trusted.bondedsender.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (daanturo[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_IMAGE_RATIO_06 BODY: HTML has a low ratio of text to image area 1.6 HTML_IMAGE_ONLY_12 BODY: HTML: images with 800-1200 bytes of words 0.0 HTML_MESSAGE BODY: HTML included in message -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.215.174 listed in list.dnswl.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [209.85.215.174 listed in bl.score.senderscore.com] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.215.174 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_REMOTE_IMAGE Message contains an external image X-Debbugs-Envelope-To: 74412 Cc: "=?utf-8?Q?74412=40debbugs.gnu.org?=" <74412@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.6 (/) --673e1721_4d6dc96a_921 Content-Type: multipart/alternative; boundary="673e1721_447a8643_921" --673e1721_447a8643_921 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Personally I also find treesit's decision to set outline variables somewhat intrusive. I have to advice `treesit-major-mode-setup` to disable that. If only there is an easier way to do it like the attached patch. Daanturo --673e1721_447a8643_921 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Personally I also find treesit's decision to set outline variables
somewhat intrusive. I have to advice =60treesit-major-mode-setup= =60 to
disable that. If only there is an easier way to do it li= ke the
attached patch.


Daanturo
--673e1721_447a8643_921-- --673e1721_4d6dc96a_921 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Add-custom-option-treesit-enable-outline-settings.patch" RnJvbSBhNmFhNjQyMDY0MDkyMmM3NDhiMTczY2ZlYjFjZjIwZWUxYmFhZGU4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYWFudHVybyA8ZGFhbnR1cm9AZ21haWwuY29tPgpEYXRlOiBX ZWQsIDIwIE5vdiAyMDI0IDE0OjMzOjAyICswMDAwClN1YmplY3Q6IFtQQVRDSF0gQWRkIGN1c3Rv bSBvcHRpb24gdHJlZXNpdC1lbmFibGUtb3V0bGluZS1zZXR0aW5ncwoKKiBsaXNwL3RyZWVzaXQu ZWw6IERlZmluZSB0aGUgdmFyaWFibGUgYW5kIHVzZSBpdCBpbgp0cmVlc2l0LW1ham9yLW1vZGUt c2V0dXAuCi0tLQogbGlzcC90cmVlc2l0LmVsIHwgNiArKysrKysKIDEgZmlsZSBjaGFuZ2VkLCA2 IGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9saXNwL3RyZWVzaXQuZWwgYi9saXNwL3RyZWVz aXQuZWwKaW5kZXggMjUxODIwNGNlOTMuLjQ1NzIwMzI1ZjczIDEwMDY0NAotLS0gYS9saXNwL3Ry ZWVzaXQuZWwKKysrIGIvbGlzcC90cmVlc2l0LmVsCkBAIC05NDMsNiArOTQzLDExIEBAIHRyZWVz aXQtZm9udC1sb2NrLWxldmVsCiAgIDpzZXQgIyd0cmVlc2l0LS1mb250LWxvY2stbGV2ZWwtc2V0 dGVyCiAgIDp2ZXJzaW9uICIyOS4xIikKIAorKGRlZmN1c3RvbSB0cmVlc2l0LWVuYWJsZS1vdXRs aW5lLXNldHRpbmdzIHQKKyAgIk5vbi1uaWwgbWVhbnMgVHJlZSBzaXR0ZXItYmFzZWQgb3V0bGlu ZSBzZXR0aW5ncyBhcmUgZW5hYmxlZC4iCisgIDp0eXBlICdib29sZWFuCisgIDp2ZXJzaW9uICIz MS4xIikKKwogKGRlZnZhci1sb2NhbCB0cmVlc2l0LS1mb250LWxvY2stcXVlcnktZXhwYW5kLXJh bmdlIChjb25zIDAgMCkKICAgIlRoZSBhbW91bnQgdG8gZXhwYW5kIHRoZSBzdGFydCBhbmQgZW5k IG9mIHRoZSByZWdpb24gd2hlbiBmb250aWZ5aW5nLgogVGhpcyBzaG91bGQgYmUgYSBjb25zIGNl bGwgKFNUQVJUIC4gRU5EKS4gIFdoZW4gZm9udGlmeWluZyBhCkBAIC0zMTU1LDYgKzMxNjAsNyBA QCB0cmVlc2l0LW1ham9yLW1vZGUtc2V0dXAKIAogICA7OyBPdXRsaW5lIG1pbm9yIG1vZGUuCiAg ICh3aGVuIChhbmQgKG9yIHRyZWVzaXQtb3V0bGluZS1wcmVkaWNhdGUgdHJlZXNpdC1zaW1wbGUt aW1lbnUtc2V0dGluZ3MpCisgICAgICAgICAgICAgdHJlZXNpdC1lbmFibGUtb3V0bGluZS1zZXR0 aW5ncwogICAgICAgICAgICAgIChub3QgKHNlcS1zb21lICMnbG9jYWwtdmFyaWFibGUtcAogICAg ICAgICAgICAgICAgICAgICAgICAgICAgICcob3V0bGluZS1zZWFyY2gtZnVuY3Rpb24KICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIG91dGxpbmUtcmVnZXhwIG91dGxpbmUtbGV2ZWwpKSkp Ci0tIAoyLjQ3LjAKCg== --673e1721_4d6dc96a_921-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 12:24:12 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 17:24:12 +0000 Received: from localhost ([127.0.0.1]:47618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDoR1-00076m-Tm for submit@debbugs.gnu.org; Wed, 20 Nov 2024 12:24:12 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:44257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDoR0-00076Y-AN for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 12:24:10 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 585B640003; Wed, 20 Nov 2024 17:24:03 +0000 (UTC) From: Juri Linkov To: Taka Obsid Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 In-Reply-To: <037e3f70-75cf-4ccc-b450-74b1cd0f6aad@gmail.com> (Taka Obsid's message of "Wed, 20 Nov 2024 22:06:52 +0800") Organization: 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> Date: Wed, 20 Nov 2024 19:21:38 +0200 Message-ID: <87a5dtzuql.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I commented the line `(register-definition-prefixes "outli" '("outli-"))', > and load `~/.emacs.d/straight/build/outli/outli.el', > > and the `revert-buffer' works. This is a very weird effect. Maybe it's caused by file versions mismatch? From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 12:24:29 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 17:24:29 +0000 Received: from localhost ([127.0.0.1]:47621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDoRJ-00077G-6s for submit@debbugs.gnu.org; Wed, 20 Nov 2024 12:24:29 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:41623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDoRH-000773-Ap for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 12:24:27 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id B589E40004; Wed, 20 Nov 2024 17:23:58 +0000 (UTC) From: Juri Linkov To: Daan Ro Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 In-Reply-To: <8316FFB6-1373-4EC5-9EFB-5B05A1DE0F72@getmailspring.com> (Daan Ro's message of "Thu, 21 Nov 2024 00:06:41 +0700") Organization: LINKOV.NET References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> <8316FFB6-1373-4EC5-9EFB-5B05A1DE0F72@getmailspring.com> Date: Wed, 20 Nov 2024 19:18:41 +0200 Message-ID: <87serlzuvi.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74412 Cc: "74412@debbugs.gnu.org" <74412@debbugs.gnu.org>, "liaotx2@gmail.com" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Personally I also find treesit's decision to set outline variables > somewhat intrusive. I have to advice `treesit-major-mode-setup` to > disable that. If only there is an easier way to do it like the > attached patch. > > +(defcustom treesit-enable-outline-settings t > + "Non-nil means Tree sitter-based outline settings are enabled." > + :type 'boolean > + :version "31.1") Should such an option be more general and allow disabling some other features too? There is already 'treesit-font-lock-recompute-features'. So a new option could have a similar name, e.g. 'treesit-disable-features' that the users could set to e.g. (setopt treesit-disable-features '(outline imenu)) From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 12:52:23 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 17:52:23 +0000 Received: from localhost ([127.0.0.1]:47673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDosI-0008OX-Ss for submit@debbugs.gnu.org; Wed, 20 Nov 2024 12:52:23 -0500 Received: from mail-pl1-f175.google.com ([209.85.214.175]:55472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDosG-0008OO-Lc for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 12:52:21 -0500 Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-21207f0d949so45392485ad.2 for <74412@debbugs.gnu.org>; Wed, 20 Nov 2024 09:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732125079; x=1732729879; darn=debbugs.gnu.org; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=v3j/5nfqWVInVlh6C6KJWMmVwYOYX8N1ySbomI3DcoE=; b=HWQujYTynjyTdH/7Crd3vCQUGtx+aJOp+MCKjWX5X6Zj2fswf+nE/ryWUuDl/0U2Hy DoyDhM0/76aKh8gAt/sYHANeL11Xv3KUHAgc9qizBrK4UxIVgu68IEiV6Wpu7yVsGCCu aADfh4hCWC8/eAJnsnr+RL0zF1AVOZZqHxH0H35lex8IrV9OrnZDKd6WrfM6RVkoznJq JbryB0KjP+smVz6kJiUoS9ujwclCW4QxgGZtHAy7+nA8p2rSq8/hCtH/ro//zvMwo/Wh UMn58c4UA2RFV/PDSHaXDrW/nMijDzTMicbxXajdffVRekCjWVlaAPtCVqNiZUNHs+ng UKbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732125079; x=1732729879; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v3j/5nfqWVInVlh6C6KJWMmVwYOYX8N1ySbomI3DcoE=; b=fUETCZoTugp7/+ghweEat9A69WXoTPurDCbGirb6kcKv6O+qrduIP9TyF/MhNneAfM AV3hu4jjzvpRRDKoWIkgLqQcUdXmqABEbpQzsMNiIJZtx956zPsu2DKuOsuBB8nNnPw9 1IANy0aw+vhOVQWX0lrRtj9z9/YG95RhoEDa2AokBGn4NvgLiyKkj4q6IvSQ32WceoyM GDl2LMjPSF5MGLePgt9eSdFi1sZhywG9QV3WYzM8LxDMXN0Pn9pFbdVbpDaM0W/6qehX Je6nKh1PWEQyUtmGASd5UxROKQ8P7bNkGsiEkD4Y+89Oxu/JRoUz2MAZCPh34wXm+SgR n0DQ== X-Forwarded-Encrypted: i=1; AJvYcCX1Bd259YmQ/9wpegPxugNz0RNSIwFSq2XQ0tbb9HJZpPJA8ooB/uf5O69rDQySQLIhpvhWAA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Ywq0Pasr67LUrDlfK0+Xhz/gA8oxDgYD76kwm5wwg60ltfdgOCa 4PmTmKrx3GjcVo2IZPfUFhHNdA+SeicK5mnRpqYIx91rD26Z4YywpQ2Af2QmfAg= X-Gm-Gg: ASbGnctZz0XNVpo7VfDKwKSbhLtKWBYQDDly58sj3cN/gxSZ3rqu5YTXwEFXz0Bf3fm to/BfEMNEAEo2cnJVN4yzLMCMg1tJ2ecN2JSSG7P9IflVUp/ohU7wGax1i08hQ23I8MPA0f7N4v 0SEJDt5oxJ1FLJuhArXH00Oc8eelWYWh/X8mpBvMUIbuQR3NDuyv7W1JlxTfsy+xV3UuEWS7jNx CNGFZe29cpHokcTccVA6g3PuYfDZdJ+3uPC+T8cp5N+w0XYiA== X-Google-Smtp-Source: AGHT+IFgqekMId2ZV1iun1TswEyyPtS77UftHQPXJOei5NrZTp+DaBe5R0ueWsXqi8laOxIiBYkGVg== X-Received: by 2002:a17:902:e84c:b0:20c:6399:d637 with SMTP id d9443c01a7336-2126fd8e088mr40654095ad.40.1732125079338; Wed, 20 Nov 2024 09:51:19 -0800 (PST) Received: from dan-laptop ([2405:4802:bfff:6f10:4e7e:a8aa:eff7:d8f]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21263c9b946sm21786995ad.262.2024.11.20.09.51.18 for <74412@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Nov 2024 09:51:18 -0800 (PST) Date: Thu, 21 Nov 2024 00:51:12 +0700 From: Daan Ro To: Juri Linkov Message-ID: In-Reply-To: <87serlzuvi.fsf@mail.linkov.net> References: <87serlzuvi.fsf@mail.linkov.net> Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="673e2190_3c0d46b_921" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 74412 Cc: "=?utf-8?Q?74412=40debbugs.gnu.org?=" <74412@debbugs.gnu.org>, "=?utf-8?Q?liaotx2=40gmail.com?=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --673e2190_3c0d46b_921 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline > So a new option could have a similar name, e.g. > 'treesit-disable-features' that the users could set to e.g. > > (setopt treesit-disable-features '(outline imenu)) That's much better, indeed. Daanturo On Nov 21 2024, at 12:18 am, Juri Linkov wrote: > > Personally I also find treesit's decision to set outline variables > > somewhat intrusive. I have to advice `treesit-major-mode-setup` to > > disable that. If only there is an easier way to do it like the > > attached patch. > > > > +(defcustom treesit-enable-outline-settings t > > + "Non-nil means Tree sitter-based outline settings are enabled." > > + :type 'boolean > > + :version "31.1") > > Should such an option be more general and allow > disabling some other features too? > > There is already 'treesit-font-lock-recompute-features'. > So a new option could have a similar name, e.g. > 'treesit-disable-features' that the users could set to e.g. > > (setopt treesit-disable-features '(outline imenu)) --673e2190_3c0d46b_921 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
> So a new option could have a similar name, e.= g.
> 'treesit-disable-featur= es' that the users could set to e.g.
>
> (setopt treesit-di= sable-features '(outline imenu))

That's much better, indeed.

Daantu= ro
On Nov 21 2024, at 12:18 am, J= uri Linkov <juri=40linkov.net> wrote:
&g= t; Personally I also find treesit's decision to set outline variables
> somewhat intrusive. I have to advice =60treesit-major-mode-se= tup=60 to
> disable that. If only there is an easier way to = do it like the
> attached patch.
>
&g= t; +(defcustom treesit-enable-outline-settings t
> + =22Non-= nil means Tree sitter-based outline settings are enabled.=22
&g= t; + :type 'boolean
> + :version =2231.1=22)

S= hould such an option be more general and allow
disabling some o= ther features too=3F

There is already 'treesit-font-lock-re= compute-features'.
So a new option could have a similar name, e= .g.
'treesit-disable-features' that the users could set to e.g.=

(setopt treesit-disable-features '(outline imenu))
3D=22Sent --673e2190_3c0d46b_921-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 13:30:05 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 18:30:05 +0000 Received: from localhost ([127.0.0.1]:47711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDpSm-0001Yd-Ow for submit@debbugs.gnu.org; Wed, 20 Nov 2024 13:30:05 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51333) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDpSj-0001WT-FA for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 13:30:02 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 5EA85E0006; Wed, 20 Nov 2024 18:29:53 +0000 (UTC) From: Juri Linkov To: Taka Obsid Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 In-Reply-To: <037e3f70-75cf-4ccc-b450-74b1cd0f6aad@gmail.com> (Taka Obsid's message of "Wed, 20 Nov 2024 22:06:52 +0800") Organization: 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> Date: Wed, 20 Nov 2024 20:23:46 +0200 Message-ID: <87plmpwyq5.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > 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 () #)() outline-map-region(#f(compiled-function () #) 1 75) outline--hidden-headings-paths() outline-revert-buffer-restore-visibility() #f(compiled-function (f) #)(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. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 13:30:09 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 18:30:09 +0000 Received: from localhost ([127.0.0.1]:47716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDpSr-0001ax-51 for submit@debbugs.gnu.org; Wed, 20 Nov 2024 13:30:09 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:45179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDpSn-0001WZ-L8 for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 13:30:06 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 9F5CE20004; Wed, 20 Nov 2024 18:29:57 +0000 (UTC) From: Juri Linkov To: Yuan Fu Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 In-Reply-To: (Daan Ro's message of "Thu, 21 Nov 2024 00:51:12 +0700") Organization: LINKOV.NET References: <87serlzuvi.fsf@mail.linkov.net> Date: Wed, 20 Nov 2024 20:25:59 +0200 Message-ID: <87bjy9wymg.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74412 Cc: "74412@debbugs.gnu.org" <74412@debbugs.gnu.org>, "liaotx2@gmail.com" , Daan Ro X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Yuan, what do you think about adding a new option that will allow disabling some features? >>> Personally I also find treesit's decision to set outline variables >>> somewhat intrusive. I have to advice `treesit-major-mode-setup` to >>> disable that. If only there is an easier way to do it like the >>> attached patch. >>> >>> +(defcustom treesit-enable-outline-settings t >>> + "Non-nil means Tree sitter-based outline settings are enabled." >>> + :type 'boolean >>> + :version "31.1") >> >> Should such an option be more general and allow >> disabling some other features too? >> >> There is already 'treesit-font-lock-recompute-features'. >> So a new option could have a similar name, e.g. >> 'treesit-disable-features' that the users could set to e.g. >> >> (setopt treesit-disable-features '(outline imenu)) >> So a new option could have a similar name, e.g. >> 'treesit-disable-features' that the users could set to e.g. >> >> (setopt treesit-disable-features '(outline imenu)) > > That's much better, indeed. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 13:50:30 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 18:50:30 +0000 Received: from localhost ([127.0.0.1]:47749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDpmX-0002XB-Sv for submit@debbugs.gnu.org; Wed, 20 Nov 2024 13:50:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDpmW-0002Wx-05 for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 13:50:28 -0500 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 1tDpmQ-000693-O7; Wed, 20 Nov 2024 13:50:22 -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=KgQmNs61atUledv+Dn4/V0elOaGu3NzLjG9/R+cLBe0=; b=YBrTiqSl5tHM dpVKwSEctkN3SmxcKqOdlcroscSfUUVCohL2XMFoGcg+pMiKW/mKr1aA18Xtg5VT/TBZlfITCsYu0 7+zOjPmkfoRRLz7qLAUIqX+hWPYVHF6ZxVDUQdN+VniOCxvyD48MeHfAr5/cB9S54fNdvumKPt54P dGjYD1tarW6CF746phixxxymjH8s2MvDMJl3Qo3FGLkH7/6LG7quOe2ESSBPfX26d6vqAUtYd4oji INluq9qrmq61QkhBtd2FtWxgXMyv8yyZPLZ0nrbC5d897p/Ezuk3SwtsNFI+RlXK/rtodEWYvpcQz 5YR/09Gyox1JPoB7pG/X/w==; Date: Wed, 20 Nov 2024 20:50:17 +0200 Message-Id: <86ikshspsm.fsf@gnu.org> From: Eli Zaretskii To: Daan Ro In-Reply-To: <8316FFB6-1373-4EC5-9EFB-5B05A1DE0F72@getmailspring.com> (message from Daan Ro on Thu, 21 Nov 2024 00:06:41 +0700) Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> <8316FFB6-1373-4EC5-9EFB-5B05A1DE0F72@getmailspring.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org, liaotx2@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: "74412@debbugs.gnu.org" <74412@debbugs.gnu.org> > Date: Thu, 21 Nov 2024 00:06:41 +0700 > From: Daan Ro > > Personally I also find treesit's decision to set outline variables > somewhat intrusive. I don't understand why. These variables are meant to be set by modes, so treesit.el uses them exactly as intended. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 13:53:20 2024 Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 18:53:20 +0000 Received: from localhost ([127.0.0.1]:47754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDppI-0002bO-Di for submit@debbugs.gnu.org; Wed, 20 Nov 2024 13:53:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDppF-0002b3-Ml for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 13:53:18 -0500 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 1tDpp9-0007Q5-Sw; Wed, 20 Nov 2024 13:53:11 -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=/MFOS8kiRGdh/vPEPoGJ1TerpkDpwiXU9YPcOWl1/bE=; b=jTvmFYrpT6PV PDoDejJLl0V2xrV2tmysl/DkN46cl1PKuidqog1EfprIXiRhiUu8UXbXHf15rV8ZW3w/cAxHH07sW 8y2UjCYTbdayaVE/neaFXpIebvxUJ9Xhy5j+Tj6Gj1/blJy+IcffGq2q2Zd88q2twrKEGzLiZiI9s 4Kuup+e0lslUyYo+mnA7otzDjifVGgaG3n9rjuWgjNzBVYURE4zkmSx5nK7VfKYNH1lWMO0avl7rm 0U0EqSC1BHd2y6khHo1BHaQgpl016FGsgvB5LdCsOxqFdzoC0ybvdiGpqCirBS0wNm7OueIMjw64F 50I0dFmN+ovGCJHXcuOaLA==; Date: Wed, 20 Nov 2024 20:53:07 +0200 Message-Id: <86h681spnw.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <87serlzuvi.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 20 Nov 2024 19:18:41 +0200) Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> <8316FFB6-1373-4EC5-9EFB-5B05A1DE0F72@getmailspring.com> <87serlzuvi.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org, liaotx2@gmail.com, daanturo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: "74412@debbugs.gnu.org" <74412@debbugs.gnu.org>, > "liaotx2@gmail.com" > From: Juri Linkov > Date: Wed, 20 Nov 2024 19:18:41 +0200 > > > Personally I also find treesit's decision to set outline variables > > somewhat intrusive. I have to advice `treesit-major-mode-setup` to > > disable that. If only there is an easier way to do it like the > > attached patch. > > > > +(defcustom treesit-enable-outline-settings t > > + "Non-nil means Tree sitter-based outline settings are enabled." > > + :type 'boolean > > + :version "31.1") > > Should such an option be more general and allow > disabling some other features too? I don't see a need for an option at all. All tree-sitter based modes use these search functions, so treesit.el simply acts on their behalf here. It makes no sense to let users control how a major mode customizes outline-minor-mode, because the major mode is supposed to know how to adapt outlines with its main syntax, and what a heading means in the context of that mode. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 20:50:17 2024 Received: (at 74412) by debbugs.gnu.org; 21 Nov 2024 01:50:17 +0000 Received: from localhost ([127.0.0.1]:48498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDwKm-0004RY-Qv for submit@debbugs.gnu.org; Wed, 20 Nov 2024 20:50:17 -0500 Received: from mail-wm1-f51.google.com ([209.85.128.51]:48294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDwKf-0004O3-Nt for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 20:50:14 -0500 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4315e9e9642so2819025e9.0 for <74412@debbugs.gnu.org>; Wed, 20 Nov 2024 17:50:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732153744; x=1732758544; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=gftnKuqJHVQ8RdGlmIgwDj5Q4MZfKQ4HqFfVsA17YNk=; b=Omh77yrCXsKupx5oGlz9X1klX9LtLwNDCl8o6EsGpoq3iY7L6Ufn4XtOQlKkMlzuDU DKgDL5nZuW1CVnW3ZSXL5rtqgMoO50LXztocy5fovc3tnXWQDocp0FKQXAfZuYf+sZIG 2OIE2R7gO4r3VF4++J4bJFUjrO2iOHbMjWopfvJ1U8eIhUGPjR4sCiZKb16pyD4/qskv XoTM5c6epY5lFZpnvlH/dFjADg37oWHHNMnoG5h+B1bo6aOSm82OoaltT5lI4tR1PN5+ w5EURXShXYGfwY/+ZQyY6k1vmhu5E/XnouZvjrrEsHeVbXSU33Gaete8TMFQRk9amR28 NshA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732153744; x=1732758544; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=gftnKuqJHVQ8RdGlmIgwDj5Q4MZfKQ4HqFfVsA17YNk=; b=ayXqTazcrYLLu7b/NLcb7pPki6HjF+5fZ4JgpziFtb9fPm52K2tf4gtOZKqy/gLMZ3 bRubvQyv/dk8Kn4RonlLGqE+k0bYyZcso+0L0qkK+Z8E3fbelMRF8//O3MDKs7HS52FE A2R5qE97rJRx4NF0ldeHNqvQgSu/zaQNurvViA3TuAsBSlCdhU2rAuQh2F/IalKCsYh1 Xrh5Z8oTVGWx19H3QA2v+xdxWRtSv2j6l7E2xZ15MpR2P4+SbMy3Ds8KpBFujt59TCxv 1SgglWyx0j2FdMyHSeuwbhR3dWxw05F/FwKTchdW78vPqV/JwjNOi73fThCGdxMa8yJs JSjw== X-Gm-Message-State: AOJu0YwMwT+vSRrokz2HR7QDS6thw8ycV58mfoe4ilXdZPpJsJoa9TtM 05OM886lAVClujWigockLkiMU6ExxWTelXFjRtbParq+HNGBt+Qo X-Google-Smtp-Source: AGHT+IFi6SFLyF5bgrtCNYJg90Pn/2ji31j8dziweys2zpanB4izaxENO/gBoOF+MbTlD+fzWmLIjw== X-Received: by 2002:a05:600c:a01:b0:431:5c17:d575 with SMTP id 5b1f17b1804b1-433489b2157mr42277425e9.11.1732153743653; Wed, 20 Nov 2024 17:49:03 -0800 (PST) Received: from [198.18.0.1] ([185.217.110.129]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-433b45d4c68sm36476815e9.22.2024.11.20.17.49.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Nov 2024 17:49:03 -0800 (PST) Message-ID: Date: Thu, 21 Nov 2024 09:48:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 To: Juri Linkov 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> <87plmpwyq5.fsf@mail.linkov.net> From: Taka Obsid In-Reply-To: <87plmpwyq5.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) You'r right, I repull and rebuild `outli' then it works. Thanks! 在 2024/11/21 02:23, Juri Linkov 写道: >> 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 () #)() > outline-map-region(#f(compiled-function () #) 1 75) > outline--hidden-headings-paths() > outline-revert-buffer-restore-visibility() > #f(compiled-function (f) #)(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. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 21 01:51:43 2024 Received: (at 74412-done) by debbugs.gnu.org; 21 Nov 2024 06:51:43 +0000 Received: from localhost ([127.0.0.1]:48860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE12U-0001Dl-PE for submit@debbugs.gnu.org; Thu, 21 Nov 2024 01:51:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE12T-0001DV-Oo for 74412-done@debbugs.gnu.org; Thu, 21 Nov 2024 01:51:42 -0500 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 1tE12O-0006sT-1Z; Thu, 21 Nov 2024 01:51:36 -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=kiDOXW+azeJWBV+NdMpF8iiDi+2V/PFtqKmgQ/7uQJc=; b=X5k6aTyh3cm5 4kCABy/ekoIOo4bkB3RMbS7LIcMnVHghLNr9lL7pGfW21ElK+e0vlBa4ieLb0E1gp5h6vXPg3ppWv fYL/YkoF7UjEXsnYo/xlGCCYrybr0QZeyo8XSesm83PyWGudCCJ6gqgCiA+l9scas4H6+0Uv4jflF rRY117/ksYeAncN76wWDz3cenM45MWiF6Uzlp9iFZjYEcvcwcvQYL9n1VU6K8FVqY0Lwh8P7qdEHM WhvKurRBzanMDCn8Tvnt9L8GEvdp9kSH2nxpFckY8xixaIRiMKZ1b+8qWQjF1l0w5TKc2NEv8K/vi B3k/DncnFNOtwhNzresk1Q==; Date: Thu, 21 Nov 2024 08:51:34 +0200 Message-Id: <86v7whqdu1.fsf@gnu.org> From: Eli Zaretskii To: Taka Obsid In-Reply-To: (message from Taka Obsid on Thu, 21 Nov 2024 09:48:59 +0800) Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 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> <87plmpwyq5.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74412-done Cc: 74412-done@debbugs.gnu.org, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 74412@debbugs.gnu.org > Date: Thu, 21 Nov 2024 09:48:59 +0800 > From: Taka Obsid > > You'r right, I repull and rebuild `outli' then it works. Thanks! Thanks to both of you for investigating. I'm therefore closing this bug. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 21 03:17:28 2024 Received: (at 74412) by debbugs.gnu.org; 21 Nov 2024 08:17:28 +0000 Received: from localhost ([127.0.0.1]:49018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE2NT-0005Eu-T1 for submit@debbugs.gnu.org; Thu, 21 Nov 2024 03:17:28 -0500 Received: from mail-pj1-f45.google.com ([209.85.216.45]:57596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE2NR-0005Eg-Lp for 74412@debbugs.gnu.org; Thu, 21 Nov 2024 03:17:26 -0500 Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2eade1cad26so556872a91.2 for <74412@debbugs.gnu.org>; Thu, 21 Nov 2024 00:17:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732176979; x=1732781779; darn=debbugs.gnu.org; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=oCUxR/mwOQW5nhlvluPY0WvHsJtcKaAtnRf82DZYBdQ=; b=ehoj5QlPDqUI0Z/zvg3OWoFIO356IyNqblB6P9tE52ih0f5fVK8SUV/qO0yUJzpiiK PJfVasMCCIt3DCpPsxbKo0nb5qvpH5D5wER1OZOGfuB73DlTzwOFkc3MeoX3ZUyhxgJC /HC9G88ram/rR5vUNW86NXEBwWDUm6eZ8lxl00ruRTOjP071gpTBbptS48hEPdKdQbU9 yte01x1iFenUD51JvgwNkHlxDzXNXRnUj37cqReddveYFQZEGV4Z4E9WD7OwaCNnsGu7 qbSw3M2RXEuLwjX2zJT+M6zSACDqOdbNAm+vjsGfdmnEopW8OW72enKUkmWKvLpdu/sg hvIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732176979; x=1732781779; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oCUxR/mwOQW5nhlvluPY0WvHsJtcKaAtnRf82DZYBdQ=; b=g6f0mRdt8MdeozNxWz2ASUiOoX0UUvKNAmSnF8rn57iXNKRAh6S8uPBUeJgvlz53ma 3P+FpO79/SqayhMHm780MXF8b4wkblq7VUCJLbuQcO93x93phHB1b1RCdmlbUP1KnJ9d 6EVWCO4uNWUhQ3NmId+WCSclMaNdFUfA/BmOKC3RNLGXY0sravtVn9s7T+IZWV/CDmcd wkVaOyaO1XsDIngJoxoJkyLLuXk+nFbJClIAvchnlcTvkURWiFmxY50OKJ+cX3IWePTC keRoqvmRH4WcVYUECdzJlfgGus9R8eG/pRQ/ztXIJZGkJSmuHI+pTZtwM74nBwhjtNCh nckQ== X-Forwarded-Encrypted: i=1; AJvYcCWSXpE1xJn4GsusrpSN/9cRMsIS0LoryLlEFNS80sy5imBF0bHyxISV3+2htOHj9bHvWbtHjw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzttEkZm/Qlz+g0wed83A5Ro7UsDTPK2ATzdCkTFANa5DWj7dqA pylBG8G3cMmqqq5Ic+E64t8Yqo5CK5i6RrHEcvwzIXOMNoSQL0gLoL4DSqCO X-Gm-Gg: ASbGncuWNOaIcHYFuTH7uXCzn6tJxpnoHFd7jXstXEXlwriJLoJmHcg9C9I/p61hiJH nd6iskDmkejuCaCtZHjnWP5D7O9JRcIKF/NmUtkxTSUff+gK3Ljmck5Ik+i2B1oekkmc2KbuwBF I5G6lSgUm20jDzG7UaQnpgJXI30jL9E3cJ0W2UD9MaOfllZ28hrKK2rEG7ShTAZbJNmwSvcECgp UWnav4OQaJ31jzVZgKTT4zBj4mgTJ0mUMHkRHpRedo= X-Google-Smtp-Source: AGHT+IEqVi/naDEk0JAZuUXI8GfGH7sUqMGc5+/M5RBotLb4IMlIkTLDFLkS6B6r6KzgdbFR4Ko1iQ== X-Received: by 2002:a17:90b:288e:b0:2ea:8efd:48ad with SMTP id 98e67ed59e1d1-2eaca70999emr7317430a91.9.1732176979072; Thu, 21 Nov 2024 00:16:19 -0800 (PST) Received: from dan-laptop ([1.53.153.91]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21287ee14b6sm7953235ad.137.2024.11.21.00.16.17 for <74412@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Nov 2024 00:16:18 -0800 (PST) Date: Thu, 21 Nov 2024 15:16:14 +0700 From: Daan Ro To: Eli Zaretskii Message-ID: <85CA4585-4E56-482E-AB91-2D0046D9B659@getmailspring.com> In-Reply-To: <86ikshspsm.fsf@gnu.org> References: <86ikshspsm.fsf@gnu.org> Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="673eec4e_38c9f473_90c" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Before treesit.el went to set those variables, there have been already a bunch of packages based on outline-minor-mode for partitioning code into sections using comments only by highlighting headers a [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [209.85.216.45 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [209.85.216.45 listed in bl.score.senderscore.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (daanturo[at]gmail.com) 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.216.45 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message 1.3 HTML_IMAGE_ONLY_24 BODY: HTML: images with 2000-2400 bytes of words -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.216.45 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_REMOTE_IMAGE Message contains an external image X-Debbugs-Envelope-To: 74412 Cc: "=?utf-8?Q?74412=40debbugs.gnu.org?=" <74412@debbugs.gnu.org>, "=?utf-8?Q?liaotx2=40gmail.com?=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) --673eec4e_38c9f473_90c Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Before treesit.el went to set those variables, there have been already a bunch of packages based on outline-minor-mode for partitioning code into sections using comments only by highlighting headers and providing navigation, folding, etc. inspired by emacs-lisp-mode's outline-regexp settings. Such ones enable a feel of "literate" programming by bringing outline-mode features to code section delimited by headings (special comments like ";;;", ";; *") using just comments regardless of code semantic. The above is my use of outline-minor-mode, maybe other people have different use cases. treesit.el makes the configuration harder by the additional variable setting. I wish there's a hook like treesit-after-major-mode-setup-hook to let people fine-tune or even undo settings, but of course treesit-disable-features to prevent any execution from the start is still better. Daanturo On Nov 21 2024, at 1:50 am, Eli Zaretskii wrote: > > Cc: "74412@debbugs.gnu.org" <74412@debbugs.gnu.org> > > Date: Thu, 21 Nov 2024 00:06:41 +0700 > > From: Daan Ro > > > > Personally I also find treesit's decision to set outline variables > > somewhat intrusive. > > I don't understand why. These variables are meant to be set by modes, > so treesit.el uses them exactly as intended. > --673eec4e_38c9f473_90c Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Before treesit.el went to set those variables, there have been alrea= dy a
bunch of packages based on outline-minor-mode for partitio= ning code into
sections using comments only by highlighting hea= ders and providing
navigation, folding, etc. inspired by emacs-= lisp-mode's outline-regexp
settings.

Such ones en= able a feel of =22literate=22 programming by bringing
outline-m= ode features to code section delimited by headings (special
com= ments like =22;;;=22, =22;; *=22) using just comments regardless of code<= /div>
semantic.

The above is my use of outline-minor-mo= de, maybe other people have
different use cases. treesit.el mak= es the configuration harder by the
additional variable setting.= I wish there's a hook like
treesit-after-major-mode-setup-hook= to let people fine-tune or even undo
settings, but of course t= reesit-disable-features to prevent any
execution from the start= is still better.


Daanturo
On Nov 21 2024, at 1:50 am, Eli Zaretskii <eliz=40g= nu.org> wrote:
> Cc: =2274412=40debbugs.= gnu.org=22 <74412=40debbugs.gnu.org>
> Date: Thu, 21 N= ov 2024 00:06:41 +0700
> =46rom: Daan Ro <daanturo=40gmai= l.com>
>
> Personally I also find treesit's = decision to set outline variables
> somewhat intrusive.
I don't understand why. These variables are meant to be set by = modes,
so treesit.el uses them exactly as intended.
=
3D=22Sent --673eec4e_38c9f473_90c-- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 21 04:07:25 2024 Received: (at 74412) by debbugs.gnu.org; 21 Nov 2024 09:07:25 +0000 Received: from localhost ([127.0.0.1]:49082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE39p-0007SI-3S for submit@debbugs.gnu.org; Thu, 21 Nov 2024 04:07:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE39n-0007Ry-7R for 74412@debbugs.gnu.org; Thu, 21 Nov 2024 04:07:24 -0500 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 1tE39h-0002Y6-MO; Thu, 21 Nov 2024 04:07:17 -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=iIjt5ga0X7xTwHOpu9DiBT9aT/+pp0KZ5lSorIKOXaU=; b=FTwfPCRsPLqe WNwC3ZUCqsrgBje70J0H1s8l5bjRsS9VnBJMKwqSedZ2ac2ax0bHvnoTlXldIcpwG/eah/BmDvt4w DimwQKiJ1jA/1qpCfw9r9IgTwXcIlREfrMBA1sfHOzwkI3v3tTWxQ/Kg6RZZOe9JCTzf7EBvzfUqz 8LQwRgbE7X79626SlYWC/GNNXje9VVLtyksfSMsEmxJSaSYTeAgNNVB02gySnkALDn1LOyF95ygUt KlS5bwm/dNQSTM9e4mFeFhEy3LYFO+JUAXYFpJB0uSaRD7EioRsbSf7yNs6JjgNCO75xVWx7zE4Jf kPLhTlbftisGV6DxHdCZ5Q==; Date: Thu, 21 Nov 2024 11:07:14 +0200 Message-Id: <86o729q7jx.fsf@gnu.org> From: Eli Zaretskii To: Daan Ro In-Reply-To: <85CA4585-4E56-482E-AB91-2D0046D9B659@getmailspring.com> (message from Daan Ro on Thu, 21 Nov 2024 15:16:14 +0700) Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 References: <86ikshspsm.fsf@gnu.org> <85CA4585-4E56-482E-AB91-2D0046D9B659@getmailspring.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org, liaotx2@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 21 Nov 2024 15:16:14 +0700 > From: Daan Ro > Cc: "liaotx2@gmail.com" , > "74412@debbugs.gnu.org" <74412@debbugs.gnu.org> > > Before treesit.el went to set those variables, there have been already a > bunch of packages based on outline-minor-mode for partitioning code into > sections using comments only by highlighting headers and providing > navigation, folding, etc. inspired by emacs-lisp-mode's outline-regexp > settings. > > Such ones enable a feel of "literate" programming by bringing > outline-mode features to code section delimited by headings (special > comments like ";;;", ";; *") using just comments regardless of code > semantic. > > The above is my use of outline-minor-mode, maybe other people have > different use cases. treesit.el makes the configuration harder by the > additional variable setting. I wish there's a hook like > treesit-after-major-mode-setup-hook to let people fine-tune or even undo > settings, but of course treesit-disable-features to prevent any > execution from the start is still better. There's a mode hook run by every mode based on treesit.el, so if the settings by treesit.el are inappropriate, and the major mode itself somehow decided to use them anyway, and the user doesn't like that, the user should be able to countermand the treesit.el settings in that mode hook. In addition, packages that use outline-minor-mode in ways that are incompatible with what treesit.el does should be able to reset these variables to nil or to some other function, as they need. The purpose of treesit.el doing this is to make it easier for treesit-based modes to set up their support for outline-minor-mode, so that we won't need to perform the same settings in every major mode based on tree-sitter. I don't see anything wrong here. Modes and packages which for some reason don't like that should override these values, and that is easy enough to do without adding any user options. Let's keep in mind that every new user option makes Emacs more complex to use for users, which need to learn about the option and modify their init files. Instead, modes and packages should DTRT by default without requiring users to get their (mode's) act together. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 21 13:14:27 2024 Received: (at 74412) by debbugs.gnu.org; 21 Nov 2024 18:14:27 +0000 Received: from localhost ([127.0.0.1]:51625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEBhC-0007ha-JY for submit@debbugs.gnu.org; Thu, 21 Nov 2024 13:14:26 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:35083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEBhA-0007hM-H3 for 74412@debbugs.gnu.org; Thu, 21 Nov 2024 13:14:24 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 26B54FF803; Thu, 21 Nov 2024 18:13:54 +0000 (UTC) From: Juri Linkov To: Daan Ro Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 In-Reply-To: <85CA4585-4E56-482E-AB91-2D0046D9B659@getmailspring.com> (Daan Ro's message of "Thu, 21 Nov 2024 15:16:14 +0700") Organization: LINKOV.NET References: <86ikshspsm.fsf@gnu.org> <85CA4585-4E56-482E-AB91-2D0046D9B659@getmailspring.com> Date: Thu, 21 Nov 2024 19:58:16 +0200 Message-ID: <875xogh3xk.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74412 Cc: "74412@debbugs.gnu.org" <74412@debbugs.gnu.org>, Eli Zaretskii , "liaotx2@gmail.com" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > The above is my use of outline-minor-mode, maybe other people have > different use cases. treesit.el makes the configuration harder by the > additional variable setting. I wish there's a hook like > treesit-after-major-mode-setup-hook to let people fine-tune or even undo > settings, but of course treesit-disable-features to prevent any > execution from the start is still better. If a ts-mode doesn't allow using a hook to override mode's default settings, this would be a serious limitation. But does such a limitation really exist? It seems there is no need to add treesit-after-major-mode-setup-hook, since I see no problem with using the existing hooks. For example, such customization correctly overrides outline settings for both non-ts and ts-modes: ;; non-ts (add-hook 'ruby-base-mode-hook (lambda () ;; Add more Rails spec keywords (setq-local outline-regexp (concat "^\\s *" (regexp-opt '("module" "class" "def" "private" "describe" "feature" "context" "before" "after" "it" "fit" "xit")) "\\_>")))) ;; same for ts-mode (add-hook 'ruby-ts-mode-hook (lambda () ;; Add more Rails spec keywords (setq-local treesit-outline-predicate (lambda (node) (or (string-match-p (rx bos (or "module" "class" "singleton_class" "method" "singleton_method" "alias") eos) (treesit-node-type node)) (and (equal (treesit-node-type node) "call") (if-let ((method (treesit-node-child-by-field-name node "method"))) (string-match-p (rx bos (or "describe" "feature" "context" "before" "after" "it" "fit" "test") eos) (treesit-node-text method))))))))) From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 23 15:47:34 2024 Received: (at 74412) by debbugs.gnu.org; 23 Nov 2024 20:47:34 +0000 Received: from localhost ([127.0.0.1]:59618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEx2T-0005iV-Ne for submit@debbugs.gnu.org; Sat, 23 Nov 2024 15:47:34 -0500 Received: from mail-pf1-f169.google.com ([209.85.210.169]:60750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEx2R-0005iH-Uj for 74412@debbugs.gnu.org; Sat, 23 Nov 2024 15:47:32 -0500 Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-724d23df764so2365250b3a.1 for <74412@debbugs.gnu.org>; Sat, 23 Nov 2024 12:47:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732394791; x=1732999591; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5Qpx5JYE1ECumbCVkrmYfi2dupgEJ6MxCD+1lDVVlyY=; b=VQn/uucxz/9NZ9bCz8EtVDRF4zc/MvCx7pqXnjTAt6NbNJVX9mRwa56XTqiB9t/69A VXBk3aUM/UsqyqRorYFyuO4Gf0Ay0FcO4Mfj/6KB8vYO8gSWjWjuYhxcMLUmf9ig9vCy a4og3JeJvDwNBGjPfDK0lDdm/pMKuCpRxs4wzznqUH8FSHwUq3JDv5b4cPcHsl0nLOBH 0aTMT3NuN9AndDa5wMIFYmYvGX+1wfeole/EvNPHvRwmF8j7DENSm7kHbsXmXXGcXg2C qB5X9Pf74JwFAh/tPdZHLlhWdpbtd4ZM3A+EMVIoN2iXvtiCZZOgpA7oMAWN5PjmUVJr lRUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732394791; x=1732999591; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5Qpx5JYE1ECumbCVkrmYfi2dupgEJ6MxCD+1lDVVlyY=; b=og9fMliwVLMRs60q3HG0KGtLRla8oJLGisFK21FEJxgvUIZu1DcwWtEC4/Kxjb8yfe gs0D5ix6u0HMKe6BuYLUhOW4FS7r85LBVZOcoKdUTTaaSurSS5np/eg0KQ3fXHH+vBkR NLXJmCiRl/23xuphbP/JwPQILHfYxK65JsgOHLF/lSY+is+InZYOI5wIZtk4HTgK/9c7 HtzyxxvVID64f2lWIvuqqYIyWEO0U705aBM37YcHC71uBHyMRMaz1CN5LrXqVirgB9Ev Cud8R8cODP6ympUi/iEz8Gwc/YWgJIzso+HHJzOXXKu/oExsbpVNWOdjqpgRLlAc071P xeUw== X-Forwarded-Encrypted: i=1; AJvYcCUQ7O9PuVN72lxCm3jnsKX105P7dF/ZkqtisIH5/ZA2wrI0KQY3h6WD8SIJSrj1FsWbEBgVGg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yzupw/54CC4SNR9vmxvIcm4S8hJcBWbrBDtdjsv0QLwUZD2hICI zed7wmkPn5ZSaVNYEI4Y25kvuNaQNRHbezLv3piBhUdJQbXe0jY7 X-Gm-Gg: ASbGnctsdS0HiuIMG4wO01rjABoa4GkQN9i4EmT2XLiRsv+5bODh3EziFxcrk2ln5H1 Hw88Vm22s7tu3C95rwh0hxKVFMtufs6P4z7CLoq2l8rhHnq6JhxIHrEdFJCaAThrCkK1r0bX7lT 2QCMqFrOpkTTOmhkNgHVDpDuxjTgfeIbJd81twdAqxIW/HzLfWjQJT3SyN2F2YMFyTG6iwtrn1h HxdYOPF+9JmB7JSqW+3qt5I4yBQJNGloRioqeARJEEcf+W029G8rWOfq03exgMBrmXFqaTBdA== X-Google-Smtp-Source: AGHT+IFTzYNuq2Znv9Lpn2thSibVMkPTzuhsnKX/ZpcvGEbMoZW2SvO6Vl8kPuE922DJSm+V57xGIg== X-Received: by 2002:a05:6a00:23cc:b0:71e:4c18:8e3b with SMTP id d2e1a72fcca58-724df3cd479mr10917595b3a.2.1732394790851; Sat, 23 Nov 2024 12:46:30 -0800 (PST) Received: from smtpclient.apple ([2601:646:8f81:6120:9db4:d34c:247c:f36b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724de454b9dsm3755649b3a.20.2024.11.23.12.46.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Nov 2024 12:46:30 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 From: Yuan Fu In-Reply-To: <86o729q7jx.fsf@gnu.org> Date: Sat, 23 Nov 2024 12:46:18 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <983F9100-E76A-4F92-890A-7B2136C3B8E8@gmail.com> References: <86ikshspsm.fsf@gnu.org> <85CA4585-4E56-482E-AB91-2D0046D9B659@getmailspring.com> <86o729q7jx.fsf@gnu.org> To: Eli Zaretskii X-Mailer: Apple Mail (2.3776.700.51) X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 74412 Cc: 74412@debbugs.gnu.org, liaotx2@gmail.com, Daan Ro X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Nov 21, 2024, at 1:07=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >> Date: Thu, 21 Nov 2024 15:16:14 +0700 >> From: Daan Ro >> Cc: "liaotx2@gmail.com" ,=20 >> "74412@debbugs.gnu.org" <74412@debbugs.gnu.org> >>=20 >> Before treesit.el went to set those variables, there have been = already a >> bunch of packages based on outline-minor-mode for partitioning code = into >> sections using comments only by highlighting headers and providing >> navigation, folding, etc. inspired by emacs-lisp-mode's = outline-regexp >> settings. >>=20 >> Such ones enable a feel of "literate" programming by bringing >> outline-mode features to code section delimited by headings (special >> comments like ";;;", ";; *") using just comments regardless of code >> semantic. >>=20 >> The above is my use of outline-minor-mode, maybe other people have >> different use cases. treesit.el makes the configuration harder by the >> additional variable setting. I wish there's a hook like >> treesit-after-major-mode-setup-hook to let people fine-tune or even = undo >> settings, but of course treesit-disable-features to prevent any >> execution from the start is still better. >=20 > There's a mode hook run by every mode based on treesit.el, so if the > settings by treesit.el are inappropriate, and the major mode itself > somehow decided to use them anyway, and the user doesn't like that, > the user should be able to countermand the treesit.el settings in that > mode hook. >=20 > In addition, packages that use outline-minor-mode in ways that are > incompatible with what treesit.el does should be able to reset these > variables to nil or to some other function, as they need. >=20 > The purpose of treesit.el doing this is to make it easier for > treesit-based modes to set up their support for outline-minor-mode, so > that we won't need to perform the same settings in every major mode > based on tree-sitter. I don't see anything wrong here. Modes and > packages which for some reason don't like that should override these > values, and that is easy enough to do without adding any user options. > Let's keep in mind that every new user option makes Emacs more complex > to use for users, which need to learn about the option and modify > their init files. Instead, modes and packages should DTRT by default > without requiring users to get their (mode's) act together. The issue is usually that tree-sitter automatically sets = outline-search-function, and the package that uses outline-minor-mode = only sets outline-regexp and doesn=E2=80=99t set outline-search-function = to nil. Since outline prioritizes outline-search-function over = outline-regex, it appears that tree-sitter=E2=80=99s outline setting = overrides that of the package. Most outline-related packages don=E2=80=99t set outline-search-function = to nil since it=E2=80=99s usually nil by default. So tree-sitter=E2=80=99s= behavior will surely break these packages. But since tree-sitter=E2=80=99= s setup runs before minor modes, we can=E2=80=99t really tell if the = user will later enable a minor mode that tree-sitter=E2=80=99s setup = might break. TRT here is probably for the packages to explicitly set = outline-search-function to nil. Yuan= From unknown Sun Aug 17 01:46:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 22 Dec 2024 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator