posframe icon indicating copy to clipboard operation
posframe copied to clipboard

Use of wrong default no-accept-focus frame parameter

Open gerd-moellmann opened this issue 11 months ago • 2 comments

The default for key parameter accept-focus of posframe--create-posframe is nil. That means any caller of that function which doesn't explicitly specify a keyword argument :accept-focus t will use a no-accept-focus t frame parameter.

This leads to warnings under macOS, for which I submitted bug 69525 to Emacs. I propose the following change:

modified   posframe.el
@@ -579,7 +579,7 @@ You can use `posframe-delete-all' to delete all posframes."
                                      override-parameters
                                      respect-header-line
                                      respect-mode-line
-                                     accept-focus)
+                                     (accept-focus t))
   "Create and return a posframe child frame.
 This posframe's buffer is BUFFER-OR-NAME.

gerd-moellmann avatar Mar 04 '24 14:03 gerd-moellmann

it has other bug, need no-accept-focus t by default.

tumashu avatar Mar 05 '24 00:03 tumashu

tumashu @.***> writes:

it has other bug, need no-accept-focus t by default.

Could you please elaborate? What bug is it? Is it something that should be fixed in Emacs?

gerd-moellmann avatar Mar 05 '24 04:03 gerd-moellmann