Hi,
GNU Emacs has the function position-bytes. Doc:
Function: position-bytes position
Return the byte-position corresponding to buffer position position
in the current buffer.
As I get it it is for handling the two ways text can be represented in
GNU Emacs. unibyte or multibyte. (If chars are represented by more
than one byte then the byte position in the buffer for a char isn't
equal to the position in the text.)
So for example: if you stream out a buffer to an external program you
can point to the right spot in the stream for it to start whatever it
wants to do. Sounds a bit dirty though.
How should we deal with elisp using position-bytes? Can we support it?
Yours
--
%% Mats
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta