From: Taka Obsid <liaotx2@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: 74412@debbugs.gnu.org
Subject: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31
Date: Wed, 20 Nov 2024 22:06:52 +0800 [thread overview]
Message-ID: <037e3f70-75cf-4ccc-b450-74b1cd0f6aad@gmail.com> (raw)
In-Reply-To: <87o72a2x6p.fsf@mail.linkov.net>
[-- Attachment #1: Type: text/plain, Size: 2474 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 3647 bytes --]
next prev parent reply other threads:[~2024-11-20 14:06 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-18 2:59 bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 Taka Obsid
2024-11-18 12:29 ` Eli Zaretskii
2024-11-19 1:47 ` Taka Obsid
2024-11-19 15:37 ` Eli Zaretskii
2024-11-19 18:09 ` Juri Linkov
2024-11-20 3:34 ` Taka Obsid
2024-11-20 7:15 ` Juri Linkov
2024-11-20 14:06 ` Taka Obsid [this message]
2024-11-20 17:21 ` Juri Linkov
2024-11-20 18:23 ` Juri Linkov
2024-11-21 1:48 ` Taka Obsid
2024-11-21 6:51 ` Eli Zaretskii
2024-11-20 17:06 ` Daan Ro
2024-11-20 17:18 ` Juri Linkov
2024-11-20 17:51 ` Daan Ro
2024-11-20 18:25 ` Juri Linkov
2024-11-20 18:53 ` Eli Zaretskii
2024-11-20 18:50 ` Eli Zaretskii
2024-11-21 8:16 ` Daan Ro
2024-11-21 9:07 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=037e3f70-75cf-4ccc-b450-74b1cd0f6aad@gmail.com \
--to=liaotx2@gmail.com \
--cc=74412@debbugs.gnu.org \
--cc=juri@linkov.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).