]> code.delx.au - gnu-emacs-elpa/blob - multishell.el
multishell - Comment and docstring tidying.
[gnu-emacs-elpa] / multishell.el
1 ;;; multishell.el --- facilitate multiple local and remote shell buffers
2
3 ;; Copyright (C) 1999-2016 Free Software Foundation, Inc. and Ken Manheimer
4
5 ;; Author: Ken Manheimer <ken.manheimer@gmail.com>
6 ;; Version: 1.0.5
7 ;; Created: 1999 -- first public availability
8 ;; Keywords: processes
9 ;; URL: https://github.com/kenmanheimer/EmacsMultishell
10 ;;
11 ;;; Commentary:
12 ;;
13 ;; Easily use and navigate multiple shell buffers, including remote shells.
14 ;; Fundamentally, multishell is the function `multishell-pop-to-shell' -
15 ;; a la `pop-to-buffer' - plus a keybinding. Together, they enable you to:
16 ;;
17 ;; * Get to the input point from wherever you are in a shell buffer,
18 ;; * ... or to one of your shell buffers if you're not currently in one.
19 ;; * Use universal arguments to launch and choose among alternate shell buffers,
20 ;; * ... and select which is default.
21 ;; * Append a path to a new shell name to launch a shell in that directory,
22 ;; * ... and use a path with Emacs tramp syntax to launch a remote shell.
23 ;;
24 ;; For example:
25 ;;
26 ;; * `/ssh:example.net:/` for a shell buffer in / on
27 ;; example.net; the buffer will be named "*example.net*".
28 ;;
29 ;; * `#ex/ssh:example.net|sudo:root@example.net:/etc` for a root shell
30 ;; starting in /etc on example.net named "*#ex*".
31 ;;
32 ;; See the `multishell-pop-to-shell` docstring for details.
33 ;;
34 ;; (NOTE - there's a sporadic problem when opening a shell pointed at a
35 ;; remote homedir, eg `/ssh:example.net:` or `/ssh:example.net:~`. It
36 ;; sometimes fails. Until fixed, you may need to start remote shells with
37 ;; an explicit path, then cd ~. If you set up `multishell`s persistent
38 ;; dir-tracking history, you'll be able to use completion to start that
39 ;; shell in the right place, in your subsequent sessions.)
40 ;;
41 ;; Customize-group `multishell' to select and activate a keybinding and set
42 ;; various behaviors. Customize-group `savehist' to preserve buffer
43 ;; names/paths across emacs sessions.
44 ;;
45 ;; Please use
46 ;; [the multishell repository](https://github.com/kenmanheimer/EmacsMultishell)
47 ;; issue tracker to report problems, suggestions, etc.
48 ;;
49 ;; Change Log:
50 ;;
51 ;; * 2016-01-16 1.0.5 Ken Manheimer:
52 ;; - History now includes paths, when designated
53 ;; - Actively track current directory in history entries that have a path.
54 ;; Custom control: multishell-history-entry-tracks-current-directory
55 ;; - Offer to remove shell's history entry when buffer is killed.
56 ;; (Currently the only UI mechanism to remove history entries.)
57 ;; - Fix - prevent duplicate entries for same name but different paths
58 ;; - Fix - recognize and respect tramp path syntax to start in home dir
59 ;; - But tramp bug, remote w/empty path (homedir) often fails, gets wedged.
60 ;; - Simplify history var name, migrate existing history if any from old name
61 ;; * 2016-01-04 1.0.4 Ken Manheimer - Released to ELPA
62 ;; * 2016-01-02 Ken Manheimer - working on this in public, but not yet released.
63 ;;
64 ;; TODO:
65 ;;
66 ;; * Isolate tramp sporadic failure to connect to remote+homedir (empty path)
67 ;; syntax
68 ;; (eg, /ssh:xyz.com|sudo:root@xyz.com: or /ssh:xyz.com|sudo:root@xyz.com:~)
69 ;; * Find suitable, internally consistent ways to sort tidy completions, eg:
70 ;; - first list completions for active shells, then present but inactive,
71 ;; then historical
72 ;; - some way for user to toggle between presenting just buffer names vs
73 ;; full buffer/path
74 ;; - without cutting user off from easy editing of path
75 ;; * Find proper method for setting field boundary at beginning of tramp path
76 ;; in the minibuffer, in order to see whether the field boundary magically
77 ;; enables tramp completion of the path.
78 ;; * Assess whether option to delete history entry on kill-buffer is
79 ;; sufficient.
80
81 ;;; Code:
82
83 (require 'comint)
84 (require 'shell)
85
86 (defgroup multishell nil
87 "Allout extension that highlights outline structure graphically.
88
89 Customize `allout-widgets-auto-activation' to activate allout-widgets
90 with allout-mode."
91 :group 'shell)
92
93 (defcustom multishell-command-key "\M- "
94 "The key to use if `multishell-activate-command-key' is true.
95
96 You can instead manually bind `multishell-pop-to-shell` using emacs
97 lisp, eg: (global-set-key \"\\M- \" 'multishell-pop-to-shell)."
98 :type 'key-sequence
99 :group 'multishell)
100
101 (defvar multishell--responsible-for-command-key nil
102 "Coordination for multishell key assignment.")
103 (defun multishell-activate-command-key-setter (symbol setting)
104 "Implement `multishell-activate-command-key' choice."
105 (set-default 'multishell-activate-command-key setting)
106 (when (or setting multishell--responsible-for-command-key)
107 (multishell-implement-command-key-choice (not setting))))
108 (defun multishell-implement-command-key-choice (&optional unbind)
109 "If settings dicate, implement binding of multishell command key.
110
111 If optional UNBIND is true, globally unbind the key.
112
113 * `multishell-activate-command-key' - Set this to get the binding or not.
114 * `multishell-command-key' - The key to use for the binding, if appropriate."
115 (cond (unbind
116 (when (and (boundp 'multishell-command-key) multishell-command-key)
117 (global-unset-key multishell-command-key)))
118 ((not (and (boundp 'multishell-activate-command-key)
119 (boundp 'multishell-command-key)))
120 nil)
121 ((and multishell-activate-command-key multishell-command-key)
122 (setq multishell--responsible-for-command-key t)
123 (global-set-key multishell-command-key 'multishell-pop-to-shell))))
124
125 (defcustom multishell-activate-command-key nil
126 "Set this to impose the `multishell-command-key' binding.
127
128 You can instead manually bind `multishell-pop-to-shell` using emacs
129 lisp, eg: (global-set-key \"\\M- \" 'multishell-pop-to-shell)."
130 :type 'boolean
131 :set 'multishell-activate-command-key-setter
132 :group 'multishell)
133
134 ;; Assert the customizations whenever the package is loaded:
135 (with-eval-after-load "multishell"
136 (multishell-implement-command-key-choice))
137
138 (defcustom multishell-pop-to-frame nil
139 "*If non-nil, jump to a frame already showing the shell, if another is.
140
141 Otherwise, disregard already-open windows on the shell if they're
142 in another frame, and open a new window on the shell in the
143 current frame.
144
145 \(Use `pop-up-windows' to change multishell other-buffer vs
146 current-buffer behavior.)"
147 :type 'boolean
148 :group 'multishell)
149
150 (defcustom multishell-history-entry-tracks-current-directory t
151 "Modify shell buffer's multishell entry to track the current directory.
152
153 When set, the path part of the name/path entry for each shell
154 will track the current directory of the shell with emacs. If
155 `savehist' is active, the directory tracking will extend across
156 emacs sessions."
157 :type 'boolean
158 :group 'multishell)
159
160 (defvar multishell-history nil
161 "Name/path entries, most recent first.")
162 (when (and (not multishell-history)
163 (boundp 'multishell-buffer-name-history)
164 multishell-buffer-name-history)
165 ;; Migrate few users who had old var to new.
166 (setq multishell-history multishell-buffer-name-history)
167 )
168
169 (defvar multishell-primary-name "*shell*"
170 "Shell name to use for un-modified multishell-pop-to-shell buffer target.")
171
172 ;; Multiple entries happen because completion also adds name to history.
173 (defun multishell-register-name-to-path (name path)
174 "Add or replace entry associating NAME with PATH in `multishell-history'.
175
176 If NAME already had a PATH and new PATH is empty, retain old one.
177
178 Promote added/changed entry to the front of the list."
179 ;; Add or promote to the front, tracking path changes in the process.
180 (let* ((entries (multishell-history-entries name))
181 (becomes (concat name path))
182 oldpath)
183 (dolist (entry entries)
184 (when (or (not path) (string= path ""))
185 ;; Retain explicit established path.
186 (setq path (cadr (multishell-split-entry-name-and-tramp entry))
187 becomes (concat name path)))
188 (setq multishell-history (delete entry multishell-history)))
189 (setq multishell-history (push becomes multishell-history))))
190
191 (defun multishell-history-entries (name)
192 "Return `multishell-history' entry that starts with NAME, or nil if none."
193 (let ((match-expr (concat "^" name "\\\(/.*$\\\)?"))
194 got)
195 (dolist (entry multishell-history)
196 (when (and (string-match match-expr entry)
197 (not (member entry got)))
198 (setq got (cons entry got))))
199 got))
200
201 (defun multishell-pop-to-shell (&optional arg)
202 "Easily navigate to and within multiple shell buffers, local and remote.
203
204 Use universal arguments to launch and choose between alternate
205 shell buffers and to select which is default. Append a path to
206 a new shell name to launch a shell in that directory, and use
207 Emacs tramp syntax to launch a remote shell.
208
209 Customize-group `multishell' to set up a key binding and tweak behaviors.
210
211 ==== Basic operation:
212
213 - If the current buffer is shell-mode (or shell-mode derived)
214 buffer then focus is moved to the process input point.
215
216 \(You can use a universal argument go to a different shell
217 buffer when already in a buffer that has a process - see
218 below.)
219
220 - If not in a shell buffer (or with universal argument), go to a
221 window that is already showing the (a) shell buffer, if any.
222
223 In this case, the cursor is left in its prior position in the
224 shell buffer. Repeating the command will then go to the
225 process input point, per the first item in this list.
226
227 We respect `pop-up-windows', so you can adjust it to set the
228 other-buffer/same-buffer behavior.
229
230 - Otherwise, start a new shell buffer, using the current
231 directory as the working directory.
232
233 If a buffer with the resulting name exists and its shell process
234 was disconnected or otherwise stopped, it's resumed.
235
236 ===== Universal arg to start and select between named shell buffers:
237
238 You can name alternate shell buffers to create or return to using
239 single or doubled universal arguments:
240
241 - With a single universal argument, prompt for the buffer name
242 to use (without the asterisks that shell mode will put around
243 the name), defaulting to 'shell'.
244
245 Completion is available.
246
247 This combination makes it easy to start and switch between
248 multiple shell buffers.
249
250 - A double universal argument will prompt for the name *and* set
251 the default to that name, so the target shell becomes the
252 primary.
253
254 ===== Select starting directory and remote host:
255
256 The shell buffer name you give to the prompt for a universal arg
257 can include an appended path. That will be used for the startup
258 directory. You can use tramp remote syntax to specify a remote
259 shell. If there is an element after a final '/', that's used for
260 the buffer name. Otherwise, the host, domain, or path is used.
261
262 For example:
263
264 * Use '/ssh:example.net:/home/myaccount' for a shell buffer in
265 /home/myaccount on example.net; the buffer will be named
266 \"*example.net*\".
267 * '\#ex/ssh:example.net|sudo:root@example.net:/etc' for a root
268 shell in /etc on example.net named \"*#ex*\".
269 * '\#in/ssh:corp.com|ssh:internal.corp.com|sudo:root@internal.corp.com:/etc'
270 for a root shell name \"*in*\" in /etc on internal.corp.com, via host
271 corp.com.
272
273 \(NOTE that there is a problem with specifying a remote homedir using
274 tramp syntax, eg '/ssh:example.net:'. That sometimes fails on an obscure
275 bug - particularly for remote with empty path (homedir) syntax. Until fixed,
276 you may need to start remote shells with an explicit path, then cd ~.)
277
278 You can change the startup path for a shell buffer by editing it
279 at the completion prompt. The new path will be preserved in
280 history but will not take effect for an already-running shell.
281
282 To remove a shell buffer's history entry, kill the buffer and
283 affirm removal of the entry when prompted.
284
285 ===== Activate savehist to retain shell buffer names and paths across Emacs sessions:
286
287 To have emacs maintain your history of shell buffer names and paths,
288 customize the savehist group to activate savehist."
289
290 (interactive "P")
291
292 (let* ((from-buffer (current-buffer))
293 (from-buffer-is-shell (derived-mode-p 'shell-mode))
294 (doublearg (equal arg '(16)))
295 (target-name-and-path
296 (multishell-derive-target-name-and-path
297 (if arg
298 (multishell-read-bare-shell-buffer-name
299 (format "Shell buffer name [%s]%s "
300 (substring-no-properties
301 multishell-primary-name
302 1 (- (length multishell-primary-name) 1))
303 (if doublearg " <==" ":"))
304 multishell-primary-name)
305 multishell-primary-name)))
306 (use-default-dir (cadr target-name-and-path))
307 (target-shell-buffer-name (car target-name-and-path))
308 (curr-buff-proc (get-buffer-process from-buffer))
309 (target-buffer (if from-buffer-is-shell
310 from-buffer
311 (let ((got (get-buffer target-shell-buffer-name)))
312 (if (buffer-live-p got)
313 got
314 (kill-buffer got)
315 (get-buffer target-shell-buffer-name)))))
316 inwin
317 already-there)
318
319 (when doublearg
320 (setq multishell-primary-name target-shell-buffer-name))
321
322 ;; Situate:
323
324 (cond
325
326 ((and (or curr-buff-proc from-buffer-is-shell)
327 (not arg)
328 (eq from-buffer target-buffer)
329 (not (eq target-shell-buffer-name (buffer-name from-buffer))))
330 ;; In a shell buffer, but not named - stay in buffer, but go to end.
331 (setq already-there t))
332
333 ((string= (buffer-name) target-shell-buffer-name)
334 ;; Already in the specified shell buffer:
335 (setq already-there t))
336
337 ((or (not target-buffer)
338 (not (setq inwin
339 (multishell-get-visible-window-for-buffer target-buffer))))
340 ;; No preexisting shell buffer, or not in a visible window:
341 (pop-to-buffer target-shell-buffer-name pop-up-windows))
342
343 ;; Buffer exists and already has a window - jump to it:
344 (t (if (and multishell-pop-to-frame
345 inwin
346 (not (equal (window-frame (selected-window))
347 (window-frame inwin))))
348 (select-frame-set-input-focus (window-frame inwin)))
349 (if (not (string= (buffer-name (current-buffer))
350 target-shell-buffer-name))
351 (pop-to-buffer target-shell-buffer-name t))))
352
353 ;; We're in the buffer. Activate:
354
355 (if (not (comint-check-proc (current-buffer)))
356 (multishell-start-shell-in-buffer (buffer-name (current-buffer))
357 use-default-dir))
358
359 ;; If the destination buffer has a stopped process, resume it:
360 (let ((process (get-buffer-process (current-buffer))))
361 (if (and process (equal 'stop (process-status process)))
362 (continue-process process)))
363 (multishell-register-name-to-path (multishell-unbracket-asterisks
364 target-shell-buffer-name)
365 use-default-dir)
366 (when (or already-there
367 (equal (current-buffer) from-buffer))
368 (goto-char (point-max))
369 (and (get-buffer-process from-buffer)
370 (goto-char (process-mark (get-buffer-process from-buffer)))))))
371
372 (defun multishell-kill-buffer-query-function ()
373 "Offer to remove multishell-history entry for buffer."
374 ;; Removal choice is crucial, so users can, eg, kill and a runaway shell
375 ;; and keep the history entry to easily restart it.
376 ;;
377 ;; We use kill-buffer-query-functions instead of kill-buffer-hook because:
378 ;;
379 ;; 1. It enables the user to remove the history without killing the buffer,
380 ;; by cancelling the kill-buffer process after affirming history removal.
381 ;; 2. kill-buffer-hooks often fails to run when killing shell buffers!
382 ;; I've failed to resolve that, and like the first reason well enough.
383
384 ;; (Use condition-case to avoid inadvertant disruption of kill-buffer
385 ;; activity. kill-buffer happens behind the scenes a whole lot.)
386 (condition-case anyerr
387 (let ((entries (and (derived-mode-p 'shell-mode)
388 (multishell-history-entries
389 (multishell-unbracket-asterisks (buffer-name))))))
390 (dolist (entry entries)
391 (when (and entry
392 (y-or-n-p (format "Remove multishell history entry `%s'? "
393 entry)))
394 (setq multishell-history
395 (delete entry multishell-history)))))
396 (error nil))
397 t)
398 (add-hook 'kill-buffer-query-functions 'multishell-kill-buffer-query-function)
399
400 (defun multishell-get-visible-window-for-buffer (buffer)
401 "Return visible window containing buffer."
402 (catch 'got-a-vis
403 (walk-windows
404 (function (lambda (win)
405 (if (and (eq (window-buffer win) buffer)
406 (equal (frame-parameter
407 (selected-frame) 'display)
408 (frame-parameter
409 (window-frame win) 'display)))
410 (throw 'got-a-vis win))))
411 nil 'visible)
412 nil))
413
414 (defun multishell-read-bare-shell-buffer-name (prompt default)
415 "PROMPT for shell buffer name, sans asterisks.
416
417 Return the supplied name bracketed with the asterisks, or specified DEFAULT
418 on empty input."
419 (let* ((candidates
420 (append
421 ;; Plain shell buffer names appended with names from name/path hist:
422 (remq nil
423 (mapcar (lambda (buffer)
424 (let* ((name (multishell-unbracket-asterisks
425 (buffer-name buffer))))
426 (and (buffer-live-p buffer)
427 (with-current-buffer buffer
428 ;; Shell mode buffers.
429 (derived-mode-p 'shell-mode))
430 (not (multishell-history-entries name))
431 name)))
432 (buffer-list)))
433 multishell-history))
434 (got (completing-read prompt
435 ;; COLLECTION:
436 (reverse candidates)
437 ;; PREDICATE:
438 nil
439 ;; REQUIRE-MATCH:
440 'confirm
441 ;; INITIAL-INPUT
442 nil
443 ;; HIST:
444 'multishell-history)))
445 (if (not (string= got ""))
446 (multishell-bracket-asterisks got)
447 default)))
448
449 (defun multishell-derive-target-name-and-path (path-ish)
450 "Give tramp-style PATH-ISH, determine target name and default directory.
451
452 The name is the part of the string before the initial '/' slash,
453 if any. Otherwise, it's either the host-name, domain-name, final
454 directory name, or local host name. The path is everything
455 besides the string before the initial '/' slash.
456
457 Return them as a list (name dir), with dir nil if none given."
458 (let (name (path "") dir)
459 (cond ((string= path-ish "") (setq dir multishell-primary-name))
460 ((string-match "^\\*\\([^/]*\\)\\(/.*\\)\\*" path-ish)
461 ;; We have a path, use it
462 (let ((overt-name (match-string 1 path-ish)))
463 (setq path (match-string 2 path-ish))
464 (if (string= overt-name "") (setq overt-name nil))
465 (if (string= path "") (setq path nil))
466 (setq name
467 (multishell-bracket-asterisks
468 (or overt-name
469 (if (file-remote-p path)
470 (let ((vec (tramp-dissect-file-name path)))
471 (or (tramp-file-name-host vec)
472 (tramp-file-name-domain vec)
473 (tramp-file-name-localname vec)
474 system-name))
475 (multishell-unbracket-asterisks
476 multishell-primary-name)))))))
477 (t (setq name (multishell-bracket-asterisks path-ish))))
478 (list name path)))
479
480 (defun multishell-bracket-asterisks (name)
481 "Return a copy of name, ensuring it has an asterisk at the beginning and end."
482 (if (not (string= (substring name 0 1) "*"))
483 (setq name (concat "*" name)))
484 (if (not (string= (substring name -1) "*"))
485 (setq name (concat name "*")))
486 name)
487 (defun multishell-unbracket-asterisks (name)
488 "Return a copy of name, removing asterisks, if any, at beginning and end."
489 (if (string= (substring name 0 1) "*")
490 (setq name (substring name 1)))
491 (if (string= (substring name -1) "*")
492 (setq name (substring name 0 -1)))
493 name)
494
495 (defun multishell-start-shell-in-buffer (buffer-name path)
496 "Ensure a shell is started, with name NAME and PATH."
497 ;; We work around shell-mode's bracketing of the buffer name, and do
498 ;; some tramp-mode hygiene for remote connections.
499
500 (let* ((buffer buffer-name)
501 (prog (or explicit-shell-file-name
502 (getenv "ESHELL")
503 (getenv "SHELL")
504 "/bin/sh"))
505 (name (file-name-nondirectory prog))
506 (startfile (concat "~/.emacs_" name))
507 (xargs-name (intern-soft (concat "explicit-" name "-args")))
508 is-remote)
509 (set-buffer buffer-name)
510 (if (and path (not (string= path "")))
511 (setq default-directory path))
512 (setq is-remote (file-remote-p default-directory))
513 (when (and is-remote
514 (derived-mode-p 'shell-mode)
515 (not (comint-check-proc (current-buffer))))
516 ;; We're returning to an already established but disconnected remote
517 ;; shell, tidy it:
518 (tramp-cleanup-connection
519 (tramp-dissect-file-name default-directory 'noexpand)
520 'keep-debug 'keep-password))
521 ;; (cd default-directory) will connect if remote:
522 (when is-remote
523 (message "Connecting to %s" default-directory))
524 (condition-case err
525 (cd default-directory)
526 (error
527 ;; Aargh. Need to isolate this tramp bug.
528 (when (and (stringp (cadr err))
529 (string-equal (cadr err)
530 "Selecting deleted buffer"))
531 (signal (car err)
532 (list
533 (format "%s, %s (\"%s\")"
534 "Tramp shell can fail on empty (homedir) path"
535 "please try again with an explicit path"
536 (cadr err)))))))
537 (setq buffer (set-buffer (apply 'make-comint
538 (multishell-unbracket-asterisks buffer-name)
539 prog
540 (if (file-exists-p startfile)
541 startfile)
542 (if (and xargs-name
543 (boundp xargs-name))
544 (symbol-value xargs-name)
545 '("-i")))))
546 (shell-mode)))
547
548 (defun multishell-track-dirchange (name newpath)
549 "Change multishell history entry to track current directory."
550 (let* ((entries (multishell-history-entries name)))
551 (dolist (entry entries)
552 (let* ((name-path (multishell-split-entry-name-and-tramp entry))
553 (name (car name-path))
554 (path (cadr name-path)))
555 (when path
556 (let* ((is-remote (file-remote-p path))
557 (vec (and is-remote (tramp-dissect-file-name path nil)))
558 (localname (if is-remote
559 (tramp-file-name-localname vec)
560 path))
561 (newlocalname
562 (replace-regexp-in-string (if (string= localname "")
563 "$"
564 (regexp-quote localname))
565 ;; REP
566 newpath
567 ;; STRING
568 localname
569 ;; FIXEDCASE
570 t
571 ;; LITERAL
572 t
573 ))
574 (newpath (if is-remote
575 (tramp-make-tramp-file-name (aref vec 0)
576 (aref vec 1)
577 (aref vec 2)
578 newlocalname
579 (aref vec 4))
580 newlocalname))
581 (newentry (concat name newpath))
582 (membership (member entry multishell-history)))
583 (when membership
584 (setcar membership newentry))))))))
585 (defvar multishell-was-default-directory ()
586 "Provide for tracking directory changes.")
587 (make-variable-buffer-local 'multishell-was-default-directory)
588 (defun multishell-post-command-business ()
589 "Do multishell bookkeeping."
590 ;; Update multishell-history with dir changes.
591 (condition-case err
592 (when (and multishell-history-entry-tracks-current-directory
593 (derived-mode-p 'shell-mode))
594 (let ((curdir (if (file-remote-p default-directory)
595 (tramp-file-name-localname
596 (tramp-dissect-file-name default-directory))
597 default-directory)))
598 (when (and multishell-was-default-directory
599 (not (string= curdir multishell-was-default-directory)))
600 (multishell-track-dirchange (multishell-unbracket-asterisks
601 (buffer-name))
602 curdir))
603 (setq multishell-was-default-directory curdir)))
604 ;; To avoid disruption as a pervasive hook function, swallow all errors:
605 (error nil)))
606 (add-hook 'post-command-hook 'multishell-post-command-business)
607
608 (defun multishell-split-entry-name-and-tramp (entry)
609 "Given multishell name/path ENTRY, return the separated name and path pair.
610
611 Returns nil for empty parts, rather than the empty string."
612 (string-match "^\\([^/]*\\)\\(/?.*\\)?" entry)
613 (let ((name (match-string 1 entry))
614 (path (match-string 2 entry)))
615 (and (string= name "") (setq name nil))
616 (and (string= path "") (setq path nil))
617 (list name path)))
618
619 (provide 'multishell)
620
621 ;;; multishell.el ends here