Subject: bug#78945: 30.1; C-x 4 4 and C-x 5 5 do not work with `dired-mouse-find-file'

From: Juri Linkov <[email-masked]>
Date: Mon, 07 Jul 2025 09:39:49 +0300

>> Looking at 'C-h l' (view-lossage) explains everything:
>>
>>  C-x 5 5          ;; other-frame-prefix
>>  <down-mouse-1>   ;; mouse-drag-region
>>  <mouse-1>        ;; dired-mouse-find-file
>
> BTW, `help--read-key-sequence` faces the same problem (and tries to
> additionally handle the same issue for double-clicks).

Not sure how would be possible to handle double-clicks in this case:

  C-x 5 5                 ;; other-frame-prefix
  <down-mouse-1>          ;; mouse-drag-region
  <mouse-1>               ;; mouse-set-point
  <double-down-mouse-1>   ;; mouse-drag-region
  <double-mouse-1>        ;; mouse-set-point

`describe-key` uses

  (and (not (memq mouse-1-click-follows-link '(nil double)))
       (> (length raw) 0)
       (eq (car-safe (aref raw 0)) 'mouse-1)

But I'm afraid that not exiting on <mouse-1> in
`display-buffer-override-next-command` would be too error-prone.