From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Thu, 05 Feb 2015 15:17:29 +1100 Organization: Programmerer Ingebrigtsen Message-ID: <87oap9yoti.fsf@building.gnus.org> References: <87vbjowlqv.fsf@building.gnus.org> <83oapglbx6.fsf@gnu.org> <83lhkkl23i.fsf@gnu.org> <83bnlgkl1s.fsf@gnu.org> <837fw3l7uz.fsf@gnu.org> <54CD4B27.4080201@gmx.at> <874mr6qvi5.fsf@building.gnus.org> <87sieqpfxh.fsf@building.gnus.org> <54CDE908.7050908@gmx.at> <87ioflq0dz.fsf@building.gnus.org> <54CE2187.9070003@gmx.at> <83lhkhiq8t.fsf@gnu.org> <54CE54A3.1020707@gmx.at> <838ughilmo.fsf@gnu.org> <54CE6BD2.8000402@gmx.at> <8361bliin0.fsf@gnu.org> <83386piiby.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423109897 21377 80.91.229.3 (5 Feb 2015 04:18:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 04:18:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 05 05:18:17 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YJDtO-0006AX-Vj for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 05:18:15 +0100 Original-Received: from localhost ([::1]:40002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJDtO-0006IH-Aa for ged-emacs-devel@m.gmane.org; Wed, 04 Feb 2015 23:18:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJDtA-0006I1-PC for emacs-devel@gnu.org; Wed, 04 Feb 2015 23:18:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJDt7-00051y-HQ for emacs-devel@gnu.org; Wed, 04 Feb 2015 23:18:00 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:50577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJDt7-00051o-Aw for emacs-devel@gnu.org; Wed, 04 Feb 2015 23:17:57 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YJDsy-0005vh-18 for emacs-devel@gnu.org; Thu, 05 Feb 2015 05:17:52 +0100 Original-Received: from 27.96.197.126 ([27.96.197.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 05:17:48 +0100 Original-Received: from larsi by 27.96.197.126 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 05:17:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 27.96.197.126 Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:80sn3GKSaMFIJeKkyt6Wm5xHWHc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182429 Archived-At: Ok, back in Sydney again and trying to make this work. The function for moving to a char near a specific pixel was suggested as (vertical-motion (cons (/ PIXELS (frame-char-width)) 0)) right? That won't work, since `frame-char-width' apparently does its calculation based on "On a graphical screen, the width is the standard width of the default font.", and we have lots of different fonts in the buffer. So is there some other way of (quickly) going to a pixel position that I've missed? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/