(Buffer-menu-make-sort-button) Make sorting by mouse-2 work from a different window.
This commit is contained in:
parent
d4c2c0eff8
commit
c8d8f3225e
1 changed files with 3 additions and 1 deletions
|
@ -625,7 +625,9 @@ For more information, see the function `buffer-menu'."
|
|||
'mouse-face 'highlight
|
||||
'keymap (let ((map (make-sparse-keymap)))
|
||||
(define-key map [header-line mouse-2]
|
||||
`(lambda () (interactive)
|
||||
`(lambda (e)
|
||||
(interactive "e")
|
||||
(if e (set-buffer (window-buffer (posn-window (event-end e)))))
|
||||
(Buffer-menu-sort ,column)))
|
||||
map)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue