From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John H Palmieri Newsgroups: gmane.emacs.bugs Subject: window configuration bug Date: Tue, 28 May 2002 15:07:05 -0700 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1022623741 7621 127.0.0.1 (28 May 2002 22:09:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 28 May 2002 22:09:01 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Cp9J-0001yg-00 for ; Wed, 29 May 2002 00:09:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Cp9y-0007aw-00; Tue, 28 May 2002 18:09:42 -0400 Original-Received: from euler.math.washington.edu ([128.95.224.1]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17Cp7e-0007SD-00 for ; Tue, 28 May 2002 18:07:18 -0400 Original-Received: from goedel1.math.washington.edu (goedel1.math.washington.edu [128.95.224.10]) by euler.math.washington.edu (8.11.6/8.11.6) with ESMTP id g4SM794489399; Tue, 28 May 2002 15:07:09 -0700 (PDT) Original-Received: (from palmieri@localhost) by goedel1.math.washington.edu (8.11.6/8.11.6) id g4SM75G110847; Tue, 28 May 2002 15:07:05 -0700 (PDT) X-Authentication-Warning: goedel1.math.washington.edu: palmieri set sender to palmieri@math.washington.edu using -f Original-To: bug-gnu-emacs@gnu.org X-Face: 'mv.B*Lk2HZf}(gQV6`,nM|p,xpL&Ic-@(Y'*f3:)M"g$~24P{a{\ZsSy%(Bl([?i"VA sW@odDT:Q0Cw.f,:':PKOZw{bs0v2+)'`ulAVF{w,jDp(@OOZe2Mc5i'^S/^?NKn)`f#NnzHezZ_c7 ]{xSxM[NOral_[\^YN)%rM|&c4Kc|FJNxkIQcMue:h7L.h@s@j List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1655 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1655 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.2 (alphaev5-dec-osf5.1, X toolkit) of 2002-04-03 on goedel1.math.washington.edu configured using `configure --prefix=/scratch/palmieri' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I start Emacs with 'emacs -q'. I define this function (by typing it into the *scratch* buffer and hitting C-j): (defun test () (interactive) (let ((config (current-window-configuration))) (insert "hello") (set-window-configuration config))) I type 'M-x test', and "hello" gets inserted into the buffer, with the point after the "o". Good. I type 'C-x 2 M-x test', and "hello" gets inserted into the buffer, with the point at the "h". Bad: the documentation for current-window-configuration says An exception is made for point in the current buffer: its value is -not- saved. I interpret this to mean that the function set-window-configuration should not alter the point. It does, and that's a bug. It's almost as if, even though the point in the current buffer is not saved, the point in the other window (which contains the same buffer) *is* saved, and this is messing up the position of the point. However, the value of the variable split-window-keep-point appears to be irrelevant: toggling this variable, hitting C-x 2, and running 'M-x test' still causes the misplaced point. Hitting C-x 2 and switching between the windows, (in case one of them is viewed as the "current buffer" and the other is something else in which the point deserves to be saved) still results in the misplaced point. -- J. H. Palmieri Dept of Mathematics, Box 354350 mailto:palmieri@math.washington.edu University of Washington http://www.math.washington.edu/~palmieri/ Seattle, WA 98195-4350