From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jpw@shootybangbang.com (John Paul Wallington) Newsgroups: gmane.emacs.help Subject: Re: is it easy to make line numbering start at 0 too? Date: Sun, 12 Jan 2003 16:53:58 +0000 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <20030109131745.A31056@spawar.navy.mil> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042390487 14408 80.91.224.249 (12 Jan 2003 16:54:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2003 16:54:47 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18XlNl-0003k7-00 for ; Sun, 12 Jan 2003 17:54:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XlOI-00060Z-01 for gnu-help-gnu-emacs@m.gmane.org; Sun, 12 Jan 2003 11:55:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!newsfeed.online.be!fu-berlin.de!uni-berlin.de!host217-42-17-40.range217-42.btcentralplus.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: host217-42-17-40.range217-42.btcentralplus.com (217.42.17.40) Original-X-Trace: fu-berlin.de 1042390477 19744495 217.42.17.40 (16 [170119]) X-Orig-Path: china.shootybangbang.com!news In-Reply-To: <20030109131745.A31056@spawar.navy.mil> (seberino@spawar.navy.mil's message of "Thu, 9 Jan 2003 13:17:45 -0800") X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i $Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp (add-hook 'post-command-hook (lambda () (force-mode-line-update))) > This has side effects... it messed up scroll-step behavior... this is > why I need a new way. > A problem with hacking Emacs source code is that I can't > make these changes happen on remote machines that I don't have root > privileges on. > > Plus, it sounds like new Emacs versions may not be compatible > with changes. Hacking decode_mode_spec in xdisp.c as mentioned earlier is much more straightforward than trying to replicate the same effect in emacs lisp. XEmacs has a `column-number-start-at-one' builtin and heeds it. If there is a genuine demand for the functionality you should propose it to the Emacs maintainers; as demonstrated it is a simple addition. It is controversial because presently the column and line number displays on the modeline reflect `point' which is on a line and between characters. The question arises as to why a user wants Emacs to tell fibs about column/line numbers; what is wrong with column numbers starting at zero, and line numbers at one? -- John Paul Wallington