--- Begin Message ---
Subject: |
30.0.50; mouse-2 > (wrong-type-argument listp #<frame *Calendar* 0x...>) |
Date: |
Fri, 02 Dec 2022 20:19:43 +0100 |
Hello,
I get errors when I click with mouse-2 on a date in the *Calendar* in a
frame that has no input focus.
Recipe from emacs -Q in X:
Enable debug-on-error if you want to get a backtrace.
C-x 5 2 (Open a second frame.)
Select it and M-x calendar RET
Select the first frame.
C-h k and click with mouse-2 on a date in the calendar in the other
frame.
I get:
| Debugger entered--Lisp error: (wrong-type-argument listp #<frame *Calendar*
0x559da2103a80>)
| posn-set-point(#<frame *Calendar* 0x559da2103a80>)
| help--analyze-key([(switch-frame #<frame *Calendar* 0x559da2103a80>)]
[(switch-frame #<frame *Calendar* 0x559da2103a80>)] nil)
| #f(compiled-function (x) #<bytecode -0x894a393e330e3db>)(([(switch-frame
#<frame *Calendar* 0x559da2103a80>)] . [(switch-frame #<frame *Calendar*
0x559da2103a80>)]))
| mapcar(#f(compiled-function (x) #<bytecode -0x894a393e330e3db>)
(([(switch-frame #<frame *Calendar* 0x559da2103a80>)] . [(switch-frame #<frame
*Calendar* 0x559da2103a80>)]) ([(down-mouse-2 (#<window 14 on *Calendar*> 366
(527 . 85) 206302283 nil 366 (58 . 4) nil (5 . 13) (9 . 18))) Scroll\ forward]
. [(down-mouse-2 (#<window 14 on *Calendar*> 366 (527 . 85) 206302283 nil 366
(58 . 4) nil (5 . 13) (9 . 18))) Scroll\ forward])))
| describe-key((([(switch-frame #<frame *Calendar* 0x559da2103a80>)] .
[(switch-frame #<frame *Calendar* 0x559da2103a80>)]) ([(down-mouse-2 (#<window
14 on *Calendar*> 366 (527 . 85) 206302283 nil 366 (58 . 4) nil (5 . 13) (9 .
18))) Scroll\ forward] . [(down-mouse-2 (#<window 14 on *Calendar*> 366 (527 .
85) 206302283 nil 366 (58 . 4) nil (5 . 13) (9 . 18))) Scroll\ forward])))
| funcall-interactively(describe-key (([(switch-frame #<frame *Calendar*
0x559da2103a80>)] . [(switch-frame #<frame *Calendar* 0x559da2103a80>)])
([(down-mouse-2 (#<window 14 on *Calendar*> 366 (527 . 85) 206302283 nil 366
(58 . 4) nil (5 . 13) (9 . 18))) Scroll\ forward] . [(down-mouse-2 (#<window 14
on *Calendar*> 366 (527 . 85) 206302283 nil 366 (58 . 4) nil (5 . 13) (9 .
18))) Scroll\ forward])))
| call-interactively(describe-key nil nil)
| command-execute(describe-key)
C-h k seems only a random command suffering from this issue. I
discovered the problem while choosing a date from the calendar for
org-capture. mouse-2 gives these errors while mouse-1 seems to work.
Oh, it seems the Calendar part is not even necessary, the only important
thing seems to be that you click with mouse-2 into a frame that doesn't
have focus. That already gives the error.
TIA,
Michael.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#59785: 30.0.50; mouse-2 > (wrong-type-argument listp #<frame *Calendar* 0x...>) |
Date: |
Mon, 05 Dec 2022 21:57:17 +0200 |
> From: Michael Heerdegen <michael_heerdegen@web.de>
> Cc: 59785@debbugs.gnu.org
> Date: Mon, 05 Dec 2022 20:15:51 +0100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > Please try the patch below; it seems to work here, and doesn't break
> > the mouse-drag-drag feature (which was my TIL moment, although it
> > exists since Emacs 20...)
>
> Yes, works for me too, and it also fixes my original org-capture issue
> with my config stuff loaded.
>
> Very nice. It is very satisfying that this ends with a tangible result.
Yes.
Thanks for testing, I've now installed the fix, and closing the bug.
--- End Message ---