all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: 32325@debbugs.gnu.org
Cc: michael.albinus@gmx.de
Subject: bug#32325: 27.0.50; dired-create-directory: timing issue in remote machine
Date: Tue, 31 Jul 2018 14:02:13 +0900	[thread overview]
Message-ID: <87bmao0zhm.fsf@calancha-pc.dy.bbexcite.jp> (raw)

X-Debbugs-Cc: michael.albinus@gmx.de

emacs -Q -l dired-aux
;; Connect with Dired into a remote machine:
(dired "/ssh:USER@MACHINE:PATH")

;; I) Create a directory
+ a/b RET

;; II) Right after run this:

(file-exists-p (dired-get-filename))
=> nil

;; Sometimes I get `t' sometimes `nil'.  Maybe a timing issue?
;; I see the problem just in remote machines; in my local box the
;; previous command always returns `t'.

;; Another way is change II) by simply:
f
;; That is, run `dired-find-file' as soon as the new directory shows up.
;; Sometimes you get the error:
dired-get-file-for-visit: File no longer exists; type ‘g’ to update Dired buffer

In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2018-07-31
Repository rev1ision: 63ef79329935b790b9c8107125bce66e1f272c2e
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description: Debian GNU/Linux 9 (stretch)





             reply	other threads:[~2018-07-31  5:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-31  5:02 Tino Calancha [this message]
2018-07-31 15:07 ` bug#32325: 27.0.50; dired-create-directory: timing issue in remote machine Eli Zaretskii
2018-07-31 20:43   ` Michael Albinus
2018-08-01  4:53     ` Tino Calancha
2018-08-01 21:15       ` 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

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

  git send-email \
    --in-reply-to=87bmao0zhm.fsf@calancha-pc.dy.bbexcite.jp \
    --to=tino.calancha@gmail.com \
    --cc=32325@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /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.