all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 54016@debbugs.gnu.org
Subject: bug#54016: 29.0.50; TRAMP + sshfs says constantly that file changed
Date: Wed, 16 Feb 2022 18:59:43 +0100	[thread overview]
Message-ID: <20220216175943.tir4a32lxcsztuwu@Ergus> (raw)
In-Reply-To: <87ee42x27j.fsf@gmx.de>

On Wed, Feb 16, 2022 at 04:26:08PM +0100, Michael Albinus wrote:
>Ergus <spacibba@aol.com> writes:
>
>Hi,
>
>>>> Using tramp+sshfs it works pretty much fine at the beginning but after
>>>> some minutes it interrupts constantly saying that the file changed on
>>>> disk and asks for edit confirmation.
>>>>
>>>> By constantly I mean every time a new edit is attempt I get this (even
>>>> several times consecutive).
>>>>
>>>> ```
>>>> Saving file /sshfs:XXX:XXXX
>>>> benchmarks_ompss.h has changed since visited or saved.  Save anyway? (y or n) y
>>>> benchmarks_ompss.h changed on disk; really edit the buffer? (y, n, r or C-h) y
>>>> File on disk now will become a backup file if you save these changes.
>>>> Wrote /sshfs:XXX:XXXX
>>>> ```
>>>
>>>Well, I would need a recipe to reproduce. Could you run it, when
>>>tramp-verbose is set to 10? And please tell me at which time the problem
>>>starts to appear, so I have a chance to find it in the debug buffer.
>>>
>>>I know that the debug buffer will be huge after a while, but there is no
>>>problem if you send it directly to me (or a URL where I could find it).
>>>
>>
>> 1) C-x C-f /sshfs:mn3:/home/ergus/cholesky_ompss2/cholesky_utils.c
>> 2) edit and save (C-x C-f)
>>
>> 3) Try to edit again:
>>
>> and get the message:
>>
>> ```
>> cholesky_utils.c changed on disk; really edit the buffer? (y, n, r or C-h) y
>> File on disk now will become a backup file if you save these changes.
>> ```
>>
>> While this is printed in the debug buffer.
>
>Thanks for the recipe and the traces. Finally, I could reproduce the
>problem locally, it was due to a missing update of the buffer's
>modification time. The appended patch fixes this for me, could you pls
>test?
>
>Best regards, Michael.
>

Hi:

The patch seems to solve the issue for me.

Feel free to close the issue.

Very thanks!!
Ergus






  reply	other threads:[~2022-02-16 17:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <877d9vrik7.fsf.ref@aol.com>
2022-02-15 20:17 ` bug#54016: 29.0.50; TRAMP + sshfs says constantly that file changed Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-16  8:28   ` Michael Albinus
2022-02-16 10:57     ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-16 11:07     ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-16 15:26       ` Michael Albinus
2022-02-16 17:59         ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-02-16 19:28           ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220216175943.tir4a32lxcsztuwu@Ergus \
    --to=bug-gnu-emacs@gnu.org \
    --cc=54016@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=spacibba@aol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.