From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: About column numbers Date: Wed, 30 Mar 2016 18:21:29 +0300 Message-ID: <83wpokuh3a.fsf@gnu.org> References: <56FB02BB.3090501@alice.it> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1459351317 27752 80.91.229.3 (30 Mar 2016 15:21:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2016 15:21:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 30 17:21: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 1alHwS-0008Tu-CZ for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 17:21:56 +0200 Original-Received: from localhost ([::1]:54808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alHwR-0004gi-Ba for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 11:21:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alHwJ-0004gD-A8 for emacs-devel@gnu.org; Wed, 30 Mar 2016 11:21:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alHwF-0003XT-AZ for emacs-devel@gnu.org; Wed, 30 Mar 2016 11:21:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alHwF-0003XN-6a; Wed, 30 Mar 2016 11:21:43 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3994 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1alHwE-0002C2-Fl; Wed, 30 Mar 2016 11:21:42 -0400 In-reply-to: <56FB02BB.3090501@alice.it> (message from Angelo Graziosi on Wed, 30 Mar 2016 00:33:31 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:202457 Archived-At: > From: Angelo Graziosi > Date: Wed, 30 Mar 2016 00:33:31 +0200 > > 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)? Why is it a problem for column number to start at zero? Emacs always worked like that. > Is there some settings to change this behavior? No. You could, of course, come up with a mode-line format that would display column-number + 1, but that would only change this on display, not internally. > If not, I would suggest to change this in Emacs.. or to add some > settings to change this.. Then you'd need to change every interface that accepts or returns column numbers, like move-to-column, posn-at-point, etc. Is it really worth it?