From unknown Fri Aug 15 16:22:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58182: 29.0.50; rename-visited-file: Selecting a directory almost works Resent-From: miha@kamnitnik.top Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Sep 2022 21:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 58182@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16644862523257 (code B ref -1); Thu, 29 Sep 2022 21:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Sep 2022 21:17:32 +0000 Received: from localhost ([127.0.0.1]:39826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oe0uS-0000qS-De for submit@debbugs.gnu.org; Thu, 29 Sep 2022 17:17:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:58028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oe0uQ-0000qL-QX for submit@debbugs.gnu.org; Thu, 29 Sep 2022 17:17:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oe0uQ-0001SY-Gh for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 17:17:30 -0400 Received: from kamnitnik.top ([2001:19f0:5001:bf2:5400:2ff:fee0:2626]:60646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oe0uP-0008GE-0O for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 17:17:30 -0400 From: miha@kamnitnik.top DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1664486242; bh=kXRujDtwBDnn0on/juKleCMA7LnkNhV8X0GGC/8pno0=; h=From:To:Subject:Date:From; b=v/TJ8j0JXv1qWqFSSxUX7ASsF7SeqIa8Gm5pCIFb23zKEdgq+c+4mwWRst4povcK4 rAxhG5klpEPf7CeqK3C076AMWAacxXpdQJSuStwDd+glNh+20HFawjfEuUxotpkejV 5XvcOzwG+8/9ubnp0Z3rqSkMbgyewj2aR+cqhvFcECDt6iPGzwxiUuNlryZqPPNIoU hQnZg/KFLd+l3ZA55nFH5Xrd+1fr28Jjcd5GhCuLsxkHmwb51ZqZ2t6/QZFKR7EKm4 7p88ZxPXPRDPDWiSWvWUOJZRI/WzBNBdWAa4pb5pTIeKhZyeE0kOMzdfGS9G97OhIy OC6QuxgKDsfvw== Date: Thu, 29 Sep 2022 23:31:17 +0200 Message-ID: <87tu4puau2.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2001:19f0:5001:bf2:5400:2ff:fee0:2626; envelope-from=miha@kamnitnik.top; helo=kamnitnik.top X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.001, FROM_SUSPICIOUS_NTLD_FP=1.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_PDS_OTHER_BAD_TLD=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Visit an existing file and type M-x rename-visited-file RET /path/to/existing/directory/ending/with/slash/ RET and notice that the command half succeeds. Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=miha%40kamnitnik.top; ip=209.51.188.17; r=debbugs.gnu.org] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.0 FROM_SUSPICIOUS_NTLD From abused NTLD X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) --=-=-= Content-Type: text/plain Visit an existing file and type M-x rename-visited-file RET /path/to/existing/directory/ending/with/slash/ RET and notice that the command half succeeds. The file is successfully copied to the target directory, because 'rename-file' handles directories. 'set-visited-file-name' doesn't handle directories and signals an error. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmM2DqUTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP/Z6D/9LAqCTUP1cDsZVgKNkPCDXqgyfq7Ma puZp2J+cEd+rEQlHcp4JkvlgV9GeYtimABoF83AdQbWYZ2OdIuvLpZbWAbAiBdlm zB2LV7mjB2ppOA/EJNjyPBS1zqjTi3waaApfynqMW9YA8JMoTeIK7YLPAvoAyQOC X28AaoRLdbTnHJlDZRUwpGfPGZLR7DIAwONUqFLTZaUWo/sjoFlrhytWAZpPH/Yh /aY4LSLPIdHh77yFmqFCA4MrAerNyAx/DSEn07BaynOG//KQs0FEDyX15cUywIvf E6z75jOiu0Ay7QOG9VF6bFOk664YWvhmUMCxw9qfcp12sCgr4ga4t+tcOnWpElnM qS3SoHztsc/yC+zkA3MLUrRcoUyQDog/nDPHWSMaC+5lS8kFHJX+LT4NOBZccS/H HP7ptWHpLjOxqz6hcwdBC+TN1b7jgmrB/TQRDwv6Ny+XfHe5JY+VXCghGyPGkgma o+jqvCPQZLa35bieyTFVUyBWVWJ4gr3hNPxHEmoMfUd+kmRDaTeuirWReHbyORx5 A2+k8bBKvdPxuI3M2dz+9YId0QOzdxaTjJ6bptq12Afcyzj1JFSut0s5KkfFfv5Z tW4qYws1IujIgPrDvrmOyWBZxryuTZYI83Fv8BtiPbhOkFWoth0TPAfS6WSe9/ub mekerWzlYl1ytA== =BaOR -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 30 09:07:57 2022 Received: (at control) by debbugs.gnu.org; 30 Sep 2022 13:07:57 +0000 Received: from localhost ([127.0.0.1]:40770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeFkC-0004Je-Ss for submit@debbugs.gnu.org; Fri, 30 Sep 2022 09:07:57 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeFkB-0004JN-NI for control@debbugs.gnu.org; Fri, 30 Sep 2022 09:07:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gu6kzY4/e7DE0g5gv2evKCjaHzuLqz9q81Y0pycRwhs=; b=OacKSt6WiGuI8WE7hRQdIyXkRT o9y5jjHxSCXqtpPD11ftH4EcMwl21Ez7C/wIYfrjx/E87xZyece/kHHj3OVgG3D4z3wwk1E/ocNb5 JOUgF1vYkgmBV9zHZWxc1QEbKMOwP6qHN77m3PwtNdY7gqf5Gd2L+NPyORxhO7cTZqxA=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeFk3-0000JJ-Qd for control@debbugs.gnu.org; Fri, 30 Sep 2022 15:07:49 +0200 Date: Fri, 30 Sep 2022 15:07:47 +0200 Message-Id: <87a66h6me4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #58182 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 58182 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 58182 29.1 quit From unknown Fri Aug 15 16:22:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58182: 29.0.50; rename-visited-file: Selecting a directory almost works Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Sep 2022 13:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: miha@kamnitnik.top Cc: 58182@debbugs.gnu.org Received: via spool by 58182-submit@debbugs.gnu.org id=B58182.166454328216649 (code B ref 58182); Fri, 30 Sep 2022 13:09:01 +0000 Received: (at 58182) by debbugs.gnu.org; 30 Sep 2022 13:08:02 +0000 Received: from localhost ([127.0.0.1]:40772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeFkI-0004KB-7T for submit@debbugs.gnu.org; Fri, 30 Sep 2022 09:08:02 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeFk5-0004JF-O4 for 58182@debbugs.gnu.org; Fri, 30 Sep 2022 09:07:57 -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:Date:References: In-Reply-To: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=JEYbKLVpOVVYUrR7WVBnyHJuypDBlAVYeJnlmUre1NI=; b=cJ9blX1DtV4n0rWelnEXW3Tf+/ R7N21fw5dtb/CJ58CgaPduW0it5MGXpxEtWNnfoOSHL7k93HrjEvyAbRyukF++Nw5Z6Z2aklVnyup mACYJfjk95cmlrmBuahYNWtv0OXgcIEAAvv0gcOG6Pk+1LWWCn5BL0SaYyeXq4f27El4=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeFjw-0000JB-Q5; Fri, 30 Sep 2022 15:07:43 +0200 From: Lars Ingebrigtsen In-Reply-To: <87tu4puau2.fsf@miha-pc> (miha@kamnitnik.top's message of "Thu, 29 Sep 2022 23:31:17 +0200") References: <87tu4puau2.fsf@miha-pc> X-Now-Playing: Boogzbrown's _L'Esprit de Nyege 2020_: "Airwave" Date: Fri, 30 Sep 2022 15:07:40 +0200 Message-ID: <87bkqx6meb.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: miha@kamnitnik.top writes: > Visit an existing file and type > > M-x rename-visited-file RET /path/to/existing/directory/ending/with/slash/ RET > > and notice that the command half succeeds. > > The file is successfully copied [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) miha@kamnitnik.top writes: > Visit an existing file and type > > M-x rename-visited-file RET /path/to/existing/directory/ending/with/slash/ RET > > and notice that the command half succeeds. > > The file is successfully copied to the target directory, because > 'rename-file' handles directories. 'set-visited-file-name' doesn't > handle directories and signals an error. I've now fixed this in Emacs 29.