File: open_win.doc

package info (click to toggle)
hol88 2.02.19940316-8
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 63,120 kB
  • ctags: 19,367
  • sloc: ml: 199,939; ansic: 9,300; sh: 7,118; makefile: 6,074; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (38 lines) | stat: -rw-r--r-- 871 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\DOC open_win

\TYPE {open_win : (path -> (window -> window) -> window -> window)}

\SYNOPSIS
Apply some transformation to a subwindow of a window.

\LIBRARY window

\DESCRIBE
{open_win path fn win} opens a subwindow in the focus of {win} at the
position described by {path}.
The window transforming function {fn} is then applied to the resulting
subwindow.
The subwindow is then closed and the transformed parent window returned as
the result.

\FAILURE
{open_win path fn win} will fail if {path} describes a position which
is not present in the focus of {win}.

\EXAMPLE
{
   # transform "(==>) (A /\ (B /\ F))" [] []
   # (
   #       open_win [RAND]
   #       (
   #               rewrite_win []
   #       )
   # );;
   |- A /\ F ==> A /\ B /\ F
}

\SEEALSO
OPEN_WIN, CLOSE_WIN, open_context, OPEN_CONTEXT, establish, ESTABLISH,
gen_open_win, GEN_OPEN_WIN

\ENDDOC