diff options
| -rw-r--r-- | lisp/files.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index e8c80354033..a43477a1c8b 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2141,7 +2141,7 @@ After saving the buffer, run `after-save-hook'." | |||
| 2141 | (if (not (file-directory-p dir)) | 2141 | (if (not (file-directory-p dir)) |
| 2142 | (if (file-exists-p dir) | 2142 | (if (file-exists-p dir) |
| 2143 | (error "%s is not a directory" dir) | 2143 | (error "%s is not a directory" dir) |
| 2144 | (error "%s: no such directory")) | 2144 | (error "%s: no such directory" buffer-file-name)) |
| 2145 | (if (not (file-exists-p buffer-file-name)) | 2145 | (if (not (file-exists-p buffer-file-name)) |
| 2146 | (error "Directory %s write-protected" dir) | 2146 | (error "Directory %s write-protected" dir) |
| 2147 | (if (yes-or-no-p | 2147 | (if (yes-or-no-p |