1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

168 Commits

Author SHA1 Message Date
Juanma Barranquero
c60ee5e70f Cygwin support patch. 2003-01-31 15:24:20 +00:00
Kim F. Storm
969a063106 (explicit-bash-args): Bash 1.x doesn't grook
--noediting option; added run-time check to exclude it.
2002-10-31 23:37:15 +00:00
Richard M. Stallman
4df542027f (shell): Look for .emacs_SHELL under ~/.emacs.d after looking in ~. 2002-10-26 22:42:12 +00:00
Juanma Barranquero
4696802bde Fix typo. 2002-07-03 12:01:24 +00:00
Andreas Schwab
6674676b22 (explicit-bash-args): New user option. 2002-06-28 18:50:36 +00:00
Francesco Potortì
6ba0fd3eb9 (shell-mode): Use (ring-empty-p rather than (zerop (ring-length. 2002-05-14 08:46:00 +00:00
Francesco Potortì
f19be16338 (shell-mode): Make second part of initialisation
depend on whether comint-input-ring is empty, rather than depend
on it being nil.
2002-05-14 08:42:48 +00:00
Richard M. Stallman
1b93984e8f (shell-replace-by-expanded-directory):
If there's already a / at the end, don't add one.
2002-05-10 00:58:27 +00:00
Richard M. Stallman
ee8107c0ea (shell-mode): Don't reinit comint-input-ring if that was already done. 2002-04-03 15:23:59 +00:00
Colin Walters
8f36167aa6 (toplevel): Revert previous change to use pcomplete.
(shell-mode): Ditto.
(shell-pcomplete-setup-done): Remove.
(shell-pcomplete): Ditto.
(shell-pcomplete-reverse): Ditto.
2002-03-11 21:13:14 +00:00
Kim F. Storm
86078cf060 (shell-pcomplete-setup-done): New variable.
(shell-pcomplete): Use it instead of shell-pcomplete-setup-p.
(shell-pcomplete-reverse): Ditto.
2002-02-25 21:04:00 +00:00
Kim F. Storm
cdf074531a (shell-mode-map): Add "Complete" header so completion
menu is shown on the menu bar in shell mode.
2002-02-25 10:50:29 +00:00
Colin Walters
d9c62d8f6c (shell-pcomplete, shell-pcomplete-reverse): New functions.
(toplevel): Bind them.
(shell-mode): Don't set `comint-dynamic-complete-functions'; it is
not necessary now that we use pcomplete.
2002-02-23 21:34:11 +00:00
Stefan Monnier
5a45735a4b (shell): Use shell-file-name.
Pop to buffer before calling comint to set COLUMNS properly.
2001-12-02 07:39:23 +00:00
Pavel Janík
1cd7adc68a Emacs lisp coding convention fixes. 2001-07-14 11:21:08 +00:00
Sam Steingold
847285704d shell-write-history-on-exit: make sure the error message goes to the right buffer 2001-01-28 03:43:35 +00:00
Eli Zaretskii
f5058b9653 (shell-unquote-argument): If the shell is one of the
mentioned in shell-dumb-shell-regexp, don't treat a backslash as a
quote character.
(shell-dumb-shell-regexp): Document that the shells which match
this regexp are supposed to not treat a backslash as a quote
character.
2001-01-27 12:43:56 +00:00
Stefan Monnier
9f299ecba0 (shell-mode): Use define-derived-mode. 2000-11-21 21:33:45 +00:00
Miles Bader
fd1035aaf7 (shell): Add BUFFER argument. 2000-10-27 08:01:52 +00:00
Andrew Innes
4dced92736 (shell-write-history-on-exit): New function.
(shell-dumb-shell-regexp): New custom variable.
(shell-mode): Make shell-write-history-on-exit the process
sentinel if shell name matches shell-dumb-shell-regexp.
2000-09-14 21:15:44 +00:00
Miles Bader
cb6e07b14f (shell-font-lock-keywords): Remove prompt highlighting, since this is
now done independently of font-lock mode.
2000-08-22 10:06:55 +00:00
Miles Bader
28bc09d6f8 (shell-prompt-pattern): Doc change.
(shell-backward-command): Use line-beginning-position.
2000-08-07 14:51:48 +00:00
Karl Heuer
5762abecd3 Fix maintainer address. 1999-08-16 04:04:27 +00:00
Karl Heuer
5f49d5e88d (shell-unquote-argument): New function.
(shell-directory-tracker): Use shell-unquote-argument.
1999-07-20 04:16:51 +00:00
Karl Heuer
94c34f7a74 Comment fix. 1999-05-17 06:14:44 +00:00
Simon Marshall
8a6387ed6c * shell.el (shell-dirtrack-verbose): New custom variable.
(shell-dirstack-message): Use it.
1999-01-14 10:31:31 +00:00
Richard M. Stallman
fad22e2e9c (shell-prompt-pattern): Add defcustom. 1998-11-22 15:33:21 +00:00
Richard M. Stallman
362ae0b3f8 (shell-input-autoexpand): Fix customization group. 1998-10-17 15:29:39 +00:00
Andreas Schwab
6f0984e52c (shell-input-autoexpand): Fix customize type. 1998-09-18 09:20:28 +00:00
Karl Heuer
ad3f2354b6 (shell-file-name-quote-list): Add # to the value. 1998-09-10 15:26:22 +00:00
Richard M. Stallman
a9e73449bf (shell-copy-environment-variable): Fix doc typo. 1998-06-28 22:43:25 +00:00
Geoff Voelker
4aed037936 (shell-file-name-chars): Add ',' and ':'. 1998-04-17 05:25:04 +00:00
Karl Heuer
2154db49c8 (shell-dirtrack-mode): Renamed from shell-dirtrack-toggle.
(dirtrack-mode, shell-dirtrack-toggle): Defined as aliases.
1998-02-25 22:43:03 +00:00
Richard M. Stallman
233f3fb8de (shell-chdrive-regexp): Likewise. 1997-09-09 02:56:56 +00:00
Richard M. Stallman
c64d8c5548 (shell-snarf-envar, shell-copy-environment-variable): New functions. 1997-08-22 23:37:38 +00:00
Simon Marshall
fdcc1ef736 Make shell-last-dir buffer-local. 1997-08-22 08:08:26 +00:00
Richard M. Stallman
ebe4d555dc (shell): Doc fix. 1997-08-04 03:06:28 +00:00
Richard M. Stallman
5d9719e6ee (shell-mode): Do set list-files-directory locally. 1997-07-20 04:13:45 +00:00
Simon Marshall
f8604035c1 change maintainer. 1997-07-15 08:32:51 +00:00
Richard M. Stallman
e9904b596a (shell-mode): Add a mode-class property. 1997-05-05 00:59:28 +00:00
Simon Marshall
473fbd897f Use EVAL form for shell-prompt-pattern. 1997-04-17 07:35:38 +00:00
Richard M. Stallman
ed366e8726 Add defgroup's; use defcustom for user vars. 1997-04-13 02:39:56 +00:00
Richard M. Stallman
6414073a99 (shell-mode): Don't set list-buffers-directory. 1997-01-18 06:10:10 +00:00
Richard M. Stallman
fbcb305501 (shell-mode): Don't assume /dev/null is its own truename. 1996-08-26 15:33:13 +00:00
Richard M. Stallman
76f63ea09c (shell-file-name-chars): Was shell-file-name-regexp.
(shell-mode): Set comint-file-name-chars to this variable.
1996-08-01 22:35:03 +00:00
Simon Marshall
39d1a2ce04 Bind shell-file-name-quote-list and shell-file-name-regexp specially for MSDOG. 1996-07-12 07:34:20 +00:00
Richard M. Stallman
32d0121276 (shell-directory-tracker): Use comint-substitute-in-file-name to
handle system-specific syntax.

(shell-chdrive-regexp): New variable.
(shell-mode): Update doc string.
(shell-directory-tracker): Detect drive changes.
Update doc string.
1996-06-09 20:31:51 +00:00
Richard M. Stallman
da6a48c9d1 (shell-match-partial-variable): Doc fix. 1996-06-04 15:27:52 +00:00
Simon Marshall
221ca406ba Resync directories properly for the ksh. 1996-02-03 13:38:32 +00:00
Karl Heuer
6048fac7bf (shell-dirstack-message): Pass proper format string to message. 1996-01-25 00:57:10 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
5402169506 (shell-directory-tracker): Check for terminator after
cd, pushd, or popd, so that we don't try to do directory tracking
on things like "cdump".
Don't use \\s patterns inside brackets.
1995-06-19 22:54:58 +00:00
Richard M. Stallman
1458efa037 (shell-mode): Make shell-directory-tracker a hook function locally only. 1995-06-14 12:05:55 +00:00
Simon Marshall
525c5be7dd check comint-input-ring-file-name for the empty string too. 1995-06-13 08:16:08 +00:00
Simon Marshall
86a21134a5 shell-font-lock-keywords efficiency fix. 1995-04-24 11:51:28 +00:00
Simon Marshall
7b4c65034c Set comint-file-name-quote-list to new shell-file-name-quote-list. 1995-04-03 13:01:15 +00:00
Richard M. Stallman
75c7042521 Comment change. 1995-03-30 07:31:38 +00:00
Richard M. Stallman
519bfec496 (shell): Use pop-to-buffer.
(same-window-buffer-names): Add *shell* to the list.
1995-03-12 09:39:49 +00:00
Simon Marshall
b7e97ed504 Make sure shell-cd sets list-buffers-directory to a directory ending with `/'. 1995-03-02 08:59:07 +00:00
Simon Marshall
4841acc437 Moved buffer truncation functionality to comint.el. 1995-02-25 16:16:57 +00:00
Simon Marshall
8079b5901c Added shell-truncate-buffer function to restrict buffer size to
at most shell-buffer-maximum-size lines in length.
1995-02-25 16:10:01 +00:00
Simon Marshall
0b3c9cf195 Change all cd's to shell-cd's, where `shell-cd' changes the value of
list-buffers-directory so that a buffer list contains the cwd in the `file'
field.
1995-02-21 13:07:23 +00:00
Richard M. Stallman
27b18eed0e Comment changes. 1995-02-04 02:05:14 +00:00
Richard M. Stallman
b0824def8b (shell): If we create a new shell buffer,
select that buffer even if it has been renamed.
1995-01-27 22:37:16 +00:00
Simon Marshall
e9933cb15c Doc fixes (simon's email address and shell-mode) 1995-01-10 12:08:21 +00:00
Richard M. Stallman
547d70f520 Comment change. 1994-11-19 05:24:57 +00:00
Simon Marshall
c156572ff2 * shell.el: (shell-font-lock-keywords): Add `\n' to [^] regexps.
(shell-mode): Set font-lock-defaults.
1994-10-12 09:18:53 +00:00
Richard M. Stallman
5945a1f78f (shell-font-lock-keywords): New variable.
(shell-mode): Set font-lock-keywords locally.
1994-10-07 10:04:06 +00:00
Richard M. Stallman
d87146724c (shell-strip-ctrl-m): Function moved to comint.el and renamed. 1994-10-03 01:10:57 +00:00
Richard M. Stallman
3f9e315acf (shell-mode): Compare the truename with /dev/null. 1994-10-02 20:11:07 +00:00
Richard M. Stallman
1ed30e752a (shell-mode-map): Inherit comint-mode-map, but copy the completion menu. 1994-09-18 20:28:23 +00:00
Richard M. Stallman
a8e0effbfb (shell-command-regexp): Use a simpler faster regexp. 1994-09-03 23:05:04 +00:00
Richard M. Stallman
8137dca99f Comment change. 1994-07-16 21:31:43 +00:00
Richard M. Stallman
3c24374d14 (shell-mode): Don't read history from /dev/null. 1994-07-01 20:45:59 +00:00
Richard M. Stallman
4a02b552f1 (shell-prefixed-directory-name): Do nothing if
comint-file-name-prefix is empty.  Do not inline.
1994-06-23 23:12:13 +00:00
Richard M. Stallman
bb55b64df0 (shell-strip-ctrl-m): Strip multiple ^Ms. 1994-05-22 00:51:36 +00:00
Karl Heuer
19134c18f4 (shell-forward-command, shell-backward-command): Fix regexp. 1994-05-07 01:22:50 +00:00
Richard M. Stallman
c63e83a4ee (shell-dirstack-query): Defaults to nil.
(shell-mode): Guesses shell-dirstack-query based on shell name.
1994-04-24 10:50:41 +00:00
Karl Heuer
5109bfb09f (shell-mode-map): Fix menu bar options.
(shell-replace-by-expanded-directory): Don't print message.
1994-04-14 22:49:23 +00:00
Karl Heuer
7b2db0a013 (shell-dynamic-complete-as-command): Don't match ignored-extensions if it's nil. 1994-04-14 19:19:30 +00:00
Richard M. Stallman
56783585a4 (shell-strip-ctrl-m): New command.
(shell-mode): Doc fix.
(shell-dynamic-complete-as-command): Use comint-dynamic-simple-complete.
1994-03-24 07:51:27 +00:00
Richard M. Stallman
a867a90a32 (shell-dynamic-complete-as-command): Make ignored-extensions
nil if comint-completion-fignore is nil.
1994-03-10 18:54:44 +00:00
Richard M. Stallman
e11284d5d2 (shell-completion-fignore): New variable.
(shell-mode): Use it to set comint-completion-fignore.
(shell-dynamic-complete-as-command): Use it.
1994-03-08 17:43:07 +00:00
Richard M. Stallman
ba02c1673c Rename comint-input-filter-functions and
comint-output-filter-functions.

(shell-mode): Put dir tracker on comint-input-filter-functions,
not ...output...

(shell-directory-tracker, shell-process-popd):
Call just error, not message and error.
1994-03-03 23:57:27 +00:00
Richard M. Stallman
988a4d60ce (shell-dynamic-complete-functions): New variable.
(shell-mode): Use it to set comint-dynamic-complete-functions.

(shell-mode-map): Define menu-bars for command,
variable and directory completion/expansion.

(shell-get-current-command, shell-after-partial-filename): Functions deleted.

(shell-dynamic-complete-environment-variable,
shell-replace-by-expanded-directory): New commands.
(shell-match-partial-variable,
shell-dynamic-complete-as-environment-variable): New functions.
1994-03-03 23:37:27 +00:00
Richard M. Stallman
56eb10608f (shell-delimiter-argument-list): Now has chars, not strings. 1994-03-02 22:02:56 +00:00
Richard M. Stallman
b493a9b2af (shell-dirtrackp): Variable definition added. 1994-03-02 16:55:16 +00:00
Richard M. Stallman
9376442d17 (shell-mode-map): Use copy-keymap. 1994-03-02 16:51:02 +00:00
Richard M. Stallman
8921525e34 (shell-get-current-command): Make regexp more selective. 1994-02-10 08:35:48 +00:00
Richard M. Stallman
4f99443b8e (shell-input-autoexpand): New variable.
(shell-mode): Set comint-input-autoexpand.
(shell-mode): Don't call shell-dirstack-message.
1994-01-09 17:11:57 +00:00
Roland McGrath
3db9a4ebb4 (shell-cd): Function removed.
(shell-prefixed-directory-name): New defsubst.
(shell-process-popd, shell-process-pushd, shell-process-cd,
shell-resync-dirs): Apply it to ARG when it's a directory name.
Use (concat comint-file-name-prefix "~") in place of (getenv "HOME") or "~".
Call cd instead of shell-cd.
1994-01-06 17:02:00 +00:00
Richard M. Stallman
b0f867435d (shell-backward-command): If comint-bol moves forward,
use real beginning of line instead.
Use skip-syntax-backward properly.
If backward search finds a separator, move forward over it.
(shell-forward-command): Call skip-syntax-backward properly.
1993-12-24 05:42:58 +00:00
Richard M. Stallman
f5a131d8fd (shell-mode): Pass t to comint-read-input-ring. 1993-12-23 03:41:22 +00:00
Richard M. Stallman
3bede93e15 Comment change. 1993-11-25 02:37:21 +00:00
Richard M. Stallman
5394cb4470 Doc fixes. 1993-11-08 23:40:37 +00:00
Richard M. Stallman
d76b71afe3 (shell-after-partial-filename): Renamed from
shell-after-partial-pathname.

Commented out shell-load-hooks.

(shell-after-partial-pathname): New subroutine.

Renamed shell-command-execonly to
shell-completion-execonly for consistency.

(shell-read-input-ring, shell-input-ring-file-name):
Moved to, and renamed in, comint.el.

(shell-dynamic-complete-command):  Make sure local
completion-ignore-case is nil.

(shell-mode): Set buffer-local variable paragraph-start
to comint-prompt-regexp so paragraph motion/mark commands work on
output groups.
Set comint-after-partial-pathname to it.
(shell-read-input-ring): Use find-file-noselect.

(shell-match-cmd-w/optional-arg): Removed.

(shell-delimiter-argument-list): New variable.
(shell-input-ring-file-name): New variable.

(shell-mode-map): Changed file name completions listing
binding to new name comint-dynamic-list-filename-completions.

(shell-mode): Call new function shell-read-input-ring
and shell-dirstack on start up.  Doc fix for new functionality.

(shell-mode): Set shell-input-ring-file-name depending
on the command that was invoked for the inferior shell.  Set
comint-delimiter-argument-list to shell-delimiter-argument-list.

(shell-read-input-ring): New function.

(shell-directory-tracker): Use comint-arguments.

(shell-front-match): Removed.
(shell-match-cmd-w/optional-arg): Removed.

(shell-process-popd): Fixed bug when numeric argument
equal to length of stack including current directory.
(shell-process-pushd): Fixed missing ()s in cond.

(shell-dynamic-complete-command): Uses exec-path minus
trailing emacs library path.  Uses "." for nil elements in
exec-path.  Uses string-match rather than funcall to test
candidate extensions.  Uses member on completions list rather than
file-exists-p to test for existence.  Uses file-directory-p rather
than funcall to test for directory.  Uses directories only if in
current directory.  Uses comint-dynamic-list-completions.


(shell-command-regexp, shell-command-execonly)
(shell-pushd-tohome, shell-pushd-dextract)
(shell-pushd-dunique): New variables.

(shell-mode-map): Bound shell-forward/backward-command
to C-c C-f and C-c C-b.

(shell-mode): Set comint variables for which
shells have different values:
comint-get-current-command, comint-dynamic-complete-command.

(shell-directory-tracker): Parse through
command sequences for directory commands.
(shell-process-popd): Signal error if can't
process argument/stack.  Fixed bug when no argument and no stack.
(shell-process-cd): Signal error if can't process argument.
(shell-process-pushd): Signal error if can't
process argument/stack.  Handle shell-pushd-tohome,
shell-pushd-dextract, and shell-pushd-dunique.

(shell-forward-command, shell-backward-command)
(shell-dynamic-complete-command): New commands.
1993-10-22 02:53:24 +00:00
Roland McGrath
94f9dcbecf (shell-dirstack-message): Recognize ~ by matching the expansion of "~" with
comint-filename-prefix prepended.  Strip comint-filename-prefix from elts.
1993-09-08 07:39:14 +00:00
Roland McGrath
9dac043349 (shell-cd): New function, like `cd' but prepend comint-filename-prefix.
(shell-resync-dirs, shell-process-cd, shell-process-pushd,
shell-process-popd): Use shell-cd in place of cd.
1993-09-08 07:06:46 +00:00
Roland McGrath
36df718cbf (shell-resync-dirs, shell-process-cd, shell-process-pushd,
shell-process-popd): Prepend comint-filename-prefix to directory names when
calling cd.
1993-09-08 07:01:42 +00:00
Jim Blandy
ac75ef20d2 * shell.el (shell-process-pushd): Fix syntax error in
condition-case.

	* shell.el (shell-prompt-pattern): Don't match more than one line.
	Doc fix.
1993-07-18 06:20:47 +00:00