aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-05-30 08:10:49 +0000
committerNick Roberts2006-05-30 08:10:49 +0000
commit12e7d5871366a9df9a2fdd1d555b2a38d1c29569 (patch)
tree25efd0e29f7a89ab86b13a21da9b1a15dbe2dc48
parent89f0e7cc360e37fa3c044333559ff98bbb338ad0 (diff)
downloademacs-12e7d5871366a9df9a2fdd1d555b2a38d1c29569.tar.gz
emacs-12e7d5871366a9df9a2fdd1d555b2a38d1c29569.zip
(gud-stop-subjob): Make it work in all buffers.
-rw-r--r--lisp/progmodes/gud.el22
1 files changed, 16 insertions, 6 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index bbb9df4cb2c..c54d76f1d3e 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -130,10 +130,10 @@ Used to grey out relevant togolbar icons.")
130 130
131(defun gud-stop-subjob () 131(defun gud-stop-subjob ()
132 (interactive) 132 (interactive)
133 (if (string-equal 133 (with-current-buffer gud-comint-buffer
134 (buffer-local-value 'gud-target-name gud-comint-buffer) "emacs") 134 (if (string-equal gud-target-name "emacs")
135 (comint-stop-subjob) 135 (comint-stop-subjob)
136 (comint-interrupt-subjob))) 136 (comint-interrupt-subjob))))
137 137
138(easy-mmode-defmap gud-menu-map 138(easy-mmode-defmap gud-menu-map
139 '(([help] "Info" . gud-goto-info) 139 '(([help] "Info" . gud-goto-info)
@@ -645,7 +645,8 @@ 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* ((hist-sym (gud-symbol 'history nil minor-mode)) 648 (let* ((comint-file-name-quote-list '(32))
649 (hist-sym (gud-symbol 'history nil minor-mode))
649 (cmd-name (gud-val 'command-name minor-mode))) 650 (cmd-name (gud-val 'command-name minor-mode)))
650 (unless (boundp hist-sym) (set hist-sym nil)) 651 (unless (boundp hist-sym) (set hist-sym nil))
651 (read-from-minibuffer 652 (read-from-minibuffer
@@ -2537,7 +2538,16 @@ comint mode, which see."
2537;; for local variables in the debugger buffer. 2538;; for local variables in the debugger buffer.
2538(defun gud-common-init (command-line massage-args marker-filter 2539(defun gud-common-init (command-line massage-args marker-filter
2539 &optional find-file) 2540 &optional find-file)
2540 (let* ((words (split-string command-line)) 2541 (let* (string
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)))))
2541 (program (car words)) 2551 (program (car words))
2542 (dir default-directory) 2552 (dir default-directory)
2543 ;; Extract the file name from WORDS 2553 ;; Extract the file name from WORDS