Mercurial > emacs
changeset 69214:092d8fdb26e2
(gdb-speedbar-refresh): Rename from
gdb-speedbar-timer-fn. Use speedbar-refresh instead of
speedbar-timer-fn
(gdb-var-update-handler, gdb-var-update-handler-1): Use it.
(gdb-speedbar-expand-node): Use speedbar-delete-subblock
instead of gdb-speedbar-timer-fn.
(gdb-edit-value):
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Tue, 28 Feb 2006 21:52:30 +0000 |
parents | d836c61e53c9 |
children | ef5cd9601f14 |
files | lisp/progmodes/gdb-ui.el |
diffstat | 1 files changed, 13 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el Tue Feb 28 21:51:39 2006 +0000 +++ b/lisp/progmodes/gdb-ui.el Tue Feb 28 21:52:30 2006 +0000 @@ -750,15 +750,15 @@ (delq 'gdb-var-update gdb-pending-triggers)) (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) ;; Dummy command to update speedbar at right time. - (gdb-enqueue-input (list "server pwd\n" 'gdb-speedbar-timer-fn)) + (gdb-enqueue-input (list "server pwd\n" 'gdb-speedbar-refresh)) ;; Keep gdb-pending-triggers non-nil till end. - (push 'gdb-speedbar-timer gdb-pending-triggers))) - -(defun gdb-speedbar-timer-fn () + (push 'gdb-speedbar-refresh gdb-pending-triggers))) + +(defun gdb-speedbar-refresh () (setq gdb-pending-triggers - (delq 'gdb-speedbar-timer gdb-pending-triggers)) + (delq 'gdb-speedbar-refresh gdb-pending-triggers)) (with-current-buffer gud-comint-buffer - (speedbar-timer-fn))) + (speedbar-refresh))) (defun gdb-var-delete () "Delete watch expression at point from the speedbar." @@ -819,9 +819,10 @@ (dolist (var gdb-var-list) (if (string-match (concat token "\\.") (nth 1 var)) (setq gdb-var-list (delq var gdb-var-list)))) - (setq gdb-force-update t) - (with-current-buffer gud-comint-buffer - (speedbar-timer-fn))))) + (speedbar-change-expand-button-char ?+) + (speedbar-delete-subblock indent)) + (t (error "Ooops... not sure what to do"))) + (speedbar-center-buffer-smartly)) (defun gdb-get-target-string () (with-current-buffer gud-comint-buffer @@ -2694,7 +2695,7 @@ (defun gdb-reset () "Exit a debugging session cleanly. -Kills the gdb buffers and resets the source buffers." +Kills the gdb buffers, and resets variables and the source buffers." (dolist (buffer (buffer-list)) (unless (eq buffer gud-comint-buffer) (with-current-buffer buffer @@ -3144,9 +3145,9 @@ (delq 'gdb-var-update gdb-pending-triggers)) (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) ;; dummy command to update speedbar at right time - (gdb-enqueue-input (list "server pwd\n" 'gdb-speedbar-timer-fn)) + (gdb-enqueue-input (list "server pwd\n" 'gdb-speedbar-refresh)) ;; keep gdb-pending-triggers non-nil till end - (push 'gdb-speedbar-timer gdb-pending-triggers))) + (push 'gdb-speedbar-refresh gdb-pending-triggers))) ;; Registers buffer. ;;