From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: windmove and the minibuffer Date: Wed, 28 May 2003 14:27:35 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305281927.h4SJRZo17911@eel.dms.auburn.edu> References: <87d6i5oas9.fsf@gnu.org> <20030528085658.B6E6.JMBARRANQUERO@laley.wke.es> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1054150648 19218 80.91.224.249 (28 May 2003 19:37:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 May 2003 19:37:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 28 21:37:27 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19L6jm-0004zq-00 for ; Wed, 28 May 2003 21:37:26 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19L6y6-0002DF-00 for ; Wed, 28 May 2003 21:52:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19L6kq-0007Fi-80 for emacs-devel@quimby.gnus.org; Wed, 28 May 2003 15:38:32 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19L6hp-0006Pv-KE for emacs-devel@gnu.org; Wed, 28 May 2003 15:35:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19L6hh-00068o-MK for emacs-devel@gnu.org; Wed, 28 May 2003 15:35:19 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19L6aF-0002pZ-04; Wed, 28 May 2003 15:27:35 -0400 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) h4SJRUoc000047; Wed, 28 May 2003 14:27:31 -0500 (CDT) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.11.6+Sun/8.11.6) id h4SJRZo17911; Wed, 28 May 2003 14:27:35 -0500 (CDT) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: jmbarranquero@laley.wke.es In-reply-to: <20030528085658.B6E6.JMBARRANQUERO@laley.wke.es> (message from Juanma Barranquero on Wed, 28 May 2003 09:00:21 +0200) Original-cc: alex@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14379 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14379 The reason for the bug is that `windmove-find-other-window' passes coordinates to `window-at' that are both one to small. (Or is the bug in `window-at'? In that case there probably also is a related bug in `coordinates-in-window-p'.) Could you (or somebody with access to a Microsoft Windows machine) repeat the following exercise: Start emacs-21.3.50 -q --eval "(blink-cursor-mode 0)" & (The eval is not necessary for people whose neurological system does not get affected by blinking cursors.) M-x scroll-bar-mode M-x fringe-mode M-x tool-bar-mode M-x menu-bar-mode Just to simplify the picture and make sure all that stuff has nothing to do with the problem. (window-at 0 15) Result: nil (window-at 1 (window-height)) Result: # (window-at 0 (window-height)) Result: nil. Unfortunately, with point at the beginning of the scratch buffer, these are the coordinates that `windmove-find-other-window' passes to window-at. Replacing 0 by 1 would get rid of the error message, but would still leave point in scratch. Actually, that is what happens if you move point away from the beginning of the line. (window-at 1 (1+ (window-height))) # Obviously, these are the coordinates it should pass. (or is it `window-at' that gets it wrong? Its documentation looks ambiguous to me.) If any of these results are different on a Microsoft Windows machine, then that explains the difference in behavior. Sincerely, Luc.