diff options
| author | Stefan Monnier | 2004-05-19 18:58:21 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-05-19 18:58:21 +0000 |
| commit | d490ebbe49f75a5041e97621a72a55fe033226f7 (patch) | |
| tree | 251431ebe8a64b7a3ce8e66d4e6549406c73ea31 | |
| parent | 91ba19536ab21ff58849f38a7921e43f32cf0ca8 (diff) | |
| download | emacs-d490ebbe49f75a5041e97621a72a55fe033226f7.tar.gz emacs-d490ebbe49f75a5041e97621a72a55fe033226f7.zip | |
(gdb-reset): Use unless. Fix regexp.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 19c57979130..1fa6f8f2645 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -1728,15 +1728,15 @@ This arrangement depends on the value of `gdb-many-windows'." | |||
| 1728 | "Exit a debugging session cleanly by killing the gdb buffers and resetting | 1728 | "Exit a debugging session cleanly by killing the gdb buffers and resetting |
| 1729 | the source buffers." | 1729 | the source buffers." |
| 1730 | (dolist (buffer (buffer-list)) | 1730 | (dolist (buffer (buffer-list)) |
| 1731 | (if (not (eq buffer gud-comint-buffer)) | 1731 | (unless (eq buffer gud-comint-buffer) |
| 1732 | (with-current-buffer buffer | 1732 | (with-current-buffer buffer |
| 1733 | (if (memq gud-minor-mode '(gdba pdb)) | 1733 | (if (memq gud-minor-mode '(gdba pdb)) |
| 1734 | (if (string-match "^\*.+*$" (buffer-name)) | 1734 | (if (string-match "\\`\\*.+\\*\\'" (buffer-name)) |
| 1735 | (kill-buffer nil) | 1735 | (kill-buffer nil) |
| 1736 | (gdb-remove-breakpoint-icons (point-min) (point-max) t) | 1736 | (gdb-remove-breakpoint-icons (point-min) (point-max) t) |
| 1737 | (setq gud-minor-mode nil) | 1737 | (setq gud-minor-mode nil) |
| 1738 | (kill-local-variable 'tool-bar-map) | 1738 | (kill-local-variable 'tool-bar-map) |
| 1739 | (setq gud-running nil)))))) | 1739 | (setq gud-running nil)))))) |
| 1740 | (when (markerp gdb-overlay-arrow-position) | 1740 | (when (markerp gdb-overlay-arrow-position) |
| 1741 | (move-marker gdb-overlay-arrow-position nil) | 1741 | (move-marker gdb-overlay-arrow-position nil) |
| 1742 | (setq gdb-overlay-arrow-position nil)) | 1742 | (setq gdb-overlay-arrow-position nil)) |
| @@ -2013,5 +2013,5 @@ BUFFER nil or omitted means use the current buffer." | |||
| 2013 | 2013 | ||
| 2014 | (provide 'gdb-ui) | 2014 | (provide 'gdb-ui) |
| 2015 | 2015 | ||
| 2016 | ;;; arch-tag: e9fb00c5-74ef-469f-a088-37384caae352 | 2016 | ;; arch-tag: e9fb00c5-74ef-469f-a088-37384caae352 |
| 2017 | ;;; gdb-ui.el ends here | 2017 | ;;; gdb-ui.el ends here |