From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Mon, 02 Feb 2015 17:58:28 +0200 Message-ID: <83sieogva3.fsf@gnu.org> References: <87k306pfi9.fsf@building.gnus.org> <87egqekrd7.fsf@building.gnus.org> <877fw53eat.fsf@building.gnus.org> <877fw4zsdv.fsf@building.gnus.org> <831tmcn4k4.fsf@gnu.org> <87386szq1w.fsf@building.gnus.org> <83wq44ljm9.fsf@gnu.org> <87vbjowlqv.fsf@building.gnus.org> <83oapglbx6.fsf@gnu.org> <83lhkkl23i.fsf@gnu.org> <83bnlgkl1s.fsf@gnu.org> <837fw3l7uz.fsf@gnu.org> <83wq42i9qn.fsf@gnu.org> <83r3u9iqx1.fsf@gnu.org> <874mr4zlv8.fsf@building.gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422892742 27266 80.91.229.3 (2 Feb 2015 15:59:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 15:59:02 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 16:58:57 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 1YIJOo-0001To-Iq for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 16:58:54 +0100 Original-Received: from localhost ([::1]:55245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIJOo-0002Tq-2P for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 10:58:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIJOi-0002Tf-02 for emacs-devel@gnu.org; Mon, 02 Feb 2015 10:58:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIJOe-0005b5-4d for emacs-devel@gnu.org; Mon, 02 Feb 2015 10:58:47 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:59590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIJOd-0005ar-Sf for emacs-devel@gnu.org; Mon, 02 Feb 2015 10:58:44 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NJ500900IYUTG00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Mon, 02 Feb 2015 17:58:41 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJ5009PZJ1THX30@a-mtaout22.012.net.il>; Mon, 02 Feb 2015 17:58:41 +0200 (IST) In-reply-to: <874mr4zlv8.fsf@building.gnus.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:182263 Archived-At: > From: Lars Ingebrigtsen > Cc: Stefan Monnier , emacs-devel@gnu.org > Date: Mon, 02 Feb 2015 20:46:51 +1100 > > > I explicitly mentioned vertical-motion in one of my previous messages, > > and explained there how to use it to find buffer position that > > corresponds to a given pixel coordinate. Lars said it wasn't what he > > needed, I don't know why. > > I think I asked whether it was another one of those functions that only > report the position after redisplay has taken place, and if so, it's not > usable for this use case. > > If it does report the position before redisplay has happened It does. In general, very few functions require an up-to-date display for doing their job; those that do have that fact stated in their doc strings. I hope you noticed my comments about the visual vs logical order: vertical-motion is one of the functions that work in visual order.