bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9054: 24.0.50; show source in other window


From: Lars Ingebrigtsen
Subject: bug#9054: 24.0.50; show source in other window
Date: Tue, 03 May 2022 20:03:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> Now I tried again to switch to the deleted *scratch* buffer to recreate it,
> and it activated the correct mode.  This is because switch-to-buffer
> uses set-buffer-major-mode that has special handling for *scratch*:
>
>   if (strcmp (SSDATA (BVAR (XBUFFER (buffer), name)), "*scratch*") == 0)
>     function = find_symbol_value (intern ("initial-major-mode"));

Oh, wow.  I thought I had tested that, but apparently not.  And it looks
like it's been this way for decades, at least.

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]