From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1372: posn-at-x-y reports wrong window Date: Tue, 18 Nov 2008 19:45:47 -0500 Message-ID: References: <356ECE88-9412-46FD-A227-C52D5C87E212@mac.com> Reply-To: David Reitter , 1372@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: multipart/signed; boundary=Apple-Mail-5--359755552; micalg=sha1; protocol="application/pkcs7-signature" X-Trace: ger.gmane.org 1227057031 16110 80.91.229.12 (19 Nov 2008 01:10:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2008 01:10:31 +0000 (UTC) Cc: Jin Choi To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 19 02:11:32 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L2bbO-0006tW-Pg for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Nov 2008 02:11:31 +0100 Original-Received: from localhost ([127.0.0.1]:52395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2baG-0003zV-1f for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 20:10:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2baA-0003xk-Mh for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 20:10:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2ba9-0003wZ-8H for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 20:10:14 -0500 Original-Received: from [199.232.76.173] (port=48155 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2ba8-0003wE-Rp for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 20:10:12 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48483) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2ba8-0007hW-4o for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 20:10:12 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAJ1A9PJ009192; Tue, 18 Nov 2008 17:10:09 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAJ0t4AF004440; Tue, 18 Nov 2008 16:55:04 -0800 X-Loop: don@donarmstrong.com Resent-From: David Reitter Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 19 Nov 2008 00:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1372 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12270555593022 (code B ref -1); Wed, 19 Nov 2008 00:55:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Nov 2008 00:45:59 +0000 Original-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 Original-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 Original-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 Original-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 Original-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= Original-Received: by 10.100.131.13 with SMTP id e13mr312657and.57.1227055550716; Tue, 18 Nov 2008 16:45:50 -0800 (PST) Original-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) X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 18 Nov 2008 20:10:14 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22484 gmane.emacs.pretest.bugs:23368 Archived-At: --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: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFxDCCAn0w ggHmoAMCAQICEEfSZyInpN9bVdFPsdICbiIwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA3MTIwOTIzMDM0OFoXDTA4MTIwODIzMDM0 OFowYjEQMA4GA1UEBBMHUmVpdHRlcjEOMAwGA1UEKhMFRGF2aWQxFjAUBgNVBAMTDURhdmlkIFJl aXR0ZXIxJjAkBgkqhkiG9w0BCQEWF2RhdmlkLnJlaXR0ZXJAZ21haWwuY29tMIGfMA0GCSqGSIb3 DQEBAQUAA4GNADCBiQKBgQDIS4kZGULD+CxprkxDnEccAnZ2GQQxfn55aiAPoy5kJ+uLhelaZP4p lgx3Vq8xYK1bjsLepGYp8qzVlHsyQPb6OfvRzrUXHxlJrHME0+Lblx37PBLxGDxc5W8qfZFJpej8 Dk3LUMga8laR9CRghbALoTV3UThUSMqk1cVwTY99KQIDAQABozQwMjAiBgNVHREEGzAZgRdkYXZp ZC5yZWl0dGVyQG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