From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.bugs Subject: Bug in copy-file Date: Thu, 30 Jan 2003 17:30:53 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E39533D.3090509@math.ku.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1043944197 27587 80.91.224.249 (30 Jan 2003 16:29:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2003 16:29:57 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18eHZW-0007AA-00 for ; Thu, 30 Jan 2003 17:29:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eHb5-0005y4-06 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 30 Jan 2003 11:31:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18eHaq-0005q9-00 for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2003 11:31:12 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18eHaN-0005Fc-00 for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2003 11:30:45 -0500 Original-Received: from [62.84.220.10] (helo=mail.dantel.dk) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eHaH-00057l-00 for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2003 11:30:37 -0500 Original-Received: from math.ku.dk [62.84.221.46] by mail.dantel.dk with ESMTP (SMTPD32-7.13) id A3FE45B0284; Thu, 30 Jan 2003 17:34:06 +0100 User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4352 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4352 A bug has been introduced since Emacs 21.2. A "!" has been added where it should not be. As a consequence the keep-time parameter functions opposite of what is intended. The patch below should fix the problem. Lars Hansen *** 2405,2411 **** SDATA (encoded_newname), FALSE)) report_file_error ("Copying file", Fcons (file, Fcons (newname, Qnil))); ! else if (!NILP (keep_time)) { EMACS_TIME now; DWORD attributes; --- 2405,2411 ---- SDATA (encoded_newname), FALSE)) report_file_error ("Copying file", Fcons (file, Fcons (newname, Qnil))); ! else if (NILP (keep_time)) { EMACS_TIME now; DWORD attributes;