unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Dave Abrahams <dave@boostpro.com>
Cc: bug#24980 <24980@debbugs.gnu.org>
Subject: bug#24980: tramp (2.2.13.25.1); ido virtual buffer interaction
Date: Thu, 24 Nov 2016 12:03:08 +0100	[thread overview]
Message-ID: <87vavdb0nn.fsf_-_@gmx.de> (raw)
In-Reply-To: <m21sy4plgb.fsf@boostpro.com> (Dave Abrahams's message of "Mon, 21 Nov 2016 13:33:24 -0800")

Dave Abrahams <dave@boostpro.com> writes:

Hi Dave,

> Best workaround I have for now is to set `ido-use-virtual-buffers' to
> 'auto, which at least prevents it from invoking TRAMP until such a time
> as I type a name for which there are no matches.  However, I'm guessing
> `recentf-keep-default-predicate' might be fixed up to avoid this.

Does the following patch help? It suppresses Tramp for
`get-file-buffer', as it has been done already in `ido-make-file-list':

--8<---------------cut here---------------start------------->8---
*** ~/src/emacs/lisp/ido.el.~dfc5b0f65531ef71cbd2c0cc956c246ea4239612~	2016-11-24 12:00:42.655829856 +0100
--- ~/src/emacs/lisp/ido.el	2016-11-24 11:57:47.352672563 +0100
***************
*** 3505,3511 ****
        (when (equal name "")
  	(setq name head))
        (and (not (equal name ""))
! 	   (null (get-file-buffer head))
             (not (assoc name ido-virtual-buffers))
             (not (member name ido-temp-list))
             (not (ido-ignore-item-p name ido-ignore-buffers))
--- 3505,3511 ----
        (when (equal name "")
  	(setq name head))
        (and (not (equal name ""))
!            (null (let (file-name-handler-alist) (get-file-buffer head)))
             (not (assoc name ido-virtual-buffers))
             (not (member name ido-temp-list))
             (not (ido-ignore-item-p name ido-ignore-buffers))
--8<---------------cut here---------------end--------------->8---

> Thanks again,

Best regards, Michael.





  reply	other threads:[~2016-11-24 11:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-21 18:37 bug#24980: Fwd: tramp (2.2.13.25.1); ido virtual buffer interaction Michael Albinus
2016-11-21 18:46 ` Michael Albinus
2016-11-21 18:47 ` Michael Albinus
2016-11-21 21:33   ` Dave Abrahams
2016-11-24 11:03     ` Michael Albinus [this message]
2016-12-05 15:13       ` bug#24980: " Michael Albinus
2016-12-19  1:59         ` Dave Abrahams
2016-12-19  2:10           ` Dave Abrahams
2016-12-19  8:36             ` Michael Albinus

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87vavdb0nn.fsf_-_@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=24980@debbugs.gnu.org \
    --cc=dave@boostpro.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).