unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to get file postion
@ 2007-08-27  5:54 Ye Wenbin
  0 siblings, 0 replies; only message in thread
From: Ye Wenbin @ 2007-08-27  5:54 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
If I want to access part of a big file, so it is important to build
a index of the file. But if use insert-file-contents to read the
whole file, I don't know how to convert between point in the buffer
to the position in the file(for unix file, point-1 is ok, but not for
dos file). Although using insert-file-literally is a choice, I have to
handle "\r\n" and others labor things. So I wonder whether there is
a function to convert point to offset postion in the file.
Thank you!

-- 
Best regards.
Ye Wenbin

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-27  5:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27  5:54 how to get file postion Ye Wenbin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).