Mercurial > emacs
comparison lisp/progmodes/sh-script.el @ 42909:af3eb1ed8032
(sh-set-shell): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 22 Jan 2002 21:05:13 +0000 |
parents | 8a4077ab418c |
children | 50e4c7b9eec2 |
comparison
equal
deleted
inserted
replaced
42908:4223d39197ba | 42909:af3eb1ed8032 |
---|---|
1440 ("case" sh-handle-this-rc-case sh-handle-prev-rc-case)))) | 1440 ("case" sh-handle-this-rc-case sh-handle-prev-rc-case)))) |
1441 | 1441 |
1442 | 1442 |
1443 (defun sh-set-shell (shell &optional no-query-flag insert-flag) | 1443 (defun sh-set-shell (shell &optional no-query-flag insert-flag) |
1444 "Set this buffer's shell to SHELL (a string). | 1444 "Set this buffer's shell to SHELL (a string). |
1445 Makes this script executable via `executable-set-magic', and sets up the | 1445 When used interactively, insert the proper starting #!-line, |
1446 proper starting #!-line, if INSERT-FLAG is non-nil. | 1446 and make the visited file executable via `executable-set-magic', |
1447 perhaps querying depending on the value of `executable-query'. | |
1448 | |
1449 When this function is called noninteractively, INSERT-FLAG (the third | |
1450 argument) controls whether to insert a #!-line and think about making | |
1451 the visited file executable, and NO-QUERY-FLAG (the second argument) | |
1452 controls whether to query about making the visited file executable. | |
1453 | |
1447 Calls the value of `sh-set-shell-hook' if set." | 1454 Calls the value of `sh-set-shell-hook' if set." |
1448 (interactive (list (completing-read "Name or path of shell: " | 1455 (interactive (list (completing-read "Name or path of shell: " |
1449 interpreter-mode-alist | 1456 interpreter-mode-alist |
1450 (lambda (x) (eq (cdr x) 'sh-mode))) | 1457 (lambda (x) (eq (cdr x) 'sh-mode))) |
1451 (eq executable-query 'function) | 1458 (eq executable-query 'function) |