GNU bug report logs - #4274
23.1.50; Suggestion: add a option so line number start counting at 0

Previous Next

Package: emacs;

Reported by: "Xah Lee" <xah <at> xahlee.org>

Date: Thu, 27 Aug 2009 22:35:04 UTC

Severity: wishlist

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "Xah Lee" <xah <at> xahlee.org>
Subject: bug#4274: closed (Re: bug#4274: 23.1.50; Suggestion: add a option
 so line number start counting at 0)
Date: Mon, 05 Mar 2012 20:36:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#4274: 23.1.50; Suggestion: add a option so line number start counting at 0

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 4274 <at> debbugs.gnu.org.

-- 
4274: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4274
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 4274-done <at> debbugs.gnu.org
Subject: Re: bug#4274: 23.1.50;
	Suggestion: add a option so line number start counting at 0
Date: Mon, 05 Mar 2012 15:33:59 -0500
"Xah Lee" wrote:

> request for linum-mode a option to start counting at 0.

(setq linum-format (lambda (line) (propertize
                                     (number-to-string (1- line))
                                     'face 'linum)))

[Message part 3 (message/rfc822, inline)]
From: "Xah Lee" <xah <at> xahlee.org>
To: <emacs-pretest-bug <at> gnu.org>
Subject: 23.1.50; Suggestion: add a option so line number start counting at 0
Date: Thu, 27 Aug 2009 02:33:37 -0700
request for linum-mode a option to start counting at 0.

Rationale:
in some editor, for example the one inside Second Life, the line number 
start at 0. So, i say “look at the vector on line 14”, but to her, it's the 
vector on line 13.

providing a option to change this would help. For example, in xlsl-mode, 
which is a mode for LSL (Linden Scripting Lang), the mode can automatically 
set to have linum-mode start counting at 0, so it's compatible with the 
Second Life world.

 Xah
∑ http://xahlee.org/

This bug report was last modified 13 years and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.