<!-- $XConsortium: Revert.sgm /main/5 1996/08/30 14:56:47 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN303.rsml.1">]]>
<![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN303.rsml.1">]]>
<RefMeta>
<RefEntryTitle>Revert</RefEntryTitle>
<ManVolNum>special file</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Symbol Role="Message">Revert</Symbol></RefName>
<RefPurpose>discard any modifications to an entity
</RefPurpose>
</RefNameDiv>
<!-- $XConsortium: Revert.sgm /main/5 1996/08/30 14:56:47 rws $-->
<!-- CDE Common Source Format, Version 1.0.0-->
<!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
<!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
<!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
<!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
<RefSynopsisDiv>
<Synopsis>[<Symbol Role="Variable">file</Symbol>] Revert(in <Emphasis>type ID</Emphasis>);
</Synopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para>The
<Symbol Role="Message">Revert</Symbol> notice
asks that any pending, unsaved modifications to a
persistent entity (such as a file) be discarded.
</Para>
<Para>The
<Emphasis>ID</Emphasis> argument is the identity of the entity to revert.
When its
<Symbol Role="Variable">type</Symbol> is
<Literal>File</Literal>, then the
<Emphasis>ID</Emphasis> argument is unset (in other words, has a
value of
<Literal>(char *)0</Literal>), and it refers to the file or directory
named in the message's file attribute.
</Para>
</RefSect1>
<RefSect1>
<Title>ERRORS</Title>
<Para>The ToolTalk service may return one of the following errors
in processing the
<Symbol Role="Message">Revert</Symbol> notice:
</Para>
<VariableList>
<VarListEntry>
<Term>TT_DESKTOP_UNMODIFIED</Term>
<ListItem>
<Para>The entity had no pending, unsaved modifications.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term>TT_DESKTOP_ENOENT</Term>
<ListItem>
<Para>The file to save/revert does not exist.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>APPLICATION USAGE</Title>
<Para>The
&cdeman.ttdt.file.join;, function can be used to register for,
and help process, the
<Symbol Role="Message">Revert</Symbol> request.
</Para>
<Para>The
<Symbol Role="Message">Revert</Symbol> request can be sent with
&cdeman.ttdt.file.request;. Also,
&cdeman.ttdt.Revert;, can send the relevant message and block on the reply.
</Para>
</RefSect1>
<RefSect1>
<Title>SEE ALSO</Title>
<Para>&cdeman.ttdt.Revert;, &cdeman.ttdt.file.join;, &cdeman.ttdt.file.request;; <Symbol Role="Message">Save</Symbol> notice.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->
