comparison lispref/files.texi @ 71957:61cb5aae3bc3

Put period and comma inside quotes.
author Richard M. Stallman <rms@gnu.org>
date Tue, 18 Jul 2006 00:08:15 +0000
parents 7a02f6176795
children 29c73296a044 8a8e69664178
comparison
equal deleted inserted replaced
71956:1caee6e0cbe1 71957:61cb5aae3bc3
656 file that is locked by another Emacs job, and ask the user what to do. 656 file that is locked by another Emacs job, and ask the user what to do.
657 The file lock is really a file, a symbolic link with a special name, 657 The file lock is really a file, a symbolic link with a special name,
658 stored in the same directory as the file you are editing. 658 stored in the same directory as the file you are editing.
659 659
660 When you access files using NFS, there may be a small probability that 660 When you access files using NFS, there may be a small probability that
661 you and another user will both lock the same file ``simultaneously''. 661 you and another user will both lock the same file ``simultaneously.''
662 If this happens, it is possible for the two users to make changes 662 If this happens, it is possible for the two users to make changes
663 simultaneously, but Emacs will still warn the user who saves second. 663 simultaneously, but Emacs will still warn the user who saves second.
664 Also, the detection of modification of a buffer visiting a file changed 664 Also, the detection of modification of a buffer visiting a file changed
665 on disk catches some cases of simultaneous editing; see 665 on disk catches some cases of simultaneous editing; see
666 @ref{Modification Time}. 666 @ref{Modification Time}.
1679 @end group 1679 @end group
1680 @end example 1680 @end example
1681 @end defun 1681 @end defun
1682 1682
1683 @defun file-name-extension filename &optional period 1683 @defun file-name-extension filename &optional period
1684 This function returns @var{filename}'s final ``extension'', if any, 1684 This function returns @var{filename}'s final ``extension,'' if any,
1685 after applying @code{file-name-sans-versions} to remove any 1685 after applying @code{file-name-sans-versions} to remove any
1686 version/backup part. The extension, in a file name, is the part that 1686 version/backup part. The extension, in a file name, is the part that
1687 starts with the last @samp{.} in the last name component (minus 1687 starts with the last @samp{.} in the last name component (minus
1688 any version/backup part). 1688 any version/backup part).
1689 1689
2651 2651
2652 The handler function must handle all of the above operations, and 2652 The handler function must handle all of the above operations, and
2653 possibly others to be added in the future. It need not implement all 2653 possibly others to be added in the future. It need not implement all
2654 these operations itself---when it has nothing special to do for a 2654 these operations itself---when it has nothing special to do for a
2655 certain operation, it can reinvoke the primitive, to handle the 2655 certain operation, it can reinvoke the primitive, to handle the
2656 operation ``in the usual way''. It should always reinvoke the primitive 2656 operation ``in the usual way.'' It should always reinvoke the primitive
2657 for an operation it does not recognize. Here's one way to do this: 2657 for an operation it does not recognize. Here's one way to do this:
2658 2658
2659 @smallexample 2659 @smallexample
2660 (defun my-file-handler (operation &rest args) 2660 (defun my-file-handler (operation &rest args)
2661 ;; @r{First check for the specific operations} 2661 ;; @r{First check for the specific operations}