From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Thu, 05 Feb 2015 09:01:38 -0500 Message-ID: References: <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> <87oap9yoti.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423144916 2219 80.91.229.3 (5 Feb 2015 14:01:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 14:01:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 05 15:01:56 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 1YJN0D-0001d3-Tk for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 15:01:54 +0100 Original-Received: from localhost ([::1]:42088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJN0D-0000rn-Dp for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 09:01:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJN05-0000nl-VX for emacs-devel@gnu.org; Thu, 05 Feb 2015 09:01:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJN00-0006gr-AH for emacs-devel@gnu.org; Thu, 05 Feb 2015 09:01:45 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:54677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJN00-0006gc-6N for emacs-devel@gnu.org; Thu, 05 Feb 2015 09:01:40 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t15E1cWw019759; Thu, 5 Feb 2015 09:01:38 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5E2D2FB3; Thu, 5 Feb 2015 09:01:38 -0500 (EST) In-Reply-To: <87oap9yoti.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Thu, 05 Feb 2015 15:17:29 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5208=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5208> : inlines <2034> : streams <1385177> : uri <1847060> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:182443 Archived-At: > (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. IIRC this "standard width of the default font" matches the unit assumed by `vertical-motion', so it should indeed work (IOW, vertical-motion will do the equivalent of multiplying its arg by (frame-char-width) internally to get a pixel size). Stefan