From: Michael Albinus <michael.albinus@gmx.de>
To: Vitalie Spinu <spinuvit@gmail.com>
Cc: 11808@debbugs.gnu.org
Subject: bug#11808: IDO fails with tramp /ftp:
Date: Thu, 28 Jun 2012 16:46:51 +0200 [thread overview]
Message-ID: <87vcibwl2c.fsf@gmx.de> (raw)
In-Reply-To: <871ukzr1wv.fsf@gmail.com> (Vitalie Spinu's message of "Thu, 28 Jun 2012 15:39:28 +0200")
Vitalie Spinu <spinuvit@gmail.com> writes:
> Hi,
Hi,
> How to reproduce:
>
> M-x ido-mode
>
> C-x f /ftp:anonymous@cran.r-project.org:
>
> This doesn't happen with emacs 23. It also works fine without IDO on
> emacs 24.
>
> Any ideas?
Does the following patch helps?
--8<---------------cut here---------------start------------->8---
*** /usr/local/src/emacs/lisp/net/ange-ftp.el.~108784~ 2012-06-28 16:41:24.871729482 +0200
--- /usr/local/src/emacs/lisp/net/ange-ftp.el 2012-06-28 16:40:38.101623909 +0200
***************
*** 3969,3978 ****
(string-match "\\`[a-zA-Z]:[/\\]\\'" dir))
(string-equal "/" dir)))
(defun ange-ftp-file-name-all-completions (file dir)
(let ((ange-ftp-this-dir (expand-file-name dir)))
(if (ange-ftp-ftp-name ange-ftp-this-dir)
! (progn
(ange-ftp-barf-if-not-directory ange-ftp-this-dir)
(setq ange-ftp-this-dir
(ange-ftp-real-file-name-as-directory ange-ftp-this-dir))
--- 3969,3983 ----
(string-match "\\`[a-zA-Z]:[/\\]\\'" dir))
(string-equal "/" dir)))
+ (defmacro ange-ftp-ignore-errors-if-non-essential (&rest body)
+ `(if non-essential
+ (ignore-errors ,@body)
+ (progn ,@body)))
+
(defun ange-ftp-file-name-all-completions (file dir)
(let ((ange-ftp-this-dir (expand-file-name dir)))
(if (ange-ftp-ftp-name ange-ftp-this-dir)
! (ange-ftp-ignore-errors-if-non-essential
(ange-ftp-barf-if-not-directory ange-ftp-this-dir)
(setq ange-ftp-this-dir
(ange-ftp-real-file-name-as-directory ange-ftp-this-dir))
--8<---------------cut here---------------end--------------->8---
> Vitalie.
Best regards, Michael.
next prev parent reply other threads:[~2012-06-28 14:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-28 13:39 bug#11808: IDO fails with tramp /ftp: Vitalie Spinu
2012-06-28 14:46 ` Michael Albinus [this message]
2012-06-28 16:01 ` Vitalie Spinu
2012-06-28 16:09 ` Michael Albinus
2012-06-28 16:30 ` Vitalie Spinu
2012-06-28 17:49 ` Michael Albinus
2012-06-28 18:16 ` Vitalie Spinu
2012-06-29 7:18 ` Michael Albinus
2012-06-29 7:42 ` John Wiegley
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=87vcibwl2c.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=11808@debbugs.gnu.org \
--cc=spinuvit@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.