all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: emacs-devel@gnu.org
Subject: Re: About column numbers
Date: Wed, 30 Mar 2016 18:21:29 +0300	[thread overview]
Message-ID: <83wpokuh3a.fsf@gnu.org> (raw)
In-Reply-To: <56FB02BB.3090501@alice.it> (message from Angelo Graziosi on Wed,  30 Mar 2016 00:33:31 +0200)

> From: Angelo Graziosi <angelo.graziosi@alice.it>
> 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?



  parent reply	other threads:[~2016-03-30 15:21 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 [this message]
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
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

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

  git send-email \
    --in-reply-to=83wpokuh3a.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=angelo.graziosi@alice.it \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.