diff options
| -rw-r--r-- | lisp/userlock.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/userlock.el b/lisp/userlock.el index 4623608f1db..91d5b7308dd 100644 --- a/lisp/userlock.el +++ b/lisp/userlock.el | |||
| @@ -64,10 +64,11 @@ in any way you like." | |||
| 64 | (match-string 0 opponent))) | 64 | (match-string 0 opponent))) |
| 65 | opponent)) | 65 | opponent)) |
| 66 | (while (null answer) | 66 | (while (null answer) |
| 67 | (when noninteractive | ||
| 68 | (signal 'file-locked (list file opponent "Cannot resolve lock conflict in batch mode"))) | ||
| 67 | (message (substitute-command-keys | 69 | (message (substitute-command-keys |
| 68 | "%s locked by %s: (\\`s', \\`q', \\`p', \\`?')? ") | 70 | "%s locked by %s: (\\`s', \\`q', \\`p', \\`?')? ") |
| 69 | short-file short-opponent) | 71 | short-file short-opponent) |
| 70 | (if noninteractive (error "Cannot resolve lock conflict in batch mode")) | ||
| 71 | (let ((tem (let ((inhibit-quit t) | 72 | (let ((tem (let ((inhibit-quit t) |
| 72 | (cursor-in-echo-area t)) | 73 | (cursor-in-echo-area t)) |
| 73 | (prog1 (downcase (read-char)) | 74 | (prog1 (downcase (read-char)) |