From: Andrii Kolomoiets Date: Fri, 18 Oct 2019 13:04:32 +0000 (+0300) Subject: python-shell-completion-at-point: respect simple-operator (Bug#37808) X-Git-Tag: emacs-27.0.90~360 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=51d3c95147efa80fd3e09c90705439517e8fb6ca;p=emacs.git python-shell-completion-at-point: respect simple-operator (Bug#37808) * lisp/progmodes/python.el (python-shell-completion-at-point): Also stop on simple-operator while parsing input. --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index b0d3174eabc..08ef471f6b0 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -3670,7 +3670,7 @@ using that one instead of current buffer's process." (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