diff options
| author | Nick Roberts | 2006-05-30 21:43:16 +0000 |
|---|---|---|
| committer | Nick Roberts | 2006-05-30 21:43:16 +0000 |
| commit | d792d4449aa248bdc6fdb279917a07c2024cfdb1 (patch) | |
| tree | debf227118c0b6b65ca6ea1a2e7ca50534794ffc | |
| parent | 318474dc752e9f3f90e84302116f2c28b450862a (diff) | |
| download | emacs-d792d4449aa248bdc6fdb279917a07c2024cfdb1.tar.gz emacs-d792d4449aa248bdc6fdb279917a07c2024cfdb1.zip | |
(gud-query-cmdline, gud-common-init): Revert
inadvertant changes made with last commit.
| -rw-r--r-- | lisp/progmodes/gud.el | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index c54d76f1d3e..292ebdff107 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -645,8 +645,7 @@ required by the caller." | |||
| 645 | :inherit minibuffer-local-map) | 645 | :inherit minibuffer-local-map) |
| 646 | 646 | ||
| 647 | (defun gud-query-cmdline (minor-mode &optional init) | 647 | (defun gud-query-cmdline (minor-mode &optional init) |
| 648 | (let* ((comint-file-name-quote-list '(32)) | 648 | (let* ((hist-sym (gud-symbol 'history nil minor-mode)) |
| 649 | (hist-sym (gud-symbol 'history nil minor-mode)) | ||
| 650 | (cmd-name (gud-val 'command-name minor-mode))) | 649 | (cmd-name (gud-val 'command-name minor-mode))) |
| 651 | (unless (boundp hist-sym) (set hist-sym nil)) | 650 | (unless (boundp hist-sym) (set hist-sym nil)) |
| 652 | (read-from-minibuffer | 651 | (read-from-minibuffer |
| @@ -2538,16 +2537,7 @@ comint mode, which see." | |||
| 2538 | ;; for local variables in the debugger buffer. | 2537 | ;; for local variables in the debugger buffer. |
| 2539 | (defun gud-common-init (command-line massage-args marker-filter | 2538 | (defun gud-common-init (command-line massage-args marker-filter |
| 2540 | &optional find-file) | 2539 | &optional find-file) |
| 2541 | (let* (string | 2540 | (let* ((words (split-string command-line)) |
| 2542 | (words | ||
| 2543 | ;; Do this to allow spaces in filenames. | ||
| 2544 | (let (temp-words) | ||
| 2545 | (dolist (word (split-string command-line "[ \f\t\n\r\v]") | ||
| 2546 | (nreverse temp-words)) | ||
| 2547 | (if (string-match "\\(.*?\\)\\\\$" word) | ||
| 2548 | (setq string (concat string (match-string 1 word) " ")) | ||
| 2549 | (push (concat string word) temp-words) | ||
| 2550 | (setq string nil))))) | ||
| 2551 | (program (car words)) | 2541 | (program (car words)) |
| 2552 | (dir default-directory) | 2542 | (dir default-directory) |
| 2553 | ;; Extract the file name from WORDS | 2543 | ;; Extract the file name from WORDS |