GNU bug report logs -
#73258
31.0.50; w32 drag-n-dropping multiple files is broken
Previous Next
Reported by: Cecilio Pardo <cpardo <at> imayhem.com>
Date: Sat, 14 Sep 2024 19:34:01 UTC
Severity: normal
Found in version 31.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 73258 <at> debbugs.gnu.org (full text, mbox):
> Date: Sun, 15 Sep 2024 21:22:32 +0200
> Cc: 73258 <at> debbugs.gnu.org
> From: Cecilio Pardo <cpardo <at> imayhem.com>
>
> On 15/09/2024 10:25, Eli Zaretskii wrote:
> > We cannot remove or make backward-incompatible changes in a public
> > API. So removing/renaming w32-handle-dropped-file and/or changing its
> > signature is out of the question. Can you rewrite the patch such that
> > it keeps this function and its arguments, and just change the
> > implementation to fix the problem?
> >
> > Also, please accompany your changes with a ChangeLog-style description
> > (see CONTRIBUTE for the details), to make the job of installing the
> > changes easier.
>
> See the attached patch. Hope I did it right, let me know.
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?
This bug report was last modified 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.