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: Getting column position accounting for overlays Date: Fri, 07 Aug 2015 21:19:41 +0300 Message-ID: <83r3nfq7uq.fsf@gnu.org> References: <83a8u6tplx.fsf@gnu.org> <55C1D323.50505@thregr.org> <831tfhu5ge.fsf@gnu.org> <55C25983.5040702@thregr.org> <83vbctsgo6.fsf@gnu.org> <55C4E756.5020607@thregr.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1438971611 29898 80.91.229.3 (7 Aug 2015 18:20:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 18:20:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Yuri D'Elia Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 07 20:20:04 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 1ZNmFO-0004K9-V3 for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 20:20:03 +0200 Original-Received: from localhost ([::1]:50607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNmFN-00079s-Tx for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 14:20:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNmFB-00079l-Eg for emacs-devel@gnu.org; Fri, 07 Aug 2015 14:19:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNmF8-0006LT-8Q for emacs-devel@gnu.org; Fri, 07 Aug 2015 14:19:49 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:59697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNmF8-0006Kf-0E for emacs-devel@gnu.org; Fri, 07 Aug 2015 14:19:46 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NSQ00L0057PN300@mtaout29.012.net.il> for emacs-devel@gnu.org; Fri, 07 Aug 2015 21:19:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSQ00D165KH7CB0@mtaout29.012.net.il>; Fri, 07 Aug 2015 21:19:29 +0300 (IDT) In-reply-to: <55C4E756.5020607@thregr.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:188580 Archived-At: > From: Yuri D'Elia > Date: Fri, 7 Aug 2015 19:13:58 +0200 > > On 05/08/15 21:01, Eli Zaretskii wrote: > > That's why I asked to describe your use case. I'm afraid I still > > don't think I understand it. > > Sometimes it's just curiosity ;) Nothing wrong with that. > >> The usage scenario is pretty simple: assume a terminal display. > >> I want to determine the current /visual/ column at point. > > > > Yes, but why do you need that? What do you intend to do with the > > value? > > For example: > > https://github.com/wavexx/rigid-tabs.el If you need to align text on display, you should use the the (space :align-to POS) display spec, see the node "Specified Space" in the ELisp manual. This lets the display engine do the job for you, so you don't need to figure out the dimensions of the text on display. > If you're trying to display anything related to the /visual/ appearance, > you'll have to consider the possibility of overlays and thus run into > the same issue. Can you envision other use cases, besides alignment?