|
From: | Juri Linkov |
Subject: | bug#68235: 29.1.90; Switching tabs stops following process output in selected window |
Date: | Fri, 12 Apr 2024 09:30:37 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> What is worse is that 'find-alternate-file' also resets >> 'buffer-file-name' to nil before killing the " **lose**" buffer. >> So even can't use a file name. > > Would replacing > > (kill-buffer obuf)))))) > > with > > (setq buffer-file-name ofile) > (setq buffer-file-number onum) > (setq buffer-file-truename otrue) > (kill-buffer obuf)))))) > > fix that? > > I never used 'find-alternate-file' and, after looking at its code for > the first time now, wouldn't touch it with a ten foot pole. Indeed, I have the same impression. > Using it in > 'image-next-file' seems a very bad idea: Is there any guarantee that the > assumptions about which buffer is current hold when running things like > 'kill-buffer-query-functions' or 'kill-buffer-hook' manually? Using 'find-alternate-file' in 'image-next-file' looks fine. There are no other problems. And revealing " **lose**" while restoring windows is not a bug deal.
[Prev in Thread] | Current Thread | [Next in Thread] |