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#37464: 26.3; Icomplete and TRAMP create unnecessary buffer Date: Mon, 23 Sep 2019 09:59:33 +0300 Message-ID: References: <87ef0anh4e.fsf@gmx.de> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="191168"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37464-done@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 23 09:00:31 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 1iCIKl-000ncF-8E for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Sep 2019 09:00:31 +0200 Original-Received: from localhost ([::1]:52890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCIKk-00010E-0c for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Sep 2019 03:00:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33863) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCIKJ-0000yI-J6 for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2019 03:00:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCIKI-0000cV-Cm for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2019 03:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54364) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCIKI-0000bT-6h for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2019 03:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iCIKI-0007Pb-1Q for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2019 03:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Sep 2019 07:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37464 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 37464-done@debbugs.gnu.org id=D37464.156922198428440 (code D ref 37464); Mon, 23 Sep 2019 07:00:01 +0000 Original-Received: (at 37464-done) by debbugs.gnu.org; 23 Sep 2019 06:59:44 +0000 Original-Received: from localhost ([127.0.0.1]:34952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCIK0-0007Oe-13 for submit@debbugs.gnu.org; Mon, 23 Sep 2019 02:59:44 -0400 Original-Received: from mail-lf1-f44.google.com ([209.85.167.44]:46992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCIJx-0007OP-Tl for 37464-done@debbugs.gnu.org; Mon, 23 Sep 2019 02:59:42 -0400 Original-Received: by mail-lf1-f44.google.com with SMTP id t8so9179360lfc.13 for <37464-done@debbugs.gnu.org>; Sun, 22 Sep 2019 23:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=CFrctzhzG6mNo7w80zGryg997pkK3bcpRarQFzI9n64=; b=LUCd2A90E1WoDR58D19Siw//IP5H5sLOtvDUAUgkrjFXBkxHBP59mPeXL5DdsKQFK3 rsLF6/736UleCXud0VD3/Od7gmYzIwnS/VZoNmh6vL59KCg9H5igkCjiVJOYLRRO7+IQ xcLBF2RBZRHzTCy4qxHn/T0AnUZZnLofNjGvKgaody3eeNcWCpnDwebcatXk6LL7Uo5Z PISwJ+a1Wh3Wz1PR9pzRH4+bU6MAQcqQSKDhfm0dnc0l9yleHZEsp1rp9GgOx7IGpOr9 JBqNhzbe0WSsitS8Ct1qUQOYD5ZU7bA/UI8Wi7MwrM0z/SP9SOXCT0uPeWbOS+DtaNPz ujGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=CFrctzhzG6mNo7w80zGryg997pkK3bcpRarQFzI9n64=; b=GYMBGnZUFLWXb5pTZvL1HiQjAzauXDwbc4ciQtHKwVcUUG0QlIQzqK6FBOvXbD44R6 uduLrqQLMNxDYcDFC1fMMh0mXEl5H2GjVuxN3xI1XcJ5tQ5c86T5vl0W+ComlbDg1nwh gfhqpx6d86cMdJWoR7JzQbAT9AUye8E0PVVlpBRBBS+zJwv+vYXjYDKWCWoKim3pvSQP esoUmqHfpItqdjgeUtPvMBGHahyI2WMNobi9mPf+5T8bKxocrlRfu2XoPLX7HSX4Gz58 C+C/71kQhJsoVoi4FnZq6CRFuvWUuevhhtc+U7to6e7ix0De1za9W3yiyVHicPlyUxFd RMig== X-Gm-Message-State: APjAAAUa0RwFvwPdYjo0oPFlP3UFs19ZdcJ5YPx3QXXD8Hi1gwJc6iCM RnBLgcy49SsG1a2K+3QGU5k= X-Google-Smtp-Source: APXvYqz6PX5/hYX9T4siGmYNMbFivKPgy2lAFE0VrNMLvRR+lNIw8+7ZwGBKFRexNItBstK8RD0CSQ== X-Received: by 2002:ac2:5090:: with SMTP id f16mr16579110lfm.66.1569221975805; Sun, 22 Sep 2019 23:59:35 -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 f6sm2038754lfl.78.2019.09.22.23.59.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Sep 2019 23:59:35 -0700 (PDT) In-Reply-To: <87ef0anh4e.fsf@gmx.de> X-Mailer: Apple Mail (2.3445.104.11) 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:166960 Archived-At: Hi Michael, > On Sep 21, 2019, at 12:17, Michael Albinus = wrote: >=20 >> 1. emacs -Q >> 2. M-x icomplete-mode >> 3. C-x C-f >> 4. /q:: >> instead of "q" allowed method can be specified e.g. "sudo" or "ssh" >> 5. C-g >> 6. C-x C-b >>=20 >> Notice new buffer "*tramp/q..." created although command was = cancelled. >=20 > Thanks for the report, I can confirm the behaviour. However, this is = not > a bug. Try the following command instead: >=20 > emacs -Q --eval '(setq tramp-verbose 6)' >=20 > This enables traces up to level 6, which are the commands send to a > remote host. You will see also the buffer *debug tramp/ssh...*. No = trace > there with level 6, but entries like >=20 > 11:09:33.148026 tramp-file-name-handler (5) # Non-essential received = in operation (file-name-all-completions /ssh::) >=20 > This tells us, that Tramp hasn't tried any remote connection, because = it > is still in user name / host name completion. And that's what counts. >=20 > I'm marking this as not-a-bug, and close it. Feel free to ask if you > need further information. >=20 > Best regards, Michael. But why this doesn't happen when icomplete-mode is disabled? C-x C-f /q:: says "Method 'q' is not known" and there are no `*tramp/q...` buffer. Let me explain how i faced this behaviour. I have some commands that do `(abbreviate-file-name default-directory)`. After misspelled `sudo` as TRAMP method in `find-file` prompt like `/suod::/etc/hosts` and cancelling command with `C-g` the buffer `*tramp/suod...` was created. And `(abbreviate-file-name default-directory)` in that buffer leads to "Method 'suod' is not known" error. I thought that buffer `*tramp/suod...` was created mistakenly. If this is expected behaviour do i need to wrap `abbreviate-file-name` with `condition-case` or something? Actually there are more command that won't work from the `*tramp/suod...` buffer: vc-dir, find-file, dired. All of them leads to "Method 'soud' is not known" error. Thanks!=