GNU bug report logs - #76364
[PATCH] Add python-ts-mode to ffap-alist

Previous Next

Package: emacs;

Reported by: kobarity <kobarity <at> gmail.com>

Date: Mon, 17 Feb 2025 14:25:02 UTC

Severity: wishlist

Tags: patch

Fixed in version 31.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76364 in the body.
You can then email your comments to 76364 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#76364; Package emacs. (Mon, 17 Feb 2025 14:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to kobarity <kobarity <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 17 Feb 2025 14:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: kobarity <kobarity <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Add python-ts-mode to ffap-alist
Date: Mon, 17 Feb 2025 23:24:13 +0900
[Message part 1 (text/plain, inline)]
FFAP support in python.el does not work in `python-ts-mode'.

1. emacs -Q
2. Open a Python file and enter the following:

import argparse

3. C-c C-p   (Open the Inferior Python buffer)
4. Back to the Python file buffer.
5. C-c C-c   (Send the buffer to Inferior Python)
5. Place the point to "argparse".
6. M-x ffap-bindings
7. C-x C-f

Minibuffer should display something like:

Find file or URL: somewhere/argparse.py

8. C-g   (Cancel opening the file)
9. M-x python-ts-mode
10. C-x C-f

The path to argparse.py is not shown.

This occurs because `python-ts-mode' is not registered in
`ffap-alist'.

Attached is a patch to fix this issue.

--
In GNU Emacs 31.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version
 3.24.41, cairo version 1.18.0) of 2025-01-01 built on ubuntu2404
Repository revision: 78bc5949db489b143f7424540d6cc56fc529c9ea
Repository branch: master
System Description: Ubuntu 24.04.2 LTS

Configured using:
 'configure --with-pgtk --with-native-compilation --with-tree-sitter'
[0001-Add-python-ts-mode-to-ffap-alist.patch (application/octet-stream, attachment)]

Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 19 Feb 2025 02:07:03 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Wed, 19 Feb 2025 02:09:04 GMT) Full text and rfc822 format available.

Notification sent to kobarity <kobarity <at> gmail.com>:
bug acknowledged by developer. (Wed, 19 Feb 2025 02:09:04 GMT) Full text and rfc822 format available.

Message #12 received at 76364-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: kobarity <kobarity <at> gmail.com>
Cc: 76364-done <at> debbugs.gnu.org
Subject: Re: bug#76364: [PATCH] Add python-ts-mode to ffap-alist
Date: Tue, 18 Feb 2025 18:08:23 -0800
Version: 31.1

kobarity <kobarity <at> gmail.com> writes:

> FFAP support in python.el does not work in `python-ts-mode'.
>
> 1. emacs -Q
> 2. Open a Python file and enter the following:
>
> import argparse
>
> 3. C-c C-p   (Open the Inferior Python buffer)
> 4. Back to the Python file buffer.
> 5. C-c C-c   (Send the buffer to Inferior Python)
> 5. Place the point to "argparse".
> 6. M-x ffap-bindings
> 7. C-x C-f
>
> Minibuffer should display something like:
>
> Find file or URL: somewhere/argparse.py
>
> 8. C-g   (Cancel opening the file)
> 9. M-x python-ts-mode
> 10. C-x C-f
>
> The path to argparse.py is not shown.
>
> This occurs because `python-ts-mode' is not registered in
> `ffap-alist'.
>
> Attached is a patch to fix this issue.

Thanks, installed on master, closing.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 19 Mar 2025 11:24:22 GMT) Full text and rfc822 format available.

This bug report was last modified 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.