emacs: why does what-cursor-position return less than the expected value?

Posted by Cheeso on Stack Overflow See other posts from Stack Overflow or by Cheeso
Published on 2010-03-29T18:37:07Z Indexed on 2010/03/29 18:43 UTC
Read the original article Hit count: 303

Filed under:

Suppose I have a source file that is 18218 bytes.

I open the file in emacs, then do:

 M-x end-of-buffer
 M-x what-cursor-position

Why does the cursor position return 17612 bytes?

I think it's because of CRLF translation, or collapsing CRLF into one character.

How can I get emacs to report the accurate, untranslated character position?

© Stack Overflow or respective owner

Related posts about emacs