diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/files.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el index 7f193a78b35..dac2ef75dc5 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -5091,13 +5091,16 @@ Before and after saving the buffer, this function runs | |||
| 5091 | ;; Otherwise, write it the usual way now. | 5091 | ;; Otherwise, write it the usual way now. |
| 5092 | (let ((dir (file-name-directory | 5092 | (let ((dir (file-name-directory |
| 5093 | (expand-file-name buffer-file-name)))) | 5093 | (expand-file-name buffer-file-name)))) |
| 5094 | (if (getenv "BUG_32226") (message "BUG_32226 %s" dir)) | ||
| 5094 | (unless (file-exists-p dir) | 5095 | (unless (file-exists-p dir) |
| 5095 | (if (y-or-n-p | 5096 | (if (y-or-n-p |
| 5096 | (format-message | 5097 | (format-message |
| 5097 | "Directory `%s' does not exist; create? " dir)) | 5098 | "Directory `%s' does not exist; create? " dir)) |
| 5098 | (make-directory dir t) | 5099 | (make-directory dir t) |
| 5099 | (error "Canceled"))) | 5100 | (error "Canceled"))) |
| 5101 | (if (getenv "BUG_32226") (message "BUG_32226 %s" dir)) | ||
| 5100 | (setq setmodes (basic-save-buffer-1))))) | 5102 | (setq setmodes (basic-save-buffer-1))))) |
| 5103 | (if (getenv "BUG_32226") (message "BUG_32226")) | ||
| 5101 | ;; Now we have saved the current buffer. Let's make sure | 5104 | ;; Now we have saved the current buffer. Let's make sure |
| 5102 | ;; that buffer-file-coding-system is fixed to what | 5105 | ;; that buffer-file-coding-system is fixed to what |
| 5103 | ;; actually used for saving by binding it locally. | 5106 | ;; actually used for saving by binding it locally. |