From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jacob Faibussowitsch Newsgroups: gmane.emacs.bugs Subject: bug#55247: [29.0.50; TRAMP] Tramp Always Thinks Buffer Changed On Disk After Edit -> Save Date: Thu, 5 May 2022 09:50:46 -0500 Message-ID: References: <87ilqktejr.fsf@gnus.org> <8735hojbhn.fsf@elite.giraud> <87tua4niqr.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11099"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55247@debbugs.gnu.org, Michael Albinus , Manuel Giraud To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 05 16:51:21 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 1nmcp6-0002aq-1j for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 May 2022 16:51:20 +0200 Original-Received: from localhost ([::1]:51444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmcp4-0001Yo-HL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 May 2022 10:51:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmcop-0001VL-E7 for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 10:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmcoo-0002lv-9l for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 10:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nmcoo-0004sH-3q for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 10:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jacob Faibussowitsch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 May 2022 14:51:02 +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.165176225718726 (code B ref 55247); Thu, 05 May 2022 14:51:02 +0000 Original-Received: (at 55247) by debbugs.gnu.org; 5 May 2022 14:50:57 +0000 Original-Received: from localhost ([127.0.0.1]:46168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmcoj-0004rx-9X for submit@debbugs.gnu.org; Thu, 05 May 2022 10:50:57 -0400 Original-Received: from mail-io1-f45.google.com ([209.85.166.45]:38804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmcog-0004rk-Nd for 55247@debbugs.gnu.org; Thu, 05 May 2022 10:50:55 -0400 Original-Received: by mail-io1-f45.google.com with SMTP id z18so4981715iob.5 for <55247@debbugs.gnu.org>; Thu, 05 May 2022 07:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hQJZ+CzHbkhg+h9jhzglKfTIWaVg+pBO/wb5FfHfM1M=; b=n9fxreNZZUvW3+4x7TJhO3pw9ZyviP5wXy7t/Zr48KRzBSmIqSckqk2fdy3WGa3FTB tyqRI/3OiD4F/4XF7D782TriBshPV114gjwJfWZIGFu4Wd8WB1tl4IaUp2oVysDgSyct 1OAew9QTrUzyB1MX95yEQTc8GjdpsAuQhzAwpcB6UYilAN2UuvJeEzSTNLDRkGyjXwdi 7Nb0eoSGh5yabfWjWCIu25+XwaIn1e0+fjp3DzbrGLzEP375ioTyqjuQu2oNyNcscBCW EleXqRaBhphyXEvubyVLQ29eviSmeVgnX5LKmIidDXGM9afaYqcCXeZpwMxQ3oTOXNUC w/sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hQJZ+CzHbkhg+h9jhzglKfTIWaVg+pBO/wb5FfHfM1M=; b=k1CXoimF1LvJo1PWlmLx0QfVCHkkUd3ELBIrSARWCpLFNpZyjlsfzwBMqapBEHrqs1 pNVk3BUL4hsmsUjqYvB4QTrmewj4J1h/yhYnujZq9765oaZVbRjwFPBAVLE31hAjQjMp KydBbspYnwJgbWstLLW+g5tlx3yESs3Pm8oI4ixnr0n7PLFERnvrVBfXonxzps8D+AK0 vO1YR0WTrKcXOzAaS/KV1i/cBqbTtvsaPVKZe5PlLnkeGxIwh8k/A2y7jLrhDa+T2RwH Tr8QOREmF2QdhWUy3DN1DKq+2PX2Gir6iewl/oGW8+C/3FGuWOEIoZBWwh9RlUFtWcca WgJw== X-Gm-Message-State: AOAM533372swjCCZRTT75TA1+gmXbTP6aj6hChFhF6sDphmkG152r33M 2IRBlzU4acWiXH+6PfWO6NM= X-Google-Smtp-Source: ABdhPJx1Mrm5Mb1yFztLofxoUlcA3RuMdYsYEaIo2S5q+ZrOfTAG0UK8GkMvgcPqskzu6wAS9FYp9w== X-Received: by 2002:a05:6638:3052:b0:317:79e1:8b7f with SMTP id u18-20020a056638305200b0031779e18b7fmr11710289jak.239.1651762248978; Thu, 05 May 2022 07:50:48 -0700 (PDT) Original-Received: from smtpclient.apple (node-17-233.flex.volo.net. [76.191.17.233]) by smtp.gmail.com with ESMTPSA id p10-20020a92d68a000000b002cde6e352f4sm484730iln.62.2022.05.05.07.50.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 May 2022 07:50:48 -0700 (PDT) In-Reply-To: <87tua4niqr.fsf@gnus.org> X-Mailer: Apple Mail (2.3696.80.82.1.1) 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:231439 Archived-At: > I'm also getting further errors: Yes I was just about to mail with the same problems :). FWIW here are = the log messages I get ``` Tramp: Checking =E2=80=98vc-registered=E2=80=99 for /ssh::/home/jacob/tmp.c...done Tramp: Encoding local file = =E2=80=98/var/folders/9w/7dlszmmn6q1gd5yf3r9n79bc0000gn/T/tramp.luvXdR.c=E2= =80=99 using =E2=80=98base64-encode-region=E2=80=99...done Tramp: Decoding remote file =E2=80=98/ssh::/home/jacob/tmp.c=E2=80=99 using =E2=80=98base64 -d -i = >%s=E2=80=99...done Wrong type argument: "Wrong type argument", "number-or-marker-p nil" tramp-error: Wrong type argument: "number-or-marker-p nil=E2=80=9D ``` Perhaps related but I also get this rather strange message on C-g: ``` Quit: =E2=80=9C" ``` I have not been able to reliably reproduce it unfortunately, but I = believe it occurs if you hit C-g after saving the remote buffer. >> 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. Glad someone else took the time to bisect, I was not looking forward to = it... Best regards, Jacob Faibussowitsch (Jacob Fai - booss - oh - vitch) > On May 5, 2022, at 09:42, Lars Ingebrigtsen wrote: >=20 > Manuel Giraud writes: >=20 >> 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. >=20 > 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: >=20 > 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) >=20 > This is on Debian/bookworm writing to a different Debian/bookworm > machine, if that makes a difference. >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no