unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: windmove and the minibuffer
Date: Wed, 28 May 2003 14:27:35 -0500 (CDT)	[thread overview]
Message-ID: <200305281927.h4SJRZo17911@eel.dms.auburn.edu> (raw)
In-Reply-To: <20030528085658.B6E6.JMBARRANQUERO@laley.wke.es> (message from Juanma Barranquero on Wed, 28 May 2003 09:00:21 +0200)

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 3 on *scratch*>

(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)))

#<window 4 on  *Minibuf-0*>

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.

  reply	other threads:[~2003-05-28 19:27 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-26 17:52 windmove and the minibuffer Alex Schroeder
2003-05-27  8:03 ` Juanma Barranquero
2003-05-27 17:25   ` Alex Schroeder
2003-05-27 21:59     ` Juanma Barranquero
2003-05-27 23:04       ` Luc Teirlinck
2003-05-28  2:16 ` Luc Teirlinck
2003-05-28  7:00   ` Juanma Barranquero
2003-05-28 19:27     ` Luc Teirlinck [this message]
2003-05-28 20:11       ` Luc Teirlinck
2003-05-28 22:41         ` Juanma Barranquero
2003-05-28 22:55           ` Luc Teirlinck
2003-05-31 19:52         ` Richard Stallman
2003-05-31 23:16           ` Luc Teirlinck
2003-06-01  0:10             ` Robert J. Chassell
2003-06-01  0:46               ` Luc Teirlinck
2003-06-01  8:44             ` Alex Schroeder
2003-06-01 12:04               ` Robert J. Chassell
2003-06-01 12:15                 ` David Kastrup
2003-06-01 16:29                   ` { SPAM 2 }::Re: " Luc Teirlinck
2003-06-01 13:36               ` Luc Teirlinck
2003-06-01 14:21               ` Luc Teirlinck
2003-06-01 14:49                 ` Luc Teirlinck
2003-06-01 15:46                 ` Luc Teirlinck
2003-06-01 16:05                   ` Luc Teirlinck
2003-06-01 17:30                   ` Alex Schroeder
2003-06-02 11:15             ` Richard Stallman
2003-05-28 23:05       ` Juanma Barranquero
2003-05-28 23:25         ` Luc Teirlinck
     [not found] <E19KknO-0004NB-Qx@monty-python.gnu.org>
2003-05-28  6:11 ` Lars Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200305281927.h4SJRZo17911@eel.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).