From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neon Absentius Newsgroups: gmane.emacs.help Subject: Re: window-line and window-column Date: Fri, 7 Oct 2005 23:08:05 +0000 Message-ID: <20051007230805.GI29712@SDF.LONESTAR.ORG> References: <1128725063.828807.151870@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128728128 31134 80.91.229.2 (7 Oct 2005 23:35:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 23:35:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 08 01:35:27 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EO1k9-00065W-GH for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Oct 2005 01:35:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EO1k8-0005b8-SI for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 19:35:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EO1LB-0005mf-Rb for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 19:09:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EO1Kj-0005OG-Gz for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 19:08:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EO1Kc-0005KB-Vl for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 19:08:52 -0400 Original-Received: from [192.94.73.21] (helo=sdf.lonestar.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EO1Kc-0001z1-Pb for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 19:08:51 -0400 Original-Received: from sdf.lonestar.org (IDENT:absent@ukato.freeshell.org [192.94.73.7]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j97N859c027863 for ; Fri, 7 Oct 2005 23:08:05 GMT Original-Received: (from absent@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j97N859B024918 for help-gnu-emacs@gnu.org; Fri, 7 Oct 2005 23:08:05 GMT Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Neon Absentius , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <1128725063.828807.151870@f14g2000cwb.googlegroups.com> User-Agent: Mutt/1.4.2.1i 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:30057 Archived-At: On Fri, Oct 07, 2005 at 03:44:23PM -0700, 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. > These (setq line-number-mode t) (setq column-number-mode t) display the line number and curent column in the modeline. -- There is no national science just as there is no national multiplication table; what is national is no longer science. -- Anton Checov