summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-05-07 01:22:50 +0000
committerKarl Heuer <kwzh@gnu.org>1994-05-07 01:22:50 +0000
commit19134c18f4df3deee1aad2f7659aa9ca582d1104 (patch)
tree007f0d56fe200efabbe3e24a14e2ba7655644f48 /lisp/shell.el
parentd9fc020b58c7de82276ea0f513e59ed53ebb90b3 (diff)
downloademacs-19134c18f4df3deee1aad2f7659aa9ca582d1104.tar.gz
(shell-forward-command, shell-backward-command): Fix regexp.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 33d84a181a9..c7beee72b99 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -638,7 +638,7 @@ command again."
See `shell-command-regexp'."
(interactive "p")
(let ((limit (save-excursion (end-of-line nil) (point))))
- (if (re-search-forward (concat shell-command-regexp "\\([;&|][\\s ]*\\)+")
+ (if (re-search-forward (concat shell-command-regexp "\\([;&|][\t ]*\\)+")
limit 'move arg)
(skip-syntax-backward " "))))
@@ -652,7 +652,7 @@ See `shell-command-regexp'."
(save-excursion (beginning-of-line) (setq limit (point))))
(skip-syntax-backward " " limit)
(if (re-search-backward
- (format "[;&|]+[\\s ]*\\(%s\\)" shell-command-regexp) limit 'move arg)
+ (format "[;&|]+[\t ]*\\(%s\\)" shell-command-regexp) limit 'move arg)
(progn (goto-char (match-beginning 1))
(skip-chars-forward ";&|")))))