From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: 23.0.50; pcmpl-ssh-hosts breaks when known_hosts file has a space in the wrong place Date: Wed, 09 Apr 2008 21:29:46 +0200 Message-ID: <87abk2akt1.fsf@gmx.de> References: <8763viza9c.fsf@hagelb.org> <87iqzgx77t.fsf@hagelb.org> <18408.3798.278043.611553@fencepost.gnu.org> <87hcebngak.fsf@hagelb.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207769288 21216 80.91.229.12 (9 Apr 2008 19:28:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2008 19:28:08 +0000 (UTC) Cc: Glenn Morris , Emacs developers To: Phil Hagelberg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 09 21:28:39 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JjfyG-0006rX-G8 for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2008 21:28:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jjfxc-0005GN-VJ for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2008 15:27:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JjfxX-0005Es-Nl for emacs-devel@gnu.org; Wed, 09 Apr 2008 15:27:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JjfxV-0005EX-2a for emacs-devel@gnu.org; Wed, 09 Apr 2008 15:27:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JjfxU-0005EU-W7 for emacs-devel@gnu.org; Wed, 09 Apr 2008 15:27:49 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JjfxU-0002Tu-Cd for emacs-devel@gnu.org; Wed, 09 Apr 2008 15:27:48 -0400 Original-Received: (qmail invoked by alias); 09 Apr 2008 19:27:47 -0000 Original-Received: from p57A210CC.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.16.204] by mail.gmx.net (mp004) with SMTP; 09 Apr 2008 21:27:47 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+BMssbbhKB+tz47Qh/7XoY11ddVU6XSzMD/r/a7O gjgkH7TnqxqjFj In-Reply-To: <87hcebngak.fsf@hagelb.org> (Phil Hagelberg's message of "Wed, 09 Apr 2008 09:28:51 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94805 Archived-At: Phil Hagelberg writes: > Recently it's come to my attention that there's already a function that > does this in tramp: tramp-parse-hosts will return a list of user/host > pairs, though on my machine it also returns some key signatures. (I > imagine it could use some debugging as well.) Do you mean tramp-parse-shosts? However, this function cannot work when hostnames in known_hosts are stored in a hashed form like this: |1|qgSiQ74dNQtRpDaIQHcQgREbNgs=|jwi3ho8zMuJlFvEEiyufB/wVHeU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqIGXkE+SgOSOmLqSQHSpsZEVm9Nm2lDzZ0h2RVvtiTzluHYIyuIkMPANvoeFhtmTpXbIllkcXoTUYCCFBc0fpO4O+nTsZmqY0kr52HCmMfMmTvhi+4dlKeLp8UBSaso9XODohFqYyzbMna1sG9S5osSKFHzrKfh4IdLr1fspw97JhSyY1/hzWL2xRR+ljtlwRs3Z1evyasH1UhI/8zyTGv5dUUgCZiNcZyMS5va2FsUChkE2Xjoh1zmDzSmtN62Me7kZCg3+FftH8PT3WMvaGBfLRPfKjwJ3y2KkbodU2z4XMBkFMXNRL9/d5DPkrDc+4vFmKRieKVWBBwr87k7o1Q== > Clearly this shows some redundancy that should be removed. But I'm not > sure what the best way to go about this is. I don't think pcomplete > should require tramp, nor vice-versa. Perhaps it should be spun out into > a third file that the other two require? I don't feel I have a great > grasp on how files are organized within Emacs. > > Thoughts? In principle, I agree. But Tramp has also a life outside GNU Emacs 23 ... > -Phil Best regards, Michael.