diff options
| author | Joakim Verona | 2013-03-03 00:04:18 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-03-03 00:04:18 +0100 |
| commit | 85c8b5aba5b1a2b3e2a54c58838f091094610279 (patch) | |
| tree | 93876099fc0c583e9284b15b7bdb38e623327884 /src/ChangeLog | |
| parent | c98de16bf81f9a8b9e6296bf0063abda9e95fd68 (diff) | |
| parent | 2db41375423b6a48a55df2c5922bb2813319f06f (diff) | |
| download | emacs-85c8b5aba5b1a2b3e2a54c58838f091094610279.tar.gz emacs-85c8b5aba5b1a2b3e2a54c58838f091094610279.zip | |
auto upstream
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1b8b3c56004..adff00f7189 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,51 @@ | |||
| 1 | 2013-03-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | The lock for FILE is now .#FILE or .#-FILE (Bug#13807). | ||
| 4 | The old approach, which fell back on DIR/.#FILE.0 through | ||
| 5 | DIR/.#FILE.9, had race conditions that could not be easily fixed. | ||
| 6 | If DIR/.#FILE is a non-symlink file, Emacs now does not create a | ||
| 7 | lock file for DIR/FILE; that is, DIR/FILE is no longer partly | ||
| 8 | protected by a lock if DIR/.#FILE is a non-symlink file ("partly" | ||
| 9 | because the locking mechanism was never reliable in that case). | ||
| 10 | This patch fixes this and other bugs discovered by a code | ||
| 11 | inspection that was prompted by | ||
| 12 | <http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00531.html>. | ||
| 13 | Also, this patch switches to .#-FILE (not .#FILE) on MS-Windows, | ||
| 14 | to avoid interoperability problems between the MS-Windows and | ||
| 15 | non-MS-Windows implementations. MS-Windows and non-MS-Windows | ||
| 16 | instances of Emacs now ignore each others' locks. | ||
| 17 | * filelock.c (defined_WINDOWSNT): New constant. | ||
| 18 | (MAKE_LOCK_NAME, fill_in_lock_file_name): | ||
| 19 | Don't create DIR/.#FILE.0 through DIR/.#FILE.9. Instead, create | ||
| 20 | DIR/.#FILE symlinks on non-MS-Windows hosts, and DIR/.#-FILE | ||
| 21 | regular files on MS-Windows hosts. | ||
| 22 | (MAKE_LOCK_NAME, unlock_file, Ffile_locked_p): | ||
| 23 | Use SAFE_ALLOCA to avoid problems with long file names. | ||
| 24 | (MAX_LFINFO): Now a local constant, not a global macro. | ||
| 25 | (IS_LOCK_FILE): Remove. | ||
| 26 | (lock_file_1): Don't inspect errno if symlink call succeeds; | ||
| 27 | that's not portable. | ||
| 28 | (lock_file): Document that this function can return if lock | ||
| 29 | creation fails. | ||
| 30 | (lock_file): Don't access freed storage. | ||
| 31 | |||
| 32 | 2013-03-02 Andreas Schwab <schwab@linux-m68k.org> | ||
| 33 | |||
| 34 | * lisp.h (XPNTR) [!USE_LSB_TAG]: Remove extra paren. (Bug#13734) | ||
| 35 | |||
| 36 | 2013-03-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 37 | |||
| 38 | * textprop.c: Use bool for booleans. | ||
| 39 | (validate_interval_range, Fadd_text_properties) | ||
| 40 | (Fremove_text_properties): Prefer bool to int when either works. | ||
| 41 | |||
| 42 | 2013-03-02 Eli Zaretskii <eliz@gnu.org> | ||
| 43 | |||
| 44 | * textprop.c (Fadd_text_properties, Fremove_text_properties): If | ||
| 45 | the interval tree changes as a side effect of calling | ||
| 46 | modify_region, re-do processing starting from the call to | ||
| 47 | validate_interval_range. (Bug#13743) | ||
| 48 | |||
| 1 | 2013-02-28 Eli Zaretskii <eliz@gnu.org> | 49 | 2013-02-28 Eli Zaretskii <eliz@gnu.org> |
| 2 | 50 | ||
| 3 | * w32.c (sys_open): Don't reset the flags for FD in fd_info[]. | 51 | * w32.c (sys_open): Don't reset the flags for FD in fd_info[]. |