GNU bug report logs - #10971
Problem with `split-window-keep-point' set to `nil'

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Thu, 8 Mar 2012 21:15:02 UTC

Severity: normal

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dani Moncayo <dmoncayo <at> gmail.com>
Subject: bug#10971: closed (Re: bug#10971: Problem with `split-window-keep-point'
 set to `nil')
Date: Sun, 11 Mar 2012 14:37:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#10971: Problem with `split-window-keep-point' set to `nil'

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 10971 <at> debbugs.gnu.org.

-- 
10971: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10971
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: martin rudalics <rudalics <at> gmx.at>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 10971-done <at> debbugs.gnu.org
Subject: Re: bug#10971: Problem with `split-window-keep-point' set to `nil'
Date: Sun, 11 Mar 2012 15:06:45 +0100
I installed a patch similar to the one I posted earlier.  There are
still some glitches when the window to split has a header line but most
of the remaining issues should have been fixed now.

martin

[Message part 3 (message/rfc822, inline)]
From: Dani Moncayo <dmoncayo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Problem with `split-window-keep-point' set to `nil'
Date: Thu, 8 Mar 2012 22:12:54 +0100
[Message part 4 (text/plain, inline)]
Recipe:

0. emacs -Q
1. M-: (setq split-window-keep-point nil) RET
2. Visit the attached file.
3. C-x 2

The point in the original (top) window has moved (unnecessarily) from
the first line to the last visible one.

The docstring of the variable `split-window-keep-point' says:

 If non-nil, C-x 2 preserves point in the new window.
 If nil, adjust point in the two windows to minimize redisplay.
 [...]

But in this case there was no need to adjust point, because it was in
a position which would remain visible after the splitting.

This behavior is specially annoying if you are in a Dired buffer and
do `C-o' on a file (the point jumps to the last visible line).

-- 
Dani Moncayo
[f1 (application/octet-stream, attachment)]

This bug report was last modified 13 years and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.