On 21/09/2024 12:11, Eli Zaretskii wrote: > This causes the following warning while byte-compiling: > > In w32-dropped-file-to-url: > term/w32-win.el:129:29: Warning: reference to free variable `window' > > And indeed, 'window' is not bound to any value here, and > dnd-handle-multiple-urls does need it to be a valid window. If I try > drag-and-drop with your patch installed, Emacs signals an error about > 'window' being void. I don't understand how it worked for you. > > Also, what about this comment: > > ;; FIXME: is the W32 build capable only of receiving a single file > ;; from each drop? > > I guess it is no longer pertinent and should be deleted? I messed up when preparing the patch file, I'm sorry. Here is the correct one.