GNU bug report logs - #68235
29.1.90; Switching tabs stops following process output in selected window

Previous Next

Package: emacs;

Reported by: Dan McCarthy <daniel.c.mccarthy <at> gmail.com>

Date: Wed, 3 Jan 2024 20:49:02 UTC

Severity: normal

Found in version 29.1.90

Fixed in version 30.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #241 received at 68235 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>
Cc: 68235 <at> debbugs.gnu.org
Subject: Re: bug#68235: 29.1.90; Switching tabs stops following process output
 in selected window
Date: Sun, 21 Apr 2024 10:56:15 +0200
> I noticed that now 'find-alternate-file' has such a problem
> that it updates the modification timestamp of the directory.
>
> This is because 'find-alternate-file' calls 'rename-buffer'
> before setting back the value of 'buffer-file-name'.
> So this code in 'rename-buffer' is fired and changes
> the directory modification timestamp:
>
>    if (NILP (BVAR (current_buffer, filename))
>        && !NILP (BVAR (current_buffer, auto_save_file_name)))
>      call0 (intern ("rename-auto-save-file"));

Why does an auto-save file exist at all in this situation?  If the
original buffer was modified, 'find-alternate-file' should have saved it
into its file and deleted the auto-save file.  Does your code rely on
fine tuned directory timestamps?

> A possible fix would be to swap the order of
> setting of 'buffer-file-name' and 'rename-buffer':

I see no problems doing that so please install.

Thanks, martin




This bug report was last modified 1 year and 30 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.