From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: bug#37808: 27.0.50; [PATCH] python-shell-completion-at-point: respect simple-operator Date: Fri, 18 Oct 2019 16:15:56 +0300 Message-ID: <2DFEC91F-BF80-4E7F-A128-C7AABB0BDA88@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_EC052A6C-97F2-4C24-B84F-998E6383AB98" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="816"; mail-complaints-to="usenet@blaine.gmane.org" To: 37808@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 18 15:19:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iLS9v-0018Gw-Nc for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Oct 2019 15:19:11 +0200 Original-Received: from localhost ([::1]:39943 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLS9u-0005lz-2m for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Oct 2019 09:19:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49443) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLS7t-0003z2-32 for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 09:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLS7s-0006ia-1I for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 09:17:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40739) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLS7r-0006iV-SF for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 09:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLS7r-0005kY-CH for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 09:17:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Oct 2019 13:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37808 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.157140456922009 (code B ref -1); Fri, 18 Oct 2019 13:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Oct 2019 13:16:09 +0000 Original-Received: from localhost ([127.0.0.1]:49557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLS6y-0005iv-Uc for submit@debbugs.gnu.org; Fri, 18 Oct 2019 09:16:09 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLS6w-0005in-Ro for submit@debbugs.gnu.org; Fri, 18 Oct 2019 09:16:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49159) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLS6v-0002l6-8D for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 09:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLS6u-0005pc-6U for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 09:16:05 -0400 Original-Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]:33648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLS6t-0005k3-Ra for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 09:16:04 -0400 Original-Received: by mail-lf1-x143.google.com with SMTP id y127so4721341lfc.0 for ; Fri, 18 Oct 2019 06:16:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=8ae5+eALoNkn0W2jKd7jZhqtIp8kBbrod714pqBrW4g=; b=gtw/mMPN4BXHdVzAQDni/+QztRGr3B3fz/lkIfxRJ63lz3+irE0pR/I68er2dO8CoP hNHIyzSgBXw/EwtTEHyCiPIT5oLY/pegZEG4fJ04j2NRazmGrbihJVx/Z9cggXPe87PI yWuJOEX0SZBVc+O8e0DJq5+xPMrO12dBwptbuN3wadeBAdTQGEavrY8RAFdtQo8Gdodb Sqc/nBKCfbA72yj7PjuX10kqq9bQlkcV89TXnx5So3ROcB1GQUfSTOrNAIR4qCvVxgbY RUNaUAK6SSRu11aXoswt9OCmc5MIBdFG+oj3fblRdRrclS/7Lupq9fgSH0clSefAkcwR fcbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=8ae5+eALoNkn0W2jKd7jZhqtIp8kBbrod714pqBrW4g=; b=X5FpwpgXjGPS/fqlzs8XifPODulejpX3GNOVTH8yGjPPUkd3Nzh81gq/tySe0/go3X WESUBIednfZnFCGqa1H3dBigmfhZY7pdINiNh3vGjDzaLImQHJOANRAlPoOg0cpeJuYB yon78iA7R2UDCOlFS3qhtHhs14B4+K7p6+cvcKtqzs7TxB04y7/pOH0ltRJpLnrvOWNt AuQx3W9HG85gllLWImSZSbW8fnZ34pjx6FpRcvX9olj9mn8XhhxGZec34RAmgl7A54rp NPcX7HTXsfC7Og27Nw4uPp2ZT0CmHql+Og+IWh5+hEHEniLb6XIXT+qXPMshl4GdQA+q BsCA== X-Gm-Message-State: APjAAAXFqCKChEznDWxg02HVqnl/opMB2e7zoASGc2m+J8hp/OjoAdmJ R5/OdYBikSxXw2AK9hSHmlRZr22apHE= X-Google-Smtp-Source: APXvYqw8Pk7XkcI/sPOXM/kBILL6TsAH19Xp/u+6q4AeVXD79exTiGkrUL/ycLQ74BH04UCXtgIJcQ== X-Received: by 2002:a19:a93:: with SMTP id 141mr6270310lfk.156.1571404559453; Fri, 18 Oct 2019 06:15:59 -0700 (PDT) Original-Received: from [10.1.1.105] (188-42-207-82.ip.ukrtel.net. [82.207.42.188]) by smtp.gmail.com with ESMTPSA id l3sm2431790lfc.31.2019.10.18.06.15.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2019 06:15:58 -0700 (PDT) X-Mailer: Apple Mail (2.3594.4.19) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169663 Archived-At: --Apple-Mail=_EC052A6C-97F2-4C24-B84F-998E6383AB98 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 1. emacs -Q 2. M-x run-python (Now in *Python* buffer) 3. foo=1 4. bar=fo "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. --Apple-Mail=_EC052A6C-97F2-4C24-B84F-998E6383AB98 Content-Disposition: attachment; filename=0001-python-shell-completion-at-point-respect-simple-oper.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-python-shell-completion-at-point-respect-simple-oper.patch" Content-Transfer-Encoding: quoted-printable =46rom=206b83e12f0041379d35a7c8fc4a4419f0eb264211=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Andrii=20Kolomoiets=20=0A= Date:=20Fri,=2018=20Oct=202019=2016:04:32=20+0300=0ASubject:=20[PATCH]=20= python-shell-completion-at-point:=20respect=20simple-operator=0A=0A*=20= lisp/progmodes/python.el=0A(python-shell-completion-at-point):=20Also=20= stop=20on=20simple-operator=0Awhile=20parsing=20input.=0A---=0A=20= lisp/progmodes/python.el=20|=202=20+-=0A=201=20file=20changed,=201=20= insertion(+),=201=20deletion(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/python.el=20b/lisp/progmodes/python.el=0Aindex=20= b168b62c29..4568a7f19b=20100644=0A---=20a/lisp/progmodes/python.el=0A+++=20= b/lisp/progmodes/python.el=0A@@=20-3674,7=20+3674,7=20@@=20= python-shell-completion-at-point=0A=20=20=20=20=20=20=20=20=20=20=20= (save-excursion=0A=20=20=20=20=20=20=20=20=20=20=20=20=20(if=20(not=20= (re-search-backward=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(python-rx=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(or=20whitespace=20open-paren=20close-paren=20= string-delimiter))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(or=20whitespace=20open-paren=20close-paren=20= string-delimiter=20simple-operator))=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20line-start=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20t=201))=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20line-start=0A--=20=0A2.15.1=0A=0A= --Apple-Mail=_EC052A6C-97F2-4C24-B84F-998E6383AB98--