aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/shell.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index d3e23251a1f..27220b54ab0 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -1,6 +1,6 @@
1;;; shell.el --- specialized comint.el for running the shell 1;;; shell.el --- specialized comint.el for running the shell
2 2
3;; Copyright (C) 1988, 1993, 1994, 1995, 1996, 1997, 2000, 3;; Copyright (C) 1988, 1993, 1994, 1995, 1996, 1997, 2000, 2001,
4;; 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 4;; 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Olin Shivers <shivers@cs.cmu.edu> 6;; Author: Olin Shivers <shivers@cs.cmu.edu>
@@ -520,10 +520,10 @@ If BUFFER exists but shell process is not running, make new shell.
520If BUFFER exists and shell process is running, just switch to BUFFER. 520If BUFFER exists and shell process is running, just switch to BUFFER.
521Program used comes from variable `explicit-shell-file-name', 521Program used comes from variable `explicit-shell-file-name',
522 or (if that is nil) from the ESHELL environment variable, 522 or (if that is nil) from the ESHELL environment variable,
523 or else from SHELL if there is no ESHELL. 523 or (if that is nil) from `shell-file-name'.
524If a file `~/.emacs_SHELLNAME' exists, it is given as initial input 524If a file `~/.emacs_SHELLNAME' exists, or `~/.emacs.d/init_SHELLNAME.sh',
525 (Note that this may lose due to a timing error if the shell 525it is given as initial input (but this may be lost, due to a timing
526 discards input when it starts up.) 526error, if the shell discards input when it starts up).
527The buffer is put in Shell mode, giving commands for sending input 527The buffer is put in Shell mode, giving commands for sending input
528and controlling the subjobs of the shell. See `shell-mode'. 528and controlling the subjobs of the shell. See `shell-mode'.
529See also the variable `shell-prompt-pattern'. 529See also the variable `shell-prompt-pattern'.
@@ -556,8 +556,8 @@ Otherwise, one argument `-i' is passed to the shell.
556 (name (file-name-nondirectory prog)) 556 (name (file-name-nondirectory prog))
557 (startfile (concat "~/.emacs_" name)) 557 (startfile (concat "~/.emacs_" name))
558 (xargs-name (intern-soft (concat "explicit-" name "-args")))) 558 (xargs-name (intern-soft (concat "explicit-" name "-args"))))
559 (if (not (file-exists-p startfile)) 559 (unless (file-exists-p startfile)
560 (setq startfile (concat "~/.emacs.d/.emacs_" name))) 560 (setq startfile (concat "~/.emacs.d/init_" name ".sh")))
561 (apply 'make-comint-in-buffer "shell" buffer prog 561 (apply 'make-comint-in-buffer "shell" buffer prog
562 (if (file-exists-p startfile) startfile) 562 (if (file-exists-p startfile) startfile)
563 (if (and xargs-name (boundp xargs-name)) 563 (if (and xargs-name (boundp xargs-name))