comparison man/new-users-guide/files.texi @ 290:c9fe270a4101 r21-0b43

Import from CVS: tag r21-0b43
author cvs
date Mon, 13 Aug 2007 10:36:47 +0200
parents 376386a54a3c
children
comparison
equal deleted inserted replaced
289:6e6992ccc4b6 290:c9fe270a4101
69 with the specified name will be created. If you do not wish to create a 69 with the specified name will be created. If you do not wish to create a
70 new directory, then simply press @kbd{C-g} to quit the 70 new directory, then simply press @kbd{C-g} to quit the
71 command. Similarly, you can also remove a directory by using the command 71 command. Similarly, you can also remove a directory by using the command
72 @kbd{remove-directory}. The command @kbd{M-x pwd} will print the current 72 @kbd{remove-directory}. The command @kbd{M-x pwd} will print the current
73 buffer's default directory. For more information on file names, 73 buffer's default directory. For more information on file names,
74 @xref{File Names,,,,XEmacs User's Manual}. 74 @xref{File Names,,,xemacs,XEmacs User's Manual}.
75 75
76 76
77 @node Visiting, Saving Files, File Names, Files 77 @node Visiting, Saving Files, File Names, Files
78 @section Visiting Files 78 @section Visiting Files
79 @cindex visiting files 79 @cindex visiting files
195 @end table 195 @end table
196 196
197 You can also undo all the changes made since the file was visited or 197 You can also undo all the changes made since the file was visited or
198 saved by reading the text from the file again (called 198 saved by reading the text from the file again (called
199 @dfn{reverting}). For more information on this option, 199 @dfn{reverting}). For more information on this option,
200 @xref{Reverting,,,,XEmacs User's Manual}. 200 @xref{Reverting,,,xemacs,XEmacs User's Manual}.
201 201
202 @vindex make-backup-files 202 @vindex make-backup-files
203 When you save a file in Emacs, it destroys its old contents. However, 203 When you save a file in Emacs, it destroys its old contents. However,
204 if you set the variable @var{make-backup-files} to non-@var{nil} 204 if you set the variable @var{make-backup-files} to non-@var{nil}
205 i.e. @samp{t}, Emacs will create a @dfn{backup} file. Select the 205 i.e. @samp{t}, Emacs will create a @dfn{backup} file. Select the
207 documentation for this variable. Its default value should be 207 documentation for this variable. Its default value should be
208 @samp{t}. However, if its not then use @kbd{M-x set-variable} to set it 208 @samp{t}. However, if its not then use @kbd{M-x set-variable} to set it
209 to @samp{t} (@pxref{Setting Variables}). The backup file will contain 209 to @samp{t} (@pxref{Setting Variables}). The backup file will contain
210 the contents from the last time you visited the file. Emacs also 210 the contents from the last time you visited the file. Emacs also
211 provides options for creating numbered backups. For more information on 211 provides options for creating numbered backups. For more information on
212 backups, @xref{Backup,,,,XEmacs User's Manual}. 212 backups, @xref{Backup,,,xemacs,XEmacs User's Manual}.
213 213
214 @cindex auto saving 214 @cindex auto saving
215 Emacs also saves all the files from time to time so that in case of a 215 Emacs also saves all the files from time to time so that in case of a
216 system crash you don't lose lot of your work. You will see the message 216 system crash you don't lose lot of your work. You will see the message
217 @samp{Auto-saving...} displayed in the echo area when the buffer is 217 @samp{Auto-saving...} displayed in the echo area when the buffer is
218 being saved automatically. The auto saved files are named by putting the 218 being saved automatically. The auto saved files are named by putting the
219 character @samp{#} in front and back. For example a file called 219 character @samp{#} in front and back. For example a file called
220 "myfile.texinfo" would be named as @file{#myfile.texinfo#}. For 220 "myfile.texinfo" would be named as @file{#myfile.texinfo#}. For
221 information on controlling auto-saving and recovering data from 221 information on controlling auto-saving and recovering data from
222 auto-saving, @xref{Auto Save Files,,,,XEmacs User's Manual}. 222 auto-saving, @xref{Auto Save Files,,,xemacs,XEmacs User's Manual}.
223 223
224 @cindex simultaneous editing 224 @cindex simultaneous editing
225 Emacs provides protection from simultaneous editing which occurs if 225 Emacs provides protection from simultaneous editing which occurs if
226 two users are visiting the same file and trying to save their 226 two users are visiting the same file and trying to save their
227 changes. It will put a lock on a file which is being visited and 227 changes. It will put a lock on a file which is being visited and
228 modified. If any other user tries to modify that file, it will inform 228 modified. If any other user tries to modify that file, it will inform
229 the user about the lock and provide some 229 the user about the lock and provide some
230 options. For more information on protection against simultaneous 230 options. For more information on protection against simultaneous
231 editing, @xref{Interlocking,,,,XEmacs User's Manual}. 231 editing, @xref{Interlocking,,,xemacs,XEmacs User's Manual}.
232 232
233 233
234 234
235 235
236 236