(interactive)
(select-frame (make-frame gdb-frame-parameters))
(switch-to-buffer (gdb-get-create-buffer 'gdb-breakpoints-buffer))
- (set-window-dedicated-p (get-buffer-window (current-buffer)) t))
+ (set-window-dedicated-p (selected-window) t))
(defvar gdb-breakpoints-mode-map
(let ((map (make-sparse-keymap))
(interactive)
(select-frame (make-frame gdb-frame-parameters))
(switch-to-buffer (gdb-get-create-buffer 'gdb-stack-buffer))
- (set-window-dedicated-p (get-buffer-window (current-buffer)) t))
+ (set-window-dedicated-p (selected-window) t))
(defvar gdb-frames-mode-map
(let ((map (make-sparse-keymap)))
(interactive)
(select-frame (make-frame gdb-frame-parameters))
(switch-to-buffer (gdb-get-create-buffer 'gdb-threads-buffer))
- (set-window-dedicated-p (get-buffer-window (current-buffer)) t))
+ (set-window-dedicated-p (selected-window) t))
(defvar gdb-threads-mode-map
(let ((map (make-sparse-keymap)))
(interactive)
(select-frame (make-frame gdb-frame-parameters))
(switch-to-buffer (gdb-get-create-buffer 'gdb-registers-buffer))
- (set-window-dedicated-p (get-buffer-window (current-buffer)) t))
+ (set-window-dedicated-p (selected-window) t))
\f
;;
;; Locals buffer.
(interactive)
(select-frame (make-frame gdb-frame-parameters))
(switch-to-buffer (gdb-get-create-buffer 'gdb-locals-buffer))
- (set-window-dedicated-p (get-buffer-window (current-buffer)) t))
+ (set-window-dedicated-p (selected-window) t))
\f
;;;; Window management
(interactive)
(select-frame (make-frame gdb-frame-parameters))
(switch-to-buffer (gdb-get-create-buffer 'gdba))
- (set-window-dedicated-p (get-buffer-window (current-buffer)) t))
+ (set-window-dedicated-p (selected-window) t))
(defun gdb-display-gdb-buffer ()
(interactive)
(interactive)
(select-frame (make-frame gdb-frame-parameters))
(switch-to-buffer (gdb-get-create-buffer 'gdb-assembler-buffer))
- (set-window-dedicated-p (get-buffer-window (current-buffer)) t))
+ (set-window-dedicated-p (selected-window) t))
;; modified because if gdb-current-address has changed value a new command
;; must be enqueued to update the buffer with the new output