# HG changeset patch # User Richard M. Stallman # Date 1011733513 0 # Node ID af3eb1ed803211c8d1d53dc35bcfc082db1e1b2a # Parent 4223d39197bad2d79614beb801b8a83a124aca57 (sh-set-shell): Doc fix. diff -r 4223d39197ba -r af3eb1ed8032 lisp/progmodes/sh-script.el --- a/lisp/progmodes/sh-script.el Tue Jan 22 20:56:29 2002 +0000 +++ b/lisp/progmodes/sh-script.el Tue Jan 22 21:05:13 2002 +0000 @@ -1442,8 +1442,15 @@ (defun sh-set-shell (shell &optional no-query-flag insert-flag) "Set this buffer's shell to SHELL (a string). -Makes this script executable via `executable-set-magic', and sets up the -proper starting #!-line, if INSERT-FLAG is non-nil. +When used interactively, insert the proper starting #!-line, +and make the visited file executable via `executable-set-magic', +perhaps querying depending on the value of `executable-query'. + +When this function is called noninteractively, INSERT-FLAG (the third +argument) controls whether to insert a #!-line and think about making +the visited file executable, and NO-QUERY-FLAG (the second argument) +controls whether to query about making the visited file executable. + Calls the value of `sh-set-shell-hook' if set." (interactive (list (completing-read "Name or path of shell: " interpreter-mode-alist