From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: About column numbers Date: Thu, 31 Mar 2016 00:02:20 +0600 Message-ID: References: <56FB02BB.3090501@alice.it> <83wpokuh3a.fsf@gnu.org> <56FC0CDB.9090707@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459360987 473 80.91.229.3 (30 Mar 2016 18:03:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2016 18:03:07 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 30 20:03:02 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1alKSM-0006cN-AV for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 20:03:02 +0200 Original-Received: from localhost ([::1]:56117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alKSK-0001pv-MG for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 14:03:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alKS2-0001pk-UN for emacs-devel@gnu.org; Wed, 30 Mar 2016 14:02:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alKS1-0002lA-Vw for emacs-devel@gnu.org; Wed, 30 Mar 2016 14:02:42 -0400 Original-Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:35923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alKS1-0002ku-Nw; Wed, 30 Mar 2016 14:02:41 -0400 Original-Received: by mail-lf0-x234.google.com with SMTP id e133so42075020lfe.3; Wed, 30 Mar 2016 11:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=gFpiJGLYqMrixPuOUbH88akp+Y/V2qAieyPfHgxsZ34=; b=umZQv/48PIgZ1Qs3GW08GF/ZAwDlD4tesA/FqJ/dgItjVy5us85Psd16nIHEaEZrBV M+CIEE1tTrxVrgmYEyJcHpHxG+ClfiCGOooj9Dji3MNuXLXqtsZq023Omb9yDaX6n4d5 5wVTa+hLMICX6B1QhgKO+puJgCTcktvQEINqUExo1Gf2vW9qstSkjx2l2NSmdd8dDx// 2zCwreYs56NfzG/UwU0riQyYQVgPE8/Z9J1ulInjBy91Eree3ZLfR2omwKbiMXiP2bUy AqF2KUJUGnr9CpZYFRvcuAdVuhmYK122lgpA3bbPDcVfPO1Kr5Gg8RQjK0fn3vXJYiQ6 RYDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=gFpiJGLYqMrixPuOUbH88akp+Y/V2qAieyPfHgxsZ34=; b=WHZIzrswqgv3xWDxLPmxCcBREZceQbaeDhJEkbdaEPa8PDTApBORITMuCDfysNaxfr snSPLMcqsclGKRUf/yil03LthCNPqu72LKyx+jI3+YOTWS8xiEpvZHBLOhmK5WvgCm3y RyaMWZ7rA2WpPUc0LHczp0tRVInTc/t/XJnFjwLxaClxfLaobom+FaNlqujJFkG5mw33 aQ0oLjXXvxS2mW26SpJlPDs5XT1LDGNCraNa7RWvG8dvEjAhrdp8PRGFL2lvrp+uIel/ WWX1xnFOyrdSbeP4BTQuEQSyjJDp/SWAQI1eehtXBeNO2iudmYXluVY/NKaXwDyboqh4 ACUg== X-Gm-Message-State: AD7BkJLMe7mWT+P/aTiPSWR2nAIybo7JOCx7oQ21J5OxTNk57fbQzAAIy9JgPyBANpjgrO/RSLy3v1OcsvCWCQ== X-Received: by 10.25.144.143 with SMTP id s137mr4677068lfd.53.1459360960397; Wed, 30 Mar 2016 11:02:40 -0700 (PDT) Original-Received: by 10.112.254.164 with HTTP; Wed, 30 Mar 2016 11:02:20 -0700 (PDT) In-Reply-To: <56FC0CDB.9090707@alice.it> X-Google-Sender-Auth: 5j7mEdlsBJDiAyWlabWRubUohlo X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202469 Archived-At: On Wed, Mar 30, 2016 at 11:28 PM, Angelo Graziosi 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=E2=80=99s 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 =E2=80=94 you have to be compatible with the convention compilers use to report errors, and pretty much all of them count lines from 1.