mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -08:00
(gdb-mouse-set-clear-breakpoint):
Fix in disassembly buffer (regression in 22.2).
This commit is contained in:
parent
f185e4d21f
commit
79669f88b4
1 changed files with 3 additions and 2 deletions
|
|
@ -1979,11 +1979,12 @@ static char *magick[] = {
|
|||
(declare-function gud-break "gdb-ui" t t) ; gud-def
|
||||
|
||||
(defun gdb-mouse-set-clear-breakpoint (event)
|
||||
"Set/clear breakpoint in left fringe/margin with mouse click."
|
||||
"Set/clear breakpoint in left fringe/margin at mouse click.
|
||||
If not in a source or disassembly buffer just set point."
|
||||
(interactive "e")
|
||||
(mouse-minibuffer-check event)
|
||||
(let ((posn (event-end event)))
|
||||
(if (buffer-file-name)
|
||||
(if (or (buffer-file-name) (eq major-mode 'gdb-assembler-mode))
|
||||
(if (numberp (posn-point posn))
|
||||
(with-selected-window (posn-window posn)
|
||||
(save-excursion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue