]> git.eshelyaron.com Git - emacs.git/commitdiff
(sh-set-shell): Make sh-shell-file the default shell.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 10 Jan 2003 08:07:26 +0000 (08:07 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 10 Jan 2003 08:07:26 +0000 (08:07 +0000)
lisp/progmodes/sh-script.el

index d6592cbc603d35164a83ed1c78d8770ec2c25db0..b4bde7975526048ffd65924ae299d8bc539a7739 100644 (file)
@@ -1447,9 +1447,11 @@ 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
-                                     (lambda (x) (eq (cdr x) 'sh-mode)))
+  (interactive (list (completing-read (format "Shell \(default %s\): "
+                                             sh-shell-file)
+                                     interpreter-mode-alist
+                                     (lambda (x) (eq (cdr x) 'sh-mode))
+                                     nil nil nil sh-shell-file)
                     (eq executable-query 'function)
                     t))
   (if (string-match "\\.exe\\'" shell)