From debbugs-submit-bounces@debbugs.gnu.org Sun May 12 21:03:56 2024 Received: (at submit) by debbugs.gnu.org; 13 May 2024 01:03:56 +0000 Received: from localhost ([127.0.0.1]:57417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6K6d-0003vW-RG for submit@debbugs.gnu.org; Sun, 12 May 2024 21:03:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:60428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6K6Z-0003vO-6r for submit@debbugs.gnu.org; Sun, 12 May 2024 21:03:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6K6Y-0001o0-OG for bug-gnu-emacs@gnu.org; Sun, 12 May 2024 21:03:50 -0400 Received: from wfhigh8-smtp.messagingengine.com ([64.147.123.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6K6W-0002YZ-Ob for bug-gnu-emacs@gnu.org; Sun, 12 May 2024 21:03:50 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.west.internal (Postfix) with ESMTP id 480E31800115 for ; Sun, 12 May 2024 21:03:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sun, 12 May 2024 21:03:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm2; t=1715562226; x=1715648626; bh=/S5hjs5jaq LlJno7FSXFP1JSHU/apDicE0U2tPMCG3A=; b=R9DAw+12gsD8aweyTbDBpUKS6R lIJx6c3Lw4EkHRHdcdI99zzWx3G7NPlAnAwoy0YABSVK7UIZWA7iixpJFUe96t3w omeH27k/2KA9zzRKwzThe+ysAg3gI68xKSkeqUMH8eMB/iYgeiP7nMMO4BlvSIdg h186GQemUYnQZrAdRNhSpCW+Gqqabs3zSBc6gziF1l5VBNoDgfPLJhSpV3we6mok hVcH4OBsx9LjCYSt78/xHDC8aTHwaHq8VJkG3ikuhN1rpiXbLPSW61ANIdrkGYAC BvRoj6UIjEkb7KNrBu3gim5Nhid312vDWlet5B2sp3c9kmsd+nT/i2uw4VLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1715562226; x=1715648626; bh=/S5hjs5jaqLlJno7FSXFP1JSHU/a pDicE0U2tPMCG3A=; b=aRx83Ns7wOwouvgxqCWtkC5Al+Eo4GT9PcKI7V7LGGhb zUKoIy7DIT7NLYlt0g31FNr64Uzntr8zH+OFKPRPSpIU1sQWNHVGS9/om0yZEEFm TkA+enPu57hL753lrRpzbxl18ZS5OCQ6bsdjwj7L7lzOt5/8J2GZu4gaSPsk3Xnt 8UivPA571YYv9RWlnYAm5Web7Wt74eXaOXF0677N8qcvX7v7M/Avb1FvmEqyU9aY TQf1LSjaE8e/s8f3TXYrmnGq7/8gP/j0uAZjNlklaPZ0D+IMHcwyyxfw4WhDdDiq 7xS9nkTQkUe/R38Djz+l7m42I2++tQsFqmg+N7ZBbw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdegfedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvuffhtgfgsehtjeertd dtvdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthho vhdruggvvheqnecuggftrfgrthhtvghrnhephfetveeuhfdvudeuhfevhfeukeeiteekle evtefhgedvfeefgedtffeifeethfejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 12 May 2024 21:03:46 -0400 (EDT) Message-ID: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> Date: Mon, 13 May 2024 04:03:43 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: bug-gnu-emacs@gnu.org Subject: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil Content-Language: en-US From: Dmitry Gutov Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=64.147.123.159; envelope-from=dmitry@gutov.dev; helo=wfhigh8-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit 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: -2.6 (--) 1. (setq remote-file-name-inhibit-locks t) 2. Open some file remotely, lightly edit and save it. 3. See this message in the Messages buffer. BTW, I'm surprised this variable isn't mentioned in Tramp's FAQ (the performance section in particular). It would also make sense to switch it on by default - it has a noticeable effect on performance. In GNU Emacs 30.0.50 (build 7, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw scroll bars) of 2024-05-12 built on potemkin Repository revision: b20d4ab374fb9b3c80b968df6acd6444f763bd40 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12302000 System Description: Ubuntu 23.10 From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 01:56:45 2024 Received: (at 70900) by debbugs.gnu.org; 13 May 2024 05:56:45 +0000 Received: from localhost ([127.0.0.1]:58660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6Og0-0002gN-Kk for submit@debbugs.gnu.org; Mon, 13 May 2024 01:56:44 -0400 Received: from mout.gmx.net ([212.227.15.15]:36069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6Ofv-0002gF-59 for 70900@debbugs.gnu.org; Mon, 13 May 2024 01:56:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1715579790; x=1716184590; i=michael.albinus@gmx.de; bh=sOUkBDCxHrOCNbtjKzO6VR0a/AqJKcQ6Cn6a5EWR7Ys=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=DnvC1nS3doHrexrPRxWZy14ADYhU6WurXfQ4nlBIMcBij8ZMKi/6fzD7tszqn7Gy C5uAj7jqk7HaYApbgOKj+55KIEXyJQ7dWl56UYpMtbOp8uwJRg6oA0AEHysgYHEb3 YfMHng+0X0vEShBzEdxsLaTrsEFJAbikEWU6iV7ti+R5Y2Jr61dqAQ2ed2S/KSXha 8Zg4353Tz5K2dsJxLye2AgqODDbNu8y8FpsuQxv+WgK02ztehZEwnj4ghB9NxMOgM Nuf6FN1BEpI2HVloFqGorzxhpIbA+Sk66ObyGdG3YTzQCTMkpzRRHGW9kmanV8JYR H04v88yklCaXO39HSw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.4]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M42jK-1s6Ofl42wC-003OCe; Mon, 13 May 2024 07:56:30 +0200 From: Michael Albinus To: Dmitry Gutov Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil In-Reply-To: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> (Dmitry Gutov's message of "Mon, 13 May 2024 04:03:43 +0300") References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> Date: Mon, 13 May 2024 07:56:29 +0200 Message-ID: <87r0e6gsqa.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:b4awT7HTfFTn5jCPeGt+g1MMxXPUSSlSS7xdz/VdBV7ASLznuJs x77459iAa7x2gc7Lr+9RMHJd4yvew04AgAqZX9koWG8QzpWtygUSC1y7iJbMPdklD5XQGDe b+tbJ4wDAmXt+D613uIaNjyz7UdVfWOup8/SUROdiEPGNIC3YbgzwtD/r7UkqWNGWeJm6VT mtxA/gRoBtXPK0CvVPLAg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:j8ZaWlimbGk=;oPnbkw7UKkwXbqTI2LNSFMsR3At PKeLZ3qZXAUOyVyAdkmHQzxYPVIlXtdAgxalzPSOr/gzWE9FBw0r2o1ULu2pe7pHEZG5mu9hU 7SCV/fmR8EKMrmL+qizbVhT0CSYgmt/6f80jTPbkxJCT5nL5/yE8yTQCh4jUK2evwkXC2pTOt 07vA53fhqXvN0qmVsf4Jo0l1Ev7ThRnvzMZVz3om8YCZBl0BT3oQcdsCMkeQymZcY5AcJLJFC SNeB8OAGIAL3uojhmv4A9N8SnCcbENq1YMW/xsxefIZhmzVvRJBKLZcSuaCJOiEFgQ68+0bac SXXPMKigoinnfc7tZ46koPDHGskfLX905OBkklmoDM6HzxuypBnfbDS453kaEMUfmzn+8KuA7 yXK+gUft65JIXWjuCw5NXQuwmW0MxYh4tAcd9/m8VnsAe4smLhbL2DyHeluRLrN82yRt8yGCw G27bdt5HSChcCoLmNnikl3NmU6rCYBYCxNGxHynTIdZKHK3YyS2Ofv/ZWfw0UjetRBAWrGZ27 s/fkCg6iyzDsVxt9yc5CaXz6WxcucHceLHC7JCtsVxWA9BKDlvgw++/iRGPT7ABokij8I6Cu/ +g+/eYihwKRsIVIkRGS2ocsAvre5mF2qXJrCiuLxMckCUlJKrj7znUbt+ol7pn0feyo6ZdEXq GCYUuvTwl8VcddzKYqayuZ82hO4fWpjb8iNTkGtpymUnPLN8tEfZ9lwPVnWGQYd3EgN65cgFB NHAVUUb9Dzv9eilysG6wDwPAgDsbnRTg/LRszXlaN2Hb4EBcIm+YPIf6+K/pfd3B+b6vXsL8t C5Mv2C+gjB2Y2OvlAZLoJzZDSSx9+4SoNoX7v2bw0UWyM= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70900 Cc: 70900@debbugs.gnu.org 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.7 (-) Dmitry Gutov writes: Hi Dmitry, > 1. (setq remote-file-name-inhibit-locks t) > 2. Open some file remotely, lightly edit and save it. > 3. See this message in the Messages buffer. The description of remote-file-name-inhibit-locks says "Whether to create file locks for remote files.". And this is what Tramp does. Nothing said about checking/removing of lock files. If we want to suppress these actions as well, we shall agree about, and change the doc. Eli? > BTW, I'm surprised this variable isn't mentioned in Tramp's FAQ (the > performance section in particular). ??? In the Tramp manual, node "Frequently Asked Questions", item "How to speed up TRAMP?", there is --8<---------------cut here---------------start------------->8--- =E2=88=92 Disable file locks. Set =E2=80=98remote-file-name-inhibi= t-locks=E2=80=99 to =E2=80=98t=E2=80=99 if you know that different Emacs sessions are= not modifying the same remote file. --8<---------------cut here---------------end--------------->8--- > It would also make sense to switch it on by default - it has a > noticeable effect on performance. No. File locks are an essential part of Emacs. Disabling them has the potential to damage something (see above), so it shall be decided by the us= er. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 02:55:08 2024 Received: (at 70900) by debbugs.gnu.org; 13 May 2024 06:55:08 +0000 Received: from localhost ([127.0.0.1]:58908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6PaW-0003Fa-9e for submit@debbugs.gnu.org; Mon, 13 May 2024 02:55:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6PaP-0003F6-JP for 70900@debbugs.gnu.org; Mon, 13 May 2024 02:55:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6PaJ-0007UM-7d; Mon, 13 May 2024 02:54:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4/+fVTQzq55Z+smOJSQXqBET1cVCSZi5z0QLgXcqMYM=; b=POi0gIDZZwo+ OjymXa8yn2xgEzzq74TdLJpJXmg/jK9ElvPBqMkhp0g8l9S/JVs4CFABwax/IAsQ8mRzXYkgII2OP g6XL0Fbep+EKPF1po271vWsijhWgf3IO+T/l++Ym8uJoSe56U9jI2vyOtuzyUkn0jkLI8YkQNfyME l1HOVsYgr1cY90EXXCg1VisykffILFD7AJXBXu2opaPQPkUo4NiGj7U2asLrc5C7z5O1z+fNI1C/l NItGh9EOlEh6wazTiuABewrz6WwQaVP6T1JdwgU3L8IQ4kC2EoX4PunlJEmJs/IXBjsfopVnha6rZ DNTzV50Hh2bE31l3swQtPA==; Date: Mon, 13 May 2024 09:54:52 +0300 Message-Id: <86seymxkub.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-Reply-To: <87r0e6gsqa.fsf@gmx.de> (bug-gnu-emacs@gnu.org) Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70900 Cc: dmitry@gutov.dev, 70900@debbugs.gnu.org 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 (---) > Cc: 70900@debbugs.gnu.org > Date: Mon, 13 May 2024 07:56:29 +0200 > From: Michael Albinus via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Dmitry Gutov writes: > > Hi Dmitry, > > > 1. (setq remote-file-name-inhibit-locks t) > > 2. Open some file remotely, lightly edit and save it. > > 3. See this message in the Messages buffer. > > The description of remote-file-name-inhibit-locks says "Whether to > create file locks for remote files.". And this is what Tramp > does. Nothing said about checking/removing of lock files. > > If we want to suppress these actions as well, we shall agree about, and > change the doc. Eli? I think making the failure to remove be silent in this case is enough. If the user sets this variable to t, they are not interested in failures to remove lock files, even if it's for reasons other than "file does not exist". IOW, it's okay to try to remove lock files, but if that fails, Emacs should not display any error messages. > > It would also make sense to switch it on by default - it has a > > noticeable effect on performance. > > No. File locks are an essential part of Emacs. Disabling them has the > potential to damage something (see above), so it shall be decided by the user. Agreed. From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 03:28:56 2024 Received: (at 70900) by debbugs.gnu.org; 13 May 2024 07:28:56 +0000 Received: from localhost ([127.0.0.1]:59106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6Q7D-0006RF-S8 for submit@debbugs.gnu.org; Mon, 13 May 2024 03:28:56 -0400 Received: from mout.gmx.net ([212.227.17.21]:60193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6Q79-0006R5-Sc for 70900@debbugs.gnu.org; Mon, 13 May 2024 03:28:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1715585322; x=1716190122; i=michael.albinus@gmx.de; bh=3UVbQ+qyPki9wBcf7BoS2iIo+Nxyq0hVWdkBTK+5fg0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=TNbeesE0UMw+xxDak9+tzWYAhb7AgwkDwBpENM+RibV/16m/0FIFA2bO5pAwRkyH 21Avwof+0k34mkl1xJZPfAKehtEk7/QwhK6JlN5yOfV6cA1Q7NnoneQvqWZU7NV7d wKpkbmlrEWM2PAkzH3GH4p3mPHxObaxDzdVT84Kf5FsQs6Oh1Ez1qAWRhVP2AaKj8 YKk82hb4pDAcCWGRHHXkq42CXF9r5iQ2tQk71HTB4fFdW/4vxaCmydT5wmJCZ4WsX Nlf+gvtZqlHvML/dE6Z1w/jGsPWibD4/YJfz/NxjE9X2TzGcVJiyuWwwWvMklyyDI wdMNoDHVWq/8HBTIwQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.4]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MA7KU-1sI0x626o6-00BbmT; Mon, 13 May 2024 09:28:42 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil In-Reply-To: <86seymxkub.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 May 2024 09:54:52 +0300") References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> <86seymxkub.fsf@gnu.org> Date: Mon, 13 May 2024 09:28:41 +0200 Message-ID: <87frumgogm.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:8ilzO7MA7jVVIs5tTlT7qO7cjMlsWAwpRzAYwjySfwXh4loYCvw y02nmNzHUNN8tDkSXRGcltVHM7jnQjsPpohHiK30yAapr4UUAF+bMPbFSqV8oKyjGU4cahK TIWpdpZPApOliSfWJ1UUrVuLipFwcHOeseEKGjA2ikV5IcNjrgME+LY4YI8bEW35oAM/Upx eVvtvJFm0giILxjsz5c7A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Gjn6N0OmgYo=;CiLVtkUoKwiskzOWFHHnzJusJ1Q RWCJ/Y9LXrjLknEKUH3s/gTKZyD5rWQLFJe46j24po+sQEb0CRQo7ZK4HOUk78yI/0BMc3dJU 20fN1Z5z3JLjGiis48484+fApNMLlvrw7I4Vbk2agji3qPiaV7r8/4ANA+WfcbR5VYR2XGsub D8XgjCslx3m1zWQ7QLot4R2VxaicsZ7JCGyUXz+/xwv+eAQPeSdBM4OgGoq28+JEoT8HsEHvh F7mkF6VfGxtnQYezj8CULuWbXBxLUT6YUuPBRBA7LKQSkEXX9H6PkWx1bmeLW5tqvOMXMgyos mAYB+Ov/Iz3h3wxmpfOXmuZwG4VIUI6uP/1bFIaICAH0HiIqM4Sybi22hjXoLu5BYGL0GOrTG pzXZ5egkJsVVc1SnJS6vHsEuBaMQm9kJlu4+x8iZ0ifD6XZGAq2brcGR8/bTwrHsntpKWAQQl Xi2y8NUbNn78RRw0Si0LB5GvOSViScPhr2runefNtuEAvfwIkpVuMcAzP97XYTbvbnQQmMX5y KqwLNg8xlLMfJFRX7qGWqNGC4sAY+KXeE9bDnTiohw+FdQc5vzRfXT5zl80oDHi+WkCYIt5Gf NEkUxq3qsGYmdoh77UDvZWqW55fQczp0FIdJLFheXTbnkidPjxVhNkLLbTO3a+u1AE9bl40Os hXV4XsmYN1HRyFltTw4fVo7koK25DyUuaXaguJB7ii1GMp9rzG3MeS/gowGMDcnNdq6zFk8MG 9AkEfS1HsBmmT1iXW0OVnkHYWHVtbNkQFOUIUqpul3YxbG2h1rXGznHwMqWOw5CjJXdrYgN0O 3dkZL+TfKKk2xwv8t3ke08t7aFVSRSSRtyEJVbjMXPZ3k= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70900 Cc: dmitry@gutov.dev, 70900@debbugs.gnu.org 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.7 (-) Eli Zaretskii writes: Hi Eli, >> The description of remote-file-name-inhibit-locks says "Whether to >> create file locks for remote files.". And this is what Tramp >> does. Nothing said about checking/removing of lock files. >> >> If we want to suppress these actions as well, we shall agree about, and >> change the doc. Eli? > > I think making the failure to remove be silent in this case is enough. > If the user sets this variable to t, they are not interested in > failures to remove lock files, even if it's for reasons other than > "file does not exist". > > IOW, it's okay to try to remove lock files, but if that fails, Emacs > should not display any error messages. Done, pushed to master. Anything else, Dmitry? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 07:12:07 2024 Received: (at 70900) by debbugs.gnu.org; 13 May 2024 11:12:07 +0000 Received: from localhost ([127.0.0.1]:60335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6TbD-0003AK-Cg for submit@debbugs.gnu.org; Mon, 13 May 2024 07:12:07 -0400 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:47107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6TbA-00039p-Nj for 70900@debbugs.gnu.org; Mon, 13 May 2024 07:12:05 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 1182C1140081; Mon, 13 May 2024 07:11:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 13 May 2024 07:11:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1715598719; x=1715685119; bh=L9jHARdljHsu3692KdlNK55IInk5fTE0tycP2MMEszM=; b= AgLFQeJ409Ba23onMhxMvg+zhCBmrjW7aFxIlygCugFovtWvGbKUaMGbyzcqn3EA GXj4Y242Y9+BFavuAURDq52kYsaOQu2cemso+JbRA7h9fp6Uw1lKQshimkg21E0F S26koyETx7PXGeiEj/qI/Ah+T55HZY5MDfd1PytTFvgKAixAUHp66xrPqLsU4epo xdk58KcJ/mTFmj+Kbh5zudMx9LDnhxO4Im+waBGHh8+CHnus8mT5ZLaqRd9E0ngf PDEhF7+CH1IalJxsxRFWUHt+FXnYP9+2iwcX+0XYHgHIpZVpJQTc+mAT2Guv3EVE a7y1WoatoeztztTxZZHU+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715598719; x= 1715685119; bh=L9jHARdljHsu3692KdlNK55IInk5fTE0tycP2MMEszM=; b=O I3IP3Dno63S+SUR+PKuBZrJCuxsarn98RDntxgZB1Z+zYy5c8UqGQQcQccsA0F07 EL7Dlhi7UGgLMRxwh0pnLUVfgAXfSeSW7uQv0BusIFq8Xkg+Htjea6UNQF1yYQ8B y+BX7+3JvH0GFFdr0Nt6gNC9xbWxtK9/Kp+MRX5VbDn1t3ll3v0/RCTKz2x3FOJz I70/EBFKd13/uvB3xKWxjZDs+0BBfZK0NJP9fjKRRECgLoYlyDt12x3ri8trW2tx wtYAB4m1/CVUQ6bQa9TReR5Ub/OaNp5GA3bPALl7mu6cwILeq3P3wxpvCmqwtSO/ V10I80tVXOLudpHYdYedg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeggedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 May 2024 07:11:57 -0400 (EDT) Message-ID: Date: Mon, 13 May 2024 14:11:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil To: Michael Albinus , Eli Zaretskii References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> <86seymxkub.fsf@gnu.org> <87frumgogm.fsf@gmx.de> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <87frumgogm.fsf@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70900 Cc: 70900@debbugs.gnu.org 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.7 (-) Hi Michael, On 13/05/2024 10:28, Michael Albinus wrote: >>> The description of remote-file-name-inhibit-locks says "Whether to >>> create file locks for remote files.". And this is what Tramp >>> does. Nothing said about checking/removing of lock files. >>> >>> If we want to suppress these actions as well, we shall agree about, and >>> change the doc. Eli? >> I think making the failure to remove be silent in this case is enough. >> If the user sets this variable to t, they are not interested in >> failures to remove lock files, even if it's for reasons other than >> "file does not exist". >> >> IOW, it's okay to try to remove lock files, but if that fails, Emacs >> should not display any error messages. > Done, pushed to master. Anything else, Dmitry? It's a good enough resolution for me. Thank you. From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 07:30:17 2024 Received: (at 70900) by debbugs.gnu.org; 13 May 2024 11:30:17 +0000 Received: from localhost ([127.0.0.1]:60415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6Tsn-0004DF-82 for submit@debbugs.gnu.org; Mon, 13 May 2024 07:30:17 -0400 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:44157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6Tsl-0003pZ-E3 for 70900@debbugs.gnu.org; Mon, 13 May 2024 07:30:16 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id C575B13810BF; Mon, 13 May 2024 07:30:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 13 May 2024 07:30:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1715599809; x=1715686209; bh=c5aMvXSMyFk6+GP7wviyfMe3XdWfOh2NUywDee8vJ8Y=; b= P2vaaZg9eIGisvjyPLHaI++ILBACu9QRnplXGG8cl0NyLNk6kMGbDmp7msvGHDfQ WKL92KJZJaCMmZwsaetXQ/7weWG+GkULU2c0IeDd9CKjpzYpv/9dvV1TUHytTjtU hDRVafKddl5jRdeEhnsDY1F97tWdf6mu75TMm5js98M2aiF2kTDNP0cDzGgzip7g SVHprIBD6Q4G5UaLO6bI7+Fw3J3s1BKINMaSoi2ya/wXk1ytySBKhw22+vrexOMn FPnBwqWFBcb+ceg/GPdYiiOmOjxpH72HA4IqhHJai2K+kBaTUzwtZ9PJ8t9Rpn9o /ET7BCGr3AvDqM3X267rFw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715599809; x= 1715686209; bh=c5aMvXSMyFk6+GP7wviyfMe3XdWfOh2NUywDee8vJ8Y=; b=Y 28RgyhLWHgkjFlbtX4WiQCSGOLpAuIVlgQsHdQNR/ReHQWlI7DR9a9SoedYYfx3x R5J7u95WwuCzA/AdMe86OO5Fa2XSusVhg3BahwZs8oXQ6oPK4Po2kAWuO3WeW/vh NPES6I2WfudByMHujI05u/0abpUFWcRuY+10BMYo2+xJKVyDKDdSZPXS8v36y4cR VATggWMolLdVH/k2/a3xHZbWBObD0crEtmhyjUP5m6IrzZ7wkb87viV8WUmseNV1 8uKpTotVhCxTdD6i0vVV0khDiHB2CdmukCja3EVgW9j0vWBahC3YVPK/djriv6qa ZTcaXA/jS+F02w+s7ffkA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeggedggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 May 2024 07:30:08 -0400 (EDT) Message-ID: <6d8ed744-c05f-4d83-b769-dff6b5ace405@gutov.dev> Date: Mon, 13 May 2024 14:30:06 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil To: Eli Zaretskii , Michael Albinus References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> <86seymxkub.fsf@gnu.org> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <86seymxkub.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70900 Cc: 70900@debbugs.gnu.org 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.7 (-) On 13/05/2024 09:54, Eli Zaretskii wrote: >>> It would also make sense to switch it on by default - it has a >>> noticeable effect on performance. >> No. File locks are an essential part of Emacs. Disabling them has the >> potential to damage something (see above), so it shall be decided by the user. > Agreed. In this aspect I'm commenting as someone who sees user complaints from time to time about how VS Code or etc are faster at remote development than Emacs, and now saw this myself. This particular issue looks like a speed bump that could be removed for good improvement in basic latency. But perhaps it's better approached by optimizing in other places. From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 07:30:29 2024 Received: (at 70900) by debbugs.gnu.org; 13 May 2024 11:30:29 +0000 Received: from localhost ([127.0.0.1]:60419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6Tsy-0004ht-LM for submit@debbugs.gnu.org; Mon, 13 May 2024 07:30:28 -0400 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:55403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6Tsw-0004Pb-QV for 70900@debbugs.gnu.org; Mon, 13 May 2024 07:30:27 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 189EA114017A; Mon, 13 May 2024 07:30:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Mon, 13 May 2024 07:30:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1715599821; x=1715686221; bh=E0G5qEGLOvTqLLZL7ODaO7sAfHfGz8mAG3fBOs88L64=; b= HVhKavyo+xnyyQ4zAZhZIOuMoXts7MZAzWPZAk5dh4Hv5XU4wapLYmPZvdeysACS Fh3kRyIS96K5rvcjG/vMUoVqYE0X58QZ29lAsA3EWn70ztlHlk35cA0PkMSvq6K9 eXR1S0jvqV6HZq3B9gSAVpDABlxUkVKkubC5za7puM/oCWR50jaeO5NnOlMVF1W8 d1YjPxQIvcATAbKrlMOksyUvZ1FqFS8RlJNYqyVXf7wArDsPEgteDel+iD6Bet3i DdfGA03+qEEaRbIidUAF2L+jYvoDQYcPbOCwqRwJOiLG8yGVKDLeR5g+/H7B+Htb lBQgo0HK2J0vA4xJwlCnCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715599821; x= 1715686221; bh=E0G5qEGLOvTqLLZL7ODaO7sAfHfGz8mAG3fBOs88L64=; b=B bD7eqcBmx7qlwdDQ98oA3Rsv3lzlq1Ni/bmyDxM15Sm/M0+lqS9NuknZ9kfvpwRv 09Go9xOpNmzNf2W16oN/NAMwTJuoBvi0kJilcnnb4ffkZGboaJ0TL62AZE41vpv4 4x0gi0cEBwWuWecHnAL1x8Nc3GG1DJmdkFy6zNpAxkNMBPEGzp5m/zQ8qWDvXEBO yIRRSpBiZMZZbZ7dDHQt6EWSnXI9Y3ze5NQhuqx7BZGozE4iece9Si8Er66zsPEY 3wxpjdaxrNpA4q1bZBiew5voRYqpP2jafbJTXLddYiomfeBISf8W8CjtAv/7wYPk H0yaZtjhRaMorh9cexw/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeggedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveegtedthefhudekteehffeu keeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 May 2024 07:30:20 -0400 (EDT) Message-ID: <5235ea0a-5481-4490-8e09-6ceada5e08bb@gutov.dev> Date: Mon, 13 May 2024 14:30:18 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil To: Michael Albinus References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <87r0e6gsqa.fsf@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70900 Cc: 70900@debbugs.gnu.org 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.7 (-) On 13/05/2024 08:56, Michael Albinus wrote: >> BTW, I'm surprised this variable isn't mentioned in Tramp's FAQ (the >> performance section in particular). > ??? > > In the Tramp manual, node "Frequently Asked Questions", item "How to > speed up TRAMP?", there is > > --8<---------------cut here---------------start------------->8--- > − Disable file locks. Set ‘remote-file-name-inhibit-locks’ to > ‘t’ if you know that different Emacs sessions are not > modifying the same remote file. > --8<---------------cut here---------------end--------------->8--- Yes, sorry, I see it now. From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 11:22:35 2024 Received: (at 70900) by debbugs.gnu.org; 13 May 2024 15:22:35 +0000 Received: from localhost ([127.0.0.1]:33278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6XVa-0008Ne-QF for submit@debbugs.gnu.org; Mon, 13 May 2024 11:22:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6XVV-0008NY-NC for 70900@debbugs.gnu.org; Mon, 13 May 2024 11:22:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6XVO-0004it-Su; Mon, 13 May 2024 11:22:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=w+yT7iq7bhq6wXLu0Mc2Qgga8mVklFN9ZK8KD+n9qhA=; b=YiSCOKGMokso cuMlNbARewp5J24af4BwWtrQ/jX4TvU+lBO//OFX8auyMA+KQPB5susuD1uCqdFrEL7mGL3ZVl+Js roiygQ9dQHAisDxtj6R1QmXkIusEyRO04FX5u4q/EPp/XNHf6I/gG6cX7dZoKamdddCMb0mqYgoTW +ujQ3nKABTw4iG60dKApZD7nUv1WibTbK9zIw6ZM5FQ3JKUdfUkjunj60IhKwkzldYiRpMn40xiSr O5ujNJKuYpxW9xEJ4nZMcCvQoZ8bEujKY9q1kj/IjBigMAH/2eV2KOTeY9wATsLRUTPV0LDZuRxSu TWyolN2efTH6+wujMMR5Kw==; Date: Mon, 13 May 2024 18:22:06 +0300 Message-Id: <86eda5ybxd.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-Reply-To: <6d8ed744-c05f-4d83-b769-dff6b5ace405@gutov.dev> (message from Dmitry Gutov on Mon, 13 May 2024 14:30:06 +0300) Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> <86seymxkub.fsf@gnu.org> <6d8ed744-c05f-4d83-b769-dff6b5ace405@gutov.dev> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70900 Cc: 70900@debbugs.gnu.org, michael.albinus@gmx.de 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 (---) > Date: Mon, 13 May 2024 14:30:06 +0300 > Cc: 70900@debbugs.gnu.org > From: Dmitry Gutov > > On 13/05/2024 09:54, Eli Zaretskii wrote: > >>> It would also make sense to switch it on by default - it has a > >>> noticeable effect on performance. > >> No. File locks are an essential part of Emacs. Disabling them has the > >> potential to damage something (see above), so it shall be decided by the user. > > Agreed. > > In this aspect I'm commenting as someone who sees user complaints from > time to time about how VS Code or etc are faster at remote development > than Emacs, and now saw this myself. VS Code is written for people who own the computer and only have a single session active at all times (that's how Visual Studio works, remember?), so they don't need to lock file. People who use Emacs in the same way could indeed disable file locking. But Emacs itself cannot know whether this is the case, and given the proliferation of Emacs usage patterns whereby people use the same session locally and from a remote machine, we cannot disable file locking by default, IMO. From debbugs-submit-bounces@debbugs.gnu.org Mon May 13 18:31:14 2024 Received: (at 70900) by debbugs.gnu.org; 13 May 2024 22:31:14 +0000 Received: from localhost ([127.0.0.1]:35346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6eCP-00025I-QQ for submit@debbugs.gnu.org; Mon, 13 May 2024 18:31:14 -0400 Received: from fhigh5-smtp.messagingengine.com ([103.168.172.156]:38129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6eCM-00025A-FO for 70900@debbugs.gnu.org; Mon, 13 May 2024 18:31:12 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4FFD811401A5; Mon, 13 May 2024 18:31:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 13 May 2024 18:31:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1715639464; x=1715725864; bh=BFR9XhzQGSe1bu3DYTqa5uQbfavLaaAk7+MPYdo8f3E=; b= CN/SppiJEVpS926wmwhCV0S1dD5Jk2O2TzzCPJuqzrOqpE3H21cwwx0Ks45YhUzs x1pYqTtEr2mMnh52i6IXpLValH9gp51PIzz4WtdwMQn3W/aG5uO9BTIAMafZ3R2b qDDZEanOIcF8CRWLzZoW4zOHF4yOLXw6NKxjy/zhLG7555v0nBFe3aKLWFXFb0Dl DhT8X3sWrlbhmFLQb2qUOUSzrSr//GHCh5210OIlOQRgXFaqBf5IkpoXnE8cZH1K nYKcmsjj6GcPwkcsarzUyDhlY+fRAJoBspz2yAQZ4wFqzuQz+LtP4yk3bIO1n0bN 351vPc0su3ASNmy7e3BQZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715639464; x= 1715725864; bh=BFR9XhzQGSe1bu3DYTqa5uQbfavLaaAk7+MPYdo8f3E=; b=E znefbuunfPXUFaT5jLiNc0dWQOnW6/uG/zIZBl3xEcv3oy2wLe26QsVOIcbyZzZe bXVDk2wJm4KlkFbRw2nCYMeHHnhufQZ5Gj4BqusP6nYZXd3tdRhWqg15WHY1JsY2 7rK8FeMHt5MDyIPJk65fBRtgpfZIWrkA8J/z9K3nk6P+74bZnyOblqgDYVOAWKFI QgjuFABOwXSblRLW1LkHHibbFENPR9TSAci4eTGNUQ1rLywSHcTFZtbh4Aiq7ZVi HCUAZGfu52i8MjosSMBZFyidBWNMNRf7D0fGFC3sDAffRQ2fUKLi4yRI2RFeazzp LnGnwkeebLC7PRHOHhE4g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeghedgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 May 2024 18:31:02 -0400 (EDT) Message-ID: <0be0a6b6-6c98-48fe-92ed-f702617b4b4d@gutov.dev> Date: Tue, 14 May 2024 01:31:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil To: Eli Zaretskii References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> <86seymxkub.fsf@gnu.org> <6d8ed744-c05f-4d83-b769-dff6b5ace405@gutov.dev> <86eda5ybxd.fsf@gnu.org> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <86eda5ybxd.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70900 Cc: 70900@debbugs.gnu.org, michael.albinus@gmx.de 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.7 (-) On 13/05/2024 18:22, Eli Zaretskii wrote: >> Date: Mon, 13 May 2024 14:30:06 +0300 >> Cc: 70900@debbugs.gnu.org >> From: Dmitry Gutov >> >> On 13/05/2024 09:54, Eli Zaretskii wrote: >>>>> It would also make sense to switch it on by default - it has a >>>>> noticeable effect on performance. >>>> No. File locks are an essential part of Emacs. Disabling them has the >>>> potential to damage something (see above), so it shall be decided by the user. >>> Agreed. >> >> In this aspect I'm commenting as someone who sees user complaints from >> time to time about how VS Code or etc are faster at remote development >> than Emacs, and now saw this myself. > > VS Code is written for people who own the computer and only have a > single session active at all times (that's how Visual Studio works, > remember?), so they don't need to lock file. People who use Emacs in > the same way could indeed disable file locking. But Emacs itself > cannot know whether this is the case, and given the proliferation of > Emacs usage patterns whereby people use the same session locally and > from a remote machine, we cannot disable file locking by default, IMO. But the variable only affects remote editing. Anyway, you are mostly correct, I think. Except VS Code these days also touts "full featured" remote development, so editing the same files by two different users wouldn't be out of the question. But most of those use case fall under working in an personal virtual machine or container (geographically remote or on the same host), so those issues shouldn't crop up. Still, it would be great if tramp could batch more checks to happen at once, rather than do them over multiple round-trips. Though that would mean having to maintain a separate "remote" version of 'basic-save-buffer', I guess. From debbugs-submit-bounces@debbugs.gnu.org Wed May 15 06:19:17 2024 Received: (at 70900) by debbugs.gnu.org; 15 May 2024 10:19:17 +0000 Received: from localhost ([127.0.0.1]:42030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7BjA-0004bS-Q4 for submit@debbugs.gnu.org; Wed, 15 May 2024 06:19:17 -0400 Received: from mout.gmx.net ([212.227.17.20]:34095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7Bj1-0004b8-KS for 70900@debbugs.gnu.org; Wed, 15 May 2024 06:19:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1715768337; x=1716373137; i=michael.albinus@gmx.de; bh=iBqlthckXS6cT7vtYK5aRmvPwLRPwOrW1RA8zbRl0dk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=jFrqw8vQ7XEhIgbPEzcHlJdyPvES9Tdg7MdIzbjndWU1EWgFtUoua91AT4Ef+BQb tE1xRX+HLlsWBx0qn387q2rQ2ywMWscCb+36ZklFqY3ORx9wscgl7hHZF0maO/mdN gZfHC66WZAy0AnfGeiv4PA6AgtTOM/v9lqlWN0yUs0RNAQrzIdkgnmG3C83v3pvPU aEPbG/M7wsDMumWYKE0zhCE8vStQ5SnPBSr77Vo6ab0A0Xm+ZzqA3bIL3pm7pXyDF HR1jgY7opvEUhDuctgvXjUIx3nZqUeyeag5dmQqohmOoqav8gMzWVA+Zg77SLZArP 3QljbHc+3nVV6Hv+lw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.4]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MSt8Q-1s08Ct2LTa-00RIS2; Wed, 15 May 2024 12:18:57 +0200 From: Michael Albinus To: Dmitry Gutov Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil In-Reply-To: <0be0a6b6-6c98-48fe-92ed-f702617b4b4d@gutov.dev> (Dmitry Gutov's message of "Tue, 14 May 2024 01:31:01 +0300") References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> <86seymxkub.fsf@gnu.org> <6d8ed744-c05f-4d83-b769-dff6b5ace405@gutov.dev> <86eda5ybxd.fsf@gnu.org> <0be0a6b6-6c98-48fe-92ed-f702617b4b4d@gutov.dev> Date: Wed, 15 May 2024 12:18:56 +0200 Message-ID: <87ttize5tb.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:KEVI1hiSpHeLKay2VGnnWqbE3dwNPpLOdlpXF6r65sgj+UsBdlM K198Fwj+QOVgv8UqcqN4VjxGCOwnaNGBs1SOa/BmKFSxcdJ+/eENTWCjnH1DR3CMbn0RbyQ cU0mUzx+C0AMIvm4AThT8+Tyo35al4Q2mpeGHGDBgJDUhnuEfuKYyAkP6ZD83+3ND6P0dPf poC2oZoLlVyu5gw58ovgQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:JgYwDd33jdM=;lUMQig9uFaEmv1Kx5nuTEZggVmt EL6TaTa7GPASU2QDJab3BOml+7gZOTMBS7NxysQJM6kzbLy7Ks2LLfs1KArlzROe2SlrLMswP 9NjQpjf++lhQJg7LHjQ5a5LQz7f4LKgpOJDx6yQB+M3iZjEC4IdY3vhYdJdEmua1P6WXdazU3 2biU5dfXEiut9Z5jiJUjq3B0+I7g1vXhd1SQ+iwodED4MuPESA0wnkVfcq5RsFAyT3mx/5Aq3 JM/a34V9UxswqrRtYuDH9zl8pisT5XUmZHwA9/y9Vv8icU0I3EhOHiFOqZQzxmB85FJtN1ZVk uDGCKIfdscYQdL2AFlDSpRSIT3gW6P/VKgVudXrRh0miDFYAWEE+EgfSXwMjMIGwBf3UgsQbb OLffD5Hu1F3ZwDqK8EvpveUF6a69vtBBNzEvunbmUDY+tdlZtPTJ9OQdiFtCrxekXifRu/zAz bGLytaLJm2fcpXpmceocS8h4gcr/rUzD1UmBnbGK0hu5gH6+lsOYK0QY/ZSqD4+LyWcS4jCQu NYWdI1jGC4/iSpOdsUjMJx3DXy9ejm/t29T0wY2Jp0ThYMFpTGO6YZW9FMkaZFl8VhMMPxxov gBF6nsZi37Mnwf3HMO7SA/gGZGfGUkpixe1/kXXzNQrYaARp/48dbNiTTIRh/Y9hLbFfcBbXs Ux7NvnyqoZy1qbc54XqXqwwgtXIH5y/+vEiqWetSlOasV8/O5lW2fREZnXPPIyvWzRESIdNWE xzx3ZUcJ9ZsJ79MW9iwOjGDwMUkH5A6zlpO+D7pDfPKt42gp/T7i38hloCh/L1iAl9P/PNkLm dwMPwJuzuGzIXAFDtXM7ImPdb5NkqXcRqr7GuRUu4H730= Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70900 Cc: 70900@debbugs.gnu.org, Eli Zaretskii 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.7 (-) Dmitry Gutov writes: Hi Dmitry, > Still, it would be great if tramp could batch more checks to happen at > once, rather than do them over multiple round-trips. Though that would > mean having to maintain a separate "remote" version of > 'basic-save-buffer', I guess. Tramp tries to do this, but it is limited. It sees the remote side on the perspective of a primitive file operation it has an implementation for, see the list on (info "(elisp) Magic File Names") And yes, 'basic-save-buffer' doesn't belong to this list. Tramp tries to combine several actions in order to decrease the number of roundtrips. And it uses caches. But all of this is mimited. Tramp offers s special trace mode which shows you the external commands it sends per primitive file operation. Call something like =2D-8<---------------cut here---------------start------------->8--- # emacs -Q --eval '(setq tramp-debug-command-messages t)' /ssh:: =2D-8<---------------cut here---------------end--------------->8--- In the debug buffer, there are messages of level 4 (entering a primitive file operation), level 5 (exiting the same operation), and level 6 (the remote commands Tramp emits). Like =2D-8<---------------cut here---------------start------------->8--- 12:11:26.513974 tramp-sh-handle-file-exists-p (4) # Running `(file-exists-= p "/ssh:gandalf:/net/ford/albinus/Books.org")' ... 12:11:26.514344 tramp-send-command (6) # test -e /net/ford/albinus/Books.o= rg 2>/dev/null; echo tramp_exit_status $? 12:11:26.530496 tramp-wait-for-regexp (6) # tramp_exit_status 0 ///fd26d4d0719c81d3c6e45f14adefee05#$ 12:11:26.530742 tramp-sh-handle-file-exists-p (5) # Running `(file-exists-= p "/ssh:gandalf:/net/ford/albinus/Books.org")' ... t =2D-8<---------------cut here---------------end--------------->8--- This is my tool to analyze. Several optimiztations have been performed already, but there is still room for improvement, proposals/patches welcome. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed May 15 06:21:03 2024 Received: (at 70900-done) by debbugs.gnu.org; 15 May 2024 10:21:03 +0000 Received: from localhost ([127.0.0.1]:42035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7Bkt-0004cu-Bf for submit@debbugs.gnu.org; Wed, 15 May 2024 06:21:03 -0400 Received: from mout.gmx.net ([212.227.15.18]:47187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7Bkp-0004cP-LA for 70900-done@debbugs.gnu.org; Wed, 15 May 2024 06:21:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1715768449; x=1716373249; i=michael.albinus@gmx.de; bh=Z4Ww6Dt0EcYlTAWkJx3aQ9Utt4wAy1x+tphWK/ScTWo=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Vz4hx6C56vYe0UTUjkuR/nC8jwXvhDffXsRK8U+jj93Z2cqB5YogySFBFyV8TDDL LYMlz48y9A9FbBOZWP8gCCDpyHbF2B47tbAuk1Fr5QAZs4E/9UOPWRBbLap4lgmfv t3oRW9AcngO//xqXR1MNQ0F1bF7wMOFhr5pH/HBu84g8jt4cRaBH58m2hZdLR8VtM d+dfcAyvPcVZ3efr/K2AHe72mfkmJANkTGUKglW88Bg7hSZWRlwrCj0uvtrnmay3u JCythIlBa78h37oiXzJDnSyT0OvN+6BGqLzK14b/lesSZFBM+rxq90RY7QLX1YzzI 2/MOyLzFuR9nbir2mg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.4]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MV63g-1rxwNL251a-00TCQ4; Wed, 15 May 2024 12:20:49 +0200 From: Michael Albinus To: Dmitry Gutov Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil In-Reply-To: (Dmitry Gutov's message of "Mon, 13 May 2024 14:11:55 +0300") References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> <86seymxkub.fsf@gnu.org> <87frumgogm.fsf@gmx.de> Date: Wed, 15 May 2024 12:20:48 +0200 Message-ID: <87pltne5q7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:oVZ3p2XHDy73AUmSAavAyhlifnRZMkONVsB/sRz51srNZqefC7m fh0b4NZPBqXUNRWatkI55BxQbwE6m+psONIZNM7GWkrhyqwgRLxMnNNW6Ph3fpinRV5syOQ 0zrf4asVPIF/IKUEtP6sg0eLKjnrp+YND/9dUwWG1aqC54pBGvMFzwTkKsIV/RFxyUM6/Sv x1JEHTuUvb+sxIUenHqjA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:5iIP6FBmAJ8=;cZktOvUaWqwY5DHvM9jmeHxDA83 hDvgQbPaGh0BGzBqEMwwh//uOmR/QmTkEV+5rQXIJvtG6wlMVzl/vVaENbEELFWIsOmPOi9m5 XtfJMPd87FThxYXXDENnEYGol4y+h7F/ZqrRNKEoZbPL0JpWuG5vV4tqUcs5aVaMi9Q2qnJeb e2BmLGoQrwyPcDw2HybormaSBX5RWQSbrxiTpHWUTdzMEj+kcXJmAgQYvoaGDBirvnfejb8F4 Y5pzh0mXJ9nwjxcu3huefQ+hLpEREmuYfAdSVff1pg8K79B915L4BzNS9IEif1NdFVBvCVvYe Mnfk90nSKWoLxJfZLxnoDNGNe1KSs4lxiJhUB6vTQzKG7q1VqCXhwJi8/PToyHBwjI3DrJ8uv sA4Tu8Pt7q/z+wfRgINK2f8XaHUundCx1f+nQ2ySz/NP9SwWrXRwKJ1XztLqxZ/67v53gznsj esRAILf4Nos80Lj5JXpulwWtJIp6oWRrPdKbT+wENbQr+vFerzSbnAXgcOwVhSHUJW8/F53YP Epkxp/N+9J6TpJbmex1rc9G+/nXPbshT3W4CEskyrTyXMW9IGslA31xydZaHqRL78gw1tTeG9 JZWsFGwe4iBrjgX+xhifxuZ0pA5kyv2G/79coiHYHj5WzIkNC6yDQMdpSdjW+W8PCmPNQBqRo /EMqZdktMtGq+cpQsIkXxbegdOV4VWS7UZ1G1vfUiOOpLwycTqMJUJeeLvLrPX7kZZjUCImG5 NkrLfwFTFO9A3yJjVDLzVJdzdzf8sw3lLttmALTtjr/K4iX+ACdOgS5sXQGHYflLvBQLLGjnz 19q6sNK94OcES+FuFIA6Tcbfp3ALCyk1kkBmdNReKmqWo= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70900-done Cc: Eli Zaretskii , 70900-done@debbugs.gnu.org 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.7 (-) Version: 30.1 Dmitry Gutov writes: > Hi Michael, Hi Dmitry, >>> IOW, it's okay to try to remove lock files, but if that fails, Emacs >>> should not display any error messages. >> >> Done, pushed to master. Anything else, Dmitry? > > It's a good enough resolution for me. Thank you. Thanks for the feedback. Closing the bug. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun May 19 20:08:54 2024 Received: (at 70900) by debbugs.gnu.org; 20 May 2024 00:08:55 +0000 Received: from localhost ([127.0.0.1]:38771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8qaE-0000Mm-HL for submit@debbugs.gnu.org; Sun, 19 May 2024 20:08:54 -0400 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:33291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8qaC-0000Me-Kb for 70900@debbugs.gnu.org; Sun, 19 May 2024 20:08:53 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 330CC13814FD; Sun, 19 May 2024 20:08:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 19 May 2024 20:08:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1716163723; x=1716250123; bh=u9uTtPi3LGXKccoJZ9AuaNdhx97SfPxN71EFLjRmSyk=; b= LyMq96eTw+wdEEci7Ani8TJtkTNUzQDNDAo9ugLGS8Vmrac3CT4vstjeB0mj13MT q5++tDah9QTkzx5OdWR1Wy51XSJNgMClOx7lqbfktLwvpL/io+GcHrGp7OBRYqcs k/38ixoeihyMQuS5dCScT/uPd+tT9GCOvZLY3YwuUocU/8+VR6HbM+fqCFyoedzb pd2XXNv7vw/b6tlR/OkJ5LY1aYPtDYfGyLiqHnu+itkvY832ElRQgd+CZkyXT9Uu ClVjMlZllSy8/AHz09BGlHdowKPf6XFwH0QAXgmynxdilK7s0GcD4qwzLDP68tEb x3t//ThIxUmalPsbQzOtOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1716163723; x= 1716250123; bh=u9uTtPi3LGXKccoJZ9AuaNdhx97SfPxN71EFLjRmSyk=; b=q 3aHUfyNh130v5P5/bOSWuHzKfsjHldutVkoQQIy1cRs3MPhf7x81MvXe8I3RoauL rdDSmNuPF++mNrRuH3kHwvOhRlPyY3szNOtEA2xTANY8slrIzzat2UBTpeu2GGHP LoIGCBZHD0rJNf6qsXoFT4gjt0sqDAlep04LPGhgeSLfge4egwiOc1ca1lSJ6Anz Uu0x8pRhQ2r7xSD6cBoF7sAVu+19N7SyANeDEckqViIN2VLb7cgDys6Th1HQ2QQc hOf6iLTw+n644eM+nYoWO8/4C6Uz0L0dzyXMKGUj6jXjko4GftwMODkUaRp0ns9T WMSFjpr5i6U8OkWRYLU9A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehledgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnheptdefueehjeevhedvveetieektdegudeuledvteeigfehiefftdekieeugfej iedtnecuffhomhgrihhnpegsohhokhhsrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 May 2024 20:08:41 -0400 (EDT) Message-ID: <43b387d7-1199-4af8-a1b0-160c56ed3963@gutov.dev> Date: Mon, 20 May 2024 03:08:40 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#70900: 30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil To: Michael Albinus References: <847791f3-e5ed-47d1-87b7-e6e95fb0b8d3@gutov.dev> <87r0e6gsqa.fsf@gmx.de> <86seymxkub.fsf@gnu.org> <6d8ed744-c05f-4d83-b769-dff6b5ace405@gutov.dev> <86eda5ybxd.fsf@gnu.org> <0be0a6b6-6c98-48fe-92ed-f702617b4b4d@gutov.dev> <87ttize5tb.fsf@gmx.de> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <87ttize5tb.fsf@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70900 Cc: 70900@debbugs.gnu.org, Eli Zaretskii 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.0 (-) Hi Michael, On 15/05/2024 13:18, Michael Albinus wrote: > In the debug buffer, there are messages of level 4 (entering a primitive > file operation), level 5 (exiting the same operation), and level 6 (the > remote commands Tramp emits). Like > > --8<---------------cut here---------------start------------->8--- > 12:11:26.513974 tramp-sh-handle-file-exists-p (4) # Running `(file-exists-p "/ssh:gandalf:/net/ford/albinus/Books.org")' ... > 12:11:26.514344 tramp-send-command (6) # test -e /net/ford/albinus/Books.org 2>/dev/null; echo tramp_exit_status $? > 12:11:26.530496 tramp-wait-for-regexp (6) # > tramp_exit_status 0 > ///fd26d4d0719c81d3c6e45f14adefee05#$ > 12:11:26.530742 tramp-sh-handle-file-exists-p (5) # Running `(file-exists-p "/ssh:gandalf:/net/ford/albinus/Books.org")' ... t > --8<---------------cut here---------------end--------------->8--- > > This is my tool to analyze. Several optimiztations have been performed > already, but there is still room for improvement, proposals/patches > welcome. Thank you, I've sent a message to bug#56342, which seems to have some pre-existing discussion on the subject. From unknown Sun Jun 22 08:09:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 Jun 2024 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator