diff options
| author | Richard M. Stallman | 2002-05-29 16:34:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-05-29 16:34:41 +0000 |
| commit | 7defe888a51ebcc4443fbd1b5be2281d45e416ca (patch) | |
| tree | e5d2966f85610bfb85bc6adc1ae1730fb745f3ba | |
| parent | 5f64b52b67f2ca96607933a87f02ba54541ec202 (diff) | |
| download | emacs-7defe888a51ebcc4443fbd1b5be2281d45e416ca.tar.gz emacs-7defe888a51ebcc4443fbd1b5be2281d45e416ca.zip | |
(find-file-noselect-1): Return the buffer we created
even if it has been killed within `after-find-file'.
(auto-mode-alist): Use ada-mode for .ad[bs].dg files.
| -rw-r--r-- | lisp/files.el | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lisp/files.el b/lisp/files.el index 51b2ca50387..4930d6a96a0 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1283,14 +1283,15 @@ that are visiting the various files." | |||
| 1283 | (progn | 1283 | (progn |
| 1284 | (make-local-variable 'backup-inhibited) | 1284 | (make-local-variable 'backup-inhibited) |
| 1285 | (setq backup-inhibited t))) | 1285 | (setq backup-inhibited t))) |
| 1286 | (if rawfile | 1286 | (let ((buffer (current-buffer))) |
| 1287 | (progn | 1287 | (if rawfile |
| 1288 | (set-buffer-multibyte nil) | 1288 | (progn |
| 1289 | (setq buffer-file-coding-system 'no-conversion) | 1289 | (set-buffer-multibyte nil) |
| 1290 | (make-local-variable 'find-file-literally) | 1290 | (setq buffer-file-coding-system 'no-conversion) |
| 1291 | (setq find-file-literally t)) | 1291 | (make-local-variable 'find-file-literally) |
| 1292 | (after-find-file error (not nowarn))) | 1292 | (setq find-file-literally t)) |
| 1293 | (current-buffer)))) | 1293 | (after-find-file error (not nowarn))) |
| 1294 | buffer)))) | ||
| 1294 | 1295 | ||
| 1295 | (defun insert-file-contents-literally (filename &optional visit beg end replace) | 1296 | (defun insert-file-contents-literally (filename &optional visit beg end replace) |
| 1296 | "Like `insert-file-contents', but only reads in the file literally. | 1297 | "Like `insert-file-contents', but only reads in the file literally. |
| @@ -1472,6 +1473,7 @@ in that case, this function acts as if `enable-local-variables' were t." | |||
| 1472 | ("\\.p\\'" . pascal-mode) | 1473 | ("\\.p\\'" . pascal-mode) |
| 1473 | ("\\.pas\\'" . pascal-mode) | 1474 | ("\\.pas\\'" . pascal-mode) |
| 1474 | ("\\.ad[abs]\\'" . ada-mode) | 1475 | ("\\.ad[abs]\\'" . ada-mode) |
| 1476 | ("\\.ad[bs].dg\\'" . ada-mode) | ||
| 1475 | ("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\)\\'" . perl-mode) | 1477 | ("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\)\\'" . perl-mode) |
| 1476 | ("\\.s?html?\\'" . html-mode) | 1478 | ("\\.s?html?\\'" . html-mode) |
| 1477 | ("\\.cc\\'" . c++-mode) | 1479 | ("\\.cc\\'" . c++-mode) |