All Manuals > LispWorks® User Guide and Reference Manual > 47 The SYSTEM Package

merge-ef-specs Function

Summary

Creates a new external format spec from two other external format specs.

Package

system

Signature

merge-ef-specs ef-spec1 ef-spec2 => ef-spec

Arguments
ef-spec1
An external format spec.
ef-spec2
An external format spec.
Values
ef-spec
The resultant external format spec created from information in ef-spec1 and ef-spec2.
Description

The function merge-ef-specs returns an external format spec constructed by adding information not supplied in ef-spec1 from ef-spec2.

Each external format spec argument is either a symbol or a list.

If ef-spec1 and ef-spec2 have the same value for their name component (whether they are lists or symbols), return ef-spec1 combined with any parameters from ef-spec2 that are not specified in ef-spec1.

Otherwise, if ef-spec1 is :default or a list beginning with :default, return ef-spec2 with parameters modified to be a union of the parameters from ef-spec1 and ef-spec2, with those from ef-spec1 taking priority.

Otherwise, return ef-spec1 with any :eol-style parameter from ef-spec2 if ef-spec1 does not specify :eol-style.


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02