From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56229: title: add a function to move a file from one place to another Date: Mon, 27 Jun 2022 09:55:30 +0200 Message-ID: <87ilom8rrh.fsf@gnus.org> References: <87bkuffph1.fsf@gnus.org> <875ykne905.fsf@gnus.org> <87zghza0u8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34916"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56229@debbugs.gnu.org, Visuwesh To: Zachary Kanfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 27 10:07:08 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5jlz-0008qp-RF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 10:07:07 +0200 Original-Received: from localhost ([::1]:49284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5jly-0001Sx-PF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 04:07:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5jbG-00036q-BX for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 03:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5jbG-0002jg-3T for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 03:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5jbG-0005AA-31 for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 03:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2022 07:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56229-submit@debbugs.gnu.org id=B56229.165631654119812 (code B ref 56229); Mon, 27 Jun 2022 07:56:02 +0000 Original-Received: (at 56229) by debbugs.gnu.org; 27 Jun 2022 07:55:41 +0000 Original-Received: from localhost ([127.0.0.1]:49709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5jau-00059T-Nl for submit@debbugs.gnu.org; Mon, 27 Jun 2022 03:55:40 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:34394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5jat-00059I-8c for 56229@debbugs.gnu.org; Mon, 27 Jun 2022 03:55:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6o34nL8fLFnTxfSgIzpBqyvVWFTMhnY7hBV0o595dSU=; b=pq8a4NC6gJ3H3C+9h8i6vaHT3K Ksyb7U8ga5orzBjmryNnwVMwJHNGS//uTAqJ5rKTlXq/BNKKofqk5paAk+mTR2tTgcW45LXqKdyBx Q6BHev69+6hKeTx//wauI2q+To7GX38c/Q04DCzI7NrzWPdqDWwGZJ6Gt6X8S2OJMmxU=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5jak-0003Jh-Lo; Mon, 27 Jun 2022 09:55:33 +0200 In-Reply-To: (Zachary Kanfer's message of "Mon, 27 Jun 2022 00:42:58 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235415 Archived-At: Zachary Kanfer writes: > I think `rename-visited-file' would fit in better especially since we > already have `rename-file'; it also parallels dired's R command. Thanks. A couple of things: [...] > +** New command 'move-file'. > +This command moves a file to a new location. Should be updated. [...] > + (let ((old-location (buffer-file-name))) > + (write-file new-location t) > + (when (and old-location > + (file-exists-p new-location)) > + (delete-file old-location)))) Probably want to check whether old-location exists? Anyway, apparently there's something up with the copyright assignment/disclaimer? Your entry in the file says "**NEEDS New DISCLAIMER**" -- do you know what that's about? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no