unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55810: 28.1; No "really edit the buffer?" prompt when editing a changed file over Tramp
@ 2022-06-05 18:43 Jim Porter
  2022-06-05 20:04 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Jim Porter @ 2022-06-05 18:43 UTC (permalink / raw)
  To: 55810

To see this in action:

   $ cat file.txt
   hi

   $ emacs -Q
   C-x C-f /ssh:localhost:~/file.txt

   $ echo bye >> file.txt

Back in Emacs, type anything into the buffer. It should ask, "file.txt 
changed on disk; really edit the buffer?" However, it doesn't. (It does 
still provide a warning you when you save though.)

Note: this used to work in Emacs 27, and works again in Emacs 29, but 
Emacs 28 fails.

Strangely, I updated Tramp from GNU ELPA and the bug went away, but only 
until I restarted Emacs; then it returned. I haven't had time to try and 
reliably reproduce this part though, so that might just be a coincidence.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55810: 28.1; No "really edit the buffer?" prompt when editing a changed file over Tramp
  2022-06-05 18:43 bug#55810: 28.1; No "really edit the buffer?" prompt when editing a changed file over Tramp Jim Porter
@ 2022-06-05 20:04 ` Lars Ingebrigtsen
  2022-06-05 20:25   ` Jim Porter
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-05 20:04 UTC (permalink / raw)
  To: Jim Porter; +Cc: 55810

Jim Porter <jporterbugs@gmail.com> writes:

> To see this in action:
>
>   $ cat file.txt
>   hi
>
>   $ emacs -Q
>   C-x C-f /ssh:localhost:~/file.txt
>
>   $ echo bye >> file.txt
>
> Back in Emacs, type anything into the buffer. It should ask, "file.txt
> changed on disk; really edit the buffer?" However, it doesn't. (It
> does still provide a warning you when you save though.)
>
> Note: this used to work in Emacs 27, and works again in Emacs 29, but
> Emacs 28 fails.

I can reproduce this in Emacs 28.1, but not on the emacs-28 branch
(i.e., what will become Emacs 28.2).  Would it be possible for you to
test with that branch?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55810: 28.1; No "really edit the buffer?" prompt when editing a changed file over Tramp
  2022-06-05 20:04 ` Lars Ingebrigtsen
@ 2022-06-05 20:25   ` Jim Porter
  2022-06-05 21:31     ` Jim Porter
  0 siblings, 1 reply; 6+ messages in thread
From: Jim Porter @ 2022-06-05 20:25 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 55810

On 6/5/2022 1:04 PM, Lars Ingebrigtsen wrote:
> I can reproduce this in Emacs 28.1, but not on the emacs-28 branch
> (i.e., what will become Emacs 28.2).  Would it be possible for you to
> test with that branch?

You're right, it looks like this is also fixed on the emacs-28 branch. 
I'll try to bisect this (if only so that I write some defadvice to fix 
it temporarily for 28.1) and report back if I find anything useful.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55810: 28.1; No "really edit the buffer?" prompt when editing a changed file over Tramp
  2022-06-05 20:25   ` Jim Porter
@ 2022-06-05 21:31     ` Jim Porter
  2022-06-06  8:15       ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Jim Porter @ 2022-06-05 21:31 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: michael.albinus, 55810

On 6/5/2022 1:25 PM, Jim Porter wrote:
> On 6/5/2022 1:04 PM, Lars Ingebrigtsen wrote:
>> I can reproduce this in Emacs 28.1, but not on the emacs-28 branch
>> (i.e., what will become Emacs 28.2).  Would it be possible for you to
>> test with that branch?
> 
> You're right, it looks like this is also fixed on the emacs-28 branch. 
> I'll try to bisect this (if only so that I write some defadvice to fix 
> it temporarily for 28.1) and report back if I find anything useful.

Ok, the commit that fixed this is 
93974198b62bea0350be503c8fc017e9d1a4542f, which is just a fixup commit 
after 009e88e002333b4090b021d24390c9137e5a2555. That commit updates 
Tramp to 2.5.3-pre, so I guess it was just a bug in the Tramp that 
shipped with 28.1.

However, I came across an interesting wrinkle. This is actually fixed in 
the GNU ELPA version of Tramp (currently 2.5.2.5). Installing this in 
Emacs 28.1 doesn't work correctly though, since v2.5.2.5 is "less" than 
the built-in Tramp version (v2.5.2.28.1). That explains why updating 
Tramp from GNU ELPA fixed the issue for me until I restarted Emacs. It 
loaded the fixed code temporarily, but then after restart, it chose the 
unfixed code because package.el thinks the built-in version is newer.

CC'ing Michael here. Maybe the easy solution is just to bump the GNU 
ELPA version of Tramp to 2.5.3 or something, and then package.el will 
recognize it as newer than what ships with 28.1.

For now, I have a workaround at least: I can just override the 
`load-path' to point to the newer Tramp version.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55810: 28.1; No "really edit the buffer?" prompt when editing a changed file over Tramp
  2022-06-05 21:31     ` Jim Porter
@ 2022-06-06  8:15       ` Michael Albinus
  2022-06-07  4:23         ` Jim Porter
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2022-06-06  8:15 UTC (permalink / raw)
  To: Jim Porter; +Cc: Lars Ingebrigtsen, 55810

Jim Porter <jporterbugs@gmail.com> writes:

Hi Jim,

> CC'ing Michael here. Maybe the easy solution is just to bump the GNU
> ELPA version of Tramp to 2.5.3 or something, and then package.el will
> recognize it as newer than what ships with 28.1.

Tramp 2.5.3 is scheduled for release later this month. Whether it will
go to GNU ELPA, or Tramp 2.6.0 (also to be released) is not decided yet.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55810: 28.1; No "really edit the buffer?" prompt when editing a changed file over Tramp
  2022-06-06  8:15       ` Michael Albinus
@ 2022-06-07  4:23         ` Jim Porter
  0 siblings, 0 replies; 6+ messages in thread
From: Jim Porter @ 2022-06-07  4:23 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Lars Ingebrigtsen, 55810-done

On 6/6/2022 1:15 AM, Michael Albinus wrote:
>> CC'ing Michael here. Maybe the easy solution is just to bump the GNU
>> ELPA version of Tramp to 2.5.3 or something, and then package.el will
>> recognize it as newer than what ships with 28.1.
> 
> Tramp 2.5.3 is scheduled for release later this month. Whether it will
> go to GNU ELPA, or Tramp 2.6.0 (also to be released) is not decided yet.

Sounds good. That should resolve this issue then. Closing.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-07  4:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-05 18:43 bug#55810: 28.1; No "really edit the buffer?" prompt when editing a changed file over Tramp Jim Porter
2022-06-05 20:04 ` Lars Ingebrigtsen
2022-06-05 20:25   ` Jim Porter
2022-06-05 21:31     ` Jim Porter
2022-06-06  8:15       ` Michael Albinus
2022-06-07  4:23         ` Jim Porter

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).