all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: 24432@debbugs.gnu.org
Subject: bug#24432: 25.1; tramp-cleanup-connection is not removing connection from completion list.
Date: Wed, 14 Sep 2016 11:55:24 +0200	[thread overview]
Message-ID: <878tuupzzn.fsf@gmx.de> (raw)
In-Reply-To: <87twdj11sa.fsf@gmail.com> (Thierry Volpiatto's message of "Wed,  14 Sep 2016 07:35:49 +0200")

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

Hi Thierry,

> To reproduce:
> C-x C-f /sudo:: RET
> M-x tramp-cleanup-connection
> Choose connection and RET
>
> The connection is closed (process deleted and buffers killed) but the
> connection is not removed from tramp-cache-data so when doing again
> M-x tramp-cleanup-connection the item still remaining in completion.

Indeed.

> The reason is that tramp try to remove 
> ["sudo" "root" "localhost" "" nil] from hash-table
> whereas the key in hash-table is
> ["sudo" "root" "localhost" nil nil]
> This is due to tramp-dissect-file-name that returns
> ["sudo" "root" "localhost" "" nil] instead of
> ["sudo" "root" "localhost" nil nil]

That's not the reason, tramp-{get,set}-connection-property normalize the
vector used in the hash table. But the connection was still there due to
some re-initialization of the connection's hash entry once it was removed.

I've pushed a fix to the master. Could you, pls, check?

Best regards, Michael.





  reply	other threads:[~2016-09-14  9:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14  5:35 bug#24432: 25.1; tramp-cleanup-connection is not removing connection from completion list Thierry Volpiatto
2016-09-14  9:55 ` Michael Albinus [this message]
     [not found]   ` <87wpiept1l.fsf@gmail.com>
     [not found]     ` <87y42uljze.fsf@gmx.de>
     [not found]       ` <87inty1s8p.fsf@gmail.com>
2016-09-14 14:22         ` Thierry Volpiatto
     [not found]         ` <87vaxxlib6.fsf@gmx.de>
     [not found]           ` <86twdh74w5.fsf@gmail.com>
2016-09-15 12:12             ` Michael Albinus
2016-09-16  5:01               ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tuupzzn.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=24432@debbugs.gnu.org \
    --cc=thierry.volpiatto@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.