From unknown Mon Jun 23 14:59:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61948: 29.0.60; window-at returns nil when tab-bar-mode is on Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Mar 2023 03:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61948 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 61948@debbugs.gnu.org X-Debbugs-Original-To: Bug Report Emacs Received: via spool by submit@debbugs.gnu.org id=B.16778989465257 (code B ref -1); Sat, 04 Mar 2023 03:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Mar 2023 03:02:26 +0000 Received: from localhost ([127.0.0.1]:34995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYIAE-0001Mi-0W for submit@debbugs.gnu.org; Fri, 03 Mar 2023 22:02:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:56388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYIAC-0001Mb-3x for submit@debbugs.gnu.org; Fri, 03 Mar 2023 22:02:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYIAB-0003Lv-Iv for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 22:02:23 -0500 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYIA9-0005LC-Ja for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 22:02:23 -0500 Received: by mail-pj1-x102e.google.com with SMTP id q31-20020a17090a17a200b0023750b69614so4086079pja.5 for ; Fri, 03 Mar 2023 19:02:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677898938; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=+9iPY0bfdvlQ1TWETZOyL8h6WoZ8c76B0f+/EZVbO6Y=; b=o1xu+1b/v/q1Fw6QwHJvoh8yG+ySVNDri8cjCPZu1l7UaQVOnuqEYEdQP/gr6M//iQ /210PY0fovrcv1Wqpd8/VwI2ZR6gQ11EbCkImul0ZNN87miqiHOka25lpGIbwJ5DY4Ss YzgFq9madv+88ok0l/A4Wggtd48WtnZAQtA1xf7tsFRBIl406o/VZ0lQVikWJRLCP5Mg y0voJfyKNhWuP7kU0i1Ljh7QUMxTiV8+LqzLIkaeLu49ZiuA22+kePVcVrXORRrWdF8w 5BbWs1jKQzzX3B/ZGBrbxpvPOjOSfY5RmtbHjc2LNz+jHMfYS/rcMRmMzmhh4D1twy8d mhYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677898938; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+9iPY0bfdvlQ1TWETZOyL8h6WoZ8c76B0f+/EZVbO6Y=; b=NTg43jkI0ysYJm+N0gQqvjQzE6ngZ9KRZjmxnb7zdJVDnDMo0ASv2/UFVYTrEnF4DL ezw1B84XrNd9SR1oSXYE0wWrM9AjBDobGU4ynnz5cvyRH7qwF6liuUUYUL7AlvB/prrv H/9+NhOe+ngH7o/3NHiJI31LXrI5t04KPIgRJl5QCtXwU39wNhAPifaCNhZ1Dqlm5c92 BSH6yme6VLE+VOLqe0v8pAvdl6NrkDApgKxKEPPH1cZcdKr5PaHFBPKTLe45uilV1Wyx s2otC2hgUGk0ITepOXNy2SXsYEq7SaV4tVe8Cwv3jgdBW7MUBvBZEAXx9kAHARXM5MgO DNpQ== X-Gm-Message-State: AO0yUKU0ubeSz9tgY6495JoMsMdbpV4fycVbpmtFB/lAHMndZ1cWinHE 1Smkwx4h9DEy+TSMI5eGFIpIPrmBEPz1fg== X-Google-Smtp-Source: AK7set9ct+Y+PEt05pov9WmBAjxNAQQiTz9YQ5OipyWUaaxVRE+F3Lz3FzBOMPTvMbuspxXgCnPL1g== X-Received: by 2002:a17:902:8303:b0:19e:6516:127a with SMTP id bd3-20020a170902830300b0019e6516127amr3133289plb.39.1677898938255; Fri, 03 Mar 2023 19:02:18 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id kc4-20020a17090333c400b00183c67844aesm2206076plb.22.2023.03.03.19.02.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2023 19:02:17 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Message-Id: Date: Fri, 3 Mar 2023 19:02:06 -0800 X-Mailer: Apple Mail (2.3731.400.51.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=casouri@gmail.com; helo=mail-pj1-x102e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) To reproduce: 1. Type C-x t 2 to turn on tab-bar-mode 2. Evaluate (window-at 0 0), it returns nil 3. Evaluating (window-at 50 50) also returns nil 4. Turn off tab-bar-mode, and (window-at 0 0) returns a live window window-at-x-y is the same In GNU Emacs 29.0.60 (build 58, x86_64-apple-darwin22.3.0, NS appkit-2299.40 Version 13.2.1 (Build 22D68)) of 2023-03-01 built on Brown Repository revision: 59365f928565f1be551b1697b9246b00cb87a9b7 Repository branch: emacs-29 Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.2.1 Configured features: ACL DBUS GLIB GNUTLS JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils shortdoc text-property-search help-fns radix-tree time-date subr-x cl-extra help-mode icons cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 46845 11136) (symbols 48 5645 0) (strings 32 14791 2011) (string-bytes 1 398282) (vectors 16 10157) (vector-slots 8 156538 31644) (floats 8 80 19) (intervals 56 649 42) (buffers 984 14)) From unknown Mon Jun 23 14:59:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61948: 29.0.60; window-at returns nil when tab-bar-mode is on Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Mar 2023 08:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61948 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu Cc: 61948@debbugs.gnu.org Received: via spool by 61948-submit@debbugs.gnu.org id=B61948.16779198209341 (code B ref 61948); Sat, 04 Mar 2023 08:51:02 +0000 Received: (at 61948) by debbugs.gnu.org; 4 Mar 2023 08:50:20 +0000 Received: from localhost ([127.0.0.1]:35225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYNat-0002Qb-Vt for submit@debbugs.gnu.org; Sat, 04 Mar 2023 03:50:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYNas-0002QO-MP for 61948@debbugs.gnu.org; Sat, 04 Mar 2023 03:50:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYNan-0001yU-CJ; Sat, 04 Mar 2023 03:50:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4kiOPnSueE2wQqjH2yvpOwlzqn0S4TaLHvHUJ7alIxg=; b=G9FdFzm+ijmQ YPoiu5rVuBsplBNvX/hzwfVK73mGBFt5k3j4urDbTF/uiaCvat1FEvE9ppSU8C3ajpERR2eMbBAPl kCVB7xwNXJIbZf9OyyIX9ggpl0nEDTZwzt4RRxgcEeZK8SPxGKem6ofrzWVa6Tp65D9mhbCW9S2pi j1kj9zavETwv8CMtH/8DR+SLDQ1lO9cawLrrtFttb94LR0gageIVoI3neSQ29cspJTKSQTeC2C2Bk 9Gahm9nZlw01+rV8zVuDyNdjIcR8/nJX6vBdEBLMtGYtOdkeBOFRCaQiYwZh2fyEr4nnSkEUvptzz XqoK98mOCj5bZ47KQs8TOw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYNam-0001l3-Hj; Sat, 04 Mar 2023 03:50:12 -0500 Date: Sat, 04 Mar 2023 10:50:00 +0200 Message-Id: <835ybgc347.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Yuan Fu on Fri, 3 Mar 2023 19:02:06 -0800) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Yuan Fu > Date: Fri, 3 Mar 2023 19:02:06 -0800 > > To reproduce: > > 1. Type C-x t 2 to turn on tab-bar-mode > 2. Evaluate (window-at 0 0), it returns nil > 3. Evaluating (window-at 50 50) also returns nil > 4. Turn off tab-bar-mode, and (window-at 0 0) returns a live window > > window-at-x-y is the same What did you expect the function to return instead in these cases? Both of these functions ignore the tool-bar and the tab-bar pseudo-windows, so as long as the coordinates are inside those two windows, both functions return nil. (This was not called out in their doc strings; I've now added this caveat to the doc strings of these two functions.) So the call with both X and Y zero returns nil because that point is within the area of the frame where these functions always return nil. As for the call with X and Y being 50, it returns nil for different reasons: . for window-at, X and Y are measured in columns and rows, so likely Y = 50 is outside of the frame created by "emacs -Q"; . for window-at-x-y, Y = 50 is still inside the tab-bar pseudo-window; on my system using Y = 53 or larger returns the window showing *scratch*; it could be that the threshold value on your system is a bit different Given the above, do you still think there's a bug here? If so, please describe the real use case where you needed this. Thanks. From unknown Mon Jun 23 14:59:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61948: 29.0.60; window-at returns nil when tab-bar-mode is on Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Mar 2023 09:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61948 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 61948@debbugs.gnu.org, 61948-done@debbugs.gnu.org Received: via spool by 61948-submit@debbugs.gnu.org id=B61948.167792150311927 (code B ref 61948); Sat, 04 Mar 2023 09:19:01 +0000 Received: (at 61948) by debbugs.gnu.org; 4 Mar 2023 09:18:23 +0000 Received: from localhost ([127.0.0.1]:35235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYO23-00036J-1E for submit@debbugs.gnu.org; Sat, 04 Mar 2023 04:18:23 -0500 Received: from mail-pg1-f172.google.com ([209.85.215.172]:36620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYO20-000362-LC; Sat, 04 Mar 2023 04:18:21 -0500 Received: by mail-pg1-f172.google.com with SMTP id 130so2816817pgg.3; Sat, 04 Mar 2023 01:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677921494; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7Vivfmyp67HZJajGj97f+bZUQcK2PD7VXLdb2UW2qKI=; b=j4Y7RZRyLpgx5hHJqRdXtKM0vxTD6105QtLWkBSelxF+MlF6KlAQ5/RlLc2Au2l4RR N1s/GTzxu9d55L/XqQ2qcxk4xGgTr/tR2vHqruwBfvegEsmI3Td6vz70lv+41AsxrAoX cFOxYoM7cPUL8b8mn6ec8fiZC7eA21q2bImXpkIIlCEdrTeQQV/HXOqy6rmQa9mDmFaC Gr6TbY+p9OyrNVrk5N/coP5C9tEVOpQu1pPqqyoJ6x8stLirEK7Y3QRW48tKxbXvH0hI LSTPwt38UEHVegRe60/WpqB1dzs8sJVeZgBYIcym2TtNW39YnwB+T+wLDQcdpb1sHMt2 hm3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677921494; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7Vivfmyp67HZJajGj97f+bZUQcK2PD7VXLdb2UW2qKI=; b=B4R3bxf+RHqZ93KwCdH2znTULK1ukJ2WUhXAhhkZWXKKTv4wjJhAszzH1r1l4ccQoo 9D9S2FnQFLYgJx9WLR3hrb3fyw+bBKmuOihvfV4FYg70MSBVcMO0Nb6j7otLLC6ncRsp 2vWCGYrfhzzXPXhOgkZsMetsI+anml6GNkRPE81NReGUsZP4T57pPA+IYCvSxGKdUeo3 w7CaCi9EDapBviNeNkSFQx6wpatbAmQlAEhB0hVItiJiM2k1JKYRY7K61rC4yuE8V9sa 0veOV5dc6mJ+Nzvjv82il/7dyz8gzBSt3XJU/Fk6kXATxjBqLPmQQqS8MMS5f73Y+BLf BxAw== X-Gm-Message-State: AO0yUKWJ/KB+TkURoz0Oovrb5Z5NzHQyZ1Nh3CwrCEVGU0lGD9RS2nr1 +Qwky92PxGB+QAOvhijTNII= X-Google-Smtp-Source: AK7set9sHFg8FthIYByMYHSAHaBvylDCKpyMntlLwjO04ZH86YLripCfNhJdaVHiTGNybLV4sSOXVA== X-Received: by 2002:a62:4e43:0:b0:5a8:b649:99d4 with SMTP id c64-20020a624e43000000b005a8b64999d4mr4856340pfb.7.1677921494475; Sat, 04 Mar 2023 01:18:14 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id m22-20020a63ed56000000b005036bbe6812sm2795545pgk.65.2023.03.04.01.18.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Mar 2023 01:18:14 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) From: Yuan Fu In-Reply-To: <835ybgc347.fsf@gnu.org> Date: Sat, 4 Mar 2023 01:18:02 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <5DA528E3-C406-44FC-B286-BB5EA6E52C0D@gmail.com> References: <835ybgc347.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Mar 4, 2023, at 12:50 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Fri, 3 Mar 2023 19:02:06 -0800 >>=20 >> To reproduce: >>=20 >> 1. Type C-x t 2 to turn on tab-bar-mode >> 2. Evaluate (window-at 0 0), it returns nil >> 3. Evaluating (window-at 50 50) also returns nil >> 4. Turn off tab-bar-mode, and (window-at 0 0) returns a live window >>=20 >> window-at-x-y is the same >=20 > What did you expect the function to return instead in these cases? >=20 > Both of these functions ignore the tool-bar and the tab-bar > pseudo-windows, so as long as the coordinates are inside those two > windows, both functions return nil. (This was not called out in their > doc strings; I've now added this caveat to the doc strings of these > two functions.) >=20 > So the call with both X and Y zero returns nil because that point is > within the area of the frame where these functions always return nil. >=20 > As for the call with X and Y being 50, it returns nil for different > reasons: >=20 > . for window-at, X and Y are measured in columns and rows, so likely > Y =3D 50 is outside of the frame created by "emacs -Q"; > . for window-at-x-y, Y =3D 50 is still inside the tab-bar > pseudo-window; on my system using Y =3D 53 or larger returns the > window showing *scratch*; it could be that the threshold value on > your system is a bit different >=20 > Given the above, do you still think there's a bug here? If so, please > describe the real use case where you needed this. >=20 > Thanks. Ah! Should=E2=80=99ve tried (window-at-x-y 100 100). In my brain 50 = pixels is pretty far so I thought (50 . 50) must be in a window. Indeed, it=E2=80=99s a false alarm. Sorry for the noise.=20 Yuan= From unknown Mon Jun 23 14:59:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Yuan Fu Subject: bug#61948: closed (Re: bug#61948: 29.0.60; window-at returns nil when tab-bar-mode is on) Message-ID: References: <5DA528E3-C406-44FC-B286-BB5EA6E52C0D@gmail.com> X-Gnu-PR-Message: they-closed 61948 X-Gnu-PR-Package: emacs Reply-To: 61948@debbugs.gnu.org Date: Sat, 04 Mar 2023 09:19:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1677921542-11995-1" This is a multi-part message in MIME format... ------------=_1677921542-11995-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #61948: 29.0.60; window-at returns nil when tab-bar-mode is on 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 61948@debbugs.gnu.org. --=20 61948: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61948 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1677921542-11995-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 61948-done) by debbugs.gnu.org; 4 Mar 2023 09:18:25 +0000 Received: from localhost ([127.0.0.1]:35237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYO23-00036P-Cv for submit@debbugs.gnu.org; Sat, 04 Mar 2023 04:18:25 -0500 Received: from mail-pg1-f172.google.com ([209.85.215.172]:36620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYO20-000362-LC; Sat, 04 Mar 2023 04:18:21 -0500 Received: by mail-pg1-f172.google.com with SMTP id 130so2816817pgg.3; Sat, 04 Mar 2023 01:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677921494; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7Vivfmyp67HZJajGj97f+bZUQcK2PD7VXLdb2UW2qKI=; b=j4Y7RZRyLpgx5hHJqRdXtKM0vxTD6105QtLWkBSelxF+MlF6KlAQ5/RlLc2Au2l4RR N1s/GTzxu9d55L/XqQ2qcxk4xGgTr/tR2vHqruwBfvegEsmI3Td6vz70lv+41AsxrAoX cFOxYoM7cPUL8b8mn6ec8fiZC7eA21q2bImXpkIIlCEdrTeQQV/HXOqy6rmQa9mDmFaC Gr6TbY+p9OyrNVrk5N/coP5C9tEVOpQu1pPqqyoJ6x8stLirEK7Y3QRW48tKxbXvH0hI LSTPwt38UEHVegRe60/WpqB1dzs8sJVeZgBYIcym2TtNW39YnwB+T+wLDQcdpb1sHMt2 hm3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677921494; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7Vivfmyp67HZJajGj97f+bZUQcK2PD7VXLdb2UW2qKI=; b=B4R3bxf+RHqZ93KwCdH2znTULK1ukJ2WUhXAhhkZWXKKTv4wjJhAszzH1r1l4ccQoo 9D9S2FnQFLYgJx9WLR3hrb3fyw+bBKmuOihvfV4FYg70MSBVcMO0Nb6j7otLLC6ncRsp 2vWCGYrfhzzXPXhOgkZsMetsI+anml6GNkRPE81NReGUsZP4T57pPA+IYCvSxGKdUeo3 w7CaCi9EDapBviNeNkSFQx6wpatbAmQlAEhB0hVItiJiM2k1JKYRY7K61rC4yuE8V9sa 0veOV5dc6mJ+Nzvjv82il/7dyz8gzBSt3XJU/Fk6kXATxjBqLPmQQqS8MMS5f73Y+BLf BxAw== X-Gm-Message-State: AO0yUKWJ/KB+TkURoz0Oovrb5Z5NzHQyZ1Nh3CwrCEVGU0lGD9RS2nr1 +Qwky92PxGB+QAOvhijTNII= X-Google-Smtp-Source: AK7set9sHFg8FthIYByMYHSAHaBvylDCKpyMntlLwjO04ZH86YLripCfNhJdaVHiTGNybLV4sSOXVA== X-Received: by 2002:a62:4e43:0:b0:5a8:b649:99d4 with SMTP id c64-20020a624e43000000b005a8b64999d4mr4856340pfb.7.1677921494475; Sat, 04 Mar 2023 01:18:14 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id m22-20020a63ed56000000b005036bbe6812sm2795545pgk.65.2023.03.04.01.18.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Mar 2023 01:18:14 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: bug#61948: 29.0.60; window-at returns nil when tab-bar-mode is on From: Yuan Fu In-Reply-To: <835ybgc347.fsf@gnu.org> Date: Sat, 4 Mar 2023 01:18:02 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <5DA528E3-C406-44FC-B286-BB5EA6E52C0D@gmail.com> References: <835ybgc347.fsf@gnu.org> To: Eli Zaretskii X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61948-done Cc: 61948@debbugs.gnu.org, 61948-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Mar 4, 2023, at 12:50 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Fri, 3 Mar 2023 19:02:06 -0800 >>=20 >> To reproduce: >>=20 >> 1. Type C-x t 2 to turn on tab-bar-mode >> 2. Evaluate (window-at 0 0), it returns nil >> 3. Evaluating (window-at 50 50) also returns nil >> 4. Turn off tab-bar-mode, and (window-at 0 0) returns a live window >>=20 >> window-at-x-y is the same >=20 > What did you expect the function to return instead in these cases? >=20 > Both of these functions ignore the tool-bar and the tab-bar > pseudo-windows, so as long as the coordinates are inside those two > windows, both functions return nil. (This was not called out in their > doc strings; I've now added this caveat to the doc strings of these > two functions.) >=20 > So the call with both X and Y zero returns nil because that point is > within the area of the frame where these functions always return nil. >=20 > As for the call with X and Y being 50, it returns nil for different > reasons: >=20 > . for window-at, X and Y are measured in columns and rows, so likely > Y =3D 50 is outside of the frame created by "emacs -Q"; > . for window-at-x-y, Y =3D 50 is still inside the tab-bar > pseudo-window; on my system using Y =3D 53 or larger returns the > window showing *scratch*; it could be that the threshold value on > your system is a bit different >=20 > Given the above, do you still think there's a bug here? If so, please > describe the real use case where you needed this. >=20 > Thanks. Ah! Should=E2=80=99ve tried (window-at-x-y 100 100). In my brain 50 = pixels is pretty far so I thought (50 . 50) must be in a window. Indeed, it=E2=80=99s a false alarm. Sorry for the noise.=20 Yuan= ------------=_1677921542-11995-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Mar 2023 03:02:26 +0000 Received: from localhost ([127.0.0.1]:34995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYIAE-0001Mi-0W for submit@debbugs.gnu.org; Fri, 03 Mar 2023 22:02:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:56388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYIAC-0001Mb-3x for submit@debbugs.gnu.org; Fri, 03 Mar 2023 22:02:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYIAB-0003Lv-Iv for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 22:02:23 -0500 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYIA9-0005LC-Ja for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 22:02:23 -0500 Received: by mail-pj1-x102e.google.com with SMTP id q31-20020a17090a17a200b0023750b69614so4086079pja.5 for ; Fri, 03 Mar 2023 19:02:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677898938; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=+9iPY0bfdvlQ1TWETZOyL8h6WoZ8c76B0f+/EZVbO6Y=; b=o1xu+1b/v/q1Fw6QwHJvoh8yG+ySVNDri8cjCPZu1l7UaQVOnuqEYEdQP/gr6M//iQ /210PY0fovrcv1Wqpd8/VwI2ZR6gQ11EbCkImul0ZNN87miqiHOka25lpGIbwJ5DY4Ss YzgFq9madv+88ok0l/A4Wggtd48WtnZAQtA1xf7tsFRBIl406o/VZ0lQVikWJRLCP5Mg y0voJfyKNhWuP7kU0i1Ljh7QUMxTiV8+LqzLIkaeLu49ZiuA22+kePVcVrXORRrWdF8w 5BbWs1jKQzzX3B/ZGBrbxpvPOjOSfY5RmtbHjc2LNz+jHMfYS/rcMRmMzmhh4D1twy8d mhYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677898938; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+9iPY0bfdvlQ1TWETZOyL8h6WoZ8c76B0f+/EZVbO6Y=; b=NTg43jkI0ysYJm+N0gQqvjQzE6ngZ9KRZjmxnb7zdJVDnDMo0ASv2/UFVYTrEnF4DL ezw1B84XrNd9SR1oSXYE0wWrM9AjBDobGU4ynnz5cvyRH7qwF6liuUUYUL7AlvB/prrv H/9+NhOe+ngH7o/3NHiJI31LXrI5t04KPIgRJl5QCtXwU39wNhAPifaCNhZ1Dqlm5c92 BSH6yme6VLE+VOLqe0v8pAvdl6NrkDApgKxKEPPH1cZcdKr5PaHFBPKTLe45uilV1Wyx s2otC2hgUGk0ITepOXNy2SXsYEq7SaV4tVe8Cwv3jgdBW7MUBvBZEAXx9kAHARXM5MgO DNpQ== X-Gm-Message-State: AO0yUKU0ubeSz9tgY6495JoMsMdbpV4fycVbpmtFB/lAHMndZ1cWinHE 1Smkwx4h9DEy+TSMI5eGFIpIPrmBEPz1fg== X-Google-Smtp-Source: AK7set9ct+Y+PEt05pov9WmBAjxNAQQiTz9YQ5OipyWUaaxVRE+F3Lz3FzBOMPTvMbuspxXgCnPL1g== X-Received: by 2002:a17:902:8303:b0:19e:6516:127a with SMTP id bd3-20020a170902830300b0019e6516127amr3133289plb.39.1677898938255; Fri, 03 Mar 2023 19:02:18 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id kc4-20020a17090333c400b00183c67844aesm2206076plb.22.2023.03.03.19.02.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2023 19:02:17 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: 29.0.60; window-at returns nil when tab-bar-mode is on Message-Id: Date: Fri, 3 Mar 2023 19:02:06 -0800 To: Bug Report Emacs X-Mailer: Apple Mail (2.3731.400.51.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=casouri@gmail.com; helo=mail-pj1-x102e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) To reproduce: 1. Type C-x t 2 to turn on tab-bar-mode 2. Evaluate (window-at 0 0), it returns nil 3. Evaluating (window-at 50 50) also returns nil 4. Turn off tab-bar-mode, and (window-at 0 0) returns a live window window-at-x-y is the same In GNU Emacs 29.0.60 (build 58, x86_64-apple-darwin22.3.0, NS appkit-2299.40 Version 13.2.1 (Build 22D68)) of 2023-03-01 built on Brown Repository revision: 59365f928565f1be551b1697b9246b00cb87a9b7 Repository branch: emacs-29 Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.2.1 Configured features: ACL DBUS GLIB GNUTLS JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils shortdoc text-property-search help-fns radix-tree time-date subr-x cl-extra help-mode icons cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 46845 11136) (symbols 48 5645 0) (strings 32 14791 2011) (string-bytes 1 398282) (vectors 16 10157) (vector-slots 8 156538 31644) (floats 8 80 19) (intervals 56 649 42) (buffers 984 14)) ------------=_1677921542-11995-1--