aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2005-11-27 01:17:47 +0000
committerNick Roberts2005-11-27 01:17:47 +0000
commit53f18ed2c85d4e619b611e56a4130eccc4c01d7a (patch)
treee8af745720a4e77f3957c4acd4e68334e1f452c2
parentd05877b43883287028c0417496fa4cca77b92a31 (diff)
downloademacs-53f18ed2c85d4e619b611e56a4130eccc4c01d7a.tar.gz
emacs-53f18ed2c85d4e619b611e56a4130eccc4c01d7a.zip
(gdb-goto-breakpoint, gdb-frames-select, gdb-threads-select):
Use `posn-set-point' instead of `mouse-set-point' because the latter is not fbound when configured without X.
-rw-r--r--lisp/progmodes/gdb-ui.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index f89e54da798..349c1212695 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -1620,7 +1620,7 @@ static char *magick[] = {
1620(defun gdb-goto-breakpoint (&optional event) 1620(defun gdb-goto-breakpoint (&optional event)
1621 "Display the breakpoint location specified at current line." 1621 "Display the breakpoint location specified at current line."
1622 (interactive (list last-input-event)) 1622 (interactive (list last-input-event))
1623 (if event (mouse-set-point event)) 1623 (if event (posn-set-point (event-end event)))
1624 ;; Hack to stop gdb-goto-breakpoint displaying in GUD buffer. 1624 ;; Hack to stop gdb-goto-breakpoint displaying in GUD buffer.
1625 (let ((window (get-buffer-window gud-comint-buffer))) 1625 (let ((window (get-buffer-window gud-comint-buffer)))
1626 (if window (save-selected-window (select-window window)))) 1626 (if window (save-selected-window (select-window window))))
@@ -1745,7 +1745,7 @@ static char *magick[] = {
1745(defun gdb-frames-select (&optional event) 1745(defun gdb-frames-select (&optional event)
1746 "Select the frame and display the relevant source." 1746 "Select the frame and display the relevant source."
1747 (interactive (list last-input-event)) 1747 (interactive (list last-input-event))
1748 (if event (mouse-set-point event)) 1748 (if event (posn-set-point (event-end event)))
1749 (gdb-enqueue-input 1749 (gdb-enqueue-input
1750 (list (concat gdb-server-prefix "frame " 1750 (list (concat gdb-server-prefix "frame "
1751 (gdb-get-frame-number) "\n") 'ignore)) 1751 (gdb-get-frame-number) "\n") 'ignore))
@@ -1830,7 +1830,7 @@ static char *magick[] = {
1830(defun gdb-threads-select (&optional event) 1830(defun gdb-threads-select (&optional event)
1831 "Select the thread and display the relevant source." 1831 "Select the thread and display the relevant source."
1832 (interactive (list last-input-event)) 1832 (interactive (list last-input-event))
1833 (if event (mouse-set-point event)) 1833 (if event (posn-set-point (event-end event)))
1834 (gdb-enqueue-input 1834 (gdb-enqueue-input
1835 (list (concat gdb-server-prefix "thread " 1835 (list (concat gdb-server-prefix "thread "
1836 (gdb-get-thread-number) "\n") 'ignore)) 1836 (gdb-get-thread-number) "\n") 'ignore))