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#55247: [29.0.50; TRAMP] Tramp Always Thinks Buffer Changed On Disk After Edit -> Save Date: Thu, 05 May 2022 16:42:36 +0200 Message-ID: <87tua4niqr.fsf@gnus.org> References: <87ilqktejr.fsf@gnus.org> <8735hojbhn.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14645"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55247@debbugs.gnu.org, Michael Albinus , Jacob Faibussowitsch To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 05 16:44:28 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 1nmciS-0003cP-0a for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 May 2022 16:44:28 +0200 Original-Received: from localhost ([::1]:47660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmciQ-0006SU-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 May 2022 10:44:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmch5-0006Qf-3N for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 10:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmch3-0000zY-Vj for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 10:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nmch3-0004de-MC for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 10:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 May 2022 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55247 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 55247-submit@debbugs.gnu.org id=B55247.165176176717808 (code B ref 55247); Thu, 05 May 2022 14:43:01 +0000 Original-Received: (at 55247) by debbugs.gnu.org; 5 May 2022 14:42:47 +0000 Original-Received: from localhost ([127.0.0.1]:46164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmcgp-0004d9-DC for submit@debbugs.gnu.org; Thu, 05 May 2022 10:42:47 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:54680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmcgn-0004cx-Qz for 55247@debbugs.gnu.org; Thu, 05 May 2022 10:42:46 -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=iYJrjtwySFxHh2C0Wguk0b7OsjraqQK+2DLrbqv2GaQ=; b=VVLmNH4zshYPLkeRtCvIzrvQD0 Lq2xEcCTb+NTP3PU7yzHWP80hAqMAm1wTW7sjtq9vtuvW3h5mfiyacRkZY6/HP6mu20YGTVs8eCkl EnEe7M6MrNtYSD25pAiBaZWHR2agQobW7c3kMDJM8JOjpcbVPhrYWrpM6qP5zrnTypN0=; 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 1nmcgf-0003CU-1x; Thu, 05 May 2022 16:42:39 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWXaIHevcLBv03/ //8lKWoeAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YFBQ4oLnjioxIAAAGOSURBVCjPTdDNatwwEAfw v428mD2ZIoekp01oSqqncEoDOSpgBbwn92DD+ilcQ8Pik09huyfXZI09T9kZd/shjNDPMxqNhMDi 3wiW2RCPHIpoPlbPpzHLLFS2LV6z41js5k5QvrrjWGYCJ+jG8scZz8XhY7HsKYtyVxxuaVt95Woz URv+PkXx7FJcJ/FCD4H1WsV/zh141fdU/cXdKZU051ziOTMlZ1jnaLYLnpiOSNIQPxUucYbSIBGc OM9Q7Tgx3t0u+OkcoB8EFZ0E8f8oXuLUui3Ngp3SNno445PWXOY9keBKR4x3ZAShjvhon4zcLOwE IPoGKGU7rBltz42Gtsaav6GfoC454neJGfoKKso1g19+aqD8/AC/NgNNn6Gu8wkRBBy5T4jrmGmp fd+YidET8QFBvV1ghhd5OJ8Ed/24gCP0Fm5a4MMeggkbrqb33OaGavgDd8DrVS+38LGqvQQXNa9v WqjmApGWAAasGnA3OW/b9wgEaz4pbG8gz70A/RrBF0mTMfkIHv+Aml/OxZANo//3HgAAACV0RVh0 ZGF0ZTpjcmVhdGUAMjAyMi0wNS0wNVQxNDo0MDo0NiswMDowMGzqPHwAAAAldEVYdGRhdGU6bW9k aWZ5ADIwMjItMDUtMDVUMTQ6NDA6NDYrMDA6MDAdt4TAAAAAAElFTkSuQmCC X-Now-Playing: Junie Morrison's _Mutant Disco Vol 4_: "Tease Me (Arthur Baker ReMix)" In-Reply-To: <8735hojbhn.fsf@elite.giraud> (Manuel Giraud's message of "Thu, 05 May 2022 16:32:52 +0200") 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:231438 Archived-At: Manuel Giraud writes: > I'm also affected by this rather annoying bug when editing a file over > TRAMP. FWIW, I've just bisected it to this patch 47fe7a5983. Sorry; I was testing with an Emacs that was a couple days old. With the current trunk, I can indeed reproduce the problem. I'm also getting further errors: Debugger entered--Lisp error: (wrong-type-argument "number-or-marker-p nil") signal(wrong-type-argument ("number-or-marker-p nil")) tramp-error((tramp-file-name "ssh" nil nil "stories" nil "/tmp/foo" nil) wrong-type-argument "number-or-marker-p nil") tramp-signal-hook-function(wrong-type-argument (number-or-marker-p nil)) tramp-sh-handle-write-region(nil nil "/ssh:stories:/tmp/foo" nil t "/ssh:stories:/tmp/foo" nil) apply(tramp-sh-handle-write-region (nil nil "/ssh:stories:/tmp/foo" nil t "/ssh:stories:/tmp/foo" nil)) tramp-sh-file-name-handler(write-region nil nil "/ssh:stories:/tmp/foo" nil t "/ssh:stories:/tmp/foo" nil) apply(tramp-sh-file-name-handler write-region (nil nil "/ssh:stories:/tmp/foo" nil t "/ssh:stories:/tmp/foo" nil)) tramp-file-name-handler(write-region nil nil "/ssh:stories:/tmp/foo" nil t "/ssh:stories:/tmp/foo" nil) write-region(nil nil "/ssh:stories:/tmp/foo" nil t "/ssh:stories:/tmp/foo") basic-save-buffer-2() basic-save-buffer-1() basic-save-buffer(t) save-buffer(1) This is on Debian/bookworm writing to a different Debian/bookworm machine, if that makes a difference. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no