From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#23006: 25.0.92; Loading Tramp breaks pcomplete in eshell-mode Date: Fri, 18 Mar 2016 13:53:48 -0400 Message-ID: References: <871t7d4ion.fsf@gmx.de> <87oaagi128.fsf@gmx.de> <877fh0hovs.fsf@gmx.de> <756f60a7-bdf9-a806-b9d6-dbf17f0ebaab@yandex.ru> <87y49gg9sm.fsf@gmx.de> <845ef936-dec1-eac9-db2a-f2bb25f3a830@yandex.ru> <87egb8faxv.fsf@gmx.de> <8760wj3eks.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458323727 5425 80.91.229.3 (18 Mar 2016 17:55:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2016 17:55:27 +0000 (UTC) Cc: 23006@debbugs.gnu.org, Dmitry Gutov To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 18 18:55:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1agycC-0001uK-L6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Mar 2016 18:55:12 +0100 Original-Received: from localhost ([::1]:45421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agyc8-0008H5-RY for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Mar 2016 13:55:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agyc4-0008CZ-WE for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 13:55:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agyc2-0000JD-BO for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 13:55:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agyc2-0000J5-7s for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 13:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1agyc1-0007JK-U1 for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 13:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Mar 2016 17:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23006-submit@debbugs.gnu.org id=B23006.145832365628041 (code B ref 23006); Fri, 18 Mar 2016 17:55:01 +0000 Original-Received: (at 23006) by debbugs.gnu.org; 18 Mar 2016 17:54:16 +0000 Original-Received: from localhost ([127.0.0.1]:52917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agybI-0007IB-D5 for submit@debbugs.gnu.org; Fri, 18 Mar 2016 13:54:16 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:52495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agybH-0007Hz-74 for 23006@debbugs.gnu.org; Fri, 18 Mar 2016 13:54:15 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AwEwA731xV/xSQs2tcgxCEAoVVuzcJhH6CTQQCAoE8ORQBAQEBAQEBgQpBBYNdAQEDAVYjBQsLMAQSFBgNJIg3CM8jAQEBAQEBBAEBAQEeizqFBQcYhBUFmW2bFyOEFCKCeAEBAQ X-IPAS-Result: A0AwEwA731xV/xSQs2tcgxCEAoVVuzcJhH6CTQQCAoE8ORQBAQEBAQEBgQpBBYNdAQEDAVYjBQsLMAQSFBgNJIg3CM8jAQEBAQEBBAEBAQEeizqFBQcYhBUFmW2bFyOEFCKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="196690448" Original-Received: from 107-179-144-20.cpe.teksavvy.com (HELO pastel.home) ([107.179.144.20]) by ironport2-out.teksavvy.com with ESMTP; 18 Mar 2016 13:53:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 8E6D75FE67; Fri, 18 Mar 2016 13:53:48 -0400 (EDT) In-Reply-To: <8760wj3eks.fsf@gmx.de> (Michael Albinus's message of "Fri, 18 Mar 2016 18:01:39 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115048 Archived-At: > However, before we start with such radical changes, why do you oppose > to use non-essential in pcomplete? According to my tests, this solves > the problem. non-essential means that what we're doing is a skippable/secondary (aka non-essential) side-effect of the main operation. When the user hits TAB, performing completion is not a skippable side-effect of some other main operation. It *is* the main operation. When the user types "cd /ssh:myhost:src/ema TAB" she *wants* Tramp to prompt her for a password to then give her the valid completions. It'd be correct for company-mode to bind non-essential around the code which computes the completion data in response to the user's normal editing of the buffer (in order to decide whether the auto-popup a completion menu), because the completion is not the main operation. Similarly it's correct for icomplete to bind non-essential while computing the completion list, since it's done "in the background" in response to other editing commands and shouldn't get in the way of those editing commands. Stefan