From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#28051: Multiline Statement Indentation Error in Inferior Python Mode Date: Sun, 27 Aug 2017 14:28:42 -0400 Message-ID: <87y3q4986d.fsf@users.sourceforge.net> References: <56pwp6ayq3x.fsf@nn-esharapov-04.i-did-not-set--mail-host-address--so-tickle-me> <5wshgwfzfe.fsf@fencepost.gnu.org> <87y3qlzoom.fsf@users.sourceforge.net> <87shglazdm.fsf@users.sourceforge.net> <87fuckbcyz.fsf@users.sourceforge.net> <2e36c178-b365-cc6e-402e-ffc4f01e9c86@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503858502 17663 195.159.176.226 (27 Aug 2017 18:28:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2017 18:28:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: Evgeniy Sharapov , 28051@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 27 20:28:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm2I1-0003iM-AU for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 20:28:05 +0200 Original-Received: from localhost ([::1]:33599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dm2I8-0000QG-5u for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 14:28:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dm2I1-0000PF-Lr for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 14:28:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dm2Hy-00034V-IG for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 14:28:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49430) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dm2Hy-00034P-EM for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 14:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dm2Hx-0006ON-Vs for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 14:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2017 18:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch confirmed Original-Received: via spool by 28051-submit@debbugs.gnu.org id=B28051.150385843024513 (code B ref 28051); Sun, 27 Aug 2017 18:28:01 +0000 Original-Received: (at 28051) by debbugs.gnu.org; 27 Aug 2017 18:27:10 +0000 Original-Received: from localhost ([127.0.0.1]:58111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm2H8-0006NE-EF for submit@debbugs.gnu.org; Sun, 27 Aug 2017 14:27:10 -0400 Original-Received: from mail-it0-f43.google.com ([209.85.214.43]:38514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm2H6-0006Mw-Af; Sun, 27 Aug 2017 14:27:08 -0400 Original-Received: by mail-it0-f43.google.com with SMTP id n5so17934782itb.1; Sun, 27 Aug 2017 11:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=MNRpR73dP7sK5u0iWkBRAPYAExpK0bXuArfZZ7TxUAM=; b=gkwoxggNoiN41sRC1jWGzYD0g22UEi0qOyX4fVuz0C8mvpdJ+h0bxhFbSaYXWOjP+C Vlt6zfMw8KBVH9x8Vc0zS2QQ49m8CIjCZlK2otU55xqAY1cYtmcBUsTUjkO3dU/s+9GC +DpkKVnZYDEjeOkpQ/6ah8/KEXy1B8U2nggEqWUkKYWNt2AcmAs3P7GpvtSGM9euSPuE ZZQ+clKujmydTS1/CiJq7PVjITNJj78ilUV5IDTLLsHGLPxLvsxPUNLZENEaj0YN6bJt IKDY8xhwdpwScMfRMz+1ZRM3WVxEbwKgvaqCsluUh8cT7HFIDPFb5hjzWvjfVBHGTf3Z 4K2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=MNRpR73dP7sK5u0iWkBRAPYAExpK0bXuArfZZ7TxUAM=; b=e2uS9zt3fR+g4E0nOGiwSD6VYWOy9NVxNXBlmnBBhNf2y5uWNHacEDKK1NlMPVB0q7 ZC7tDIyxrcsVvkLeCLpavC/5CCmlaCTaykB4LAUffsHRrRyzoJny5AKBpmZoakH5lZvy LKreW8ZSuJMsElxr/Y+QuXOJQ0n8gNHrnbPfuHQhgYNGeB1/qukudm5N8cRVWsHxY9Cr BZ16SdMjbcC2v5gg4vTMTIh43HJz7nfjn7mcwaaW3bOoF360kkvIVxvZAQRXO9ExZUki oFXdsArhJ0vkc7ngdmU1AqqpW5dPuo3yjzc3wyaejpTXwzBQlj8JrTnkTB/6tJEkSqRI sW6Q== X-Gm-Message-State: AHYfb5jsnetg8yNMbLVL37K44cag9Cu1pQ3a68f5X7L2DTNNV7jLC2K1 Fb4yyBouhAA5oHNy X-Received: by 10.36.211.211 with SMTP id n202mr4494816itg.147.1503858422672; Sun, 27 Aug 2017 11:27:02 -0700 (PDT) Original-Received: from zony ([45.2.119.49]) by smtp.googlemail.com with ESMTPSA id g5sm4992443ioe.14.2017.08.27.11.27.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 Aug 2017 11:27:01 -0700 (PDT) In-Reply-To: <2e36c178-b365-cc6e-402e-ffc4f01e9c86@yandex.ru> (Dmitry Gutov's message of "Sun, 27 Aug 2017 19:42:43 +0300") 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: 208.118.235.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:136275 Archived-At: close 28051 26.1 quit Dmitry Gutov writes: > On 8/22/17 4:36 AM, npostavs@users.sourceforge.net wrote: > >> Hmm, when using company-mode the error message is sent repeatedly, which >> seems pretty annoying. But silently returning no matches could be >> confusing. Dimitri, any advice? > > Use a python-specific global variable and only show the warning one > time? Or at most once in XX seconds? > > There's no existing diagnostic UI for this in company-mode. And the > idea for completion-at-point-functions is to not signal errors during > normal operation (an error means there's a bug to be fixed, and > bugging the user in that case seems okay). > > In this particular case, though, I'd simply return no completions. We > do the same in inf-ruby anyway (no completion on continuation > lines). Add a warning message once a session, if you prefer. If it's okay for inf-ruby it's probably okay for python. [1: 5440b238b1]: 2017-08-27 13:46:41 -0400 Disable completion while entering python multiline statements http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=5440b238b1ec4175dd32bc14b4098f6570b2ca85