From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Darren Hoo Newsgroups: gmane.emacs.devel Subject: How to get column number relative to the beginning of a screen line? Date: Wed, 15 Jan 2014 01:59:32 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389722403 32713 80.91.229.3 (14 Jan 2014 18:00:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2014 18:00:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 14 19:00:09 2014 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 1W38HY-0003i0-DX for ged-emacs-devel@m.gmane.org; Tue, 14 Jan 2014 19:00:08 +0100 Original-Received: from localhost ([::1]:49881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W38HY-0007l5-3q for ged-emacs-devel@m.gmane.org; Tue, 14 Jan 2014 13:00:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W38HN-0007hh-Gm for emacs-devel@gnu.org; Tue, 14 Jan 2014 13:00:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W38HG-0001aj-7U for emacs-devel@gnu.org; Tue, 14 Jan 2014 12:59:57 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W38HG-0001aa-0b for emacs-devel@gnu.org; Tue, 14 Jan 2014 12:59:50 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W38HE-00038i-7d for emacs-devel@gnu.org; Tue, 14 Jan 2014 18:59:48 +0100 Original-Received: from 111.196.175.100 ([111.196.175.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jan 2014 18:59:48 +0100 Original-Received: from darren.hoo by 111.196.175.100 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jan 2014 18:59:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 111.196.175.100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin) Cancel-Lock: sha1:7oE25L1Ap+cb8mEFskRFBXVRluI= 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:168372 Archived-At: if a line wrap or truncation happens how can I get the column number relative to the beginning of the line displayed? for example: ------------------------------------------------------------- This is a a loooooooooooooooooooooooooooooooooooooooooog line start of the continuation line ------------------------------------------------------------- If point stays at , some function `current-screen-column' should return the relative column number to "start". Is there any function available like count-screen-lines does but calculates column number?