From: Lennart Borgman <lennart.borgman@gmail.com>
To: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Async/Sync url-copy-file?
Date: Mon, 4 Jan 2010 00:39:51 +0100 [thread overview]
Message-ID: <e01d8a51001031539n3f375f57o726dfc3e7d3e4e20@mail.gmail.com> (raw)
Can a sane person please explain to me how this code
(message "before url-copy-file %S" temp-list-file)
(url-copy-file url temp-list-file t t)) ;; overwrite, keep time
(message "after url-copy-file %S" temp-list-file)
(with-current-buffer (find-file-noselect temp-list-file)
(set-visited-file-name nil t)
(message "before (delete-file %S)" temp-list-file)
(when (file-exists-p temp-list-file) (delete-file temp-list-file))
(message "after (delete-file %S)" temp-list-file)
could give this output:
before url-copy-file "c:/test/d27/web-vcs-temp-list.tmp"
before (delete-file "c:/test/d27/web-vcs-temp-list.tmp")
after (delete-file "c:/test/d27/web-vcs-temp-list.tmp")
before url-copy-file "c:/test/d27/util/web-vcs-temp-list.tmp"
Contacting host: bazaar.launchpad.net:80
Wrote c:/test/d27/util/web-vcs-temp-list.tmp
after url-copy-file "c:/test/d27/util/web-vcs-temp-list.tmp"
And why I am asked if I want to revert the buffer when temp-list-file
changes on disk?
Could this be a bug in the url-copy-file so that it runs async?
reply other threads:[~2010-01-03 23:39 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
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=e01d8a51001031539n3f375f57o726dfc3e7d3e4e20@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
/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).