From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#61648: [PATCH] * lisp/progmodes/python.el (python--import-sources): Fix regexp Date: Mon, 20 Feb 2023 10:54:07 +0100 Message-ID: <875ybwhdc0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33704"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 61648@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 20 10:55:36 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pU2tT-0008Xw-9d for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Feb 2023 10:55:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pU2sy-0002EX-R5; Mon, 20 Feb 2023 04:55:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU2sw-0002At-Qt for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 04:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pU2sw-0005pO-Er for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 04:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pU2sv-0002iF-VI for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 04:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2023 09:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61648 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167688685910366 (code B ref -1); Mon, 20 Feb 2023 09:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Feb 2023 09:54:19 +0000 Original-Received: from localhost ([127.0.0.1]:50548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU2sE-0002h8-Ut for submit@debbugs.gnu.org; Mon, 20 Feb 2023 04:54:19 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU2sD-0002h0-3F for submit@debbugs.gnu.org; Mon, 20 Feb 2023 04:54:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU2sB-0001KI-NB for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 04:54:16 -0500 Original-Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pU2s8-0005gW-Vm for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 04:54:14 -0500 Original-Received: by mail-ed1-x52b.google.com with SMTP id cq23so2010421edb.1 for ; Mon, 20 Feb 2023 01:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=8Iw6kZKGQHU08MSA98u87GkS0cVPTySc0gsAHaf8ysk=; b=M9JjpyMkI2SauG1VlUfutoqXqeNunnW8K+llWXvoBNWAF/Y/110v0LMQ36Y1ga5gqM Ygi2r9Wm+cmNZ+lggjvlGkMy/Kztksk/7Tuk5V+nlfXeFEqAU33OT74gtW2t20Sc0T2q gvPmJsdha36J4hfCjxRlZxo8wpm2TDem6jieEt7AWTg27nWvasGXFLqXrelCap9Tfsoj 3kU5wmldjH+Puo2zZyfhvT3q5AsSH3L5fgnRee7udvgNZBPNyy9LeC+LAnjbfuJSgv2M B50/19M1jzFwnGtVtEBp5zB3zPZLRbGq6ERBNOOtQuLaCueQxbY4CJbYKAnmNIiwNENu uB5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8Iw6kZKGQHU08MSA98u87GkS0cVPTySc0gsAHaf8ysk=; b=tz3YbarimTPhPTs6mIovXT/Zi3vTX7myR6Nt3bInBkn3mEugg9N0+SxYJwHVsEuKU/ o1bvgqVsY38EDAuI9IlHJItNUEZ4de/3wlbIVQGNoBDkNxCwCmOCKq7QIQiUJhoX8ppc dscTQt8xAKEz5HcZaLGuh7CNI+waYoTQYpuxLYmufit7ugSog6rxWb+WoK7ri2x2siDS 8NNc3FJUvnMddgq4Y+YXJLIDsEP7wFHEu2QNui6WzopebPWs5MfKgw/tpMM9CVKlzrsV yGygqP7OInHiXthm3YxrzrCiaaU/QrnIKLyFfumI4JRViT1fnOdkwqw0kMo7LnUbmwCI EKGw== X-Gm-Message-State: AO0yUKWEMbJMIaycRo8Qo6epL3OQFG3Od8Zcvbz/WmQ6USR09/CvI/QJ pLqb4FewLupIABfnYNFqh5RUmcxCkac= X-Google-Smtp-Source: AK7set8ngovlhFhtxxAjLJpCNRrkwBGDu0fWwWd/bWqqyYYziE7mmbFJowzGo6ZtqxDFcjWgoQWtMA== X-Received: by 2002:a17:906:2a59:b0:8b1:392f:f847 with SMTP id k25-20020a1709062a5900b008b1392ff847mr10750237eje.25.1676886849587; Mon, 20 Feb 2023 01:54:09 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::6fd0]) by smtp.gmail.com with ESMTPSA id kq16-20020a170906abd000b00889a77458dbsm5525857ejb.21.2023.02.20.01.54.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 01:54:08 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256138 Archived-At: --=-=-= Content-Type: text/plain 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). --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-lisp-progmodes-python.el-python-import-sources-Fix-r.patch >From 5332794f25d5d7272271981d8c463d112a1d8b1e Mon Sep 17 00:00:00 2001 From: Augusto Stoffel 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 --=-=-=--