From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Async/Sync url-copy-file? Date: Mon, 4 Jan 2010 00:39:51 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1262562034 31621 80.91.229.12 (3 Jan 2010 23:40:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2010 23:40:34 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 04 00:40:27 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NRa3e-0000vs-Qi for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2010 00:40:27 +0100 Original-Received: from localhost ([127.0.0.1]:52095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRa3f-0008Q1-BQ for ged-emacs-devel@m.gmane.org; Sun, 03 Jan 2010 18:40:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NRa3Y-0008N1-KQ for emacs-devel@gnu.org; Sun, 03 Jan 2010 18:40:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NRa3T-0008Ig-48 for emacs-devel@gnu.org; Sun, 03 Jan 2010 18:40:20 -0500 Original-Received: from [199.232.76.173] (port=52968 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRa3S-0008IZ-Te for emacs-devel@gnu.org; Sun, 03 Jan 2010 18:40:14 -0500 Original-Received: from mail-fx0-f228.google.com ([209.85.220.228]:65531) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NRa3S-0001qN-4n for emacs-devel@gnu.org; Sun, 03 Jan 2010 18:40:14 -0500 Original-Received: by fxm28 with SMTP id 28so5901569fxm.26 for ; Sun, 03 Jan 2010 15:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=edx4eMQeeGQVCxumJ5HUS+O/MyJU1Q6oN70+kvbAsxM=; b=eZzFBSkwrrmpkyPt/st/IzLzhrbxmgsQRMz7khuq2eQcynt3b7kf19NWgWYg7IuqO0 nLs2tZiROOfkvOkSh1KhknUjl2JW92FnJaU1gZl9L+DsR67z06tiSq/zvQeJGirMCXGn wXiTgQwIOa7IsrgXowX4wdlnMd91XD/LMG8UY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=PiYT6pzle0fm68GdoM98yUeRkwORQWRiqkhDw6okf+oJ2flsM03A+7BbsqovErJ+ZC KgKZA+8l1NzSmrONMTmqDJNnhFbsTNKmyUwKK8uOgGu0pmolSCNz73x5rrYbMuQwwHX7 h5JKmc8/Q2nXj76xBOH8fwZLnFXpMjuhxV9K8= Original-Received: by 10.239.130.30 with SMTP id 30mr2584356hbh.130.1262562011168; Sun, 03 Jan 2010 15:40:11 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119327 Archived-At: 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?