diff options
| author | Karl Heuer | 1999-07-20 04:17:05 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-07-20 04:17:05 +0000 |
| commit | e7cfa73fc0f3fb7c8e23967189f69f8798453d55 (patch) | |
| tree | f44b8dca5804fa865df7056708e1c9856e61b787 | |
| parent | 5f49d5e88dc25b579f651c9ed48c213cc0dd21f5 (diff) | |
| download | emacs-e7cfa73fc0f3fb7c8e23967189f69f8798453d55.tar.gz emacs-e7cfa73fc0f3fb7c8e23967189f69f8798453d55.zip | |
(comint-arguments): Handle \ followed by space or tab.
| -rw-r--r-- | lisp/comint.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index a8019f8ee31..5292c09bf66 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1182,7 +1182,8 @@ Quotes are single and double." | |||
| 1182 | "Return from STRING the NTH to MTH arguments. | 1182 | "Return from STRING the NTH to MTH arguments. |
| 1183 | NTH and/or MTH can be nil, which means the last argument. | 1183 | NTH and/or MTH can be nil, which means the last argument. |
| 1184 | Returned arguments are separated by single spaces. | 1184 | Returned arguments are separated by single spaces. |
| 1185 | We assume whitespace separates arguments, except within quotes. | 1185 | We assume whitespace separates arguments, except within quotes |
| 1186 | and except for a space or tab that immediately follows a backslash. | ||
| 1186 | Also, a run of one or more of a single character | 1187 | Also, a run of one or more of a single character |
| 1187 | in `comint-delimiter-argument-list' is a separate argument. | 1188 | in `comint-delimiter-argument-list' is a separate argument. |
| 1188 | Argument 0 is the command name." | 1189 | Argument 0 is the command name." |
| @@ -1195,7 +1196,7 @@ Argument 0 is the command name." | |||
| 1195 | (let* ((first (if (and (eq system-type 'windows-nt) | 1196 | (let* ((first (if (and (eq system-type 'windows-nt) |
| 1196 | (w32-shell-dos-semantics)) | 1197 | (w32-shell-dos-semantics)) |
| 1197 | "[^ \n\t\"'`]+\\|" | 1198 | "[^ \n\t\"'`]+\\|" |
| 1198 | "[^ \n\t\"'`\\]+\\|\\\\[\"'`\\]+\\|")) | 1199 | "[^ \n\t\"'`\\]+\\|\\\\[\"'`\\ \t]+\\|")) |
| 1199 | (argpart (concat first | 1200 | (argpart (concat first |
| 1200 | "\\(\"\\([^\"\\]\\|\\\\.\\)*\"\\|\ | 1201 | "\\(\"\\([^\"\\]\\|\\\\.\\)*\"\\|\ |
| 1201 | '[^']*'\\|\ | 1202 | '[^']*'\\|\ |