aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2006-03-21 13:30:56 +0000
committerKim F. Storm2006-03-21 13:30:56 +0000
commit4b479fae31797f0d03c753254e417f4e23861083 (patch)
tree17fc414bcc41f03391dfc499e67c0dc8802327e7
parent52bd2f4383fed093dd2b67478d72344ac686b45f (diff)
downloademacs-4b479fae31797f0d03c753254e417f4e23861083.tar.gz
emacs-4b479fae31797f0d03c753254e417f4e23861083.zip
(gdb-reset): Set buffer local value of
fringe-indicator-alist instead of modifying global value. (gdb-frame-handler): Likewise.
-rw-r--r--lisp/progmodes/gdb-ui.el22
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 958aaac33d4..5b657b1555b 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -4,7 +4,7 @@
4;; Maintainer: FSF 4;; Maintainer: FSF
5;; Keywords: unix, tools 5;; Keywords: unix, tools
6 6
7;; Copyright (C) 2002, 2003, 2004, 2005, 2006 7;; Copyright (C) 2002, 2003, 2004, 2005, 2006
8;; Free Software Foundation, Inc. 8;; Free Software Foundation, Inc.
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
@@ -327,7 +327,7 @@ of the inferior. Non-nil means display the layout shown for
327 (process-status (get-buffer-process buffer)) status)) 327 (process-status (get-buffer-process buffer)) status))
328 ;; Force mode line redisplay soon. 328 ;; Force mode line redisplay soon.
329 (force-mode-line-update))))) 329 (force-mode-line-update)))))
330 330
331(defun gdb-many-windows (arg) 331(defun gdb-many-windows (arg)
332 "Toggle the number of windows in the basic arrangement. 332 "Toggle the number of windows in the basic arrangement.
333With arg, display additional buffers iff arg is positive." 333With arg, display additional buffers iff arg is positive."
@@ -2135,7 +2135,7 @@ static char *magick[] = {
2135 (unless (string-equal (match-string 0) "The") 2135 (unless (string-equal (match-string 0) "The")
2136 (put-text-property start (match-end 0) 2136 (put-text-property start (match-end 0)
2137 'face font-lock-variable-name-face) 2137 'face font-lock-variable-name-face)
2138 (add-text-properties start end 2138 (add-text-properties start end
2139 '(help-echo "mouse-2: edit value" 2139 '(help-echo "mouse-2: edit value"
2140 mouse-face highlight)))) 2140 mouse-face highlight))))
2141 (forward-line 1)))))) 2141 (forward-line 1))))))
@@ -2788,7 +2788,7 @@ Kills the gdb buffers, and resets variables and the source buffers."
2788 (setq gdb-overlay-arrow-position nil)) 2788 (setq gdb-overlay-arrow-position nil))
2789 (setq overlay-arrow-variable-list 2789 (setq overlay-arrow-variable-list
2790 (delq 'gdb-overlay-arrow-position overlay-arrow-variable-list)) 2790 (delq 'gdb-overlay-arrow-position overlay-arrow-variable-list))
2791 (setcdr (assoc 'overlay-arrow fringe-indicator-alist) 'right-triangle) 2791 (setq fringe-indicator-alist '((overlay-arrow . right-triangle)))
2792 (if (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) 2792 (if (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame))
2793 (speedbar-refresh)) 2793 (speedbar-refresh))
2794 (setq gud-running nil) 2794 (setq gud-running nil)
@@ -3119,10 +3119,10 @@ BUFFER nil or omitted means use the current buffer."
3119 (position (marker-position gud-overlay-arrow-position))) 3119 (position (marker-position gud-overlay-arrow-position)))
3120 (when buffer 3120 (when buffer
3121 (with-current-buffer buffer 3121 (with-current-buffer buffer
3122 (setcdr (assoc 'overlay-arrow fringe-indicator-alist) 3122 (setq fringe-indicator-alist
3123 (if (string-equal gdb-frame-number "0") 3123 (if (string-equal gdb-frame-number "0")
3124 'right-triangle 3124 nil
3125 'hollow-right-triangle)) 3125 '((overlay-arrow . hollow-right-triangle))))
3126 (setq gud-overlay-arrow-position (make-marker)) 3126 (setq gud-overlay-arrow-position (make-marker))
3127 (set-marker gud-overlay-arrow-position position))))) 3127 (set-marker gud-overlay-arrow-position position)))))
3128 (goto-char (point-min)) 3128 (goto-char (point-min))
@@ -3169,7 +3169,7 @@ is set in them."
3169 (gdb-enqueue-input 3169 (gdb-enqueue-input
3170 (list 3170 (list
3171 (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba) 3171 (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba)
3172 (concat "server interpreter mi \"-var-list-children --all-values " 3172 (concat "server interpreter mi \"-var-list-children --all-values "
3173 varnum "\"\n") 3173 varnum "\"\n")
3174 (concat "-var-list-children --all-values " varnum "\n")) 3174 (concat "-var-list-children --all-values " varnum "\n"))
3175 `(lambda () (gdb-var-list-children-handler-1 ,varnum))))) 3175 `(lambda () (gdb-var-list-children-handler-1 ,varnum)))))
@@ -3298,7 +3298,7 @@ value=\\(\".*?\"\\),type=\"\\(.+?\\)\"}")
3298 (unless (string-equal (match-string 0) "No registers.") 3298 (unless (string-equal (match-string 0) "No registers.")
3299 (put-text-property start (match-end 0) 3299 (put-text-property start (match-end 0)
3300 'face font-lock-variable-name-face) 3300 'face font-lock-variable-name-face)
3301 (add-text-properties start end 3301 (add-text-properties start end
3302 '(help-echo "mouse-2: edit value" 3302 '(help-echo "mouse-2: edit value"
3303 mouse-face highlight)))) 3303 mouse-face highlight))))
3304 (forward-line 1)))))) 3304 (forward-line 1))))))
@@ -3380,7 +3380,7 @@ value=\\(\".*?\"\\),type=\"\\(.+?\\)\"}")
3380 help-echo "mouse-2: create watch expression" 3380 help-echo "mouse-2: create watch expression"
3381 local-map ,gdb-locals-watch-map-1) 3381 local-map ,gdb-locals-watch-map-1)
3382 name)) 3382 name))
3383 (insert 3383 (insert
3384 (concat name "\t" (nth 1 local) 3384 (concat name "\t" (nth 1 local)
3385 "\t" (nth 2 local) "\n"))) 3385 "\t" (nth 2 local) "\n")))
3386 (set-window-start window start) 3386 (set-window-start window start)