I want to change the name of the function key <mouse-1>
like so:
(define-key input-decode-map (kbd "<mouse-1>") (kbd "<jd:m1>"))
And thus bind the new name to an arbitrary function like so:
(define-key global-map (kbd "<jd:m1>") 'mouse-set-point)
But when testing the changes I get this error:
Debugger entered--Lisp error: (error "mouse-set-point must be bound to an event with parameters")
call-interactively(mouse-set-point nil nil)
command-execute(mouse-set-point)
Why does this functionality work for all other key functions but not the mouse key functions?
For example this works just fine:
(define-key input-decode-map (kbd "<tab>") (kbd "<jd:tab>"))
(define-key global-map (kbd "<jd:tab>") 'indent-for-tab-command)