From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: Ido and hosts named with a single letter. Date: Sun, 26 Nov 2006 21:00:38 +0100 Organization: Epita/LRDE Message-ID: <877ixinfkp.fsf@lrde.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1095776145==" X-Trace: sea.gmane.org 1164571302 26491 80.91.229.2 (26 Nov 2006 20:01:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2006 20:01:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 26 21:01:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GoQBm-0004FL-EH for ged-emacs-devel@m.gmane.org; Sun, 26 Nov 2006 21:01:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoQBl-00008R-Ti for ged-emacs-devel@m.gmane.org; Sun, 26 Nov 2006 15:01:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GoQBP-0008Sg-E4 for emacs-devel@gnu.org; Sun, 26 Nov 2006 15:00:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GoQBD-0008J6-J7 for emacs-devel@gnu.org; Sun, 26 Nov 2006 15:00:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoQBD-0008Im-6o for emacs-devel@gnu.org; Sun, 26 Nov 2006 15:00:47 -0500 Original-Received: from [62.39.139.2] (helo=kualalumpur.lrde.epita.fr) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GoQBC-0001vn-HV for emacs-devel@gnu.org; Sun, 26 Nov 2006 15:00:46 -0500 Original-Received: from mistral.lrde.epita.fr ([192.168.105.184] helo=localhost) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.50) id 1GoQB9-0002T4-J4 for emacs-devel@gnu.org; Sun, 26 Nov 2006 21:00:43 +0100 Original-To: emacs-devel@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEU/JREXDATg1LV8UCao i1fQpmoP3Nd6AAACa0lEQVQ4jWWUQW7jMAxFqZEPICJzAjXeM6W8dyNqX9ji/a8yn04xnWIEJLD9 LJH85DcJFyJV3erqPty8ExHfBikXSdn0WVezC0hOAQiA2nCsAHOqEnPe4k+puU8zw/t+xquqjRKA 4lHsmQBT8C5pDtBwfwH8VdcHI5+FHtjRxrQRwZsf3hNjZRKAPEzHEdH9mFNSYb5dQK3r8KM6ftNy KikAirDZFWdVkDqbxjGFbAcwbQCxxc8mPRHUGOcCIMgMACV23RfJTch3gC6ofT3qCdG0NyUUPfYF yQrKCIAnuYsgX2qPzW2i9sNrfSOSPPZQiygtCNlCjlpXJV38lIKshF/AZzsAMoArdCKNHfXukPuJ ImbLh+9J2gXwap0QpZ7NjZ7ekdkFcDiqPiLGcHmuvaG/AHgy62s52Lae1ABoA7D6d2kDoAvgbnyD ZutEd6lTHOXfYPHVJDH1K8a1+oyrjoZpAGn1x5pfwPr2E9yjxSpk50/gEyKgD/+BD/KzN3tQ13b8 Cx5loF0AgnZf5IUny9hRHQOYBllHDM+6s3oviZBu77mFjDm621Np3hkjR90wE1BkTYvhdDgDgCmR xWChFfcYAOqMm5NZkVWMur8AL5+oeMQOob2FmY76FiM+PrDDZypwGdqokSlAaQOmGH6mW8KpsOwl 0YOLedjSITr6scNRF8D4PesH33QmLrx8AzjpV/3kkg025w2gfAFYKCLluJAc4Ap+h18oo4S8wzaY klDsBUTiY8EZFkg5Iass75FubC9wd8qa0u9+gRxAsAKEaRAo6iB+vwCMGmdBjvgidQGA1ntMX4CS ZYGV/wADyL80LIX/UAAAAABJRU5ErkJggg== User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) 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:62820 Archived-At: --===============1095776145== Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Try this : emacs -Q M-x ido-mode C-x C-f /tmp Everything's okey. Now, do the same but before, add a line with a `w' in your known hosts: echo w >> ~/.ssh/known_hosts It will result in the error =AB Login failed =BB. Disgracious. I propose the following patch, which makes ido allow such host names. --=-=-= Content-Type: text/x-patch; charset=iso-8859-1 Content-Disposition: inline; filename=ido.patch Content-Transfer-Encoding: quoted-printable *** lisp/ido.el.~1.110.~ 2006-10-16 14:42:24.000000000 +0200 =2D-- lisp/ido.el 2006-11-24 18:31:06.000000000 +0100 *************** *** 2068,2074 **** (ido-set-current-directory (file-name-directory (substring ido-cur= rent-directory 0 -1)))) (setq ido-set-default-item t)) =20=20 ! ((and (string-match (if ido-enable-tramp-completion "..[:@]\\'" "..:\\'= ") ido-selected) (ido-is-root-directory)) ;; Ange-ftp or Tramp (ido-set-current-directory ido-current-directory ido-selected) (ido-trace "tramp prefix" ido-selected) =2D-- 2068,2074 ---- (ido-set-current-directory (file-name-directory (substring ido-cur= rent-directory 0 -1)))) (setq ido-set-default-item t)) =20=20 ! ((and (string-match (if ido-enable-tramp-completion ".[:@]\\'" ".:\\'")= ido-selected) (ido-is-root-directory)) ;; Ange-ftp or Tramp (ido-set-current-directory ido-current-directory ido-selected) (ido-trace "tramp prefix" ido-selected) *************** *** 2426,2432 **** ((and (=3D 1 (length ido-matches)) (not (and ido-enable-tramp-completion (string-equal ido-current-directory "/") ! (string-match "..[@:]\\'" (ido-name (car ido-matches)))))) ;; only one choice, so select it. (if (not ido-confirm-unique-completion) (exit-minibuffer) =2D-- 2426,2432 ---- ((and (=3D 1 (length ido-matches)) (not (and ido-enable-tramp-completion (string-equal ido-current-directory "/") ! (string-match ".[@:]\\'" (ido-name (car ido-matches)))))) ;; only one choice, so select it. (if (not ido-confirm-unique-completion) (exit-minibuffer) *************** *** 3433,3439 **** (let ((default-directory ido-current-directory)) (ido-to-end ;; move ftp hosts and visited files to end (delq nil (mapcar ! (lambda (x) (if (or (string-match "..:\\'" x) (and (not (ido-final-slash x)) (get-file-buffer x))) x)) ido-temp-list))))) =2D-- 3433,3439 ---- (let ((default-directory ido-current-directory)) (ido-to-end ;; move ftp hosts and visited files to end (delq nil (mapcar ! (lambda (x) (if (or (string-match ".:\\'" x) (and (not (ido-final-slash x)) (get-file-buffer x))) x)) ido-temp-list))))) *************** *** 4149,4155 **** (setq refresh t)) )) =20=20 ! ((and (string-match (if ido-enable-tramp-completion "..[:@]\\'" "..:\\'= ") contents) (ido-is-root-directory)) ;; Ange-ftp or tramp (ido-set-current-directory ido-current-directory contents) (when (ido-is-slow-ftp-host) =2D-- 4149,4155 ---- (setq refresh t)) )) =20=20 ! ((and (string-match (if ido-enable-tramp-completion ".[:@]\\'" ".:\\'")= contents) (ido-is-root-directory)) ;; Ange-ftp or tramp (ido-set-current-directory ido-current-directory contents) (when (ido-is-slow-ftp-host) *** lisp/ChangeLog.~1.10261.~ 2006-11-06 15:42:02.000000000 +0100 =2D-- lisp/ChangeLog 2006-11-24 18:34:40.000000000 +0100 *************** *** 0 **** =2D-- 1,5 ---- + 2006-11-24 Micha=EBl Cadilhac +=20 + * ido.el (ido-read-internal): Allow single letter named hosts. + (ido-complete, ido-make-file-list, ido-exhibit): Ditto. +=20 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable TIA! =2D-=20 /!\ My mail address has changed, please update your files accordingly. | Micha=EBl `Micha' Cadilhac | In a World without Walls and Fences= , | | Epita/LRDE Promo 2007 | who needs Windows and Gates? = | | http://michael.cadilhac.name | -- Dino Esposito = | `-- - JID: micha@amessage.be --' - -= -' --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFafJpUJhDmOfFA3URAkNyAJ9PZKIiXPvM3hLPtIn4zARk7BHiPACeLqC/ URmYmsvWuwdOsrjkyTli2ys= =DlYt -----END PGP SIGNATURE----- --==-=-=-- --===============1095776145== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1095776145==--