From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#15783: 24.3; posn-at-x-y is relative to the buffer area, posn-at-point is relative to the text area. Date: Sat, 23 Oct 2021 00:47:39 -0700 Message-ID: References: <83fvrgaxrp.fsf@gnu.org> <87k1yp4aar.fsf@gmail.com> <83zi7lgshu.fsf@gnu.org> <87mv3kqekw.fsf@gmail.com> <837euogeu7.fsf@gnu.org> <83wnm45j86.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35239"; mail-complaints-to="usenet@ciao.gmane.io" Cc: shiino.yuki@gmail.com, 15783@debbugs.gnu.org, agrambot@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 10:04:00 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meC0W-0008vc-Cg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 10:04:00 +0200 Original-Received: from localhost ([::1]:37190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meC0V-0001y1-AZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 04:03:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meBl4-00084N-Lz for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 03:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50967) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meBl4-00056j-Dd for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 03:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1meBl4-00053D-BA for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 03:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 07:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15783 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15783-submit@debbugs.gnu.org id=B15783.163497527019375 (code B ref 15783); Sat, 23 Oct 2021 07:48:02 +0000 Original-Received: (at 15783) by debbugs.gnu.org; 23 Oct 2021 07:47:50 +0000 Original-Received: from localhost ([127.0.0.1]:34275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meBkr-00052N-GZ for submit@debbugs.gnu.org; Sat, 23 Oct 2021 03:47:49 -0400 Original-Received: from mail-pg1-f174.google.com ([209.85.215.174]:38792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meBkp-00051Y-Ak for 15783@debbugs.gnu.org; Sat, 23 Oct 2021 03:47:47 -0400 Original-Received: by mail-pg1-f174.google.com with SMTP id e65so5491558pgc.5 for <15783@debbugs.gnu.org>; Sat, 23 Oct 2021 00:47:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=kvNn6i6MEP/DdgeNfEmeCVd9WGnJgDoGQGvfxoZTgg4=; b=gt4W5YzTSAO6R9ei3308RjWFBfNA+LyNqbMM1ZZvTf71DXDIeFUK4gzSx+QmNQkJgD hc/w4quBKy0Rba3jK9+RrKWWy5MAsonf4/jJhSpTvPdkf5KeRNIQeZ5lW/6Hkn+smG17 hlww1G2pn1J/z58AkXh1rtfyhSIS0SdSDmh+zHE0uc/99ldLkjp+MHvS0JBRI+BNsDBD PAOh8jGLk/YZfdBVnZcCAEarg8U9RqiJLAhA9ikOsTkFPn9ehdx/z1QyfJJN062+62tB Jx3hMXZbzrWZYDyL+H26XE2mIw+l7gVXM6AbhJvUcYvjWnKn/sbeiE8i78VjIs9cW8c7 tDgw== X-Gm-Message-State: AOAM530U5bsdXOUJI+KymNDhn7RniXWHrEBlnwoVXt/q4gWO0OtZ3gKP 5/8X13gROOrZd11tQco8rqfCk0DNwfbHHo0afZI= X-Google-Smtp-Source: ABdhPJyyLZJSRleEpKg85Y0S9/23E3lC+nb1WSAZiBAZM2IG48r3SCJquRHd8Ihl5CJE0TmMwxdmHhaRlXwr99KfIDw= X-Received: by 2002:a05:6a00:1950:b0:44d:9402:3396 with SMTP id s16-20020a056a00195000b0044d94023396mr4965345pfk.70.1634975260430; Sat, 23 Oct 2021 00:47:40 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 23 Oct 2021 00:47:39 -0700 In-Reply-To: <83wnm45j86.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217952 Archived-At: close 15783 28.1 thanks Eli Zaretskii writes: >> How does the attached patch look? > > Yes, but with one correction: > >> --- a/doc/lispref/commands.texi >> +++ b/doc/lispref/commands.texi >> @@ -2354,10 +2354,11 @@ Accessing Mouse >> coordinates @var{x} and @var{y} in a specified frame or window, >> @var{frame-or-window}, which defaults to the selected window. >> The coordinates @var{x} and @var{y} are relative to the >> -frame or window used. >> -If @var{whole} is @code{nil}, the coordinates are relative >> -to the window text area, otherwise they are relative to >> -the entire window area including scroll bars, margins and fringes. >> +text area of the selected window. >> +If @var{whole} is @code{nil}, the @var{x} coordinate is relative to > ^^^^^^^^^^^^^^^^^^^^^^^^^ > You mean, non-nil, right? Yes, good spot. >> +the entire window area including scroll bars, margins and fringes, >> +while the @var{y} coordinate remains unchanged and relative to the >> +text area. > > And I wouldn't mention what WHOLE does to Y, because it just confuses > things. Y remains unchanged simply because there are no window > decorations that affect Y coordinates, but there's no need to tell > that in a doc string; if we say nothing about Y, it still tells that Y > is unchanged. Thanks, I removed that and pushed it to emacs-28 as commit cdbd03345d. I'm therefore closing this bug report.