All Manuals > LispWorks User Guide and Reference Manual > 49 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 encoding or external-format is found, it reads value as a Lisp expression in the keyword package. If coding is found, it attempts to translate value from a GNU Emacs coding system name to a LispWorks external-format name.

It then merges the ef-spec with the external format spec derived from 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 - 20 Sep 2017

NextPrevUpTopContentsIndex