Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to move posframe? #142

Open
jcs090218 opened this issue Jun 14, 2024 · 1 comment
Open

Function to move posframe? #142

jcs090218 opened this issue Jun 14, 2024 · 1 comment

Comments

@jcs090218
Copy link

Hi,

Is there a function that could move the posframe after creation? 🤔 If not, would you consider this a feature request?

Thanks!

@tumashu
Copy link
Owner

tumashu commented Jun 17, 2024

posframe has a helper function, maybe useful. posframe just frame, and store in posframe--frame after it created.

(defun posframe-funcall (buffer-or-name function &rest arguments)
  "Select posframe of BUFFER-OR-NAME and call FUNCTION with ARGUMENTS.
BUFFER-OR-NAME can be a buffer or a buffer name."
  (when (functionp function)
    (when (get-buffer buffer-or-name)
      (with-current-buffer buffer-or-name
        (when (framep posframe--frame)
          (with-selected-frame posframe--frame
            (apply function arguments)))))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants