diff options
| author | Richard M. Stallman | 2003-06-03 11:08:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-06-03 11:08:25 +0000 |
| commit | 07703430571e2ea5219d776a7e3a7978e2de65f1 (patch) | |
| tree | 505e5b60ba49b90e012b5bb65757fffffaf9f50d | |
| parent | b00214166057e71bc7a732a56395dd28f7d261f3 (diff) | |
| download | emacs-07703430571e2ea5219d776a7e3a7978e2de65f1.tar.gz emacs-07703430571e2ea5219d776a7e3a7978e2de65f1.zip | |
(after-find-file): Simplify msg if nonexistent directory.
(make-directory): Doc fix.
| -rw-r--r-- | lisp/files.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el index 7ce59dd6035..874935c6347 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1524,9 +1524,7 @@ unless NOMODES is non-nil." | |||
| 1524 | (setq buffer-read-only nil)) | 1524 | (setq buffer-read-only nil)) |
| 1525 | (t | 1525 | (t |
| 1526 | (setq buffer-read-only nil) | 1526 | (setq buffer-read-only nil) |
| 1527 | (if (file-exists-p (file-name-directory (directory-file-name (file-name-directory buffer-file-name)))) | 1527 | "Use M-x make-directory RET RET to create the directory and its parents")))) |
| 1528 | "Use M-x make-directory RET RET to create the directory" | ||
| 1529 | "Use C-u M-x make-directory RET RET to create directory and its parents"))))) | ||
| 1530 | (when msg | 1528 | (when msg |
| 1531 | (message "%s" msg) | 1529 | (message "%s" msg) |
| 1532 | (or not-serious (sit-for 1 nil t)))) | 1530 | (or not-serious (sit-for 1 nil t)))) |
| @@ -3401,7 +3399,8 @@ is the current default directory for file names. | |||
| 3401 | That is useful when you have visited a file in a nonexistent directory. | 3399 | That is useful when you have visited a file in a nonexistent directory. |
| 3402 | 3400 | ||
| 3403 | Noninteractively, the second (optional) argument PARENTS says whether | 3401 | Noninteractively, the second (optional) argument PARENTS says whether |
| 3404 | to create parent directories if they don't exist." | 3402 | to create parent directories if they don't exist. Interactively, |
| 3403 | this happens by default." | ||
| 3405 | (interactive | 3404 | (interactive |
| 3406 | (list (read-file-name "Make directory: " default-directory default-directory | 3405 | (list (read-file-name "Make directory: " default-directory default-directory |
| 3407 | nil nil) | 3406 | nil nil) |