emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59807: closed (29.0.60; [PATCH] python-ts-mode does not auto-complet


From: GNU bug Tracking System
Subject: bug#59807: closed (29.0.60; [PATCH] python-ts-mode does not auto-complete the closing quote)
Date: Wed, 14 Dec 2022 02:09:02 +0000

Your message dated Tue, 13 Dec 2022 18:08:27 -0800
with message-id <4087992B-D45C-4923-AC18-9C87EBCF2E0B@gmail.com>
and subject line Re: bug#59807: 29.0.60; [PATCH] python-ts-mode does not  
auto-complete the closing quote
has caused the debbugs.gnu.org bug report #59807,
regarding 29.0.60; [PATCH] python-ts-mode does not auto-complete the closing 
quote
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
59807: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59807
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 29.0.60; [PATCH] python-ts-mode does not auto-complete the closing quote Date: Sun, 04 Dec 2022 06:27:18 +0800
When electric-pair-mode is enabled, a single quote ' should be auto
completed to be '' (which means an empty string).  Python-mode correctly
does this, but python-ts-mode does not.  This is clearly a problem
regarding the syntax table.

The attached patch makes python-ts-mode uses the same syntax table as
python-mode's, and fixes this problem.  I also checked a few other ts
modes, and some also have this issue.  For example, js-ts-mode does not
auto complete '' either, which is also fixed by this patch.

Attachment: 0001-Fix-syntax-tables-of-tree-sitter-modes.patch
Description: Fix syntax tables of tree-sitter modes

Kai

--- End Message ---
--- Begin Message --- Subject: Re: bug#59807: 29.0.60; [PATCH] python-ts-mode does not auto-complete the closing quote Date: Tue, 13 Dec 2022 18:08:27 -0800
Yuan Fu <yuf011@ucsd.edu> writes:

>> On Dec 12, 2022, at 6:24 PM, Stefan Kangas <stefankangas@gmail.com> wrote:
>> 
>> Kai Ma <justksqsf@gmail.com> writes:
>> 
>>> Unfortunately, I cannot complete the assignment process, at least for
>>> now. The licensing officer at my university is really reluctant to
>>> sign a copyright disclaimer for me.
>> 
>> Thanks for trying.
>
> Yes, thanks!
>
>> 
>>> However, the cumulative number of lines changed by me is below 15 so
>>> far, so at least for this issue, we can move forward. I’ve added
>>> Copyright-paperwork-exempt in the attached patch.
>> 
>> -ENOPATCH
>> 
>
> I can see his patch. I attached it below.

I applied the patch. Due to recent changes on the branch I needed to
modify it a little.  As a result, the patch contains fewer lines of
change.

Yuan


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]