emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Preserve buffer point in windows by default (Bug#4041).


From: Eli Zaretskii
Subject: Re: [PATCH] Preserve buffer point in windows by default (Bug#4041).
Date: Fri, 27 May 2016 09:44:40 +0300

> Date: Thu, 26 May 2016 22:06:29 -0400
> From: Mark Oteiza <address@hidden>
> 
> * doc/lispref/windows.texi: Mention new default.
> * etc/NEWS: Mention new default.
> * lisp/window.el (switch-to-buffer-preserve-window-point): Default to t.

Looks good to me, thanks.  One comment:

> +By default, @code{switch-to-buffer} unconditionally tries to display
> +the buffer at its previous position in the selected window.  This
> +behavior can be tuned using the following option.
>  [...]
> +(defcustom switch-to-buffer-preserve-window-point t
>    "If non-nil, `switch-to-buffer' tries to preserve `window-point'.
>  If this is nil, `switch-to-buffer' displays the buffer at that
>  buffer's `point'.  If this is `already-displayed', it tries to

The "unconditionally" part in the first text and "tries to" in the
second are somewhat at odds, IMO.  I think the latter text is more
accurate (because preserving window-point might not always work), so I
think we should make the manual text closer in spirit to the doc
string.

Other than that, please push to master.



reply via email to

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