all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrii Kolomoiets <andreyk.mad@gmail.com>
To: 37808@debbugs.gnu.org
Subject: bug#37808: 27.0.50; [PATCH] python-shell-completion-at-point: respect simple-operator
Date: Fri, 18 Oct 2019 16:15:56 +0300	[thread overview]
Message-ID: <2DFEC91F-BF80-4E7F-A128-C7AABB0BDA88@gmail.com> (raw)

[-- 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


             reply	other threads:[~2019-10-18 13:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-18 13:15 Andrii Kolomoiets [this message]
2019-12-13 12:57 ` bug#37808: 27.0.50; [PATCH] python-shell-completion-at-point: respect simple-operator Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2DFEC91F-BF80-4E7F-A128-C7AABB0BDA88@gmail.com \
    --to=andreyk.mad@gmail.com \
    --cc=37808@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.