1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

61 Commits

Author SHA1 Message Date
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
Richard M. Stallman
cb96d15d59 (shell-prompt-pattern): Use defvar. 1993-06-01 21:41:11 +00:00
Richard M. Stallman
24fdffaaa0 (shell-prompt-pattern): Undo last change. 1993-04-29 14:23:22 +00:00
Noah Friedman
42d5c01e21 *** empty log message *** 1993-04-24 10:10:19 +00:00
Eric S. Raymond
31e1d9206b All fsets changed to defaliases. 1993-04-23 06:51:44 +00:00
Roland McGrath
8f95f0ced4 (shell-mode): isationization (doc fix). 1993-04-19 21:26:07 +00:00
Roland McGrath
bd5201e334 (shell-mode): Capitalize mode name. 1993-04-19 21:19:44 +00:00
Jim Blandy
b7fc702ec2 Doc fix. 1993-04-07 15:14:21 +00:00