From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: Getting column position accounting for overlays Date: Fri, 7 Aug 2015 19:13:58 +0200 Message-ID: <55C4E756.5020607@thregr.org> References: <83a8u6tplx.fsf@gnu.org> <55C1D323.50505@thregr.org> <831tfhu5ge.fsf@gnu.org> <55C25983.5040702@thregr.org> <83vbctsgo6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438967667 31627 80.91.229.3 (7 Aug 2015 17:14:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 17:14:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 07 19:14:19 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 1ZNlDm-00038k-D4 for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 19:14:18 +0200 Original-Received: from localhost ([::1]:50048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNlDl-0000Uz-LO for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 13:14:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNlDi-0000RA-4K for emacs-devel@gnu.org; Fri, 07 Aug 2015 13:14:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNlDf-0001DX-EO for emacs-devel@gnu.org; Fri, 07 Aug 2015 13:14:14 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNlDf-0001DN-7F for emacs-devel@gnu.org; Fri, 07 Aug 2015 13:14:11 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZNlDc-000333-TM for emacs-devel@gnu.org; Fri, 07 Aug 2015 19:14:09 +0200 Original-Received: from 193.106.183.18 ([193.106.183.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Aug 2015 19:14:08 +0200 Original-Received: from wavexx by 193.106.183.18 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Aug 2015 19:14:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.106.183.18 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.1.0 In-Reply-To: <83vbctsgo6.fsf@gnu.org> 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:188570 Archived-At: 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 ;) >> 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 Although this is just one case. 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. If I'm not mistaken, there were a couple of other packages that handle this (highlight-indentation?) if you use pretty-symbols or similar modes, and the way you have to do that is not pretty. > Indeed, there is not, AFAIK. > > But you originally asked only for the dimensions of the text on the > screen, not about the text itself. Looks orthogonal to me. I don't have a need for it right now, but somehow seems logical to have.