Skip to content

Use of wrong default no-accept-focus frame parameter #136

@gerd-moellmann

Description

@gerd-moellmann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions