Subject: bug#4274: closed (Re: bug#4274: 23.1.50; Suggestion: add a option so line number start counting at 0)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 05 Mar 2012 20:36:02 +0000

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 [email-masked].

-- 
4274: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4274
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#4274: 23.1.50; Suggestion: add a option so line number start counting at 0
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Mon, 05 Mar 2012 15:33:59 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

"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)))

Subject: 23.1.50; Suggestion: add a option so line number start counting at 0
From: "Xah Lee" <[email-masked]>
To: <[email-masked]>
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/

☄