unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: About column numbers
Date: Thu, 31 Mar 2016 00:02:20 +0600	[thread overview]
Message-ID: <CAP_d_8XDQmTR1M6=+a4yMAjkHFkDEnx4oFQiH57UUNLW2dzM4Q@mail.gmail.com> (raw)
In-Reply-To: <56FC0CDB.9090707@alice.it>

On Wed, Mar 30, 2016 at 11:28 PM, Angelo Graziosi
<angelo.graziosi@alice.it> 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.



  parent reply	other threads:[~2016-03-30 18:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 22:33 About column numbers Angelo Graziosi
2016-03-30  5:43 ` psachin
2016-03-30 15:21 ` Eli Zaretskii
2016-03-30 17:28   ` Angelo Graziosi
2016-03-30 17:46     ` Drew Adams
2016-04-03 23:15       ` John Wiegley
2016-03-30 18:02     ` Yuri Khan [this message]
2016-03-30 18:18       ` Andreas Schwab
2016-03-30 18:37         ` Yuri Khan
2016-03-30 18:56           ` Andreas Schwab
2016-03-30 19:17             ` Yuri Khan
2016-03-31 12:50               ` Stefan Monnier
2016-03-31 16:44                 ` Clément Pit--Claudel
2016-03-31 21:39                   ` Stefan Monnier
2016-04-02 16:29                     ` Elias Mårtenson
2016-04-02 20:19                       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_d_8XDQmTR1M6=+a4yMAjkHFkDEnx4oFQiH57UUNLW2dzM4Q@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=angelo.graziosi@alice.it \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).