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#18493: 24.3.93; posn-col-row should take text-scale-mode into account Date: Wed, 17 Sep 2014 18:56:10 -0700 (PDT) Message-ID: <30fb9ae4-3781-4bc7-a1cf-45bf2a195929@default> References: <864mw529bx.fsf@yandex.ru> <38e6b538-3e76-472a-b371-2e74f9a14bf7@default> <541A1693.4090009@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1411005455 951 80.91.229.3 (18 Sep 2014 01:57:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2014 01:57:35 +0000 (UTC) To: Dmitry Gutov , 18493@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 18 03:57:28 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XUQyN-0003qx-Ms for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Sep 2014 03:57:27 +0200 Original-Received: from localhost ([::1]:48069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUQyN-0008Jk-AH for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 21:57:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUQyC-0008Ik-AB for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 21:57:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUQy3-00049R-IM for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 21:57:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUQy3-00044t-Fn for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 21:57:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XUQxx-0007Fe-VY for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 21:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Sep 2014 01:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18493 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18493-submit@debbugs.gnu.org id=B18493.141100537727825 (code B ref 18493); Thu, 18 Sep 2014 01:57:01 +0000 Original-Received: (at 18493) by debbugs.gnu.org; 18 Sep 2014 01:56:17 +0000 Original-Received: from localhost ([127.0.0.1]:43770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUQxF-0007Ei-53 for submit@debbugs.gnu.org; Wed, 17 Sep 2014 21:56:17 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:40038) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUQxC-0007Ea-Ji for 18493@debbugs.gnu.org; Wed, 17 Sep 2014 21:56:15 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s8I1uDdG019302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 18 Sep 2014 01:56:13 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s8I1uC1C027725 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 18 Sep 2014 01:56:12 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s8I1uB8B027710; Thu, 18 Sep 2014 01:56:12 GMT In-Reply-To: <541A1693.4090009@yandex.ru> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93447 Archived-At: > > I don't even understand why the value should change with text > > scale. >=20 > It would solve the problem of text-scale-mode being enabled in > buffers, where I'm getting inaccurate results from `posn-col-row' > because of that. And by "inaccurate", I mean different from the > ones I'd like. I don't understand why the value changing helps, instead of hurts, in that context. I would think that the column should not change just because the text is scaled. But I'm probably missing something. > > What part of the description of `pos-col-row' would lead one to > > think that this changes with text scale? >=20 > Probably none. Do you have code that calls `posn-col-row', though? It doesn't matter whether I do or don't. As a matter of fact, I do, but only a little bit - getting the column of a mouse click, using: (car (posn-col-row (event-start event))) And I guess that code must be broken wrt text scaling. I didn't realize that. > Is it aware of `posn-col-row' not being affected by text scale? I guess you mean *being* affected by it (?). IIUC, the return value depends on the text scale. Isn't that the bug you reported? That's the bug I see (though someone will no doubt explain why they think it is TRT). > Does it have explicit support for text scaling? No, my code does not. From what I understand now, I guess it needs to worry about that now. Seems nuts that it should have to, but my understanding is limited...