From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: window-line and window-column Date: Sat, 08 Oct 2005 01:09:21 +0200 Message-ID: <43470021.8090806@student.lu.se> References: <1128725063.828807.151870@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128728268 31368 80.91.229.2 (7 Oct 2005 23:37:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 23:37:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 08 01:37:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EO1mC-0006O6-E4 for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Oct 2005 01:37:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EO1mB-0006OC-Sm for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 19:37:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EO1Lm-0006HM-Do for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 19:10:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EO1LW-00063g-5S for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 19:09:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EO1LD-0005o3-1o for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 19:09:27 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EO1LC-00020u-U3 for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 19:09:27 -0400 Original-Received: from [192.168.123.121] (83.249.203.167) by pne-smtpout1-sn1.fre.skanova.net (7.2.060.1) id 43200DEA00624C91; Sat, 8 Oct 2005 01:09:22 +0200 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: rgb In-Reply-To: <1128725063.828807.151870@f14g2000cwb.googlegroups.com> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30058 Archived-At: rgb wrote: >How can I tell where, within the current window, I am. > >Is there any way to tell what window line I'm currently on? Even if I >use move-to-window-line and it's successful I may not actually be on >that line when it returns. But realistically, I need to know what line >I'm on without moving and I don't see how I can tell. > >I can't seem to fine a way to tell what window column I'm in either. >It seems I could probably use (window-width), (current-column) and >truncate-lines to figure it out but comments about popup-ruler on the >wiki make me think such a formula wouldn't be accurate. > > Can you perhaps use window-start?