1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 11:50:51 -08:00
emacs/etc
Paul Eggert b5029e230d The lock for FILE is now .#FILE or .#-FILE.
The old approach, which fell back on DIR/.#FILE.0 through
DIR/.#FILE.9, had race conditions that could not be easily fixed.
If DIR/.#FILE is a non-symlink file, Emacs now does not create a
lock file for DIR/FILE; that is, DIR/FILE is no longer partly
protected by a lock if DIR/.#FILE is a non-symlink file ("partly"
because the locking mechanism was never reliable in that case).
This patch fixes this and other bugs discovered by a code
inspection that was prompted by
<http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00531.html>.
Also, this patch switches to .#-FILE (not .#FILE) on MS-Windows,
to avoid interoperability problems between the MS-Windows and
non-MS-Windows implementations.  MS-Windows and non-MS-Windows
instances of Emacs now ignore each others' locks.
* etc/NEWS: Document this.
* src/filelock.c (defined_WINDOWSNT): New constant.
(MAKE_LOCK_NAME, fill_in_lock_file_name):
Don't create DIR/.#FILE.0 through DIR/.#FILE.9.  Instead, create
DIR/.#FILE symlinks on non-MS-Windows hosts, and DIR/.#-FILE
regular files on MS-Windows hosts.
(MAKE_LOCK_NAME, unlock_file, Ffile_locked_p):
Use SAFE_ALLOCA to avoid problems with long file names.
(MAX_LFINFO): Now a local constant, not a global macro.
(IS_LOCK_FILE): Remove.
(lock_file_1): Don't inspect errno if symlink call succeeds;
that's not portable.
(lock_file): Document that this function can return if lock
creation fails.

Fixes: debbugs:13807
2013-03-02 12:41:53 -08:00
..
charsets Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
e Spelling fixes. 2011-11-26 20:43:11 -08:00
forms Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
gnus Spelling fixes. 2011-11-19 18:29:42 -08:00
images Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
nxml
org Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
refcards Fixes related to the last Org merge. 2013-01-08 23:02:09 +01:00
schema Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
srecode Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
themes Update copyright dates to 2013. 2013-01-02 08:30:50 -08:00
tutorials Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
.gitignore
AUTHORS Regenerate AUTHORS and ldefs-boot.el 2013-02-07 00:03:47 -08:00
CALC-NEWS Remove info duplicated from manual; convert to outline mode format. 2013-01-31 20:04:23 -08:00
celibacy.1
CENSORSHIP
ChangeLog The lock for FILE is now .#FILE or .#-FILE. 2013-03-02 12:41:53 -08:00
compilation.txt Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
condom.1
CONTRIBUTE A few small TODO and CONTRIBUTE updates 2013-02-16 12:24:50 -08:00
COOKIES
COPYING
copying.paper
DEBUG Improve instructions in etc/DEBUG, per bug #13775. 2013-02-22 11:22:21 +02:00
DEVEL.HUMOR
DISTRIB Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
echo.msg
edt-user.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
emacs-buffer.gdb Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
emacs.desktop
emacs.icon
enriched.doc Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
ERC-NEWS Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
ETAGS.EBNF Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
ETAGS.README Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
FTP
future-bug Rename configure.in to configure.ac. 2012-07-08 21:52:49 -07:00
GNU Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
GNUS-NEWS Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
gnus-tut.txt Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
grep.txt Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
HELLO Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
INTERVIEW
JOKES Spelling fixes. 2011-11-14 12:23:26 -08:00
LINUX-GNU
MACHINES Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
MAILINGLISTS Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
MH-E-NEWS Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca 2013-01-02 08:13:04 -08:00
MORE.STUFF Remove package not updated in 10 years. 2013-02-20 22:05:10 -08:00
MOTIVATION
NEWS The lock for FILE is now .#FILE or .#-FILE. 2013-03-02 12:41:53 -08:00
NEWS.1-17 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
NEWS.18 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
NEWS.19 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
NEWS.20 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
NEWS.21 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
NEWS.22 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
NEWS.23 Merge calc news from lisp/calc/README into etc/NEWS files 2013-01-31 19:51:08 -08:00
NEXTSTEP Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
NXML-NEWS
ORDERS
ORG-NEWS Fixes related to the last Org merge. 2013-01-08 23:02:09 +01:00
PROBLEMS Simplify data_start configuration. 2013-02-24 21:55:37 -08:00
ps-prin0.ps Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
ps-prin1.ps Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
publicsuffix.txt Spelling fixes. 2012-04-13 22:10:55 -07:00
README Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
rgb.txt
SERVICE
ses-example.ses Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
sex.6
spook.lines * etc/spook.lines: Additions. (tiny change) 2012-06-01 00:10:49 -07:00
TERMS Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
THE-GNU-PROJECT Spelling fixes. 2011-11-19 23:30:16 -08:00
TODO Merge from emacs-24; up to 2012-12-22T19:09:52Z!rgm@gnu.org 2013-02-24 11:45:17 -08:00
WHY-FREE
yow.lines

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

`forms-d2.dat' is an example data file used by forms-d2.el.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2013 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)