Mercurial > emacs
comparison lispref/files.texi @ 83533:02e39decdc84
Merged from emacs@sv.gnu.org
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-351
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-352
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-353
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-354
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-355
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-356
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-357
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-358
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-359
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-360
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-361
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-362
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-363
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-364
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-365
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-366
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-367
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-368
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-369
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-370
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-115
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-116
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-117
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-118
Merge from emacs--devo--0
* emacs@sv.gnu.org/gnus--rel--5.10--patch-119
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-120
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-573
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sat, 29 Jul 2006 09:59:12 +0000 |
parents | 61cb5aae3bc3 |
children | 29c73296a044 8a8e69664178 |
comparison
equal
deleted
inserted
replaced
83532:b19aaf4ab0ee | 83533:02e39decdc84 |
---|---|
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} |