From: "Sean O'Rourke" <sorourke@cs.ucsd.edu>
Subject: minor ido enhancements
Date: Wed, 16 Mar 2005 13:14:12 -0800 [thread overview]
Message-ID: <m2k6o71efv.fsf@Sean-ORourkes-Computer.local> (raw)
The following small changes to lisp/ido.el avoid a tramp connection
caused by file-directory-p when the host matches
ido-is-slow-ftp-host. The actual diff is only about 4-5 lines, so
hopefully it won't require papers.
/s
(defun ido-nonreadable-directory-p (dir)
;; Return t if dir is a directory, but not readable
;; Do not check for non-readable directories via tramp, as this
;; causes a premature connect on incomplete tramp paths (after
;; entring just "method:").
(and (ido-final-slash dir)
(or (ido-is-slow-ftp-host dir)
(not (and (file-directory-p dir) (file-readable-p dir))))))
(defun ido-directory-too-big-p (dir)
;; Return t if dir is a directory, but too big to show. Do not
;; check via tramp, but just pessimistically return true.
(let ((ido-enable-tramp-completion nil))
(and (numberp ido-max-directory-size)
(ido-final-slash dir)
(or (ido-is-slow-ftp-host dir)
(and (file-directory-p dir)
(> (nth 7 (file-attributes dir)) ido-max-directory-size))))))
reply other threads:[~2005-03-16 21:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m2k6o71efv.fsf@Sean-ORourkes-Computer.local \
--to=sorourke@cs.ucsd.edu \
/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.