This is more of an academic question than a practical one, as I've already worked around it. However, the curiosity / mystery is killing me. I'm about 10 days into emacs, so new to a lot of this.
As I've been experimenting and learning about keymaps, I've been trying to unbind [mouse-2] from dired without success. From the dired.el source, I see this:
(defvar dired-mode-map ;; This looks ugly when substitute-command-keys uses C-d instead d: ;; (define-key dired-mode-map "\C-d" 'dired-flag-file-deletion) (let ((map (make-keymap))) (set-keymap-parent map special-mode-map) (define-key map [mouse-2] 'dired-mouse-find-file-other-window) (define-key map [follow-link] 'mouse-face)
However, when I try to unbind it with:
(define-key dired-mode-map [mouse-2] nil)
It remains bound. I've tried every method I can think of to unbind this, without success. I'm curious if someone can point me to what might be going on.