unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Efficiently checking the initial contents of a file
@ 2008-05-16 10:16 Nordlöw
  2008-05-16 11:08 ` Juanma Barranquero
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Nordlöw @ 2008-05-16 10:16 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-05-22 16:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16 10:16 Efficiently checking the initial contents of a file Nordlöw
2008-05-16 11:08 ` Juanma Barranquero
2008-05-16 11:12 ` David Hansen
2008-05-16 11:15 ` Eli Zaretskii
     [not found] ` <mailman.11680.1210937109.18990.help-gnu-emacs@gnu.org>
2008-05-16 12:52   ` Nordlöw
2008-05-16 14:03     ` Juanma Barranquero
     [not found]     ` <mailman.11696.1210946594.18990.help-gnu-emacs@gnu.org>
2008-05-19  7:20       ` Nordlöw
2008-05-22 16:58         ` Thien-Thi Nguyen

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).