[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New function for gdb-ui.el?

From: Nick Roberts
Subject: New function for gdb-ui.el?
Date: Sun, 23 Oct 2005 22:14:46 +1300

Is it a good idea to add the function below to gdb-ui.el now/ever?


(defun gdb-mouse-until (event)
  "Execute source lines by dragging the overlay arrow (fringe) with the mouse."
  (interactive "e")
  (let ((startpos (posn-point (event-start event)))
        (endline (line-number-at-pos (posn-point (event-end event)))))
    (if (equal startpos (marker-position gud-overlay-arrow-position))
         (concat "until " buffer-file-name ":" (number-to-string endline))))))

(define-key gud-minor-mode-map [left-fringe drag-mouse-1]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]