aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStefan Monnier2016-09-02 11:44:13 -0400
committerStefan Monnier2016-09-02 11:44:13 -0400
commit5a4bffb6617a274ca19bc7f5c1b1ceb6345651ab (patch)
treee46b22767dd63377aa2ae58c845a9e2e29cb000e /doc
parent7dc4c3ba3fd243efa51fe8c2092b4a030be8307d (diff)
downloademacs-5a4bffb6617a274ca19bc7f5c1b1ceb6345651ab.tar.gz
emacs-5a4bffb6617a274ca19bc7f5c1b1ceb6345651ab.zip
Check actual contents before promting about changed file
* lisp/userlock.el (userlock--check-content-unchanged) (userlock--ask-user-about-supersession-threat): New functions. * src/filelock.c (lock_file): Use them to avoid spurious prompting. * doc/lispref/buffers.texi (Modification Time): Update doc of ask-user-about-supersession-threat.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/buffers.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi
index 740d7cfd8a1..e4ef4d5db6e 100644
--- a/doc/lispref/buffers.texi
+++ b/doc/lispref/buffers.texi
@@ -669,8 +669,9 @@ reason.
669This function is used to ask a user how to proceed after an attempt to 669This function is used to ask a user how to proceed after an attempt to
670modify an buffer visiting file @var{filename} when the file is newer 670modify an buffer visiting file @var{filename} when the file is newer
671than the buffer text. Emacs detects this because the modification 671than the buffer text. Emacs detects this because the modification
672time of the file on disk is newer than the last save-time of the 672time of the file on disk is newer than the last save-time and its contents
673buffer. This means some other program has probably altered the file. 673have changed.
674This means some other program has probably altered the file.
674 675
675@kindex file-supersession 676@kindex file-supersession
676Depending on the user's answer, the function may return normally, in 677Depending on the user's answer, the function may return normally, in