Function: gdb-header-click-event-handler

gdb-header-click-event-handler is a byte-compiled function defined in gdb-mi.el.gz.

Signature

(gdb-header-click-event-handler FUNCTION)

Documentation

Return a function that handles clicking event on gdb header buttons.

This function switches to the window where the header locates and executes FUNCTION.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-header-click-event-handler (function)
  "Return a function that handles clicking event on gdb header buttons.

This function switches to the window where the header locates and
executes FUNCTION."
  (lambda (event)
    (interactive "e")
    (save-selected-window
      ;; Make sure we are in the right buffer.
      (select-window (posn-window (event-start event)))
      (funcall function))))