From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov 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 15:17:09 +0400 Message-ID: <867g0zsvuy.fsf@yandex.ru> References: <864mw529bx.fsf@yandex.ru> <8338bp2cwf.fsf@gnu.org> <541B46AA.2020904@yandex.ru> <83iokk16n8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411125510 1184 80.91.229.3 (19 Sep 2014 11:18:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 11:18:30 +0000 (UTC) Cc: 18493@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 13:18:23 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 1XUwCl-0003Ts-65 for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 13:18:23 +0200 Original-Received: from localhost ([::1]:57535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUwCk-0001n6-Hx for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 07:18:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUwCb-0001mt-Tp for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 07:18:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUwCV-0006a7-WE for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 07:18:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUwCV-0006Zv-Sn for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 07:18:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XUwCQ-0001Ua-83 for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 07:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Sep 2014 11:18:02 +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.14111254435685 (code B ref 18493); Fri, 19 Sep 2014 11:18:02 +0000 Original-Received: (at 18493) by debbugs.gnu.org; 19 Sep 2014 11:17:23 +0000 Original-Received: from localhost ([127.0.0.1]:45226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUwBm-0001Td-Nc for submit@debbugs.gnu.org; Fri, 19 Sep 2014 07:17:23 -0400 Original-Received: from mail-lb0-f173.google.com ([209.85.217.173]:45935) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUwBj-0001TU-Vz for 18493@debbugs.gnu.org; Fri, 19 Sep 2014 07:17:20 -0400 Original-Received: by mail-lb0-f173.google.com with SMTP id 10so1194101lbg.18 for <18493@debbugs.gnu.org>; Fri, 19 Sep 2014 04:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=hvPdmZW1f78sC6fYvTI9aeBPgOQuRcIRkPpJQ9i8rrA=; b=ZmpITNTMqnwlHjZzWTkJkO3VeE+VDK9dilhQU5xOIu2M/U6T2K1qq5yiLixNl5FaYi gIFw6seVxRcTKhE2gFiDOf6msnszQH79u3l2XJo/84luat93xGkO7pZlFcfl7M3rpl88 c1K/JQPn4jueIknI/zFb5Nes6ZIFOOh9LybXv/x10tuF5LHQGmDTnNUF7H/RoKb9J1I1 SIXUJ0tBBTUsDuKvRVdRjssJSJLMsHoO94HoktUi341VRNXwOvQ7nly2wyhFRSOw4WuC MoFCYL0FVXE4VLIIGjHcO07F8jjeXsPxxzrMmDOIfPKmLXOUdBPE/mjB6oaS8llxrior jYkg== X-Received: by 10.152.116.44 with SMTP id jt12mr4437945lab.7.1411125438982; Fri, 19 Sep 2014 04:17:18 -0700 (PDT) Original-Received: from axl ([178.252.98.87]) by mx.google.com with ESMTPSA id z5sm199732lbu.21.2014.09.19.04.17.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 19 Sep 2014 04:17:17 -0700 (PDT) In-Reply-To: <83iokk16n8.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 19 Sep 2014 09:11:39 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) 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:93511 Archived-At: Eli Zaretskii writes: > Is company-mode only for buffers whose major mode is some programming > language? I'd say it's the first priority. > 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? It's hard to say. Maybe? I'd like to reiterate here, that I'd be satisfied just with some instructions how to convert the current `posn-col-row' return value into value that respects text scale. > 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? I don't understand the distinction. But from `posn-col-row' I actually take the screen column value (the row value returned from `posn-actual-col-row' is more useful). > If so, first question is why not do all this in pixels? Because we use the returned value when combining the display string for the overlay. So at some point the pixels have to get converted to character numbers, and we're back to the same problem.