diff options
| author | Richard M. Stallman | 1994-10-13 18:20:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-13 18:20:55 +0000 |
| commit | c561a0cbfd4f1c800cb113905b43d08ce36d9883 (patch) | |
| tree | 8c8750baf5fcc53cec3d835690708b7c3e15571a | |
| parent | c171b42fcfb693344d102f615abef6d565e5db44 (diff) | |
| download | emacs-c561a0cbfd4f1c800cb113905b43d08ce36d9883.tar.gz emacs-c561a0cbfd4f1c800cb113905b43d08ce36d9883.zip | |
(gud-filter): Don't bind inhibit-quit.
Do nothing if buffer is dead.
| -rw-r--r-- | lisp/gud.el | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lisp/gud.el b/lisp/gud.el index c8cf26c4d91..c43f6e2d4ab 100644 --- a/lisp/gud.el +++ b/lisp/gud.el | |||
| @@ -1009,28 +1009,28 @@ comint mode, which see." | |||
| 1009 | 1009 | ||
| 1010 | (defun gud-filter (proc string) | 1010 | (defun gud-filter (proc string) |
| 1011 | ;; Here's where the actual buffer insertion is done | 1011 | ;; Here's where the actual buffer insertion is done |
| 1012 | (let ((inhibit-quit t) | 1012 | (let (output) |
| 1013 | output) | 1013 | (if (buffer-name (process-buffer proc)) |
| 1014 | (save-excursion | 1014 | (save-excursion |
| 1015 | (set-buffer (process-buffer proc)) | 1015 | (set-buffer (process-buffer proc)) |
| 1016 | ;; If we have been so requested, delete the debugger prompt. | 1016 | ;; If we have been so requested, delete the debugger prompt. |
| 1017 | (if (marker-buffer gud-delete-prompt-marker) | 1017 | (if (marker-buffer gud-delete-prompt-marker) |
| 1018 | (progn | 1018 | (progn |
| 1019 | (delete-region (process-mark proc) gud-delete-prompt-marker) | 1019 | (delete-region (process-mark proc) gud-delete-prompt-marker) |
| 1020 | (set-marker gud-delete-prompt-marker nil))) | 1020 | (set-marker gud-delete-prompt-marker nil))) |
| 1021 | ;; Save the process output, checking for source file markers. | 1021 | ;; Save the process output, checking for source file markers. |
| 1022 | (setq output (gud-marker-filter string)) | 1022 | (setq output (gud-marker-filter string)) |
| 1023 | ;; Check for a filename-and-line number. | 1023 | ;; Check for a filename-and-line number. |
| 1024 | ;; Don't display the specified file | 1024 | ;; Don't display the specified file |
| 1025 | ;; unless (1) point is at or after the position where output appears | 1025 | ;; unless (1) point is at or after the position where output appears |
| 1026 | ;; and (2) this buffer is on the screen. | 1026 | ;; and (2) this buffer is on the screen. |
| 1027 | (if (and gud-last-frame | 1027 | (if (and gud-last-frame |
| 1028 | (>= (point) (process-mark proc)) | 1028 | (>= (point) (process-mark proc)) |
| 1029 | (get-buffer-window (current-buffer))) | 1029 | (get-buffer-window (current-buffer))) |
| 1030 | (gud-display-frame)) | 1030 | (gud-display-frame)) |
| 1031 | ;; Let the comint filter do the actual insertion. | 1031 | ;; Let the comint filter do the actual insertion. |
| 1032 | ;; That lets us inherit various comint features. | 1032 | ;; That lets us inherit various comint features. |
| 1033 | (comint-output-filter proc output)))) | 1033 | (comint-output-filter proc output))))) |
| 1034 | 1034 | ||
| 1035 | (defun gud-sentinel (proc msg) | 1035 | (defun gud-sentinel (proc msg) |
| 1036 | (cond ((null (buffer-name (process-buffer proc))) | 1036 | (cond ((null (buffer-name (process-buffer proc))) |