From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cecilio Pardo Newsgroups: gmane.emacs.bugs Subject: bug#3468: drag and drop text Date: Sun, 29 Sep 2024 13:17:26 +0200 Message-ID: <9bef55ae-e0aa-40d0-af77-7e7eac309b3a@imayhem.com> References: <20090604070321.177690@gmx.net> <8ba4e567-550e-4ac2-96f4-c6f7bacd78d0@imayhem.com> <86wmiv3p0r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16077"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 3468@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 29 13:19:04 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1surx9-00040F-IE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Sep 2024 13:19:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1surwm-0003Gt-7D; Sun, 29 Sep 2024 07:18:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1surwd-0003GQ-Lk for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 07:18:32 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1surwd-0007HW-Ce for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 07:18:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=KKN/zmEyv5Q7pe+vgAq5rGSExG9TqINkOYwPwD6TNv0=; b=intHhzr7wmOf1PxBcbsviJ8rHJ+7ji5dAT2u3X7A6G5qiVOxCPjf1WZLw7s0QXU0uJDkbnNnsj885ahwhqHc9hjeUaKb16/bkKv9N7bO+GiCNcvRRD/K5YCa8AsYW1r2bhtYEdVmggpcCTAutCPJzeJ+STDmCwlCKwHkfO8OtMHqvY81f0EW8X+ei8SwShmLmFDDjsbmiKNNE2Mvuv2bh6r0Zb1ahGurw4lhfiyjL5cExksMwtKBehKRCDlxOZoogfYCV65HmWuzuq92TloIKrfVL09tnkc4AmWD4nw5mMLgHbcCuvEzkUpCv+Pqm5ZJ1abz4aGa3hd4Iw3UXChxJg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1surx8-0004nO-HB for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 07:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2024 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3468 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: help Original-Received: via spool by 3468-submit@debbugs.gnu.org id=B3468.172760868818355 (code B ref 3468); Sun, 29 Sep 2024 11:19:02 +0000 Original-Received: (at 3468) by debbugs.gnu.org; 29 Sep 2024 11:18:08 +0000 Original-Received: from localhost ([127.0.0.1]:40167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1surwG-0004lz-2U for submit@debbugs.gnu.org; Sun, 29 Sep 2024 07:18:08 -0400 Original-Received: from mail.imayhem.com ([82.223.54.191]:38933 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1surwE-0004lP-0w for 3468@debbugs.gnu.org; Sun, 29 Sep 2024 07:18:07 -0400 Original-Received: from [192.168.68.105] (111.red-88-21-7.staticip.rima-tde.net [88.21.7.111]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id B6D8B800F0; Sun, 29 Sep 2024 11:17:28 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 88.21.7.111) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[192.168.68.105] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Content-Language: es-ES In-Reply-To: <86wmiv3p0r.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292629 Archived-At: On 29/09/2024 9:19, Eli Zaretskii wrote: >> + if (files->fWide) > > What determines whether we get "wide" file names or ANSI file names? > We want to get "wide" file names where possible, but I don't see where > we request that? We can't request it, I suppose it depends on the OS version or the program sending the drop. > If this runs in a non-main thread, then we cannot do this: calling > functions that manipulate Lisp data in non-main threads is a no-no. > Can we instead delegate the actual processing to where > WM_EMACS_DROPSTRING is processed? If not, why not? It runs indeed on the "shell thread". I'll move all the processing to the message handler. Thanks a lot for your review, and sorry for all the style mistakes.