emacs-devel
[Top][All Lists]
Advanced

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

Re: Buffer local `switch-to-buffer-preserve-window-point'


From: Evgeny Zajcev
Subject: Re: Buffer local `switch-to-buffer-preserve-window-point'
Date: Mon, 30 Nov 2020 20:57:44 +0300



пн, 30 нояб. 2020 г. в 20:54, Evgeny Zajcev <lg.zevlg@gmail.com>:


пн, 30 нояб. 2020 г. в 20:30, martin rudalics <rudalics@gmx.at>:
 > Ah, sorry, I thought that is in Emacs, but it was from my init.el :)),
 > replace with (switch-to-buffer (other-buffer))

OK.

 > The problem with their buffer local values is that they are used for buffer
 > logic *before* buffer is set as current, see `switch-to-buffer'.  We should
 > either use `(buffer-local-value NAME buffer)' to get their values in
 > `switch-to-buffer',

Good idea.  Could you write a patch?


Sure, here it is

Probably same should be done for `switch-to-buffer-obey-display-actions', but at the moment I care more about `switch-to-buffer-preserve-window-point'

Sorry, there was a typo: preserver instead of preserve, here is the update

--
lg

Attachment: 0001-Fix-use-of-switch-to-buffer-preserve-window-point.patch
Description: Text Data


reply via email to

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