From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18493: 24.3.93; posn-col-row should take text-scale-mode into account Date: Fri, 19 Sep 2014 09:11:39 +0300 Message-ID: <83iokk16n8.fsf@gnu.org> References: <864mw529bx.fsf@yandex.ru> <8338bp2cwf.fsf@gnu.org> <541B46AA.2020904@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411107149 32055 80.91.229.3 (19 Sep 2014 06:12:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 06:12:29 +0000 (UTC) Cc: 18493@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 08:12:22 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 1XUrQb-0005VB-Qb for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 08:12:21 +0200 Original-Received: from localhost ([::1]:56179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUrQb-0001uP-Ap for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 02:12:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUrQS-0001lu-Nu for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 02:12:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUrQN-0007bS-8p for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 02:12:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUrQN-0007WX-6J for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 02:12:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XUrQH-00014U-Jb for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 02:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Sep 2014 06:12: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.14111071014086 (code B ref 18493); Fri, 19 Sep 2014 06:12:01 +0000 Original-Received: (at 18493) by debbugs.gnu.org; 19 Sep 2014 06:11:41 +0000 Original-Received: from localhost ([127.0.0.1]:45076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUrPw-00013p-5r for submit@debbugs.gnu.org; Fri, 19 Sep 2014 02:11:40 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:43023) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUrPt-00013f-3o for 18493@debbugs.gnu.org; Fri, 19 Sep 2014 02:11:38 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NC400800WTKC900@mtaout26.012.net.il> for 18493@debbugs.gnu.org; Fri, 19 Sep 2014 09:09:34 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NC4008VTX3YO200@mtaout26.012.net.il>; Fri, 19 Sep 2014 09:09:34 +0300 (IDT) In-reply-to: <541B46AA.2020904@yandex.ru> X-012-Sender: halo1@inter.net.il 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:93499 Archived-At: > Date: Fri, 19 Sep 2014 00:55:06 +0400 > From: Dmitry Gutov > CC: 18493@debbugs.gnu.org > > On 09/18/2014 06:58 PM, Eli Zaretskii wrote: > > > That's the intended behavior: posn-col-row is documented to return the > > coordinates of its argument in canonical character units. And that is > > what it does here. There's no bug here. > > Fair enough. Maybe define an alternative function, which does take text > zoom into account? I'm not yet sure what that other function should do. See below. > Text zoom is different from all the other features you enumerate here, > though. In programming language buffers, I usually have no images or > proportional fonts, but zooming the text is something that happens once > in a while. Is company-mode only for buffers whose major mode is some programming language? I thought it was more broad. But even if it is only for programming languages, does it mean that the API you wish existed should only cater to such modes? > The "current column" obtained from the return value of this function, is > used to position each line of the popup in the display string of the > overlay that spans the next few lines. So what you actually need is to find the correct X coordinate for the screen line _below_ (and maybe also above) the one where posn-col-row is called, is that right? If so, first question is why not do all this in pixels?