LispWorks User Guide and Reference Manual > 40 The SYSTEM Package

NextPrevUpTopContentsIndex

find-encoding-option

Function
Summary

Examines a buffer for an encoding option.

Package

system

Signature

find-encoding-option pathname ef-spec buffer length => result

Arguments

pathname

Pathname identifying location of buffer .

ef-spec

An external format spec.

buffer

A buffer whose contents are examined.

length

Length (an integer) up to which buffer should be examined.

Values

result

The result of reading the value returned from the encoding or external-format option as a Lisp expression in the keyword package.

Description

Looks in the file options (EMACS-style -*- line) for an option called encoding or external-format , with value value .

If found, it reads value as a Lisp expression in the keyword package and merges ef-spec with value and returns the result as result . Thus it does not override a supplied ef-spec .

See also

*file-encoding-detection-algorithm*


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex