Emacs buttonizes specific expression in the buffers. For example, email ids, urls attachments in gnus buffer, and [back], [forward] in help buffers and so on. When we click on those with mouse, they act appropriately.
How to know which function is called when clicking (with mouse) on such a buttons?
C-h k
isn't of much help here.
Edit: this question is already answered. The reason I wanted to know is to bind keys like firefox to go back and forth in the history of help buffer.
Now I have the following in my .emacs
(define-key help-mode-map (kbd "M-<left>") 'help-go-back)
(define-key help-mode-map (kbd "M-<right>") 'help-go-forward)
C-h k
just tells me that it is bound tomouse-drag-region
which is not much revealing about the final function which acted on with the mouse clickC-h k
should tell you both thatdown-mouse-1
is bound tomouse-drag-region
and thatmouse-1
is bound tomouse-set-point
. A mouse click involves both a down event and an up event. The "final function which acted on with the mouse click" is the function bound to the up event.mouse.el
- look forevent-click-count
.