diff options
| author | Joakim Verona | 2013-02-28 00:03:58 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-02-28 00:03:58 +0100 |
| commit | aa1ff60c7bba6f944522ca2f75f688c1323bdb39 (patch) | |
| tree | 5c0c026c93d5334104c0282e4b2c86fe281cb18a | |
| parent | 96fd57d9873b5c150e2632e5a1f60a78fac65aa8 (diff) | |
| parent | 531e70eca4c3bcd44942a67f5ea1a8bb1cb41dad (diff) | |
| download | emacs-aa1ff60c7bba6f944522ca2f75f688c1323bdb39.tar.gz emacs-aa1ff60c7bba6f944522ca2f75f688c1323bdb39.zip | |
auto upstream
| -rw-r--r-- | lisp/ChangeLog | 14 | ||||
| -rw-r--r-- | lisp/font-lock.el | 4 | ||||
| -rw-r--r-- | lisp/net/tramp-adb.el | 17 | ||||
| -rw-r--r-- | src/ChangeLog | 13 | ||||
| -rw-r--r-- | src/callint.c | 2 | ||||
| -rw-r--r-- | src/filelock.c | 14 | ||||
| -rw-r--r-- | src/lisp.h | 3 | ||||
| -rw-r--r-- | src/macros.c | 2 |
8 files changed, 49 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5a902d6442..822a4a26870 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,17 @@ | |||
| 1 | 2013-02-27 Thierry Volpiatto <thierry.volpiatto@gmail.com> | ||
| 2 | |||
| 3 | * font-lock.el (lisp-font-lock-keywords-2): Fix highlighting of | ||
| 4 | &optional (bug#13819). | ||
| 5 | |||
| 6 | 2013-02-27 Michael Albinus <michael.albinus@gmx.de> | ||
| 7 | |||
| 8 | * net/tramp-adb.el (tramp-adb-parse-device-names) | ||
| 9 | (tramp-adb-maybe-open-connection): Add timeouts. (Bug#13299) | ||
| 10 | |||
| 1 | 2013-02-26 Michael Albinus <michael.albinus@gmx.de> | 11 | 2013-02-26 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 12 | ||
| 3 | * net/tramp-sh.el (tramp-sh-handle-insert-directory): Add | 13 | * net/tramp-sh.el (tramp-sh-handle-insert-directory): |
| 4 | "2>/dev/null" to the ls command, in case "en_US.utf8" is not | 14 | Add "2>/dev/null" to the ls command, in case "en_US.utf8" is not |
| 5 | defined. POSIX environments fall back to the "C" locale then and | 15 | defined. POSIX environments fall back to the "C" locale then and |
| 6 | emit a warning, which shall be suppressed. | 16 | emit a warning, which shall be suppressed. |
| 7 | 17 | ||
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index e5ce4db171b..9436012ee59 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -2336,9 +2336,9 @@ in which C preprocessor directives are used. e.g. `asm-mode' and | |||
| 2336 | ("`\\(\\(?:\\sw\\|\\s_\\)\\(?:\\sw\\|\\s_\\)+\\)'" | 2336 | ("`\\(\\(?:\\sw\\|\\s_\\)\\(?:\\sw\\|\\s_\\)+\\)'" |
| 2337 | (1 font-lock-constant-face prepend)) | 2337 | (1 font-lock-constant-face prepend)) |
| 2338 | ;; Constant values. | 2338 | ;; Constant values. |
| 2339 | ("\\<:\\(?:\\sw\\|\\s_\\)+\\>" 0 font-lock-builtin-face) | 2339 | ("\\_<:\\(?:\\sw\\|\\s_\\)+\\_>" 0 font-lock-builtin-face) |
| 2340 | ;; ELisp and CLisp `&' keywords as types. | 2340 | ;; ELisp and CLisp `&' keywords as types. |
| 2341 | ("\\<\\&\\(?:\\sw\\|\\s_\\)+\\>" . font-lock-type-face) | 2341 | ("\\_<\\&\\(?:\\sw\\|\\s_\\)+\\_>" . font-lock-type-face) |
| 2342 | ;; ELisp regexp grouping constructs | 2342 | ;; ELisp regexp grouping constructs |
| 2343 | ((lambda (bound) | 2343 | ((lambda (bound) |
| 2344 | (catch 'found | 2344 | (catch 'found |
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index 0974c62c56e..809623280bc 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -157,13 +157,14 @@ pass to the OPERATION." | |||
| 157 | ;;;###tramp-autoload | 157 | ;;;###tramp-autoload |
| 158 | (defun tramp-adb-parse-device-names (ignore) | 158 | (defun tramp-adb-parse-device-names (ignore) |
| 159 | "Return a list of (nil host) tuples allowed to access." | 159 | "Return a list of (nil host) tuples allowed to access." |
| 160 | (with-temp-buffer | 160 | (with-timeout (10) |
| 161 | (when (zerop (call-process (tramp-adb-program) nil t nil "devices")) | 161 | (with-temp-buffer |
| 162 | (let (result) | 162 | (when (zerop (call-process (tramp-adb-program) nil t nil "devices")) |
| 163 | (goto-char (point-min)) | 163 | (let (result) |
| 164 | (while (search-forward-regexp "^\\(\\S-+\\)[[:space:]]+device$" nil t) | 164 | (goto-char (point-min)) |
| 165 | (add-to-list 'result (list nil (match-string 1)))) | 165 | (while (search-forward-regexp "^\\(\\S-+\\)[[:space:]]+device$" nil t) |
| 166 | result)))) | 166 | (add-to-list 'result (list nil (match-string 1)))) |
| 167 | result))))) | ||
| 167 | 168 | ||
| 168 | (defun tramp-adb-handle-expand-file-name (name &optional dir) | 169 | (defun tramp-adb-handle-expand-file-name (name &optional dir) |
| 169 | "Like `expand-file-name' for Tramp files." | 170 | "Like `expand-file-name' for Tramp files." |
| @@ -1106,7 +1107,7 @@ connection if a previous connection has died for some reason." | |||
| 1106 | (tramp-message | 1107 | (tramp-message |
| 1107 | vec 6 "%s" (mapconcat 'identity (process-command p) " ")) | 1108 | vec 6 "%s" (mapconcat 'identity (process-command p) " ")) |
| 1108 | ;; Wait for initial prompt. | 1109 | ;; Wait for initial prompt. |
| 1109 | (tramp-adb-wait-for-output p) | 1110 | (tramp-adb-wait-for-output p 30) |
| 1110 | (unless (eq 'run (process-status p)) | 1111 | (unless (eq 'run (process-status p)) |
| 1111 | (tramp-error vec 'file-error "Terminated!")) | 1112 | (tramp-error vec 'file-error "Terminated!")) |
| 1112 | (tramp-compat-set-process-query-on-exit-flag p nil) | 1113 | (tramp-compat-set-process-query-on-exit-flag p nil) |
diff --git a/src/ChangeLog b/src/ChangeLog index 5e3112a26af..4135dadf28a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2013-02-27 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * filelock.c (create_lock_file) [WINDOWSNT]: Use _sopen with | ||
| 4 | _SH_DENYRW flag, instead of emacs_open, to deny any other process | ||
| 5 | access to the lock file until it is written and closed. | ||
| 6 | (Bug#13807) | ||
| 7 | |||
| 8 | 2013-02-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9 | |||
| 10 | * callint.c (Qcall_interactively): | ||
| 11 | * macros.c (Qexecute_kbd_macro): | ||
| 12 | Now static. | ||
| 13 | |||
| 1 | 2013-02-26 Bastien Guerry <bzg@gnu.org> | 14 | 2013-02-26 Bastien Guerry <bzg@gnu.org> |
| 2 | 15 | ||
| 3 | * window.c (Frecenter): Tiny docstring enhancement. | 16 | * window.c (Frecenter): Tiny docstring enhancement. |
diff --git a/src/callint.c b/src/callint.c index b0d4bcdd011..212dd2e3d62 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -29,7 +29,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | #include "keymap.h" | 29 | #include "keymap.h" |
| 30 | 30 | ||
| 31 | Lisp_Object Qminus, Qplus; | 31 | Lisp_Object Qminus, Qplus; |
| 32 | Lisp_Object Qcall_interactively; | 32 | static Lisp_Object Qcall_interactively; |
| 33 | static Lisp_Object Qcommand_debug_status; | 33 | static Lisp_Object Qcommand_debug_status; |
| 34 | static Lisp_Object Qenable_recursive_minibuffers; | 34 | static Lisp_Object Qenable_recursive_minibuffers; |
| 35 | 35 | ||
diff --git a/src/filelock.c b/src/filelock.c index 4d556de2454..78cd60a12e1 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -44,6 +44,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | #include "coding.h" | 44 | #include "coding.h" |
| 45 | #include "systime.h" | 45 | #include "systime.h" |
| 46 | #ifdef WINDOWSNT | 46 | #ifdef WINDOWSNT |
| 47 | #include <share.h> | ||
| 47 | #include "w32.h" /* for dostounix_filename */ | 48 | #include "w32.h" /* for dostounix_filename */ |
| 48 | #endif | 49 | #endif |
| 49 | 50 | ||
| @@ -353,12 +354,17 @@ create_lock_file (char *lfname, char *lock_info_str, bool force) | |||
| 353 | create a regular file with the lock info written as its | 354 | create a regular file with the lock info written as its |
| 354 | contents. */ | 355 | contents. */ |
| 355 | { | 356 | { |
| 356 | int fd = emacs_open (lfname, O_WRONLY | O_BINARY | O_CREAT | O_EXCL, | 357 | /* Deny everybody else any kind of access to the file until we are |
| 357 | S_IREAD | S_IWRITE); | 358 | done writing it and close the handle. This makes the entire |
| 359 | open/write/close operation atomic, as far as other processes | ||
| 360 | are concerned. */ | ||
| 361 | int fd = _sopen (lfname, | ||
| 362 | _O_WRONLY | _O_BINARY | _O_CREAT | _O_EXCL | _O_NOINHERIT, | ||
| 363 | _SH_DENYRW, S_IREAD | S_IWRITE); | ||
| 358 | 364 | ||
| 359 | if (fd < 0 && errno == EEXIST && force) | 365 | if (fd < 0 && errno == EEXIST && force) |
| 360 | fd = emacs_open (lfname, O_WRONLY | O_BINARY | O_TRUNC, | 366 | fd = _sopen (lfname, _O_WRONLY | _O_BINARY | _O_TRUNC |_O_NOINHERIT, |
| 361 | S_IREAD | S_IWRITE); | 367 | _SH_DENYRW, S_IREAD | S_IWRITE); |
| 362 | if (fd >= 0) | 368 | if (fd >= 0) |
| 363 | { | 369 | { |
| 364 | ssize_t lock_info_len = strlen (lock_info_str); | 370 | ssize_t lock_info_len = strlen (lock_info_str); |
diff --git a/src/lisp.h b/src/lisp.h index 7b36878c0c5..3d018b2b45e 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3371,7 +3371,7 @@ extern void syms_of_minibuf (void); | |||
| 3371 | 3371 | ||
| 3372 | extern Lisp_Object Qminus, Qplus; | 3372 | extern Lisp_Object Qminus, Qplus; |
| 3373 | extern Lisp_Object Qwhen; | 3373 | extern Lisp_Object Qwhen; |
| 3374 | extern Lisp_Object Qcall_interactively, Qmouse_leave_buffer_hook; | 3374 | extern Lisp_Object Qmouse_leave_buffer_hook; |
| 3375 | extern void syms_of_callint (void); | 3375 | extern void syms_of_callint (void); |
| 3376 | 3376 | ||
| 3377 | /* Defined in casefiddle.c. */ | 3377 | /* Defined in casefiddle.c. */ |
| @@ -3532,7 +3532,6 @@ extern Lisp_Object exec_byte_code (Lisp_Object, Lisp_Object, Lisp_Object, | |||
| 3532 | Lisp_Object, ptrdiff_t, Lisp_Object *); | 3532 | Lisp_Object, ptrdiff_t, Lisp_Object *); |
| 3533 | 3533 | ||
| 3534 | /* Defined in macros.c. */ | 3534 | /* Defined in macros.c. */ |
| 3535 | extern Lisp_Object Qexecute_kbd_macro; | ||
| 3536 | extern void init_macros (void); | 3535 | extern void init_macros (void); |
| 3537 | extern void syms_of_macros (void); | 3536 | extern void syms_of_macros (void); |
| 3538 | 3537 | ||
diff --git a/src/macros.c b/src/macros.c index 0dcfbe5532c..48d23a977b1 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -28,7 +28,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | #include "window.h" | 28 | #include "window.h" |
| 29 | #include "keyboard.h" | 29 | #include "keyboard.h" |
| 30 | 30 | ||
| 31 | Lisp_Object Qexecute_kbd_macro; | 31 | static Lisp_Object Qexecute_kbd_macro; |
| 32 | static Lisp_Object Qkbd_macro_termination_hook; | 32 | static Lisp_Object Qkbd_macro_termination_hook; |
| 33 | 33 | ||
| 34 | /* Number of successful iterations so far | 34 | /* Number of successful iterations so far |