* bug#61648: [PATCH] * lisp/progmodes/python.el (python--import-sources): Fix regexp
@ 2023-02-20 9:54 Augusto Stoffel
2023-02-22 13:32 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Augusto Stoffel @ 2023-02-20 9:54 UTC (permalink / raw)
To: 61648
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
Tags: patch
Please include this small bug fix concerning the Python import commands
in Emacs 29.
.pyc files are binary bytecode and not relevant for the purposes of the
import management. I originally confused them with .pyx files, which
are Cython source files (a Python dialect).
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-progmodes-python.el-python-import-sources-Fix-r.patch --]
[-- Type: text/patch, Size: 952 bytes --]
From 5332794f25d5d7272271981d8c463d112a1d8b1e Mon Sep 17 00:00:00 2001
From: Augusto Stoffel <arstoffel@gmail.com>
Date: Mon, 20 Feb 2023 10:49:22 +0100
Subject: [PATCH] * lisp/progmodes/python.el (python--import-sources): Fix
regexp
---
lisp/progmodes/python.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 0d714c31e9e..eab5e70af33 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -6376,7 +6376,7 @@ python--import-sources
"List files containing Python imports that may be useful in the current buffer."
(if-let (((featurep 'project)) ;For compatibility with Emacs < 26
(proj (project-current)))
- (seq-filter (lambda (s) (string-match-p "\\.py[ciw]?\\'" s))
+ (seq-filter (lambda (s) (string-match-p "\\.py[iwx]?\\'" s))
(project-files proj))
(list default-directory)))
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-22 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-20 9:54 bug#61648: [PATCH] * lisp/progmodes/python.el (python--import-sources): Fix regexp Augusto Stoffel
2023-02-22 13:32 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.