help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Efficiently checking the initial contents of a file


From: Nordlöw
Subject: Efficiently checking the initial contents of a file
Date: Fri, 16 May 2008 03:16:13 -0700 (PDT)
User-agent: G2/1.0

How can I efficiently using pure emacs-lisp (without calling any
external process) investigate the first bytes of a file?

My guess is
- Open parts of the file into a buffer or string.
- Alt 1. Switch to the buffer and do things.
  Alt 2. Or do stuff directly the string?

Which operations should be performed via a buffer and which should
operate on a string?

/Nordlöw


reply via email to

[Prev in Thread] Current Thread [Next in Thread]