better setting for PDF -> HTML
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Release 2.0</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="../Medley-Primer.html">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part2.htm">Next ></a></p><h4 style="padding-top: 18pt;padding-left: 239pt;text-indent: 0pt;line-height: 11pt;text-align: left;">Release 2.0</h4><h4 style="padding-left: 239pt;text-indent: 0pt;line-height: 11pt;text-align: left;">February, 1992</h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 35pt;text-indent: 0pt;line-height: 1pt;text-align: left;"><span><img width="665" height="1" alt="image" src="Image_003.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 53pt;text-indent: 0pt;line-height: 11pt;text-align: left;">Address comments to:</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 11pt;text-align: left;">Venue</p><p style="padding-left: 53pt;text-indent: 0pt;text-align: left;">User Documentation 1549 Industrial Road</p><p style="padding-bottom: 1pt;padding-left: 53pt;text-indent: 0pt;text-align: left;">San Carlos, CA 94070 415-508-9672</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 2pt;text-align: left;"><span><img width="412" height="3" alt="image" src="Image_004.png"/></span></p><p style="padding-top: 8pt;padding-left: 53pt;text-indent: 0pt;line-height: 174%;text-align: left;">Medley for the Novice Release 2.0</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 12pt;text-align: left;">February 1992</p><p style="padding-top: 8pt;padding-left: 53pt;text-indent: 0pt;line-height: 169%;text-align: left;">Copyright <span class="s2"></span> 1992 by Venue. All rights reserved.</p><p style="padding-left: 53pt;text-indent: 0pt;text-align: left;">Medley is a trademark of Venue.</p><p style="padding-top: 9pt;padding-left: 53pt;text-indent: 0pt;line-height: 87%;text-align: left;">Xerox<span class="s2"></span> is a registered trademark and InterPress is a trademark of Xerox Corporation.</p><p style="padding-top: 8pt;padding-left: 53pt;text-indent: 0pt;line-height: 169%;text-align: left;">UNIX<span class="s2"></span> is a registered trademark of UNIX System Laboratories. Post Script is a registered trademark of Adobe Systems Inc.</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 11pt;text-align: left;">Copyright protection includes material generated from the</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 87%;text-align: left;">software programs displayed on the screen, such as icons, screen display looks, and the like.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 2pt;text-align: left;"><span><img width="414" height="3" alt="image" src="Image_005.png"/></span></p><p style="padding-top: 9pt;padding-left: 53pt;text-indent: 0pt;line-height: 87%;text-align: left;">The information in this document is subject to change without notice and should not be construed as a commitment by Venue. While every effort has been made to ensure the accuracy of this document, Venue assumes no responsibility for any errors that may appear.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 87%;text-align: left;">Text was written and produced with Venue text formatting tools; Xerox printers were used to produce text masters. The typeface is Classic.</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="../Medley-Primer.html">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part2.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>001-TITLEPAGE</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="../Medley-Primer.html">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part2.htm">Next ></a></p><p class="s1" style="padding-bottom: 3pt;padding-left: 44pt;text-indent: 0pt;line-height: 27pt;text-align: left;"><a name="bookmark0">Venue Medley for the Novice</a></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"><span><img width="137" height="18" alt="image" src="Image_002.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><h4 style="padding-top: 18pt;padding-left: 239pt;text-indent: 0pt;line-height: 11pt;text-align: left;">Release 2.0</h4><h4 style="padding-left: 239pt;text-indent: 0pt;line-height: 11pt;text-align: left;">February, 1992</h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 35pt;text-indent: 0pt;line-height: 1pt;text-align: left;"><span><img width="665" height="1" alt="image" src="Image_003.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 53pt;text-indent: 0pt;line-height: 11pt;text-align: left;">Address comments to:</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 11pt;text-align: left;">Venue</p><p style="padding-left: 53pt;text-indent: 0pt;text-align: left;">User Documentation 1549 Industrial Road</p><p style="padding-bottom: 1pt;padding-left: 53pt;text-indent: 0pt;text-align: left;">San Carlos, CA 94070 415-508-9672</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 2pt;text-align: left;"><span><img width="412" height="3" alt="image" src="Image_004.png"/></span></p><p style="padding-top: 8pt;padding-left: 53pt;text-indent: 0pt;line-height: 174%;text-align: left;">Medley for the Novice Release 2.0</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 12pt;text-align: left;">February 1992</p><p style="padding-top: 8pt;padding-left: 53pt;text-indent: 0pt;line-height: 169%;text-align: left;">Copyright <span class="s2"></span> 1992 by Venue. All rights reserved.</p><p style="padding-left: 53pt;text-indent: 0pt;text-align: left;">Medley is a trademark of Venue.</p><p style="padding-top: 9pt;padding-left: 53pt;text-indent: 0pt;line-height: 87%;text-align: left;">Xerox<span class="s2"></span> is a registered trademark and InterPress is a trademark of Xerox Corporation.</p><p style="padding-top: 8pt;padding-left: 53pt;text-indent: 0pt;line-height: 169%;text-align: left;">UNIX<span class="s2"></span> is a registered trademark of UNIX System Laboratories. Post Script is a registered trademark of Adobe Systems Inc.</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 11pt;text-align: left;">Copyright protection includes material generated from the</p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 87%;text-align: left;">software programs displayed on the screen, such as icons, screen display looks, and the like.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 2pt;text-align: left;"><span><img width="414" height="3" alt="image" src="Image_005.png"/></span></p><p style="padding-top: 9pt;padding-left: 53pt;text-indent: 0pt;line-height: 87%;text-align: left;">The information in this document is subject to change without notice and should not be construed as a commitment by Venue. While every effort has been made to ensure the accuracy of this document, Venue assumes no responsibility for any errors that may appear.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 53pt;text-indent: 0pt;line-height: 87%;text-align: left;">Text was written and produced with Venue text formatting tools; Xerox printers were used to produce text masters. The typeface is Classic.</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="../Medley-Primer.html">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part2.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Functions for Using Fonts </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part99.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part101.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Functions for Using Fonts </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part101.htm">FONTPR0P Looking at Font Properties</a><a class="toc0" href="part102.htm">STRlNGWlDTH</a><a class="toc0" href="part103.htm">DSPFONT - Changing the Font in One Window</a><a class="toc0" href="part104.htm">Personalizing Your Font Profile</a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part99.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part101.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>STRlNGWlDTH</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part101.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part103.htm">Next ></a></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">STRlNGWlDTH</h3><p style="padding-top: 10pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">It is often useful to see how much space is required to print an expression in a particular font. The function <span class="s3">STRINGWIDTH </span>does this. For example, type:</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(STRINGWIDTH "Hi there!" (FONTCREATE ’GACHA 10 ’STANDARD))</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The number returned is how many left to right pixels would be needed if the string</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">were printed in this font. (Note that this doesn’t just work for pixels on the screen, but for all kinds of streams. For more information about streams, see Chapter 15.) Compare the number returned from the example call with the number returned when you change <span class="s3">GACHA </span>to <span class="s3">TIMESROMAN</span>.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part101.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part103.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>DSPFONT - Changing the Font in One Window</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part102.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part104.htm">Next ></a></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">DSPFONT - Changing the Font in One Window</h3><p style="padding-top: 10pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">The function <span class="s3">DSPFONT </span>changes the font in a single window. As an example of its use, first create a window to write in. Type:</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(SETQ MY.FONT.WINDOW (CREATEW))</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">in the Executive Window. Sweep out the window. To print something in the default font, type:</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(PRINT ’HELLO MY.FONT.WINDOW)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">in the Executive Window. Your window, <span class="s3">MY.FONT.WINDOW </span>, will look something like Figure 16-5:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 224pt;text-indent: 0pt;text-align: left;"><span><img width="230" height="172" alt="image" src="Image_109.gif"/></span></p><p style="padding-top: 7pt;padding-left: 145pt;text-indent: 0pt;text-align: left;">Figure 16-5. <span class="s3">HELLO</span>, Printed with the Default Font in <span class="s3">MY.FONT.WINDOW</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Now change the font in the window. Type:</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(DSPFONT (FONTCREATE ’HELVETICA 12 ’BOLD) MY.FONT.WINDOW)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">in the Executive Window. The arguments to <span class="s3">FONTCREATE </span>can be changed to create any desired font. Now retype the <span class="s3">PRINT </span>statement, and your window will look something</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">like Figure 16-6:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 193pt;text-indent: 0pt;text-align: left;"><span><img width="312" height="211" alt="image" src="Image_110.gif"/></span></p><p style="padding-top: 8pt;padding-left: 107pt;text-indent: 90pt;line-height: 164%;text-align: left;">Flgure 16-6. Font in <span class="s3">MY.FONT.WINDOW </span>Changed Notice the font has been changed.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part102.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part104.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>17. THE INSPECTOR</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part104.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part106.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark19">17. THE INSPECTOR</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_113.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">The Inspector is a window-oriented tool designed to examine data structures. Because Medley is such a powerful programming environment, many types of data structures would be difficult to see in any other way.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part106.htm">Calling the Inspector </a><a class="toc0" href="part107.htm">Using the Inspector </a><a class="toc0" href="part108.htm">Inspector Example </a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part104.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part106.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Calling the Inspector </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part105.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part107.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Calling the Inspector </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Take as an example an object defined through a sequence of pointers (i.e., a bitmap on the property list of a window on the property list of an atom inaprogram.)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">To inspect an object named <span class="s3">NAME</span>, type:</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(INSPECT ’NAME)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">If <span class="s3">NAME </span>has many possible interpretations, an option menu will appear. For example, in Interlisp-D, a litatom can refer to both an atom and a function. For example, if <span class="s3">NAME</span></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">was a record, had a function definition, and had properties on its property list, then the menu would appear as in Figure 17-1.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 263pt;text-indent: 0pt;text-align: left;"><span><img width="132" height="74" alt="image" src="Image_114.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 193pt;text-indent: 0pt;text-align: left;">Figure 17-1. Option Window for Inspection of <span class="s3">NAME</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">If <span class="s3">NAME </span>were a list, then the option menu shown in Figure 17.2 would appear. The options include:</p><p style="padding-top: 6pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Calling the display editor on the list</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Calling the TTY editor (see Chapter 6)</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Seeing the list’s elements in a display window. If you choose this option, each</p><p style="padding-left: 125pt;text-indent: 0pt;text-align: left;">element in the list will appear in the right column of the Inspector window. The left column of the Inspector window will be made up of numbers (see Figure 17-3).</p><p style="padding-top: 7pt;padding-left: 125pt;text-indent: -17pt;text-align: left;">• Inspecting the list as a record type (this last option would produce a menu of known record types). If you choose a record type, the items in the list will appear in the</p><p style="padding-left: 125pt;text-indent: 0pt;text-align: left;">right column of the Inspector window. The left column of the Inspector window will be made up of the field names of the record.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 273pt;text-indent: 0pt;text-align: left;"><span><img width="100" height="67" alt="image" src="Image_115.gif"/></span></p><p style="padding-top: 5pt;padding-left: 196pt;text-indent: 0pt;text-align: left;">Figure 17-2. Option Window for Inspection of List</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part105.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part107.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Using the Inspector </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part106.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part108.htm">Next ></a></p><h2 style="padding-top: 4pt;padding-left: 35pt;text-indent: 0pt;text-align: left;">Using the Inspector </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">If you choose to display your data structure in an edit window, simply edit the structure and exit in the normal manner when done. If you choose to display the data structure in an inspect window, then follow these instructions:</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• To select an item, point the mouse cursor at it and press the left mouse button.</p><p style="padding-top: 7pt;padding-left: 125pt;text-indent: -17pt;text-align: left;">• Items in the right column of an Inspector window can themselves be inspected. To do this, choose the item, and press the center mouse button.</p><p style="padding-top: 7pt;padding-left: 125pt;text-indent: -17pt;text-align: left;">• Items in the right column of an Inspector window can be changed. To do this, choose the corresponding item in the left column, and press the center mouse button. You</p><p style="padding-left: 125pt;text-indent: 0pt;text-align: left;">will be prompted for the new value, and the item will be changed. The sequence of steps is shown in Figure 17-3.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">The item in the lefl column is selected, and the middle mouse button pressed. Select the</p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">SET <span class="p">option from the menu that pops up.</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">You will then be prompted for the new value. Type it in.</p><p style="padding-top: 7pt;padding-bottom: 2pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The item in the right column is updated to the value of what you typed in.</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;"><span><img width="203" height="60" alt="image" src="Image_116.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 234pt;text-indent: 0pt;text-align: left;"><span><img width="203" height="107" alt="image" src="Image_117.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 361pt;text-indent: 0pt;text-align: left;"><span><img width="203" height="60" alt="image" src="Image_118.gif"/></span></p><p style="padding-top: 6pt;padding-left: 113pt;text-indent: 0pt;text-align: left;">Figure 17-3. Steps Involved in Changing Value in Right Column of Inspector Window</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part106.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part108.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>SHOW DATA Command and GRAPHER </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part109.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part111.htm">Next ></a></p><h2 style="padding-top: 4pt;padding-left: 35pt;text-indent: 0pt;text-align: left;">SHOW DATA Command and GRAPHER </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">When the library package <span class="s3">GRAPHER </span>is loaded (to load this package, type <span class="s3">(FILESLOAD GRAPHER)</span>), Masterscope’s <span class="s3">SHOWPATHS </span>command is modified. The command will be</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">changed to generate a tree structure showi ng how the program’s functions interact instead of a tabular printout into the Executive window. For example, typing:</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">. SHOW PATHS FROM ProcessEND</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">produced the display shown in Figure 18-3.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 126pt;text-indent: 0pt;text-align: left;"><span><img width="428" height="152" alt="image" src="Image_128.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 18-3. <span class="s3">SHOW PATHS </span>Display Example</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">All the functions in the display are part of this analyzed file or a previously analyzed file. Boxed functions indicate that the function name has been duplicated in another place on the display.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">Selecting any function name on the display will pretty print the function in a window (see Figure 18-4).</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 126pt;text-indent: 0pt;text-align: left;"><span><img width="428" height="152" alt="image" src="Image_129.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 177pt;text-indent: 0pt;text-align: left;"><span><img width="356" height="86" alt="image" src="Image_130.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 18-4. Browser Printout Example</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Selecting it again with the left mouse button will produce a desription of the function’s role in the overall system (see Figure 18-5).</p><p class="s6" style="padding-top: 3pt;text-indent: 0pt;text-align: right;">18. MASTERSCOPE</p><p style="padding-left: 35pt;text-indent: 0pt;line-height: 1pt;text-align: left;"><span><img width="665" height="1" alt="image" src="Image_131.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 110pt;text-indent: 0pt;text-align: left;"><span><img width="428" height="152" alt="image" src="Image_132.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 188pt;text-indent: 0pt;text-align: left;"><span><img width="259" height="106" alt="image" src="Image_133.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 212pt;text-indent: 0pt;text-align: left;">Figure 18-5. Browser Description Example</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part109.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part111.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>19. WHERE DOES ALL THE TIME GO? SPY</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part110.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part112.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark21">19. WHERE DOES ALL THE TIME GO? SPY</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_134.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">SPY <span class="p">is an Lisp library package that shows you where you spend your time when you run your system. It is easy to learn, and very useful when trying to make programs run</span></p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 11pt;text-align: left;">faster.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part112.htm">How to Use Spy with the SPY Window </a><a class="toc0" href="part113.htm">How to Use SPY from the Lisp Top Level </a><a class="toc0" href="part114.htm">Interpreting SPY’s Results </a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part110.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part112.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>How to Use Spy with the SPY Window </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part111.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part113.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">How to Use Spy with the SPY Window </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">The function <span class="s3">SPY.BUTTON </span>brings up a small window which you will be prompted to position. Using the mouse buttons in this window controls the action of the <span class="s3">SPY</span></p><p style="padding-bottom: 3pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">program. When you are not using <span class="s3">SPY</span>, the window appears as in Figure 19.1.</p><p style="padding-left: 276pt;text-indent: 0pt;text-align: left;"><span><img width="85" height="89" alt="image" src="Image_135.gif"/></span></p><p style="padding-top: 9pt;padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 19.1. <span class="s3">SPY </span>Window When <span class="s3">SPY </span>is Not Being Used</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">To use <span class="s3">SPY</span>, click either the left or middle mouse button with the mouse cursor in the</p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">SPY <span class="p">window. The window will appear as in Figure 19.2, and means that </span>SPY <span class="p">is accumulating data about your program.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 278pt;text-indent: 0pt;text-align: left;"><span><img width="85" height="89" alt="image" src="Image_136.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 19.2. <span class="s3">SPY </span>Window When <span class="s3">SPY </span>is Being Used</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">To turn off <span class="s3">SPY </span>after the program has run, again click a mouse button in the <span class="s3">SPY</span></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">window. The eye closes, and you are asked to position another window. This window contains <span class="s3">SPY</span>’s results. An example of the resulting window is shown in Figure 19.3.</p><p class="s7" style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"> 19. WHERE DOES ALL THE TIME GO? SPY </p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 108pt;text-indent: 0pt;text-align: left;"><span><img width="477" height="204" alt="image" src="Image_137.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 195pt;text-indent: 0pt;text-align: left;">Figure 19.3. Window Produced After Running <span class="s3">SPY</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">This window is scrollable horizontally and vertically. This is useful, since the whole tree does not fit in the window. If a part that you want to see is not shown, you can scroll the window to show the part you want to see.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part111.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part113.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>How to Use SPY from the Lisp Top Level </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part112.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part114.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">How to Use SPY from the Lisp Top Level </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">SPY <span class="p">can also be run while a specific function or system is being used. To do this, type the function </span>WITH.SPY<span class="p">:</span></p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(WITH.SPY <span class="s4">form</span>)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The expression used for form should be the call to begin running the function or system that SPY is to watch. If you watch the <span class="s3">SPY </span>window, the eye will blink! To see your</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">results, run the function <span class="s3">SPY.TREE</span>. To do this, type:</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(SPY.TREE)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">The results of the last running of <span class="s3">SPY </span>will be displayed. If you do this, and <span class="s3">SPY.TREE </span>returns (no <span class="s3">SPY </span>samples have been gathered), your function ran too fast for <span class="s3">SPY </span>to follow.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part112.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part114.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Interpreting SPY’s Results </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part113.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part115.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Interpreting SPY’s Results </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Each node in the tree is a box that contains, first, the percentage of time spent running that particular function, and second, the function name. There are two modes that can be used to display this tree.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The default mode is cumulative. In this mode, each percentage is the amount of time</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">that function spent on top of the stack, plus the amount of time spent by the functions it calls. The second mode is individual. To change the mode to individual, point to the title bar of the window, and press the middle mouse button. Choose <span class="s3">Individual </span>from the menu that appears. In this mode, the percentage shown is the amount of time the</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">function spent on the top of the stack.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">To look at a single branch of the tree, point with the mouse cursor at one of the nodes of the tree, and press the right mouse button. From the menu that appears, choose the</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 35pt;text-indent: 0pt;line-height: 1pt;text-align: left;"><span><img width="665" height="1" alt="image" src="Image_138.png"/></span></p><p class="s8" style="padding-left: 35pt;text-indent: 0pt;text-align: left;">19-2 <span class="s6">Medley for the Novice, Release 2.0</span></p><p class="s7" style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"> 19. WHERE DOES ALL THE TIME GO? SPY</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">option <span class="s3">SubTree</span>. Another <span class="s3">SPY </span>window will appear, with just this branch of the tree in it.</p><p style="padding-top: 6pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Another way to focu s within the tree is to remove branches from the tree. To do this, point to the node at the top of the branch you would like to delete. Press the middle mouse button, and choose <span class="s3">Delete </span>from the menu that appears.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">There are also different amounts of "merging" of functions that can be done in the</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">window. A function can be called by another function more than once. The amount of merging determines where the subfunction, and the functions that it calls, appear in the tree, and how often. (For a detailed explanation of merging, see the <i>Lisp Library Packages Manual</i>.)</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part113.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part115.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>20. FREE MENUS</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part114.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part116.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark22">20. FREE MENUS</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_139.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 15pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Free Menu is a library package that is even more flexible than the regular menu package. It allows you to create menus with different types of items in them, and</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">format s them as you require. Free menus are particularly useful when you want a "fill in the form" type interaction with the user.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Each menu item is described with a list of properties and values. The following example will give you an idea of the structure of the description list, and some of your options.</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">The most commonly used properties, and each type of menu item will be described in the Parts of a Free Menu Item and Types of Free Menu Items section below.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part116.htm">Free Menu Example </a><a class="toc0" href="part117.htm">Parts of a Free Menu Item </a><a class="toc0" href="part118.htm">Types of Free Menu Items </a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part114.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part116.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Parts of a Free Menu Item </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part116.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part118.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Parts of a Free Menu Item </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">There are eight different types of items that you can use in a free menu. No matter</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">what type, the menu item is easily described by a list of properties, and values. Some of the properties you will use most often are listed below:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 191pt;text-indent: -84pt;line-height: 107%;text-align: left;">LABEL <span class="p">Required for every type of menu item. It is the atom, string, or bitmap that appears as a menu selection.</span></p><p class="s3" style="padding-top: 6pt;padding-left: 191pt;text-indent: -84pt;line-height: 107%;text-align: left;">TYPE <span class="p">One of eight types of menu items. Each of these are described in the section below.</span></p><p class="s3" style="padding-top: 6pt;padding-left: 191pt;text-indent: -84pt;line-height: 107%;text-align: left;">MESSAGE <span class="p">The message that appears in the prompt window if a mouse button is held down over the item.</span></p><p class="s3" style="padding-top: 6pt;padding-left: 191pt;text-indent: -84pt;line-height: 107%;text-align: left;">ID <span class="p">An item’s unique identifier. An ID is needed for certain types of menu items.</span></p><p class="s3" style="padding-top: 6pt;padding-left: 191pt;text-indent: -84pt;line-height: 107%;text-align: left;">ITEMS <span class="p">Used to list a series of choices for an </span>NCHOOSE <span class="p">item, and to list the ID’s of the editable items for an </span>EDITSTART <span class="p">item.</span></p><p class="s3" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">SELECTEDFN <span class="p">The name of the function to be called if the item is chosen.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part116.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part118.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>21. THE GRAPHER</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part118.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part120.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark23">21. THE GRAPHER</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_141.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part120.htm">Say it with Graphs </a><a class="toc1" href="part121.htm">Add a Node</a><a class="toc1" href="part122.htm">Add a Link</a><a class="toc1" href="part123.htm">Delete a Link</a><a class="toc1" href="part124.htm">Delete a Node</a><a class="toc1" href="part125.htm">Move a Node</a><a class="toc0" href="part126.htm">Making a Graph from a List </a><a class="toc0" href="part127.htm">Incorporating Grapher into Your Program </a><a class="toc0" href="part128.htm">More of Grapher </a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part118.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part120.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Summary </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part11.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part13.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Summary </h2><p style="padding-top: 6pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">In summary, here are a few rules of thumb to remember about the interactions of the mouse and system menus:</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Press the left mouse button to select a menu item</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Press the middle mouse button to get more options on a submenu</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: -11pt;text-align: left;">• Press the right mouse button to see the default right button window menu, and the background menu</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 209pt;text-indent: 0pt;text-align: left;">[This page intentionally left blank]</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part11.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part13.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>09-FLEXIBILITY</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part11.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part13.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark11">9. MEDLEY FORGIVENESS: DWIM</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_069.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-top: 15pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">DWIM <span class="p">(Do What I Mean) is an Interlisp utility that makes life easier.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">DWIM <span class="p">tries to match unrecognized variable and function names to known ones. This allows Lisp to interpret minor typing errors or misspellings in a function, without</span></p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">causing a break. Line 152 of Figure 9-1 illustrates how the misspelled <span class="s3">BANNANNA </span>was replaced by <span class="s3">BANANA </span>before the expression was evaluated.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 144pt;text-indent: 0pt;text-align: left;"><span><img width="445" height="193" alt="image" src="Image_070.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 219pt;text-indent: 0pt;text-align: left;">Figure 9-1. Examples of <span class="s3">DWIM </span>Features</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">Sometimes <span class="s3">DWIM </span>may alter an expression you didn’t want it to. This may occur if, for</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">example, a hyphenated function name (e.g., <span class="s3">(MY-FUNCTION) </span>) is misused. If the system does not recognize the function name, it may think you are trying to subtract "<span class="s3">FUNCTION</span>" from "<span class="s3">MY</span>". <span class="s3">DWIM </span>also takes the liberty of updating the function, so it will</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">have to be fixed. However, this is as much a blessing as a curse, since it points out the misused expression!</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part11.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part13.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Add a Node</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part120.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part122.htm">Next ></a></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">Add a Node</h3><p style="padding-top: 5pt;padding-bottom: 1pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">Start by selecting <span class="s3">Add Node </span>. Grapher will prompt you for the name of the node (see Figure 21-5.) and then its position.</p><p style="padding-left: 228pt;text-indent: 0pt;text-align: left;"><span><img width="220" height="102" alt="image" src="Image_146.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 21-5. Grapher Prompts for Name of Node to add after Add Node is Chosen from Graph Editing Menu.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">Position the node by moving the mouse cursor to the desired location and clicking a mouse button. Figure 21-6 shows the graph with two nodes added using this menu.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 270pt;text-indent: 0pt;text-align: left;"><span><img width="108" height="80" alt="image" src="Image_147.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 21-6. Two Nodes Added to <span class="s3">MY GRAPH </span>Using GraphEditing Menu</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part120.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part122.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Add a Link</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part121.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part123.htm">Next ></a></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">Add a Link</h3><p style="padding-top: 5pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">Select <span class="s3">Add Link </span>from the graph editing menu. The Prompt window will prompt you to select the two nodes to be linked. (See Figure 21-7.) Do this, and the link will be added.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 157pt;text-indent: 0pt;text-align: left;"><span><img width="408" height="66" alt="image" src="Image_148.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 269pt;text-indent: 0pt;text-align: left;"><span><img width="108" height="80" alt="image" src="Image_149.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 21-7. Prompt Window Requesting Selection of Two Nodes to Link, and Result</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part121.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part123.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Delete a Link</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part122.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part124.htm">Next ></a></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">Delete a Link</h3><p style="padding-top: 5pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">Select <span class="s3">Delete Link </span>from the graph editing menu. ThePrompt window will prompt you to select the two nodes that should no longer be linked. (See Figure 21-8.) Do this, and</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 11pt;text-align: left;">the link will be deleted.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 159pt;text-indent: 0pt;text-align: left;"><span><img width="405" height="58" alt="image" src="Image_150.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 270pt;text-indent: 0pt;text-align: left;"><span><img width="108" height="79" alt="image" src="Image_151.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 21-8. Prompt Window Requesting Selection of Link to Delete, and Result</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part122.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part124.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Delete a Node</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part123.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part125.htm">Next ></a></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">Delete a Node</h3><p style="padding-top: 5pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">Select <span class="s3">Delete Node </span>from the graph editing menu. The Prompt window will prompt you to select the node to be aeleted. (See Figure 21-9.) Do this, and the node will be deletea.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 174pt;text-indent: 0pt;text-align: left;"><span><img width="372" height="38" alt="image" src="Image_152.gif"/></span></p><p style="padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 21.-9. Prompt to Delete a Node</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part123.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part125.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Move a Node</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part124.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part126.htm">Next ></a></p><h3 style="padding-top: 4pt;padding-left: 71pt;text-indent: 0pt;text-align: left;">Move a Node</h3><p style="padding-top: 5pt;padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">Select <span class="s3">Delete Node </span>from the graph editng menu. Choose a node pointing to the it with the mouse cursor, and pressing and holding the leff mouse button. When you move the mouse cursor, the node will be dragged along. When the node is at the new position,</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 11pt;text-align: left;">release the mouse button to deposit the node.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part124.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part126.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Making a Graph from a List </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part125.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part127.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Making a Graph from a List </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Typically, a graph is used to display one of your program’s data structures. Here is how that is done.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 93pt;text-indent: 0pt;text-align: center;">LAYOUTSEXPR <span class="p">takes a list and returns a </span>GRAPH <span class="p">record. The syntax of the function is</span></p><p style="padding-top: 7pt;padding-left: 91pt;text-indent: 0pt;text-align: center;">(<span class="s3">LAYOUTSEXPR </span><i>sexpr format boxing font motherd personald famlyd</i>)</p><p style="padding-top: 8pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">For example:</p><p class="s3" style="padding-top: 8pt;padding-left: 143pt;text-indent: 0pt;line-height: 88%;text-align: left;">(SETQ ANIMAL.TREE ’(ANIMAL (MAMMAL DOG CAT) BIRD FISH)) (SETQ ANIMAL.GRAPH</p><p class="s3" style="padding-left: 143pt;text-indent: 30pt;line-height: 88%;text-align: left;">(LAYOUTSEXPR ANIMAL.TREE ’HORIZONTAL)) (SHOWGRAPH ANIMAL.GRAPH "My Graph" NIL NIL NIL T)</p><p style="padding-top: 6pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">This is how Figure 21.1 was produced.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part125.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part127.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Incorporating Grapher into Your Program </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part126.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part128.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Incorporating Grapher into Your Program </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The Grapher is designed to be built into other programs. It can call functions when, for example, a mouse button is clicked on a node. The function <span class="s3">SHOWGRAPH </span>does this:</p><p class="s3" style="padding-top: 7pt;padding-left: 166pt;text-indent: -23pt;line-height: 107%;text-align: left;">(SHOWGRAPH <span class="s4">graph window lefibuttonfn middlebuttonfn topjustifyflg alloweditflg copybuttoneventfn</span>)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">For example, the third argument to <span class="s3">SHOWGRAPH </span>, <i>leftbuttonfn</i>, is a function that is called when the left mouse button is pressed in the graph window. Try this:</p><p class="s3" style="padding-top: 7pt;padding-left: 173pt;text-indent: -30pt;line-height: 88%;text-align: left;">(DEFINEQ (My.LEFT.BUTT0N.FUNCTION (THE.GRAPHNODE THE.GRAPH.WINDOW)</p><p class="s3" style="padding-left: 203pt;text-indent: 0pt;line-height: 10pt;text-align: left;">(INSPECT THE.GRAPHNODE)))</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 173pt;text-indent: -30pt;line-height: 88%;text-align: left;">(SHOWGRAPH FAMILY.GRAPH "Inspectable family" (FUNCTION MY.LEFT.BUTTON.FUNCTION)</p><p class="s3" style="padding-left: 203pt;text-indent: 0pt;line-height: 10pt;text-align: left;">NIL NIL T)</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 95pt;text-indent: 0pt;text-align: center;">In the example above, <span class="s3">MY.LEFT.BUTTON.FUNCTION </span>simply calls the inspector. The</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">function should be written assuming it will be passed a graphnode and the window that holds the graph. Try adding a function of your own.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part126.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part128.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>More of Grapher </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part127.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part129.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">More of Grapher </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Some other Library packages make use of the Grapher. (Grapher needs to be loaded with the packages to use these functions.)</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 119pt;text-indent: -12pt;line-height: 107%;text-align: left;">• <span class="s3">MASTERSCOPE</span>: The Browser package modifies the Masterscope command, <span class="s3">. SHOW PATHS</span>, so that its output is displayed as a graph (using Grapher) instead of simply printed.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">• <span class="s3">GRAPHZOOM</span>: allows a graph to be redisplayed larger or smaller automatically.</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part127.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part129.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>22. RESOURCE MANAGEMENT</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part128.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part130.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark24">22. RESOURCE MANAGEMENT</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_153.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part130.htm">Naming Variables and Records </a><a class="toc0" href="part131.htm">Some Space and Time Considerations </a><a class="toc1" href="part132.htm">Global Variables</a><a class="toc1" href="part133.htm">Circular Lists</a><a class="toc1" href="part134.htm">When You Run Out of Space</a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part128.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part130.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Some Space and Time Considerations </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part130.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part132.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Some Space and Time Considerations </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">In order for your program to run at maximum speed, you must efficiently use the space available on the system. The following section points out areas that you may not know are wasting valuable space, and tips on how to prevent this waste.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Often programs are written so that new data structures are created each time the</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">program is run. This is wasteful. Write your programs so that they only create new variables and other data structures conditionally. If a structure has already been</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">created, use it instead of creating a new one.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Some time and space can be saved by changing your <span class="s3">RECORD </span>and <span class="s3">TYPERECORD</span></p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: justify;">declarations to <span class="s3">DATATYPE </span>. <span class="s3">DATATYPE </span>is used the same way as the functions <span class="s3">RECORD </span>and <span class="s3">TYPERECORD</span>. In addition, the same <span class="s3">FETCH </span>and <span class="s3">REPLACE </span>commands can be used with the data structure <span class="s3">DATATYPE </span>creates. The difference is that the data structure</p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">DATATYPE <span class="p">creates cannot be treated as a list the way </span>RECORD <span class="p">s and </span>TYPERECORD<span class="p">s can.</span></p><p class="s6" style="padding-top: 3pt;text-indent: 0pt;text-align: right;">22. RESOURCE MANAGEMENT</p><p style="padding-left: 35pt;text-indent: 0pt;line-height: 1pt;text-align: left;"><span><img width="665" height="1" alt="image" src="Image_156.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part132.htm">Global Variables</a><a class="toc0" href="part133.htm">Circular Lists</a><a class="toc0" href="part134.htm">When You Run Out of Space</a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part130.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part132.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Global Variables</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part131.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part133.htm">Next ></a></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">Global Variables</h3><p style="padding-top: 8pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Once defined, global variables remain until Lisp is reloaded. Avoid using global</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">variables if at all possible! One specific problem arises when programs use the function</p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">GENSYM<span class="p">. In program development, many atoms are created that may no longer be useful. Hints:</span></p><p style="padding-top: 6pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Use</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(DELDEF <span class="s4">atomname </span>’PROP)</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: 0pt;text-align: left;">to delete property lists, and</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(DELDEF <span class="s4">atomname </span>’VARS)</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: 0pt;text-align: left;">to have the atom act like it is not defined.</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: 0pt;text-align: left;">These not only remove the definition from memory, but also change the appropriate <span class="s3">fileCOMS </span>that the deleted object was associated with so that the file package will not attempt to save the object (function, variable, record definition, and so forth) the next time the file is made. J ust doing something like</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(SETQ (<span class="s4">arg atomname</span>) ’NOBIND)</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: 0pt;line-height: 107%;text-align: left;">looks like it will have the same effect as the second <span class="s3">DELDEF </span>above, but the <span class="s3">SETQ </span>does not update the file package.</p><p style="padding-top: 6pt;padding-left: 119pt;text-indent: -11pt;line-height: 107%;text-align: left;">• If you are generating atom names with <span class="s3">GENSYM </span>, try to keep a list of the atom names that are no longer needed. Reuse these atom names, before generating new ones.</p><p style="padding-left: 119pt;text-indent: 0pt;text-align: left;">There is a (fairly large) maximum to the number of atoms you can have, but things slow down considerably when you create lots of atoms.</p><p style="padding-top: 6pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• When possible, use a data structure such as a list or an array, instead of many</p><p style="padding-left: 119pt;text-indent: 0pt;text-align: left;">individual atoms. Such a structure has only one pointer to it. Once this pointer is</p><p style="padding-left: 119pt;text-indent: 0pt;text-align: left;">removed, the whole structure will be garbage-collected and space will be reclaimed.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part131.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part133.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Circular Lists</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part132.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part134.htm">Next ></a></p><h3 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">Circular Lists</h3><p style="padding-top: 8pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">If your program is creating circular lists, a lot of space may be wasted. (Many</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">crosslinked data structures end up having circularities.) Hints when using circular lists:</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: -11pt;text-align: left;">• Write a function to remove pointers that make lists circular when you are through with the circular list.</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: -10pt;text-align: left;">• If you are working with circular lists of windows, bind your main window to a unique global variable. Write window creation conditionally so that if the binding of that</p><p style="padding-left: 119pt;text-indent: 0pt;text-align: left;">variable is already a window, use it, and only create a new window if that variable is unbound or <span class="s3">NIL</span>.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">Here is an example that illustrates the problem. When several auxilIary windows are built, pointers to these windows are usually kept on the main window’s property list.</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">Each auxilIary window also typically keeps a pointer to the main window on its</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">property list If the top level function creates windows rather than reusing existing ones, there will be many lists of useless windows cluttering the work space. Or, if such a main window is closed and will not be used again, you will have to break the links by deleting the relevant properties from both the main window and all of the auxiliary windows</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: justify;">first. This is usually done by putting a special <span class="s3">CLOSEFN </span>on the main window and all of its auxiliary windows.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part132.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part134.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>When You Run Out of Space</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part133.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part135.htm">Next ></a></p><h3 style="padding-top: 4pt;padding-left: 71pt;text-indent: 0pt;text-align: left;">When You Run Out of Space</h3><p style="padding-top: 8pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">Typically, if you generato a lot of structure! that won’t get garbage collected, you will eventually run out of space. The important part ii being aNe to track down those</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">structures and the code that generates them to become more space efficient.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: justify;">Use the Lisp Library Package <span class="s3">GCHAX.DCOM </span>to track down pointers to data structures. The basic idea is that <span class="s3">GCHAX </span>will return the number of references to a particular data structure.</p><p style="padding-top: 6pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">A special function exists that allows you to get a little extra space so that you can try to save your work when you get toward the edge (usually noted by a message indicating</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">that you should save your work and load a new Medley environment). The <span class="s3">GAINSPACE</span></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">function allows you to delete non-essential data structures. To use it, type:</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(GAINSPACE)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">into the Executive Window. Answer <span class="s3">N </span>to all questions except the followi ng.</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Delete edit history</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Delete history list.</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Delete values of old variables.</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Delete your <span class="s3">MASTERSCOPE </span>database</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Delete information for undoing your greeting.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Save your work and reload Lisp as soon as possible.</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part133.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part135.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>23. SIMPLE INTERACTIONS WITH THE CURSOR, A BITMAP, AND A WINDOW</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part134.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part136.htm">Next ></a></p><h1 style="padding-top: 5pt;padding-left: 71pt;text-indent: -36pt;line-height: 87%;text-align: left;"><a name="bookmark25">23. SIMPLE INTERACTIONS WITH THE CURSOR, A BITMAP, AND A WINDOW</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_157.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 15pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The purpose of this chapter is to show you how to build a moderately tricky interactive interface with the various Medley display facilities. In particular how to move a large</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">bitmap (larger than 16 x 16 pixels) around inside a window. To do this, you will change the <span class="s3">CURSORINFN </span>and <span class="s3">CURSOROUTFN </span>properties of the window. If you would also like to then set the bitmap in place in the window, you must reset the <span class="s3">BUTTONEVENTFN </span>. This chapter explains how to create the mobile bitmap.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part136.htm">GETMOUSESTATE Example Function </a><a class="toc0" href="part137.htm">Advising GETMOUSESTATE </a><a class="toc0" href="part138.htm">Changing the Cursor </a><a class="toc0" href="part139.htm">Functions for Tracing the Cursor </a><a class="toc0" href="part140.htm">Running the Functions </a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part134.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part136.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>GETMOUSESTATE Example Function </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part135.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part137.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">GETMOUSESTATE Example Function </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">One function that you will use to "trace the cursor" (have a bitmap follow the cursor around in a window) is <span class="s3">GETMOUSESTATE</span>. This function finds the current state of the. mouse, and resets global system variables, such as <span class="s3">LASTMOUSEX </span>and <span class="s3">LASTMOUSEY</span>.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">As an example of how this function works, create a window by typing</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(SETQ EXAMPLE.WINDOW (CREATEW))</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">into the Executive Window, and sweeping out a window. Now, type in the function</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;line-height: 11pt;text-align: left;">(DEFINEQ (PRINTCOORDS (W)</p><p class="s3" style="padding-left: 173pt;text-indent: 0pt;line-height: 88%;text-align: left;">(PROMPTPRINT "(" LASTMOUSEX ", "LASTMOUSEY ")") (BLOCK)</p><p class="s3" style="padding-left: 173pt;text-indent: 0pt;line-height: 10pt;text-align: left;">(GETMOUSESTATE)))</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">This function calls <span class="s3">GETMOUSESTATE </span>and then prints the new values of <span class="s3">LASTMOUSEX </span>and</p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">LASTMOUSEY <span class="p">in the promptwindow. To use it, type</span></p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(WINDOWPROP EXAMPLE.WINDOW ’CURSORMOVEDFN ’PRINTCOORDS)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">The window property <span class="s3">CURSORMOVEDFN</span>, used in this example, will evaluate the function <span class="s3">PRINTCOORDS </span>each time the cursor is moved when it is inside the window. The position coordinates of the mouse cursor will appear in the prompt window. (See Figure 23.1.)</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 128pt;text-indent: 0pt;text-align: left;">Figure 23.1. Current Position Coordinates of Mouse Cursor in Prompt Window</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part135.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part137.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Advising GETMOUSESTATE </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part136.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part138.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Advising GETMOUSESTATE </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">For the bitmap to follow the moving mouse cursor, the function <span class="s3">GETMOUSESTATE </span>is advised. When you advise a function, you can add new commands to the function</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 11pt;text-align: left;">without knowing how it is actually implemented. The syntax for advise is</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(ADVISE <span class="s4">fn when where what</span>)</p><p class="s4" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">fn <span class="p">is the name of the function to be augmented. </span>when <span class="p">and </span>where <span class="p">are optional</span></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">arguments. <i>when </i>specifies whether the change should be made before, after, or around the body of the function. The values expected are <span class="s3">BEFORE </span>, <span class="s3">AFTER</span>, or <span class="s3">AROUND</span>.</p><p class="s4" style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">what <span class="p">specifies the additional code.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">In the example, the additional code, <i>what</i>, moves the bitmap to the position of the</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">mouse cursor. The function <span class="s3">GETNOUSESTATE </span>will be <span class="s3">ADVISE</span>d when the mouse moves</p><p style="padding-left: 106pt;text-indent: 0pt;line-height: 106%;text-align: left;">into the window. This will cause the bitmap to follow the mouse cursor. <span class="s3">ADVISE </span>will be undone when the mouse leaves the window or when a mouse button is pushed. The <span class="s3">ADVISE</span>ing will be done and undone by changing the <span class="s3">CURSORINFN </span>, <span class="s3">CURSOROUTFN</span>, and <span class="s3">BUTTONEVENTFN </span>for the window.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part136.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part138.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Changing the Cursor </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part137.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part139.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Changing the Cursor </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">One last part of the example, to give the impression that a bitmap is dragged around a window, the original cursor should disappear. Try typing:</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(CURSOR (CURSORCREATE (BITMAPCREATE 1 l) 1 1]</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">into the Executive Window. This causes the original cursor to disappear. It reappears when you type</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(CURSOR T)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">When the cursor is invisible, and the bitmap moves as the cursor moves, the illusion is given that the bitmap is dragged around the window.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part137.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part139.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Running the Functions </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part139.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part141.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Running the Functions </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">To run the functions you just typed in, first set a variable to a window by typing something like</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(SETQ EXAMPLE.WINDOW (CREATEW))</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">into the Executive Window, and sweeping out a new window. Now, set a variable to a bitmap, by typing, perhaps,</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(SETQ EXAMPLE.BTM (EDITBM))</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Type</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(Estab1ish/Trace/Data EXAMPLE.WINDOW EXAMPLE.BTM))</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">When you move the cursor into the window, the cursor will drag the bitmap.</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">(If you want to be able to make menu selections while tracing the cursor, make sure</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">that the hotspot of the cursor is set to the extreme right of the bitmap. Otherwise, the menu will be destroyed by the <span class="s3">BITBLT </span>s of the trace functions.)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">To stop tracing, do one of the following:</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Move the mouse cursor out of the window</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Press the right mouse button</p><p style="padding-top: 7pt;padding-left: 108pt;text-indent: 0pt;text-align: left;">• Call the function <span class="s3">UNTRACE/CURSOR</span></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part139.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part141.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>24. GLOSSARY OF GLOBAL SYSTEM VARIABLES</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part140.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part142.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark26">24. GLOSSARY OF GLOBAL SYSTEM VARIABLES</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_158.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 15pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">As you can tell by now, there are many system variables in Medley that are useful to know. The following sections gather many of the important variables together into</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">groups relating to directory searching, system flags, history lists, system menus, windows, and, of course, the catchall miscellaneous category.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part142.htm">Directories </a><a class="toc0" href="part143.htm">Flags </a><a class="toc0" href="part144.htm">History Lists </a><a class="toc0" href="part145.htm">System Menus </a><a class="toc0" href="part146.htm">Windows </a><a class="toc0" href="part147.htm">Miscellaneous </a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part140.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part142.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Directories </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part141.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part143.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Directories </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-top: 5pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">DISPLAYFONTDIRECTORIES</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;line-height: 106%;text-align: justify;">Its value is a list of directories to search for the bitmap files for display font s. Usually, it contains the <span class="s3">FONT </span>directory where you copies the bitmap files (see Chapter 16), and the current connected directory. The current connected</p><p style="padding-left: 143pt;text-indent: 0pt;line-height: 12pt;text-align: justify;">directory is specified by the atom <span class="s3">NIL</span>. Here is an example value of</p><p class="s3" style="padding-left: 143pt;text-indent: 0pt;text-align: left;">DISPLAYFONTDIRECTORIES<span class="p">.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 142pt;text-indent: 0pt;text-align: left;"><span><img width="450" height="256" alt="image" src="Image_159.gif"/></span></p><p style="padding-left: 107pt;text-indent: 62pt;line-height: 186%;text-align: left;">Figure 24.1. Value for the Atom <span class="s3">DISPLAYFONTDIRECTORIES INTERPRESSFONTDIRECTORIES</span></p><p style="padding-left: 143pt;text-indent: 0pt;line-height: 10pt;text-align: justify;">Is set to a list of directories to search for the font width files for InterPress font s.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">DIRECTORIES</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">This variable is bound to a list of the directories you will be using (see Figure 24-2). The system uses this variable when it is trying to find a file to load. It checks each directory in the list, until the file is foun d. <span class="s3">NIL </span>in list means to check the current connected directory.</p><p class="s3" style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">LISPUSERSDIRECTORIES</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">Its value is a list of directories to search for library package files.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part141.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part143.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>History Lists </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part143.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part145.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">History Lists </h2><p class="s3" style="padding-top: 10pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">LISPXHISTORY</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">Originally set to the list <span class="s3">(NIL 0 30 100) </span>, with the following argument</p><p style="padding-left: 143pt;text-indent: 0pt;line-height: 107%;text-align: left;">interpretation. The <span class="s3">NIL </span>is the list (implemented as a circular queue) to which the top level commands append. 0 is the current prompt number. 30 is the</p><p style="padding-left: 143pt;text-indent: 0pt;line-height: 11pt;text-align: left;">maximum length of the history list. 100 is the highest number used as a</p><p style="padding-left: 143pt;text-indent: 0pt;text-align: left;">prompt. This is a system maintained list used by the programmers assistant commands <span class="s3">REDO</span>, <span class="s3">UNDO</span>, <span class="s3">FIX</span>, and ?? use to retrieve past function calls.</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;line-height: 107%;text-align: left;">To delete the history list, reset the variable <span class="s3">LISPXHISTORY </span>to its original value of <span class="s3">(NIL 0 30 100)</span>.</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">Setting this variable to <span class="s3">NIL </span>disables all the programmers assistant features.</p><p class="s3" style="padding-top: 10pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">EDITHISTORY</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;line-height: 107%;text-align: left;">This is also set to (<span class="s3">NIL 0 30 100</span>), and has the same description as <span class="s3">LISPXHISTORY</span>. This list allows you to <span class="s3">UNDO </span>edits. You reset this the same way as <span class="s3">LISPXHISTORY</span>.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part143.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part145.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>System Menus </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part144.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part146.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">System Menus </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">System menus are all bound to global varieables and are easy to modyfy. If the menu name is set to the <span class="s3">NIL </span>value, the menu will be recreated using an items list bound to a global variable.</p><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">To change a system menu, edit the items list bound to the appropriate global variable (system menus use this items list with the default <span class="s3">WHENSELECTEDFN </span>), then set the</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">value of the name to NIL. The next time you need the menu, it will be created from the items list you just edited. The names of system menus and the items lists follow.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">BackgroundMenu</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">This is the variable bound to the menu this displays when you press the right button in the grey background area of the screen.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">BackgroundMenuCommands</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;line-height: 107%;text-align: left;">This list is used for the list of <span class="s3">ITEMS </span>for the background menu when it is created.</p><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">WindowMenu</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">This is the variable bound to the default window menu displayed when the right mouse button is pressed inside of a window.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">WindowMenuCommands</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">This is the list of <span class="s3">ITEM</span>S for the WindowMenu.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">BreakMenu</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">The menu displayed when the middle mouse button is pressed in a break</p><p style="padding-left: 143pt;text-indent: 0pt;text-align: left;">window.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">BreakMenuCommands</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">The list of <span class="s3">ITEM </span>for the BreakMenu.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part144.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part146.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Windows </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part145.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part147.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Windows </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-top: 5pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">PROMPTWINDOW</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">Global name of the prompt window.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-top: 5pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">T</p><p style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">Although the value <span class="s3">T </span>has several meanings (such as universal <span class="s3">TRUE</span>), it also</p><p style="padding-left: 143pt;text-indent: 0pt;text-align: left;">stands for the standard output stream. As this is usually the executive window, it may be used as the name for the TTY Window at the top level. Mouse</p><p style="padding-left: 143pt;text-indent: 0pt;line-height: 106%;text-align: left;">processes have their own TTY Windows. A reference to the window T in a mouse driven function (e.g., a <span class="s3">WHENSELECTEFN</span>, Chapter 12) will open a TTY Window for Mouse.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part145.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part147.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Right Button Default Window Menu </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part28.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part30.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Right Button Default Window Menu </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Position the cursor inside the window you just created, and press and hold the right mouse button. A menu of commands should appear (do not release the right button!), like the one in Figure 6-4. To execute one of the commands on this menu, choose the item. Making a choice from a menu is explained in Chapter 3.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 288pt;text-indent: 0pt;text-align: left;"><span><img width="71" height="122" alt="image" src="Image_046.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 202pt;text-indent: 0pt;text-align: left;">Figure 6-4 Right Button Default Window Menu</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">As an example, select "Move" from this menu. The mouse cursor will become a ghost window (ju st an outline of a window, the same size as the one you are moving), with a square attached to one corner, like the one shown in Figure 6-5.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 305pt;text-indent: 0pt;text-align: left;"><span><img width="16" height="16" alt="image" src="Image_047.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 6-5 Mouse Cursor for Moving a Window</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Move the mouse around. The ghost window will follow. Click the left mouse button to place tho window in a new location.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 106pt;text-indent: 0pt;text-align: left;">Choose "Shape", and notice that you are prompted to sweep out another window. Your original window will have the shape of the window you sketch out.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part28.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part30.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Explanation of Each Menu Item </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part29.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part31.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Explanation of Each Menu Item </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">The meaning of each right button default window menu item is explained below:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">Close Removes the window from the screen</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 165%;text-align: left;">Snap Copies a portion of the screen into a new window Paint Allows drawing in a window</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 165%;text-align: left;">Clear Clears the window by erasing everything within the window boundaries Bury Puts the window beneath all other windows that overlap it</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">Redisplay Redisplays the window contents</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 165%;text-align: left;">Hardcopy Sends the contents of the window to a printer or to a flle Move Allows the wi ndow to be moved to a new spot on the screen Shape Repositions and/or reshapes the window</p><p style="padding-bottom: 2pt;padding-left: 179pt;text-indent: -72pt;text-align: left;">Shrink Reduces the window to a small black rectangle called an icon, or, if appropriate, to the shape for that window type (see Figure 6-6).</p><p style="padding-left: 271pt;text-indent: 0pt;text-align: left;"><span><img width="87" height="95" alt="image" src="Image_048.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 111pt;text-indent: 0pt;text-align: center;">Figure 6-6 Example Icon</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 178pt;text-indent: -71pt;text-align: justify;">Expand Changes an icon back to its original window. Position the mouse cursor on the icon, depress the right button, and select Expand. Or, just button the icon with the middle mouse button.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">These right-button default window menu selections are available in most windows, including the Executive Window. When the right button has other functions in a</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">window (as in an editor window), the right button default window menu should be accessible by pressing the Right button in the black border at the top of the window.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part29.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part31.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Other Window Functions </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part31.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part33.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Other Window Functions </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part33.htm">PROMPTPRlNT</a><a class="toc0" href="part34.htm">(PROMPTPRINT "THIS WILL BE PRINTED IN THE PROMPT WINDOW")</a><a class="toc0" href="part35.htm">WHlCHW</a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part31.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part33.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>PROMPTPRlNT</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part32.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part34.htm">Next ></a></p><h4 style="padding-top: 4pt;padding-left: 71pt;text-indent: 0pt;text-align: left;">PROMPTPRlNT</h4><p style="padding-top: 8pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Prints an expression to the black prompt window.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">For example, type</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part32.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part34.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>(PROMPTPRINT "THIS WILL BE PRINTED IN THE PROMPT WINDOW")</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part33.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part35.htm">Next ></a></p><p class="s9" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">(PROMPTPRINT "THIS WILL BE PRINTED IN THE PROMPT WINDOW")</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">The message will appear in the prompt window. (See Figure 6-12.)</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 199pt;text-indent: 0pt;text-align: left;"><span><img width="299" height="101" alt="image" src="Image_054.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 170pt;text-indent: 0pt;text-align: left;"><span><img width="376" height="101" alt="image" src="Image_055.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 241pt;text-indent: 0pt;text-align: left;">Figure 6-12 <span class="s3">PROMPTPRINT</span>ing</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part33.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part35.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>WHlCHW</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part34.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part36.htm">Next ></a></p><h4 style="padding-left: 71pt;text-indent: 0pt;text-align: left;">WHlCHW</h4><p style="padding-top: 8pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Returns as a value the name of the window that the mouse cursor IS in.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">(WHICHW) <span class="p">can be used as an argument to any function expecting a window, or to</span></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">reclaim a window that has no name (that is not attached to some particular part of the program.).</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part34.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part36.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>7. EDITING AND SAVING</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part35.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part37.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark9">7. EDITING AND SAVING</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_056.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 15pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">This chapter explains how to define functions, how to edit them, and how to save your work.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part37.htm">Defining Functions </a><a class="toc0" href="part38.htm">Simple Editing in the Executive Window </a><a class="toc0" href="part39.htm">Using the List Structure Editor </a><a class="toc0" href="part40.htm">Commenting Functions </a><a class="toc0" href="part41.htm">File Functions and Variables: How to See and Save Them </a><a class="toc0" href="part42.htm">File Variables </a><a class="toc0" href="part43.htm">Saving Interlisp-D on Files </a><a class="toc1" href="part44.htm">(FILES?)</a><a class="toc1" href="part45.htm">(MAKEFILE ’MY.FILE.NAME)</a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part35.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part37.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Defining Functions </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part36.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part38.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Defining Functions </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">DEFUN <span class="p">can be used to define new functions. The syntax for it is:</span></p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(DEFUN (<functionname> (<parameter-list><body-of-function>))</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: justify;">New functions can be created with <span class="s3">DEFUN </span>by typing directly into the Executive Window. Once defined, a function is a part of the Medley environment. For example, the function <span class="s3">EXAMPLE-ADDER </span>is defined in Figure 7-1.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 160pt;text-indent: 0pt;text-align: left;"><span><img width="397" height="126" alt="image" src="Image_057.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 193pt;text-indent: 0pt;text-align: left;">Figure 7-1. Defining the Function <span class="s3">EXAMPLE-ADDER</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">Now that the function is defined, it can be called from the Executive Window:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 162pt;text-indent: 0pt;text-align: left;"><span><img width="397" height="126" alt="image" src="Image_058.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 55pt;line-height: 164%;text-align: left;">Figure 7-2.. After <span class="s3">EXAMPLE-ADDER </span>is defined, it can he executed The function returns 6, after printing out the message.</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">Functions can also be defined using the editor DEdit described above. To do this, simply type</p><p class="s3" style="padding-top: 7pt;padding-left: 142pt;text-indent: 0pt;text-align: left;"><span class="p">(</span>ED <span class="s4">function-name ’</span>FUNCTIONS<span class="p">)</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">You will be told that no definition exists for the function, and a menu will pop up asking you what type of function you would like to create:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 163pt;text-indent: 0pt;text-align: left;"><span><img width="394" height="164" alt="image" src="Image_059.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 215pt;text-indent: 0pt;text-align: left;">Figure 7-3 Selecting a Function Template</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Selecting the appropriate type will pop up an editor window with a function template. The use of the editor is explained in the Using the List Structure Editor section below.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part36.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part38.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Commenting Functions </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part39.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part41.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Commenting Functions </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Text can be marked as a comment by typing a semi-colon before the text of the comment.</p><p class="s3" style="padding-top: 6pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">; This is the form of a comment</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Inside an editor window, the comment will be printed in a different font and may be moved to the far right of the code. SEdit is familiar with the Common Lisp convention of single comments being on the far right, double comments being justified with the</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">function level, and triple comments being on the far left, as is shown in Figure 7-8.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 192pt;text-indent: 0pt;text-align: left;"><span><img width="317" height="146" alt="image" src="Image_064.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 228pt;text-indent: 0pt;text-align: left;">Figure 7-8. Placement of Comments</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">There are other editor commands which can be very useful. To learn about them, read Appendix B of the <i>Release Notes</i>.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part39.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part41.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>File Functions and Variables: How to See and Save Them </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part40.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part42.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">File Functions and Variables: How to See and Save Them </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">With Medley, all work is done inside the Lisp environment. There is no operating system or command level other than the Executive Window. All functions and data</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">structures are defined and edited using normal Lisp commands. This sertion describes tools in the Medley environment that will keep track of any changes that you make in the environment that you have not yet saved on files, such as defining new functions,</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">changing the values of variables, or adding new variables. And it then has you save the changes in a file you specify. All of these functions are in the <span class="s3">INTERLISP </span>(<span class="s3">IL:</span>) package.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part40.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part42.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>File Variables </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part41.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part43.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">File Variables </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Certain system-defined global variables are used by the file package to keep track of the environment as it stands. You can get system information by checking the values of</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">these variables. Two important variables follow.</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: -11pt;line-height: 107%;text-align: left;">• <span class="s3">FILELST </span>evaluates to a list, all files that yoU have loaded into the Medley environment.</p><p style="padding-top: 6pt;padding-left: 119pt;text-indent: -10pt;line-height: 106%;text-align: left;">• <i>filename</i><span class="s3">COMS </span>(Each file loaded into the Lisp environment has associated with it a global variable, whose name is formed by appending <span class="s3">COMS </span>to the end of the filename.) This variable evaluates to a list of all the functions, variables, bitmaps, windows, and soon, that are stored on that particular file.</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: 0pt;text-align: left;">For example, if you type:</p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">MYFILECOMS</p><p style="padding-top: 7pt;padding-left: 119pt;text-indent: 0pt;text-align: left;">the system will respond with something like:</p><p class="s3" style="padding-top: 7pt;padding-left: 149pt;text-indent: -6pt;line-height: 106%;text-align: left;">((FNS YOUR-FIRST-FUNCTION ) VARS))</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part41.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part43.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Saving Interlisp-D on Files </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part42.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part44.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Saving Interlisp-D on Files </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">The functions <span class="s3">(FILES?) </span>and <span class="s3">(MAKEFILE </span>’<i>filename</i><span class="s3">) </span>are useful when it is time to save function, variables, windows, bitmaps, records and whatever else to files.</p><p class="s3" style="padding-top: 6pt;padding-left: 179pt;text-indent: -69pt;line-height: 107%;text-align: left;">(FILES?) <span class="p">displays a list of variables that have values and are not already a part of any file, and then the functions that are not already part of any file.</span></p><p style="padding-top: 6pt;padding-left: 179pt;text-indent: 0pt;text-align: left;">Type:</p><p class="toc"> </p><div class="toc"><a class="toc0" href="part44.htm">(FILES?)</a><a class="toc0" href="part45.htm">(MAKEFILE ’MY.FILE.NAME)</a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part42.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part44.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>(FILES?)</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part43.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part45.htm">Next ></a></p><p class="s9" style="padding-top: 7pt;padding-left: 203pt;text-indent: 0pt;text-align: left;">(FILES?)</p><p style="padding-top: 7pt;padding-left: 179pt;text-indent: 0pt;text-align: left;">the system will respond with something like:</p><p class="s3" style="padding-top: 7pt;padding-left: 203pt;text-indent: 0pt;line-height: 106%;text-align: left;">the variables: MY.VARIABLE CURRENT.TURTLE...to be dumped</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-top: 5pt;padding-left: 203pt;text-indent: 0pt;line-height: 106%;text-align: left;">the functions: RIGHT LEFT FORWARD BACKWARD CLEAR-SCREEN...to be dumped</p><p class="s3" style="padding-top: 7pt;padding-left: 203pt;text-indent: 0pt;text-align: left;">want to say where the above go?</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 179pt;text-indent: 0pt;text-align: left;">If you type Y, the system will prompt with each item. There are three options:</p><p style="padding-top: 7pt;padding-left: 197pt;text-indent: -17pt;text-align: left;">1. To save the item, type the filename (unquoted) of the file where the item should be placed. (This can be a brand new file or an existing file.)</p><p style="padding-top: 7pt;padding-left: 179pt;text-indent: 0pt;text-align: left;">2. To skip the item, without removing it from consideration the next</p><p style="padding-left: 197pt;text-indent: 0pt;line-height: 107%;text-align: left;">time <span class="s3">(FILES?) </span>is called, type crø This will allow you to postpone the decision about where to save the item.</p><p style="padding-top: 6pt;padding-left: 197pt;text-indent: -18pt;text-align: left;">3. If the item should not be saved at all, type ]. Nowhere will appear after the item.</p><p style="padding-top: 7pt;padding-left: 179pt;text-indent: 0pt;text-align: left;">Part of an example interaction is shown in the following figure:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 128pt;text-indent: 0pt;text-align: left;"><span><img width="487" height="274" alt="image" src="Image_065.gif"/></span></p><p style="padding-top: 6pt;padding-left: 172pt;text-indent: 0pt;text-align: left;">Figure 7-9. Part of an interaction using the function <span class="s3">FILES?</span></p><p class="s3" style="padding-top: 7pt;padding-left: 179pt;text-indent: 0pt;text-align: left;">(FILES?) <span class="p">assembles the items by adding them to the appropriate file’s</span></p><p class="s3" style="padding-left: 179pt;text-indent: 0pt;line-height: 107%;text-align: left;">COMS <span class="p">variable (see the File Variables section above). </span>(FILES?) <span class="p">does NOT write the file to secondary storage (disks or floppies). It only</span></p><p style="padding-left: 179pt;text-indent: 0pt;text-align: left;">upclates the global variables discussed in the File Variables section above.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">(MAKEFILE ’filename)</p><p style="padding-top: 7pt;padding-left: 179pt;text-indent: 0pt;line-height: 165%;text-align: left;">actually writes the file to secondary storage. Type:</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part43.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part45.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>(MAKEFILE ’MY.FILE.NAME)</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part44.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part46.htm">Next ></a></p><p class="s9" style="padding-left: 34pt;text-indent: 0pt;line-height: 11pt;text-align: center;">(MAKEFILE ’MY.FILE.NAME)</p><p style="padding-top: 7pt;padding-left: 179pt;text-indent: 0pt;text-align: left;">and the system will create the file. The function returns the full name of the file created. (i.e. <span class="s3">{DSK}MY.FlLE.NAME.; 1 </span>).</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 179pt;text-indent: 0pt;line-height: 107%;text-align: left;">Files written to <span class="s3">(DSK) </span>are permanent files. They can be removed only by the user deleting them or by reformatting the disk.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">Other file manipulation functions can be foun d in Chapter 4.</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part44.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part46.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>8. YOUR INIT FILE</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part45.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part47.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark10">8. YOUR INIT FILE</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_066.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">Lisp has a number of global variables that control the environment. Global variables make it easy to customize the environment to fit your needs. One way to do this is to</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: justify;">develop an <span class="s3">INIT </span>file. This is a file that is loaded when you start an image. You can use it to set variables, load files, define functions, and any other things that you want to do to make the Medley environment suit you.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part47.htm">Using the USERGREETFILES Variable </a><a class="toc0" href="part48.htm">Making an Init File </a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part45.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part47.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Using the USERGREETFILES Variable </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part46.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part48.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Using the USERGREETFILES Variable </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">As described in File Variables section of Chapter 11, each program file has a global Your <span class="s3">INIT </span>file could be called <span class="s3">INIT</span>, <span class="s3">INIT.LISP</span>, <span class="s3">INIT.USER</span>, or whatever the</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">convention is at your site. There is no default name preferred by the system, it just</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">looks for the files listed in the variable <span class="s3">USERGREETFILES </span>(see below). Check to see what the preference is at your site. Put this file in your directory. Your directory name should be the same as your login name. The <span class="s3">INIT </span>file is loaded by the function <span class="s3">GREET</span>. <span class="s3">GREET </span>is normally run when Medley is started. If this is not the case at your site, or you want</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">to use the machine and Medley has already been started, you can run the function</p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;text-align: left;">GREET <span class="p">yourself. If your user name was, for example, </span>TURING <span class="p">, then you would type:</span></p><p class="s3" style="padding-top: 7pt;padding-left: 143pt;text-indent: 0pt;text-align: left;">(GREET ’TURING)</p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">This does a number of things, including undoing any previous greeting operation,</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">loading the site init file, and loading your init file. Where <span class="s3">GREET </span>looks for your INIT file depends on the value of the variable <span class="s3">USERGREETFILES</span>. The value of this variable is set when the system’s <span class="s3">SYSOUT </span>file is made, so check its value at your site! For example, its value could be:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 197pt;text-indent: 0pt;text-align: left;"><span><img width="236" height="89" alt="image" src="Image_067.gif"/></span></p><p style="padding-top: 9pt;padding-left: 202pt;text-indent: 0pt;text-align: left;">Figure 8-1. Possible Value of <span class="s3">USERGREETFILES</span></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">In each place you see <span class="s3">>USER></span>, the argument passed to <span class="s3">GREET </span>is substituted into the path. This is your login name if you are just starting Medley. For example, the first value in the list would have the system check to see whether there was a</p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">{DSK}<LISPFlLES>TURING>INIT.LISP <span class="p">file. No error is generated if you do not have an </span>INIT <span class="p">file, and none of the files in </span>USERGREETFILES <span class="p">are foun d.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part46.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part48.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>9. MEDLEY FORGIVENESS: DWIM</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part48.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part50.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark11">9. MEDLEY FORGIVENESS: DWIM</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_069.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-top: 15pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">DWIM <span class="p">(Do What I Mean) is an Interlisp utility that makes life easier.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="s3" style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">DWIM <span class="p">tries to match unrecognized variable and function names to known ones. This allows Lisp to interpret minor typing errors or misspellings in a function, without</span></p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 107%;text-align: left;">causing a break. Line 152 of Figure 9-1 illustrates how the misspelled <span class="s3">BANNANNA </span>was replaced by <span class="s3">BANANA </span>before the expression was evaluated.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 144pt;text-indent: 0pt;text-align: left;"><span><img width="445" height="193" alt="image" src="Image_070.gif"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 219pt;text-indent: 0pt;text-align: left;">Figure 9-1. Examples of <span class="s3">DWIM </span>Features</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">Sometimes <span class="s3">DWIM </span>may alter an expression you didn’t want it to. This may occur if, for</p><p style="padding-left: 107pt;text-indent: 0pt;line-height: 106%;text-align: left;">example, a hyphenated function name (e.g., <span class="s3">(MY-FUNCTION) </span>) is misused. If the system does not recognize the function name, it may think you are trying to subtract "<span class="s3">FUNCTION</span>" from "<span class="s3">MY</span>". <span class="s3">DWIM </span>also takes the liberty of updating the function, so it will</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: left;">have to be fixed. However, this is as much a blessing as a curse, since it points out the misused expression!</p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part48.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part50.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>10. BREAKPACKAGE</title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part49.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part51.htm">Next ></a></p><h1 style="padding-top: 3pt;padding-left: 35pt;text-indent: 0pt;text-align: left;"><a name="bookmark12">10. BREAKPACKAGE</a></h1><p style="padding-left: 35pt;text-indent: 0pt;line-height: 6pt;text-align: left;"><span><img width="640" height="8" alt="image" src="Image_071.png"/></span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 15pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">The Break Package is a part of Interlisp that makes debugging your programs much easier.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="toc"> </p><div class="toc"><a class="toc0" href="part51.htm">Break Windows </a><a class="toc0" href="part52.htm">Break Package Example </a><a class="toc0" href="part53.htm">Ways to Stop Execution from the Keyboard (Breaking Lisp) </a><a class="toc0" href="part54.htm">Break Menu </a><a class="toc0" href="part55.htm">Returning to Top Level </a></div><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part49.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part51.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Break Windows </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part50.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part52.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Break Windows </h2><p style="padding-top: 9pt;padding-left: 107pt;text-indent: 0pt;text-align: justify;">A break is a function either called by the programmer or by the system when an error has occurred. A separate window opens for each break. This window works much like the Executive Window, except for extra menus unique to a break window. Inside a</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">break window, you can examine variables, look at the call stack at the time of the</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">break, or call the editor. Each successive break opens a new window, where you can execute functions without disturbing the original system stack. These windows</p><p style="padding-left: 107pt;text-indent: 0pt;text-align: justify;">disappear when you resolve the break and return to a higher level.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part50.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part52.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Ways to Stop Execution from the Keyboard (Breaking Lisp) </title><link href="navigation.css" rel="stylesheet" type="text/css"/><link href="document.css" rel="stylesheet" type="text/css"/></head><body><p class="top_nav"><a href="part52.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part54.htm">Next ></a></p><h2 style="padding-left: 35pt;text-indent: 0pt;text-align: left;">Ways to Stop Execution from the Keyboard (Breaking Lisp) </h2><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 4pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">There are ways you can stop execution from the keyboard. They differ in terms of how much of the current operating state is saved:</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 7pt;padding-left: 107pt;text-indent: 0pt;text-align: left;">Control-G Provides you with a menu of processes to interrupt. Your process will</p><p style="padding-left: 179pt;text-indent: 0pt;line-height: 107%;text-align: left;">usually be "<span class="s3">EXEC</span>". Choose it to break your process. A break window will then appear.</p><p style="padding-top: 9pt;padding-left: 179pt;text-indent: -71pt;text-align: left;">Control-B Causes your function to break, saves the stack, then displays a break window with all the usual break functions. For information on other interrupt characcers, see Chapter 30 in the <i>IRM</i>.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><p class="nav"> </p><p class="nav"> </p><p class="nav"><a href="part52.htm">< Previous</a><span> | </span><a href="../Medley-Primer.html">Contents</a><span> | </span><a href="part54.htm">Next ></a></p><p class="nav"> </p></body></html>
|
||||
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user