emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About column numbers


From: Yuri Khan
Subject: Re: About column numbers
Date: Thu, 31 Mar 2016 00:02:20 +0600

On Wed, Mar 30, 2016 at 11:28 PM, Angelo Graziosi
<address@hidden> wrote:

> Yes, I know.. this is not a fundamental, but why that "unnatural"
> convention? I don't know other editor/IDE which uses columns from zero..

Vim counts columns from 1.
Midnight Commander counts from 0.
Mousepad counts from 0.
Nano counts from 1.
Joe counts from 1.
Gedit counts from 1.
Kate counts from 1.
Geany counts from 0.
Anjuta counts from 0.
Firefox’s Scratchpad counts from 1.

Counting columns from 0 is very convenient. You look at the column
number and immediately know how many characters you have before the
point, and whether you are on a tab stop.

Lines are a different beast — you have to be compatible with the
convention compilers use to report errors, and pretty much all of them
count lines from 1.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]