emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 26: Code that fixes mouse-drag-and-drop-region to work across


From: Robert Weiner
Subject: Re: Emacs 26: Code that fixes mouse-drag-and-drop-region to work across frames
Date: Wed, 1 Nov 2017 16:41:43 -0400

I have been using this snippet without a problem for a while.  Is it sufficient
to resolve the issues we are discussing with mouse-position and mouse-pixel-position?

    (setq mouse-position-function
  (lambda (frame-x-dot-y)
    "Under macOS and Windows 7, mouse-position and mouse-pixel-position sometimes return the prior frame; change to always return the selected frame."
    (if (consp frame-x-dot-y) (setcar frame-x-dot-y (selected-frame)))
    frame-x-dot-y))

Bob


reply via email to

[Prev in Thread] Current Thread [Next in Thread]