[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59477: python-tests fail without tree-sitter
From: |
Mattias Engdegård |
Subject: |
bug#59477: python-tests fail without tree-sitter |
Date: |
Sun, 27 Nov 2022 14:07:13 +0100 |
26 nov. 2022 kl. 23.18 skrev Yuan Fu <casouri@gmail.com>:
> 1. Setting require-final-newline to t doesn’t work
As expected; it's not relevant here.
> 2. If I change with-temp-buffer to with-current-buffer (get-buffer-create
> "*test*”), the problem disappears, the newlines is not dropped
Yes, because you then reuse an old buffer that already has local variables set.
I'm tempted to push this patch that sinks the call to
python-indent-guess-indent-offset so that it comes last in mode initialisation,
as discussed in my previous message. Any objection?
As mentioned, I'm not sure it really addresses the root problem but at least it
should be no worse than before the changes that broke the test.
python-mode.diff
Description: Binary data
- bug#59477: python-tests fail without tree-sitter, Mattias Engdegård, 2022/11/22
- bug#59477: python-tests fail without tree-sitter, Yuan Fu, 2022/11/22
- bug#59477: python-tests fail without tree-sitter, Yuan Fu, 2022/11/23
- bug#59477: python-tests fail without tree-sitter, Mattias Engdegård, 2022/11/25
- bug#59477: python-tests fail without tree-sitter, Yuan Fu, 2022/11/26
- bug#59477: python-tests fail without tree-sitter, Mattias Engdegård, 2022/11/27
- bug#59477: python-tests fail without tree-sitter, kobarity, 2022/11/27
- bug#59477: python-tests fail without tree-sitter, Mattias Engdegård, 2022/11/28
- bug#59477: python-tests fail without tree-sitter, kobarity, 2022/11/28
- bug#59477: python-tests fail without tree-sitter, Mattias Engdegård, 2022/11/28
- bug#59477: python-tests fail without tree-sitter, Mattias Engdegård, 2022/11/28