From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7390: 24.0.50; pos-col-row gives incorrect row Date: Sat, 13 Nov 2010 09:55:15 -0800 Message-ID: <9C53EFF0802044A489EF842E6A1B8150@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289672080 18476 80.91.229.12 (13 Nov 2010 18:14:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2010 18:14:40 +0000 (UTC) To: 7390@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 13 19:14:33 2010 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.69) (envelope-from ) id 1PHKcP-00051s-OK for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Nov 2010 19:14:30 +0100 Original-Received: from localhost ([127.0.0.1]:49030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHKcP-000680-70 for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Nov 2010 13:14:29 -0500 Original-Received: from [140.186.70.92] (port=40542 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHKc3-0005wK-By for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 13:14:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHKc2-0005la-3X for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 13:14:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHKc2-0005lW-0g for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 13:14:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PHKGg-0003ki-6d; Sat, 13 Nov 2010 12:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Nov 2010 17:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7390 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.128967068814415 (code B ref -1); Sat, 13 Nov 2010 17:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Nov 2010 17:51:28 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PHKG8-0003kS-EW for submit@debbugs.gnu.org; Sat, 13 Nov 2010 12:51:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PHKG6-0003kN-38 for submit@debbugs.gnu.org; Sat, 13 Nov 2010 12:51:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHKKn-0001nj-5L for submit@debbugs.gnu.org; Sat, 13 Nov 2010 12:56:18 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:42303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHKKn-0001ne-33 for submit@debbugs.gnu.org; Sat, 13 Nov 2010 12:56:17 -0500 Original-Received: from [140.186.70.92] (port=46560 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHKKm-0006mu-2h for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 12:56:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHKKh-0001m6-7X for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 12:56:15 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:40548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHKKh-0001lk-1H for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 12:56:11 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oADHu6NN032703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 13 Nov 2010 17:56:08 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oADHu5Me002033 for ; Sat, 13 Nov 2010 17:56:05 GMT Original-Received: from abhmt018.oracle.com by acsmt355.oracle.com with ESMTP id 775529901289670915; Sat, 13 Nov 2010 09:55:15 -0800 Original-Received: from dradamslap1 (/10.159.14.224) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 13 Nov 2010 09:55:15 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcuDW+0IZfGgTIvPQUSpalWsStm1Kw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 13 Nov 2010 12:52:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:41559 Archived-At: emacs -Q Load David Ponce's tabbar.el version 1.3, from here: http://sourceforge.net/projects/emhacks/files/tabbar/1.3/tabbar-1.3.tar.gz/downl oad M-x tabbar-mode That adds a tab bar to each window. I don't see anything in the tabbar.el code that should perturb the behavior of pos-col-row, but something does. I'm no expert on the tabbar code or pos-col-row. I hope that someone can debug this and fix it. My guess is that pos-col-row is incorrectly thinking that the tab bar is part of the buffer. The easiest way to see the problem is to do this: M-x picture-mode Click mouse-1 somewhere - e.g. the fourth char in some buffer. The result is that the cursor (point) is moved down one line from where you clicked, so the active region shows from the click position to point (one line down). Do the same thing with tabbar-mode turned off, and there is no problem: point does not move down a line: it is exactly where you clicked. The problem arises in picture-mouse-set-point, where it calls pos-col-row: the wrong row is returned. This is presumably because it is counting the tabbar row, which is not part of the buffer. Dunno whether this is a bug in pos-col-row (that would be my guess) or in tabbar.el. I shouldn't think that tabbar.el should need to do something to compensate and make pos-col-row DTRT. But again, I'm no expert on this. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-11-09 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include'