I have the following issue with comint
, it could be a bug. It holds
true in different derived modes, such as python or gdb. How to see
the strange behavior:
run-python
- Enter some stuff: M-20 a, don't press RET
- Eval
(- (line-end-position) (line-beginning-position))
. It returns 20, which is correct. - Move point before
>>>
. C-a won't work, do C-p C-a C-n instead. - Eval
(- (line-end-position) (line-beginning-position))
. It returns 4, which is wrong.
Could someone explain this behavior? And if it's not a bug, what's the work-around to get 20 instead of 4?