This file is indexed.

/usr/share/doc/racket/drracket/drracket-files.html is in racket-doc 6.1-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>3.4&nbsp;DrRacket Files</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_0&quot;);">&#9658;</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">Dr<span class="mywbr"> &nbsp;</span>Racket:<span class="mywbr"> &nbsp;</span> The Racket Programming Environment</a></td></tr></table></div><div class="tocviewsublisttop" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="interface-essentials.html" class="tocviewlink" data-pltdoc="x">Interface Essentials</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="languages.html" class="tocviewlink" data-pltdoc="x">Languages</a></td></tr><tr><td align="right">3&nbsp;</td><td><a href="Interface_Reference.html" class="tocviewselflink" data-pltdoc="x">Interface Reference</a></td></tr><tr><td align="right">4&nbsp;</td><td><a href="extending-drracket.html" class="tocviewlink" data-pltdoc="x">Extending Dr<span class="mywbr"> &nbsp;</span>Racket</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_1&quot;);">&#9660;</a></td><td>3&nbsp;</td><td><a href="Interface_Reference.html" class="tocviewlink" data-pltdoc="x">Interface Reference</a></td></tr></table><div class="tocviewsublist" style="display: block;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">3.1&nbsp;</td><td><a href="Menus.html" class="tocviewlink" data-pltdoc="x">Menus</a></td></tr><tr><td align="right">3.2&nbsp;</td><td><a href="prefs-explanation.html" class="tocviewlink" data-pltdoc="x">Preferences</a></td></tr><tr><td align="right">3.3&nbsp;</td><td><a href="Keyboard_Shortcuts.html" class="tocviewlink" data-pltdoc="x">Keyboard Shortcuts</a></td></tr><tr><td align="right">3.4&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x">Dr<span class="mywbr"> &nbsp;</span>Racket Files</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_2&quot;);">&#9658;</a></td><td>3.4&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x">Dr<span class="mywbr"> &nbsp;</span>Racket Files</a></td></tr></table><div class="tocviewsublistbottom" style="display: none;" id="tocview_2"><table cellspacing="0" cellpadding="0"><tr><td align="right">3.4.1&nbsp;</td><td><a href="#%28part._drracket-file-formats%29" class="tocviewlink" data-pltdoc="x">Program Files</a></td></tr><tr><td align="right">3.4.2&nbsp;</td><td><a href="#%28part._drracket-autosave-files%29" class="tocviewlink" data-pltdoc="x">Backup and Autosave Files</a></td></tr><tr><td align="right">3.4.3&nbsp;</td><td><a href="#%28part._.Preference_.Files%29" class="tocviewlink" data-pltdoc="x">Preference Files</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber">3.4.1<tt>&nbsp;</tt></span><a href="#%28part._drracket-file-formats%29" class="tocsubseclink" data-pltdoc="x">Program Files</a></td></tr><tr><td><span class="tocsublinknumber">3.4.2<tt>&nbsp;</tt></span><a href="#%28part._drracket-autosave-files%29" class="tocsubseclink" data-pltdoc="x">Backup and Autosave Files</a></td></tr><tr><td><span class="tocsublinknumber">3.4.3<tt>&nbsp;</tt></span><a href="#%28part._.Preference_.Files%29" class="tocsubseclink" data-pltdoc="x">Preference Files</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="Keyboard_Shortcuts.html" title="backward to &quot;3.3 Keyboard Shortcuts&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="Interface_Reference.html" title="up to &quot;3 Interface Reference&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="extending-drracket.html" title="forward to &quot;4 Extending DrRacket&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div><h4 x-source-module="(lib &quot;scribblings/drracket/drracket.scrbl&quot;)" x-part-tag="&quot;drracket-files&quot;">3.4<tt>&nbsp;</tt><a name="(part._drracket-files)"></a>DrRacket Files</h4><h5 x-source-module="(lib &quot;scribblings/drracket/drracket.scrbl&quot;)" x-part-tag="&quot;drracket-file-formats&quot;">3.4.1<tt>&nbsp;</tt><a name="(part._drracket-file-formats)"></a>Program Files</h5><p>The standard <a name="(idx._(gentag._393._(lib._scribblings/drracket/drracket..scrbl)))"></a>file extension for a Racket program file is
<a name="(idx._(gentag._394._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">".rkt"</span>. The extensions <a name="(idx._(gentag._395._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">".ss"</span>,
<a name="(idx._(gentag._396._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">".scm"</span>, and <a name="(idx._(gentag._397._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">".sch"</span> are also historically
popular.</p><p>DrRacket&rsquo;s editor can save a program file in two different formats:</p><ul><li><p><a name="(tech._plain._text._file._format)"></a><span style="font-style: italic">Plain-text file format</span> &#8212;<wbr></wbr> All text editors can read
this format. DrRacket saves a program in plain-text format by
default, unless the program contains images or text boxes.
(Plain-text format does not preserve images or text boxes.)</p><p>Plain-text format is platform-specific because different
platforms have different newline conventions. However, most
tools for moving files across platforms support a &ldquo;text&rdquo;
transfer mode that adjusts newlines correctly.</p></li><li><p><a name="(tech._multimedia._file._format)"></a><span style="font-style: italic">Multimedia file format</span> &#8212;<wbr></wbr> This format is specific to
DrRacket, and no other editor recognizes it. DrRacket saves a
program in multimedia format by default when the program
contains images, text boxes, or formatted text.</p><p>Multimedia format is platform-independent, and it uses an ASCII
encoding (so that different ways of transferring the file are
unlikely to corrupt the file).</p></li></ul><h5 x-source-module="(lib &quot;scribblings/drracket/drracket.scrbl&quot;)" x-part-tag="&quot;drracket-autosave-files&quot;">3.4.2<tt>&nbsp;</tt><a name="(part._drracket-autosave-files)"></a>Backup and Autosave Files</h5><p>When you modify an existing file in DrRacket and save it, DrRacket
copies the old version of the file to a special backup file if no
backup file exists. The backup file is saved in the same directory as
the original file, and the backup file&rsquo;s name is generated from the
original file&rsquo;s name:</p><ul><li><p>On Unix and Mac OS X, a <span class="stt">"~"</span> is added to the end of
the file&rsquo;s name.</p></li><li><p>On Windows, the file&rsquo;s extension is replaced with
<span class="stt">".bak"</span>.</p></li></ul><p>Every five minutes, DrRacket checks each open file. If any file is
modified and not saved, DrRacket saves the file to a special autosave
file (just in case there is a power failure or some other catastrophic
error). If the file is later saved, or if the user exists DrRacket
without saving the file, the autosave file is removed. The autosave
file is saved in the same directory as the original file, and the
autosave file&rsquo;s name is generated from the original file&rsquo;s name:</p><ul><li><p>On Unix and Mac OS X, a <span class="stt">"#"</span> is added to the start
and end of the file&rsquo;s name, then a number is added after the
ending <span class="stt">"#"</span>, and then one more <span class="stt">"#"</span> is appended
after the number. The number is selected to make the autosave
filename unique.</p></li><li><p>On Windows, the file&rsquo;s extension is replaced with a number
to make the autosave filename unique.</p></li></ul><p><div class="SIntrapara">If the definitions window is modified and there is no current file,
then an autosave file is written to the user&rsquo;s &ldquo;documents&rdquo;
directory. </div><div class="SIntrapara"><blockquote class="refpara"><blockquote class="refcolumn"><blockquote class="refcontent"><p>The &ldquo;documents&rdquo; directory is determined by
<span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Filesystem.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._find-system-path%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">find-system-path</a></span><span class="stt"> </span><span class="RktVal">'</span><span class="RktVal">doc-dir</span><span class="RktPn">)</span>.</p></blockquote></blockquote></blockquote></div></p><h5 x-source-module="(lib &quot;scribblings/drracket/drracket.scrbl&quot;)" x-part-tag="&quot;Preference_Files&quot;">3.4.3<tt>&nbsp;</tt><a name="(part._.Preference_.Files)"></a>Preference Files</h5><p>On start-up, DrRacket reads configuration information from a
preferences file. The name and location of the preferences file
depends on the platform and user:</p><blockquote class="refpara"><blockquote class="refcolumn"><blockquote class="refcontent"><p>The expression <span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Filesystem.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._find-system-path%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">find-system-path</a></span><span class="stt"> </span><span class="RktVal">'</span><span class="RktVal">pref-file</span><span class="RktPn">)</span>
returns the platform- and user-specific preference file path.</p></blockquote></blockquote></blockquote><ul><li><p>On Unix, preferences are stored in a
<a name="(idx._(gentag._398._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">".racket"</span> subdirectory in the user&rsquo;s home
directory, in a file <a name="(idx._(gentag._399._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">"racket-prefs.rktd"</span>.</p></li><li><p>On Windows, preferences are stored in a file
<a name="(idx._(gentag._400._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">"racket-prefs.rktd"</span> in a sub-directory
<a name="(idx._(gentag._401._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">"Racket"</span> in the user&rsquo;s application-data folder as
specified by the Windows registry; the application-data folder is
usually <a name="(idx._(gentag._402._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">"Application Data"</span> in the user&rsquo;s profile
directory, and that directory is usually hidden in the Windows GUI.</p></li><li><p>On Mac OS X, preferences are stored in
<a name="(idx._(gentag._403._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">"org.racket-lang.prefs.rktd"</span> in the user&rsquo;s preferences
folder.</p></li></ul><p>A lock file is used while modifying the preferences file, and it is
created in the same directory as the preferences file. On Windows,
the lock file is named <a name="(idx._(gentag._404._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">"_LOCKracket-prefs.rktd"</span>; on Unix,
it is <a name="(idx._(gentag._405._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">".LOCK.racket-prefs.rktd"</span>; on Mac OS X, it is
<a name="(idx._(gentag._406._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">".LOCK.org.racket-lang.prefs.rktd"</span>.</p><p>If the user-specific preferences file does not exist, and the file
<a name="(idx._(gentag._407._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="stt">"racket-prefs.rktd"</span> in the <span class="stt">"defaults"</span> collection
does exist, then it is used for the initial preference settings.  (See
<a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=collects.html&amp;version=6.1" class="Sq" data-pltdoc="x">Libraries and Collections</a> for more information about collections.) This file thus
allows site-specific configuration for preference defaults. To set up
such a configuration, start DrRacket and configure the preferences to
your liking.  Then, exit DrRacket and copy your preferences file into
the <span class="stt">"defaults"</span> collection as
<span class="stt">"racket-prefs.rktd"</span>. Afterward, users who have no preference
settings already will get the preference settings that you chose.</p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="Keyboard_Shortcuts.html" title="backward to &quot;3.3 Keyboard Shortcuts&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="Interface_Reference.html" title="up to &quot;3 Interface Reference&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="extending-drracket.html" title="forward to &quot;4 Extending DrRacket&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>