Mercurial > emacs
comparison lisp/files.el @ 25283:94c605866a9e
(interpreter-mode-alist): Add make, guile, clisp.
(find-file): Doc fix.
author | Dave Love <fx@gnu.org> |
---|---|
date | Mon, 16 Aug 1999 11:41:29 +0000 |
parents | 84b8027adceb |
children | ed47f0127bc3 |
comparison
equal
deleted
inserted
replaced
25282:e09cfa43a165 | 25283:94c605866a9e |
---|---|
649 (defun find-file (filename &optional wildcards) | 649 (defun find-file (filename &optional wildcards) |
650 "Edit file FILENAME. | 650 "Edit file FILENAME. |
651 Switch to a buffer visiting file FILENAME, | 651 Switch to a buffer visiting file FILENAME, |
652 creating one if none already exists. | 652 creating one if none already exists. |
653 Interactively, or if WILDCARDS is non-nil in a call from Lisp, | 653 Interactively, or if WILDCARDS is non-nil in a call from Lisp, |
654 expand wildcards (if any) and visit multiple files." | 654 expand wildcards (if any) and visit multiple files. Wildcard expansion |
655 can be suppressed by setting `find-file-wildcards'. Such expansion is | |
656 not implemented for remote files." | |
655 (interactive "FFind file: \np") | 657 (interactive "FFind file: \np") |
656 (let ((value (find-file-noselect filename nil nil wildcards))) | 658 (let ((value (find-file-noselect filename nil nil wildcards))) |
657 (if (listp value) | 659 (if (listp value) |
658 (mapcar 'switch-to-buffer (nreverse value)) | 660 (mapcar 'switch-to-buffer (nreverse value)) |
659 (switch-to-buffer value)))) | 661 (switch-to-buffer value)))) |
1396 ("wsh" . sh-mode) | 1398 ("wsh" . sh-mode) |
1397 ("zsh" . sh-mode) | 1399 ("zsh" . sh-mode) |
1398 ("tail" . text-mode) | 1400 ("tail" . text-mode) |
1399 ("more" . text-mode) | 1401 ("more" . text-mode) |
1400 ("less" . text-mode) | 1402 ("less" . text-mode) |
1401 ("pg" . text-mode)) | 1403 ("pg" . text-mode) |
1404 ("make" . makefile-mode) ; Debian uses this | |
1405 ("guile" . scheme-mode) | |
1406 ("clisp" . lisp-mode)) | |
1402 "Alist mapping interpreter names to major modes. | 1407 "Alist mapping interpreter names to major modes. |
1403 This alist applies to files whose first line starts with `#!'. | 1408 This alist applies to files whose first line starts with `#!'. |
1404 Each element looks like (INTERPRETER . MODE). | 1409 Each element looks like (INTERPRETER . MODE). |
1405 The car of each element is compared with | 1410 The car of each element is compared with |
1406 the name of the interpreter specified in the first line. | 1411 the name of the interpreter specified in the first line. |