]> code.delx.au - gnu-emacs/blobdiff - lisp/window.el
Preserve buffer point in windows by default (Bug#4041).
[gnu-emacs] / lisp / window.el
index bd5275bffc9ad4ba47d1afbcfacb1c4501e5429b..f699e21fd312de282ade19ed4253661254197538 100644 (file)
@@ -7147,7 +7147,7 @@ buffer with the name BUFFER-OR-NAME and return that buffer."
            buffer))
     (other-buffer)))
 
-(defcustom switch-to-buffer-preserve-window-point nil
+(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