unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37808: 27.0.50; [PATCH] python-shell-completion-at-point: respect simple-operator
@ 2019-10-18 13:15 Andrii Kolomoiets
  2019-12-13 12:57 ` Noam Postavsky
  0 siblings, 1 reply; 2+ messages in thread
From: Andrii Kolomoiets @ 2019-10-18 13:15 UTC (permalink / raw)
  To: 37808

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

1. emacs -Q
2. M-x run-python
(Now in *Python* buffer)
3. foo=1<RET>
4. bar=fo<TAB>

"No match" echoed in minibuffer but completion list is expected.

Attached patch make python-shell-completion-at-point also stop on
simple-operator while parsing input.

[-- Attachment #2: 0001-python-shell-completion-at-point-respect-simple-oper.patch --]
[-- Type: application/octet-stream, Size: 1061 bytes --]

From 6b83e12f0041379d35a7c8fc4a4419f0eb264211 Mon Sep 17 00:00:00 2001
From: Andrii Kolomoiets <andreyk.mad@gmail.com>
Date: Fri, 18 Oct 2019 16:04:32 +0300
Subject: [PATCH] python-shell-completion-at-point: respect simple-operator

* lisp/progmodes/python.el
(python-shell-completion-at-point): Also stop on simple-operator
while parsing input.
---
 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 b168b62c29..4568a7f19b 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3674,7 +3674,7 @@ python-shell-completion-at-point
           (save-excursion
             (if (not (re-search-backward
                       (python-rx
-                       (or whitespace open-paren close-paren string-delimiter))
+                       (or whitespace open-paren close-paren string-delimiter simple-operator))
                       line-start
                       t 1))
                 line-start
-- 
2.15.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#37808: 27.0.50; [PATCH] python-shell-completion-at-point: respect simple-operator
  2019-10-18 13:15 bug#37808: 27.0.50; [PATCH] python-shell-completion-at-point: respect simple-operator Andrii Kolomoiets
@ 2019-12-13 12:57 ` Noam Postavsky
  0 siblings, 0 replies; 2+ messages in thread
From: Noam Postavsky @ 2019-12-13 12:57 UTC (permalink / raw)
  To: Andrii Kolomoiets; +Cc: 37808

severity 37808 minor
tags 37808 fixed
close 37808 27.1
quit

Andrii Kolomoiets <andreyk.mad@gmail.com> writes:

> 1. emacs -Q
> 2. M-x run-python
> (Now in *Python* buffer)
> 3. foo=1<RET>
> 4. bar=fo<TAB>
>
> "No match" echoed in minibuffer but completion list is expected.
>
> Attached patch make python-shell-completion-at-point also stop on
> simple-operator while parsing input.

Thanks, pushed to master.

[1: 51d3c95147]: 2019-12-13 07:47:14 -0500
  python-shell-completion-at-point: respect simple-operator (Bug#37808)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=51d3c95147efa80fd3e09c90705439517e8fb6ca





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-13 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-18 13:15 bug#37808: 27.0.50; [PATCH] python-shell-completion-at-point: respect simple-operator Andrii Kolomoiets
2019-12-13 12:57 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).