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: Thu, 18 Sep 2014 08:37:21 -0700 (PDT) Message-ID: <5f49d157-07b3-4d47-9866-3726f8c7ec0a@default> References: <864mw529bx.fsf@yandex.ru> <38e6b538-3e76-472a-b371-2e74f9a14bf7@default> <541A1693.4090009@yandex.ru> <30fb9ae4-3781-4bc7-a1cf-45bf2a195929@default> <541AA9F0.2050409@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 1411054722 21600 80.91.229.3 (18 Sep 2014 15:38:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2014 15:38:42 +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 17:38:34 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 1XUdmu-0001lp-QL for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Sep 2014 17:38:28 +0200 Original-Received: from localhost ([::1]:51830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUdmu-00024S-Ea for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Sep 2014 11:38:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUdmi-00022J-4p for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 11:38:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUdmZ-0003X8-EF for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 11:38:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUdmZ-0003WR-Bg for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 11:38:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XUdmT-0005ms-Qe for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 11:38:01 -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 15:38: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.141105464822186 (code B ref 18493); Thu, 18 Sep 2014 15:38:01 +0000 Original-Received: (at 18493) by debbugs.gnu.org; 18 Sep 2014 15:37:28 +0000 Original-Received: from localhost ([127.0.0.1]:44657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUdlu-0005ll-VR for submit@debbugs.gnu.org; Thu, 18 Sep 2014 11:37:27 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:49489) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUdls-0005ld-Vm for 18493@debbugs.gnu.org; Thu, 18 Sep 2014 11:37:25 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s8IFbMhF028595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 18 Sep 2014 15:37:23 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s8IFbM2P022344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Sep 2014 15:37:22 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s8IFbM3f004494; Thu, 18 Sep 2014 15:37:22 GMT In-Reply-To: <541AA9F0.2050409@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: acsinet21.oracle.com [141.146.126.237] 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:93471 Archived-At: > > 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. >=20 > Take a look at the implementation. The function takes pixel > coordinates and divides them by the frame-default character dimensions. > text-scale-mode is buffer-local, so it doesn't change the latter. Yes, I guessed that. That sounds like the wrong behavior, to me. The frame char size is not useful here, I would think. What counts, for visual _columns_ is the visual char size, i.e., from text scaling. IOW, I don't see why scaling is not taken into account when calculating the position in column terms. But what do I know? I'm just asking what the rationale or use case is behind this behavior. > That was my point. Yes, I gathered that. Dunno whether we are saying the same thing or not. I'm questioning whether the frame char size or the text-scale char size should be used, to define what "columns" are here. I would think the latter. But I haven't tried to think this through carefully. Perhaps there are other considerations motivating this design, which have not occurred to me.