69 |
</p> |
</p> |
70 |
<a name="IDX527"></a> |
<a name="IDX527"></a> |
71 |
<a name="IDX528"></a> |
<a name="IDX528"></a> |
72 |
<p> Emacs is also able to handle "remote files" which are stored on |
<p> Emacs is also able to handle “remote files” which are stored on |
73 |
other hosts. Not only is Emacs somewhat aware of the special issues |
other hosts. Not only is Emacs somewhat aware of the special issues |
74 |
involved with network file systems, but it can also use FTP and ssh (or |
involved with network file systems, but it can also use FTP and ssh (or |
75 |
rsh) to make local copies of the files, and refresh them on the remote |
rsh) to make local copies of the files, and refresh them on the remote |
100 |
</td></tr> |
</td></tr> |
101 |
<tr><td align="left" valign="top"><a href="#SEC162">14.8 Comparing Files</a></td><td> </td><td align="left" valign="top"> Finding where two files differ. |
<tr><td align="left" valign="top"><a href="#SEC162">14.8 Comparing Files</a></td><td> </td><td align="left" valign="top"> Finding where two files differ. |
102 |
</td></tr> |
</td></tr> |
103 |
<tr><td align="left" valign="top"><a href="#SEC163">14.9 Dired, the Directory Editor</a></td><td> </td><td align="left" valign="top"> "Editing" a directory to delete, rename, etc. |
<tr><td align="left" valign="top"><a href="#SEC163">14.9 Dired, the Directory Editor</a></td><td> </td><td align="left" valign="top"> “Editing” a directory to delete, rename, etc. |
104 |
the files in it. |
the files in it. |
105 |
</td></tr> |
</td></tr> |
106 |
<tr><td align="left" valign="top"><a href="#SEC168">14.10 Miscellaneous File Operations</a></td><td> </td><td align="left" valign="top"> Other things you can do on files. |
<tr><td align="left" valign="top"><a href="#SEC168">14.10 Miscellaneous File Operations</a></td><td> </td><td align="left" valign="top"> Other things you can do on files. |
502 |
different buffer; in that case, the buffer name is not changed. |
different buffer; in that case, the buffer name is not changed. |
503 |
<code>set-visited-file-name</code> does not save the buffer in the newly |
<code>set-visited-file-name</code> does not save the buffer in the newly |
504 |
visited file; it just alters the records inside Emacs so that it will |
visited file; it just alters the records inside Emacs so that it will |
505 |
save the buffer in that file. It also marks the buffer as "modified" |
save the buffer in that file. It also marks the buffer as “modified” |
506 |
so that <kbd>C-x C-s</kbd> <i>will</i> save. |
so that <kbd>C-x C-s</kbd> <i>will</i> save. |
507 |
</p> |
</p> |
508 |
<a name="IDX566"></a> |
<a name="IDX566"></a> |
571 |
<p> Because Unix does not provide version numbers in file names, rewriting a |
<p> Because Unix does not provide version numbers in file names, rewriting a |
572 |
file in Unix automatically destroys all record of what the file used to |
file in Unix automatically destroys all record of what the file used to |
573 |
contain. Thus, saving a file from Emacs throws away the old contents of |
contain. Thus, saving a file from Emacs throws away the old contents of |
574 |
the file--or it would, except that Emacs carefully copies the old contents |
the file—or it would, except that Emacs carefully copies the old contents |
575 |
to another file, called the <em>backup</em> file, before actually saving. |
to another file, called the <em>backup</em> file, before actually saving. |
576 |
(Make sure that the variable <code>make-backup-files</code> is non-<code>nil</code>. |
(Make sure that the variable <code>make-backup-files</code> is non-<code>nil</code>. |
577 |
Backup files are not written if this variable is <code>nil</code>). |
Backup files are not written if this variable is <code>nil</code>). |
897 |
may be in a totally different context than your last edits before |
may be in a totally different context than your last edits before |
898 |
reversion. |
reversion. |
899 |
</p> |
</p> |
900 |
<p>A buffer reverted from its visited file is marked "not modified" until |
<p>A buffer reverted from its visited file is marked “not modified” until |
901 |
you make a change. The buffer's modes will also be recalculated, by |
you make a change. The buffer's modes will also be recalculated, by |
902 |
<code>normal-mode</code>. |
<code>normal-mode</code>. |
903 |
</p> |
</p> |
1287 |
<p> When you are finished editing the file, type <kbd>C-x C-q</kbd> again. |
<p> When you are finished editing the file, type <kbd>C-x C-q</kbd> again. |
1288 |
When used on a file that is checked out, this command checks the file |
When used on a file that is checked out, this command checks the file |
1289 |
in. But check-in does not start immediately; first, you must enter the |
in. But check-in does not start immediately; first, you must enter the |
1290 |
<em>log entry</em>--a description of the changes in the new version. |
<em>log entry</em>—a description of the changes in the new version. |
1291 |
<kbd>C-x C-q</kbd> pops up a buffer for you to enter this in. When you are |
<kbd>C-x C-q</kbd> pops up a buffer for you to enter this in. When you are |
1292 |
finished typing in the log entry, type <kbd>C-c C-c</kbd> to terminate it; this is |
finished typing in the log entry, type <kbd>C-c C-c</kbd> to terminate it; this is |
1293 |
when actual check-in takes place. |
when actual check-in takes place. |
1309 |
</p> |
</p> |
1310 |
<p> It is not impossible to lock a file that someone else has locked. If |
<p> It is not impossible to lock a file that someone else has locked. If |
1311 |
you try to check out a file that is locked, <kbd>C-x C-q</kbd> asks you |
you try to check out a file that is locked, <kbd>C-x C-q</kbd> asks you |
1312 |
whether you want to "steal the lock." If you say yes, the file |
whether you want to “steal the lock.” If you say yes, the file |
1313 |
becomes locked by you, but a message is sent to the person who had |
becomes locked by you, but a message is sent to the person who had |
1314 |
formerly locked the file, to inform him of what has happened. The mode |
formerly locked the file, to inform him of what has happened. The mode |
1315 |
line indicates that a file is locked by someone else by displaying the |
line indicates that a file is locked by someone else by displaying the |
1369 |
<a name="IDX600"></a> |
<a name="IDX600"></a> |
1370 |
<p> To specify the version number for a subsequent checkin, use the |
<p> To specify the version number for a subsequent checkin, use the |
1371 |
command <kbd>C-u C-x v v</kbd>. <kbd>C-x v v</kbd> (<code>vc-next-action</code>) is the |
command <kbd>C-u C-x v v</kbd>. <kbd>C-x v v</kbd> (<code>vc-next-action</code>) is the |
1372 |
command that <kbd>C-x C-q</kbd> uses to do the "real work" when the visited |
command that <kbd>C-x C-q</kbd> uses to do the “real work” when the visited |
1373 |
file uses version control. When used for checkin, and given a prefix |
file uses version control. When used for checkin, and given a prefix |
1374 |
argument, it reads the version number with the minibuffer. |
argument, it reads the version number with the minibuffer. |
1375 |
</p> |
</p> |
1825 |
</p></dd> |
</p></dd> |
1826 |
</dl> |
</dl> |
1827 |
|
|
1828 |
<p> A snapshot uses a very small amount of resources--just enough to record |
<p> A snapshot uses a very small amount of resources—just enough to record |
1829 |
the list of file names and which version belongs to the snapshot. Thus, |
the list of file names and which version belongs to the snapshot. Thus, |
1830 |
you need not hesitate to create snapshots whenever they are useful. |
you need not hesitate to create snapshots whenever they are useful. |
1831 |
</p> |
</p> |
1939 |
each string in the list is inserted as a separate header on a line of |
each string in the list is inserted as a separate header on a line of |
1940 |
its own. |
its own. |
1941 |
</p> |
</p> |
1942 |
<p> It is often necessary to use "superfluous" backslashes when writing |
<p> It is often necessary to use “superfluous” backslashes when writing |
1943 |
the strings that you put in this variable. This is to prevent the |
the strings that you put in this variable. This is to prevent the |
1944 |
string in the constant from being interpreted as a header itself if the |
string in the constant from being interpreted as a header itself if the |
1945 |
Emacs Lisp file containing it is maintained with version control. |
Emacs Lisp file containing it is maintained with version control. |
2081 |
type <kbd>C-c C-c</kbd> to find the corresponding source location. You can |
type <kbd>C-c C-c</kbd> to find the corresponding source location. You can |
2082 |
also use the other special commands of Compilation mode: <kbd>SPC</kbd> and |
also use the other special commands of Compilation mode: <kbd>SPC</kbd> and |
2083 |
<kbd>DEL</kbd> for scrolling, and <kbd>M-p</kbd> and <kbd>M-n</kbd> for cursor motion. |
<kbd>DEL</kbd> for scrolling, and <kbd>M-p</kbd> and <kbd>M-n</kbd> for cursor motion. |
2084 |
See section <a href="xemacs_25.html#SEC252">Running "make", or Compilers Generally</a>. |
See section <a href="xemacs_25.html#SEC252">Running “make”, or Compilers Generally</a>. |
2085 |
</p> |
</p> |
2086 |
<a name="IDX626"></a> |
<a name="IDX626"></a> |
2087 |
<p> The command <kbd>M-x diff-backup</kbd> compares a specified file with its most |
<p> The command <kbd>M-x diff-backup</kbd> compares a specified file with its most |
2200 |
<p> Once the Dired buffer exists, you can switch freely between it and other |
<p> Once the Dired buffer exists, you can switch freely between it and other |
2201 |
Emacs buffers. Whenever the Dired buffer is selected, certain special |
Emacs buffers. Whenever the Dired buffer is selected, certain special |
2202 |
commands are provided that operate on files that are listed. The Dired |
commands are provided that operate on files that are listed. The Dired |
2203 |
buffer is "read-only", and inserting text in it is not useful, so |
buffer is “read-only”, and inserting text in it is not useful, so |
2204 |
ordinary printing characters such as <kbd>d</kbd> and <kbd>x</kbd> are used for Dired |
ordinary printing characters such as <kbd>d</kbd> and <kbd>x</kbd> are used for Dired |
2205 |
commands. Most Dired commands operate on the file described by the line |
commands. Most Dired commands operate on the file described by the line |
2206 |
that point is on. Some commands perform operations immediately; others |
that point is on. Some commands perform operations immediately; others |
2207 |
"flag" a file to be operated on later. |
“flag” a file to be operated on later. |
2208 |
</p> |
</p> |
2209 |
<p> Most Dired commands that operate on the current line's file also treat a |
<p> Most Dired commands that operate on the current line's file also treat a |
2210 |
numeric argument as a repeat count, meaning to act on the files of the |
numeric argument as a repeat count, meaning to act on the files of the |