* 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.