From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: psachin Newsgroups: gmane.emacs.devel Subject: Re: About column numbers Date: Wed, 30 Mar 2016 11:13:18 +0530 Message-ID: References: <56FB02BB.3090501@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ce0469fb248052f3da088 X-Trace: ger.gmane.org 1459316637 15933 80.91.229.3 (30 Mar 2016 05:43:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2016 05:43:57 +0000 (UTC) Cc: Emacs developers To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 30 07:43:57 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 1al8v6-0005xI-Az for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 07:43:56 +0200 Original-Received: from localhost ([::1]:51937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al8v5-0002Ze-9o for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 01:43:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al8uq-0002ZK-2l for emacs-devel@gnu.org; Wed, 30 Mar 2016 01:43:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1al8uo-00006z-Tw for emacs-devel@gnu.org; Wed, 30 Mar 2016 01:43:39 -0400 Original-Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:33515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al8uo-00006t-Nq for emacs-devel@gnu.org; Wed, 30 Mar 2016 01:43:38 -0400 Original-Received: by mail-ob0-x22a.google.com with SMTP id x3so47460610obt.0 for ; Tue, 29 Mar 2016 22:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0iNpCiZo5YiZi1sWWViyExgGMp73IalnrPMhmK6/8ck=; b=clGMnmTX/N6zizfKy/YC3PjkWSKyX/yxqndriVAIpnjL3FC/0RwBfuUJ4BN2+YuglV SPrbAlUEIcWYsN66wl2Nt6tdYf6bHGdueNnFa21JkCVvnK7a2DLiYKEShsGCzSZrvtoB bSmVO2vmGVx+QGneyneBjevFuRu7zNv8icnyLhhQGUIAyxv4p1sGoqtOdmIDR/jWxkTL LIMIPNkkMiV972YSMy0o4pDD/jgLrAjwSX7D2ZW5p3ricwLqw4/JxAWqONp5KGBpl30m YIgL9GsOhgr6CpV2kobCa14l41NKucO9FGlWQ75nlBZh2IXecXvDO1NKomvSe8jpcnQV O1Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0iNpCiZo5YiZi1sWWViyExgGMp73IalnrPMhmK6/8ck=; b=UaDthEQzYHhgmpxIHGGo/CxdMZIwtBVm6QHDHMlE8mPly+aiEmi4XCKxouPkAXmFh6 D18iEMraRd40AskA9p5GgWZGTCmJbhxJqFGnyhwW6pFogsyz+leYlPw5UDIC7xS4J6Mk EoBuG3+2gG2N2hiB4OfHCAtC4ITH1CI08FjOzOs8vyfpKL2AnZHpWw364a4Q00t+PCzj aor4pGFin39CpMj6iR9wHpWv8OyPlk2skTVbutqmfZrDgQkhQzQhvQ/KOgJYqF3g3xfH kLEEem3C/BInn+qcpqlzREuuOdiZbKj0tvfCANVWOarwas5agwz3Dy8dszjIsS1iP+Iz DbCw== X-Gm-Message-State: AD7BkJJeT6/MwYa0Iy3L/2wTcXCS2QpcWp29DSSC+vfq3dsleddIHd1yv43P8BlT/HqZlyLUteCSe8ShGI183g== X-Received: by 10.202.183.7 with SMTP id h7mr3240695oif.25.1459316617881; Tue, 29 Mar 2016 22:43:37 -0700 (PDT) Original-Received: by 10.202.108.214 with HTTP; Tue, 29 Mar 2016 22:43:18 -0700 (PDT) In-Reply-To: <56FB02BB.3090501@alice.it> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c01::22a 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:202435 Archived-At: --001a113ce0469fb248052f3da088 Content-Type: text/plain; charset=UTF-8 Digging goes back to file src/indent.c. Function: current-column On Wed, Mar 30, 2016 at 4:03 AM, Angelo Graziosi wrote: > When the option about column numbers is enabled, the column numbers start > from "0" (zero). In other words, when the cursor in in the top-left corner > of the buffer, the mode line displays > > (1,0) > > line number : 1 > column number : 0 > > Why columns start from 0 (zero) and not 1 as for lines? Would it be better > (1,1)? > > Is there some settings to change this behavior? If not, I would suggest to > change this in Emacs.. or to add some settings to change this.. > > Angelo > > -- Sachin psachin.github.io --001a113ce0469fb248052f3da088 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Digging goes back to file src/indent.c. Function: current-= column

On We= d, Mar 30, 2016 at 4:03 AM, Angelo Graziosi <angelo.graziosi@alic= e.it> wrote:
When the optio= n about column numbers is enabled, the column numbers start from "0&qu= ot; (zero). In other words, when the cursor in in the top-left corner of th= e buffer, the mode line displays

=C2=A0 (1,0)

line number=C2=A0 =C2=A0: 1
column number : 0

Why columns start from 0 (zero) and not 1 as for lines? Would it be better = (1,1)?

Is there some settings to change this behavior? If not, I would suggest to = change this in Emacs.. or to add some settings to change this..

=C2=A0Angelo




--
--001a113ce0469fb248052f3da088--