diff options
| author | Richard M. Stallman | 1996-02-02 18:47:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-02-02 18:47:34 +0000 |
| commit | 7458cc352f8fc8fe493b66bbb784352c3a2dd0b7 (patch) | |
| tree | d756cb95728edab82b61f1c4821644be2da43027 | |
| parent | a078558d78256520af8de8513e7f50d236388721 (diff) | |
| download | emacs-7458cc352f8fc8fe493b66bbb784352c3a2dd0b7.tar.gz emacs-7458cc352f8fc8fe493b66bbb784352c3a2dd0b7.zip | |
(auto-mode-alist): .ksh suffix means sh-mode.
(write-file): Interactively, prefix arg means don't confirm.
| -rw-r--r-- | lisp/files.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/files.el b/lisp/files.el index 0afa0fe170a..bb2d6314b8a 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -955,7 +955,7 @@ run `normal-mode' explicitly." | |||
| 955 | ("ChangeLog.[0-9]+\\'" . change-log-mode) | 955 | ("ChangeLog.[0-9]+\\'" . change-log-mode) |
| 956 | ("\\$CHANGE_LOG\\$\\.TXT" . change-log-mode) | 956 | ("\\$CHANGE_LOG\\$\\.TXT" . change-log-mode) |
| 957 | ("\\.scm\\.[0-9]*\\'" . scheme-mode) | 957 | ("\\.scm\\.[0-9]*\\'" . scheme-mode) |
| 958 | ("\\.c?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode) | 958 | ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode) |
| 959 | ("/\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" . sh-mode) | 959 | ("/\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" . sh-mode) |
| 960 | ("/\\.\\(bash_logout\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode) | 960 | ("/\\.\\(bash_logout\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode) |
| 961 | ("/\\.\\([kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" . sh-mode) | 961 | ("/\\.\\([kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" . sh-mode) |
| @@ -1487,8 +1487,10 @@ Makes buffer visit that file, and marks it not modified. | |||
| 1487 | If the buffer is already visiting a file, you can specify | 1487 | If the buffer is already visiting a file, you can specify |
| 1488 | a directory name as FILENAME, to write a file of the same | 1488 | a directory name as FILENAME, to write a file of the same |
| 1489 | old name in that directory. | 1489 | old name in that directory. |
| 1490 | |||
| 1490 | If optional second arg CONFIRM is non-nil, | 1491 | If optional second arg CONFIRM is non-nil, |
| 1491 | ask for confirmation for overwriting an existing file." | 1492 | ask for confirmation for overwriting an existing file. |
| 1493 | Interactively, confirmation is required unless you supply a prefix argument." | ||
| 1492 | ;; (interactive "FWrite file: ") | 1494 | ;; (interactive "FWrite file: ") |
| 1493 | (interactive | 1495 | (interactive |
| 1494 | (list (if buffer-file-name | 1496 | (list (if buffer-file-name |
| @@ -1498,7 +1500,7 @@ ask for confirmation for overwriting an existing file." | |||
| 1498 | (cdr (assq 'default-directory | 1500 | (cdr (assq 'default-directory |
| 1499 | (buffer-local-variables))) | 1501 | (buffer-local-variables))) |
| 1500 | nil nil (buffer-name))) | 1502 | nil nil (buffer-name))) |
| 1501 | t)) | 1503 | (not current-prefix-arg))) |
| 1502 | (or (null filename) (string-equal filename "") | 1504 | (or (null filename) (string-equal filename "") |
| 1503 | (progn | 1505 | (progn |
| 1504 | ;; If arg is just a directory, | 1506 | ;; If arg is just a directory, |