Martin Buchholz <martin(a)xemacs.org> writes:
xemacs -vanilla
M-x column-number-mode
M-x what-cursor-position
The above two disagree on whether beginning-of-line is column 0 or 1.
Why this inconsistency?
This has been discussed a few months ago on comp.emacs.xemacs. Some
thoughts:
* It is logical for column-number-mode to count columns starting from
1, because that is the way lines are counted by line-number-mode.
It was plain silly in older XEmacsen to press M-< and find yourself
on "line 1, column 0".
* what-cursor-position displays column numbers starting from 0 because
of the long history of doing so, and consistency with
`current-column' (the latter not being eligible to change because of
Lisp incompatibility the change would cause). When the
`column-number-start-at-one' feature was added, it was deemed "safe"
to change the relatively new modeline feature and leave the old
function alone. In a way, I approve of this conservative choice.
So column-number-mode needs to be consistent with two contradictory
things, which is impossible.
I think we should make `what-cursor-position' respect
`column-number-start-at-one' variable.
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
"A Real Programmer's code can awe with its fiendish brilliance, even
as its crockishness appalls."