From unknown Sat Aug 16 15:52:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1372 <1372@debbugs.gnu.org> To: bug#1372 <1372@debbugs.gnu.org> Subject: Status: posn-at-x-y reports wrong window Reply-To: bug#1372 <1372@debbugs.gnu.org> Date: Sat, 16 Aug 2025 22:52:42 +0000 retitle 1372 posn-at-x-y reports wrong window reassign 1372 emacs submitter 1372 David Reitter severity 1372 normal thanks From david.reitter@gmail.com Tue Nov 18 16:45:59 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.3 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Nov 2008 00:45:59 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAJ0jtTU003016 for ; Tue, 18 Nov 2008 16:45:56 -0800 Received: from mail.gnu.org ([199.232.76.166]:59713 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L2bCT-0001gM-RQ for emacs-pretest-bug@gnu.org; Tue, 18 Nov 2008 19:45:45 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L2bCb-0006If-7h for emacs-pretest-bug@gnu.org; Tue, 18 Nov 2008 19:45:54 -0500 Received: from an-out-0708.google.com ([209.85.132.240]:50184) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L2bCa-0006IV-QJ for emacs-pretest-bug@gnu.org; Tue, 18 Nov 2008 19:45:53 -0500 Received: by an-out-0708.google.com with SMTP id c38so1414858ana.21 for ; Tue, 18 Nov 2008 16:45:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :content-type:mime-version:subject:date:references:x-mailer; bh=5axaLUNbEeT2szzKEFcnAAfwfBXhwZly8c4eGgNkeQ0=; b=RDW2d50nPaWeIfTcEDjMttyq6Orq/mcy5GAtjxK+8eEevL2nJGIqvWdDLlqIf13brY auJ4SBBr84AWPS17aIMkKVflo1nvJq0bmyVyfAdTd2ZE/tUudJuMm8nNmik/UkjW+wxW HCwZZvX81u0v8VmYIgqcu3x/5HoMxnV0uMwS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:content-type:mime-version:subject:date :references:x-mailer; b=m+oDJkRaL+5+Xv+dIjVAj8IxRhQbU+eEBu9ZvEVTjcgqgFWZaNVJfRSU3VCiAU5BGV rLc7r8NeYUACVclK6lXJ0nKuy/hvHHj9Big/B9YOgTeiIzNZSBGNMorMKsNkP9Rwlr7g 04LR7GDfnzKRZsAhcGCevUzzdi5v2AZcgmHSk= Received: by 10.100.131.13 with SMTP id e13mr312657and.57.1227055550716; Tue, 18 Nov 2008 16:45:50 -0800 (PST) Received: from SCARLETT.PSY.CMU.EDU (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id b37sm9084582ana.50.2008.11.18.16.45.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 Nov 2008 16:45:49 -0800 (PST) Cc: Jin Choi Message-Id: From: David Reitter To: emacs-pretest-bug@gnu.org Content-Type: multipart/signed; boundary=Apple-Mail-5--359755552; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v929.2) Subject: posn-at-x-y reports wrong window Date: Tue, 18 Nov 2008 19:45:47 -0500 References: <356ECE88-9412-46FD-A227-C52D5C87E212@mac.com> X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) --Apple-Mail-5--359755552 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I received the bug report below for our visual-line-mode in Aquamacs Emacs, but I managed to reproduce the core issue on Emacs 23 (Nextstep port) as follows: (fringe-mode 0) C-x 3 C-x 2 C-x o C-x o (we're now in the large window on the right, with two small windows in the left half of the frame). Insert enough newlines to be vertically just above the horizontal divider on the left. M-: (posn-at-x-y 0 (cdr (posn-x-y (posn-at-point)))) RET Insert newline, now we're next to the divider line. M-: (posn-at-x-y 0 (cdr (posn-x-y (posn-at-point)))) RET --> wrong window (the window in the upper left) is given in the structure. Instead of 0, the x value can be up to 6 ((frame-char-width) reports 7). Begin forwarded message: > From: Jin Choi > Date: 18 November 2008 14:35:17 EST > To: aquamacs-bugs@aquamacs.org > Subject: [Aquamacs-bugs] visual-line-mode error with vertically > split windows > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > THE SETUP: vertically split window with the left half split > horizontally. This is commonly used in, say, ECB, perhaps other modes: > --------- > | 1 | 3 | > | | | > ----| | > | 2 | | > | | | > --------- > > > THE BUG: in the right hand window, attempting to move the cursor (in > column 1) through the row adjacent to the mode line of the upper left > hand window moves the cursor to the upper left window. Also, placing > the cursor in column 0 of that row then typing C-n or C-p gives the > error "Position not in text area of window." > > > > TO REPLICATE: > C-x 3 C-x 2 > > Hit return in the right side window (3) enough to get you past the > divider > on the left. > > Then C-p back past the divider. Cursor jumps to upper left window (1). > > Now click on the row in window 3 adjacent to the divider. Type C-n or > C-p. Gives above error. > > > WORKAROUND: > (global-visual-line-mode 0) > > > > In GNU Emacs 22.3.2 (i386-apple-darwin9.5.0, Carbon Version 1.6.0) > of 2008-09-21 on plume.sr.unh.edu - Aquamacs Distribution 1.5 > Windowing system distributor `Apple Inc.', version 10.5.5 > configured using `configure '--without-x' '--prefix=/usr/local'' > > 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: iso-8859-1 > default-enable-multibyte-characters: t > > Major mode: Text > > Minor modes in effect: > shell-dirtrack-mode: t > savehist-mode: t > aquamacs-styles-mode: t > smart-frame-positioning-mode: t > global-visual-line-mode: t > visual-line-mode: t > recentf-mode: t > encoded-kbd-mode: t > osx-key-mode: t > show-paren-mode: t > delete-selection-mode: t > pc-selection-mode: t > cua-mode: t > tooltip-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > unify-8859-on-encoding-mode: t > utf-translate-cjk-mode: t > auto-compression-mode: t > column-number-mode: t > transient-mark-mode: t > > Recent input: > > -bug-report> > > Recent messages: > on One-Buffer-One-Frame-Mode (Display Buffers in Separate Frames)! > Loading /Users/jsc/Library/Preferences/Aquamacs Emacs/ > customizations.el (source)...done > Loading /Users/jsc/Library/Preferences/Aquamacs Emacs/Preferences.el > (source)...done > One-Buffer-One-Frame-Mode disabled. > For best results, turn off Frame Appearance Styles now. > Loading /Users/jsc/Library/Preferences/Aquamacs Emacs/frame- > positions.el (source)...done > Truncate long lines disabled > Mark set > Aquamacs is based on GNU Emacs 22, a part of the GNU/Linux system. It > is Free Software: you can improve and redistribute it under the GNU > General Public License, version 3 or later. Copyright (C) 2008 Free > Software Foundation, Inc. (C) 2008 D. Reitter. No Warranty. > Loading emacsbug...done > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > __ > https://lists.sourceforge.net/lists/listinfo/aquamacs-bugs --Apple-Mail-5--359755552 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding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ChQdHkpIEx0ZC4x LDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAhBH0mciJ6TfW1XR T7HSAm4iMAkGBSsOAwIaBQCgggFvMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcN AQkFMQ8XDTA4MTExOTAwNDU0N1owIwYJKoZIhvcNAQkEMRYEFEzeK1lk6NBNVomqpn8UvYKkoOGQ MIGFBgkrBgEEAYI3EAQxeDB2MGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29uc3Vs dGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWlu ZyBDQQIQR9JnIiek31tV0U+x0gJuIjCBhwYLKoZIhvcNAQkQAgsxeKB2MGIxCzAJBgNVBAYTAlpB MSUwIwYDVQQKExxUaGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUg UGVyc29uYWwgRnJlZW1haWwgSXNzdWluZyBDQQIQR9JnIiek31tV0U+x0gJuIjANBgkqhkiG9w0B AQEFAASBgMcAxYeXTS0E8nVc5LlEqQAcgZ8DhSEtOIdQtI2jSojxgo2Enk+P79Hdzhz/kGzY+Qxh KGHfKIqfqBYFLEgV34sYc2UT2WScj3h/bbgepgDl9OOYpb0OZkfhoaSxEiQK44rHlcd04rQa3qEq nMVLPVVODc07zuuNNv6CmtGMxOJZAAAAAAAA --Apple-Mail-5--359755552-- From rudalics@gmx.at Wed Nov 19 07:13:30 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MIXEDBDN,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1372) by emacsbugs.donarmstrong.com; 19 Nov 2008 15:13:31 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mAJFDRiw028968 for <1372@emacsbugs.donarmstrong.com>; Wed, 19 Nov 2008 07:13:28 -0800 Received: (qmail invoked by alias); 19 Nov 2008 15:13:20 -0000 Received: from 88-117-33-121.adsl.highway.telekom.at (EHLO [88.117.33.121]) [88.117.33.121] by mail.gmx.net (mp007) with SMTP; 19 Nov 2008 16:13:20 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19/uytIL8R/73CSwloD+WwURHrOS+Fop6MtyRNLMe gmgJ2C74YYiAdv Message-ID: <49242C33.4090702@gmx.at> Date: Wed, 19 Nov 2008 16:09:39 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: David Reitter , 1372@debbugs.gnu.org CC: Jin Choi Subject: Re: bug#1372: posn-at-x-y reports wrong window References: <356ECE88-9412-46FD-A227-C52D5C87E212@mac.com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------040306040306050904010808" X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71,0.64 This is a multi-part message in MIME format. --------------040306040306050904010808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > (fringe-mode 0) > C-x 3 C-x 2 C-x o C-x o > (we're now in the large window on the right, with two small windows in > the left half of the frame). > > Insert enough newlines to be vertically just above the horizontal > divider on the left. > > M-: (posn-at-x-y 0 (cdr (posn-x-y (posn-at-point)))) RET > > Insert newline, now we're next to the divider line. > > M-: (posn-at-x-y 0 (cdr (posn-x-y (posn-at-point)))) RET > > --> wrong window (the window in the upper left) is given in the structure. > Instead of 0, the x value can be up to 6 ((frame-char-width) reports 7). Can you try the attached patch? martin --------------040306040306050904010808 Content-Type: text/plain; name="1372.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="1372.diff" *** window.c.~1.634.~ 2008-11-18 18:56:23.703125000 +0100 --- window.c 2008-11-19 16:04:02.078125000 +0100 *************** *** 774,780 **** } else { ! if (eabs (*x - x1) < grabbable_width) { /* Convert X and Y to window relative coordinates. Vertical border is at the right edge of window. */ --- 774,781 ---- } else { ! if ((WINDOW_RIGHTMOST_P (w) || *x < x1) ! && eabs (*x - x1) < grabbable_width) { /* Convert X and Y to window relative coordinates. Vertical border is at the right edge of window. */ --------------040306040306050904010808-- From david.reitter@gmail.com Wed Nov 19 07:27:25 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.8 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1372) by emacsbugs.donarmstrong.com; 19 Nov 2008 15:27:25 +0000 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAJFRLp0032667 for <1372@emacsbugs.donarmstrong.com>; Wed, 19 Nov 2008 07:27:23 -0800 Received: by ug-out-1314.google.com with SMTP id 17so1572ugm.14 for <1372@emacsbugs.donarmstrong.com>; Wed, 19 Nov 2008 07:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=dpBSA9yT96kiD1k9+hXrk0Cd3N8v7enNrghqo5h/4pw=; b=G/OxSk3OQBbn+F0YaKbomndQJ87BpTEX4rLyTL1+U1Ofs+neTlozVZpG9vXTqqJBXP ulVzjAJsOpv0snnv1D9L4cCdpABtqgEYVBHDHJIfbq5DRJPGt0Hy7b8yZIERVfRDXkdK BLWqa3DI32bzatmaHfTqbJnilgAN8BkFC2DY0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=PBoQ2aHblVwOboWtukorT8ZnF/EAgHiijRkEX6XNIM+3wgS/vWDQkLcwSEBav8ddtS OPUADElD8bP6lEtatME/FEhKOiYK1d5eOsdIdfJqcypU9V6Eh/HYCA5BE/E9EwPW5MMa xjSwYn6NJkvl/bH6xLjsGCuuLdDedP/JDbt6E= Received: by 10.66.216.7 with SMTP id o7mr3059799ugg.83.1227108440933; Wed, 19 Nov 2008 07:27:20 -0800 (PST) Received: from ?192.168.1.42? (pool-72-65-227-44.pitbpa.east.verizon.net [72.65.227.44]) by mx.google.com with ESMTPS id p34sm5742705ugc.29.2008.11.19.07.27.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 19 Nov 2008 07:27:19 -0800 (PST) Cc: 1372@debbugs.gnu.org, Jin Choi Message-Id: From: David Reitter To: martin rudalics In-Reply-To: <49242C33.4090702@gmx.at> Content-Type: multipart/signed; boundary=Apple-Mail-4--306867553; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: bug#1372: posn-at-x-y reports wrong window Date: Wed, 19 Nov 2008 10:27:15 -0500 References: <356ECE88-9412-46FD-A227-C52D5C87E212@mac.com> <49242C33.4090702@gmx.at> X-Mailer: Apple Mail (2.929.2) --Apple-Mail-4--306867553 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Thanks, this patch fixes the problem. - David On 19 Nov 2008, at 10:09, martin rudalics wrote: > > (fringe-mode 0) > > C-x 3 C-x 2 C-x o C-x o > > (we're now in the large window on the right, with two small > windows in > > the left half of the frame). > > > > Insert enough newlines to be vertically just above the horizontal > > divider on the left. > > > > M-: (posn-at-x-y 0 (cdr (posn-x-y (posn-at-point)))) RET > > > > Insert newline, now we're next to the divider line. > > > > M-: (posn-at-x-y 0 (cdr (posn-x-y (posn-at-point)))) RET > > > > --> wrong window (the window in the upper left) is given in the > structure. > > Instead of 0, the x value can be up to 6 ((frame-char-width) > reports 7). > > Can you try the attached patch? > > martin > *** window.c.~1.634.~ 2008-11-18 18:56:23.703125000 +0100 > --- window.c 2008-11-19 16:04:02.078125000 +0100 > *************** > *** 774,780 **** > } > else > { > ! if (eabs (*x - x1) < grabbable_width) > { > /* Convert X and Y to window relative coordinates. > Vertical border is at the right edge of window. */ > --- 774,781 ---- > } > else > { > ! if ((WINDOW_RIGHTMOST_P (w) || *x < x1) > ! && eabs (*x - x1) < grabbable_width) > { > /* Convert X and Y to window relative coordinates. > Vertical border is at the right edge of window. */ --Apple-Mail-4--306867553 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFxDCCAn0w ggHmoAMCAQICEEfSZyInpN9bVdFPsdICbiIwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA3MTIwOTIzMDM0OFoXDTA4MTIwODIzMDM0 OFowYjEQMA4GA1UEBBMHUmVpdHRlcjEOMAwGA1UEKhMFRGF2aWQxFjAUBgNVBAMTDURhdmlkIFJl aXR0ZXIxJjAkBgkqhkiG9w0BCQEWF2RhdmlkLnJlaXR0ZXJAZ21haWwuY29tMIGfMA0GCSqGSIb3 DQEBAQUAA4GNADCBiQKBgQDIS4kZGULD+CxprkxDnEccAnZ2GQQxfn55aiAPoy5kJ+uLhelaZP4p lgx3Vq8xYK1bjsLepGYp8qzVlHsyQPb6OfvRzrUXHxlJrHME0+Lblx37PBLxGDxc5W8qfZFJpej8 Dk3LUM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AASBgCQhgk7w42VzGMbTfTPXLAMTH6Ejw9wI3oeVD7w2Fo079iWKdQs5qc/ZU2zogKWfk11i nnqQ8WOnKjBahpC26Ezz0ATj0kU5zqjJo3F1e1PJSxRfCqlC8YCSTtDo1EBpra9NssnAxNuxn5o8 /KhDUWqNohGVPRs7uiY+6xVFg1afAAAAAAAA --Apple-Mail-4--306867553-- From rudalics@gmx.at Thu Nov 20 02:22:54 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1372-done) by emacsbugs.donarmstrong.com; 20 Nov 2008 10:22:54 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mAKAMoe0005209 for <1372-done@emacsbugs.donarmstrong.com>; Thu, 20 Nov 2008 02:22:52 -0800 Received: (qmail invoked by alias); 20 Nov 2008 10:22:45 -0000 Received: from 62-47-57-118.adsl.highway.telekom.at (EHLO [62.47.57.118]) [62.47.57.118] by mail.gmx.net (mp006) with SMTP; 20 Nov 2008 11:22:45 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19lVHUCmGhlwLTAN8cvhbi0ci7It2MNjCCxjMf1Rw xfyvIfK2fHxK+q Message-ID: <49253A10.10603@gmx.at> Date: Thu, 20 Nov 2008 11:21:04 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 1372-done@debbugs.gnu.org CC: David Reitter , Jin Choi Subject: Re: bug#1372: posn-at-x-y reports wrong window References: <356ECE88-9412-46FD-A227-C52D5C87E212@mac.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68 Fixed as 2008-11-20 Martin Rudalics * window.c (coordinates_in_window): Don't return ON_VERTICAL_BORDER for the rightmost position of a mode/header line when the window is not the rightmost one. (Bug#1372) Thanks for the report, martin From unknown Sat Aug 16 15:52:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Thu, 18 Dec 2008 15:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator