From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: master cb45fff0cb: Minor cleanups in X Windows drag-and-drop code Date: Sun, 10 Apr 2022 16:19:08 +0200 Message-ID: <871qy5f2cj.fsf@gnus.org> References: <164947536434.655.3851445578620763636@vcs2.savannah.gnu.org> <20220409033605.8A5D7C009A8@vcs2.savannah.gnu.org> <87ilrhf4nv.fsf@gnus.org> <87lewd83dx.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36965"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 10 16:20:43 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ndYQk-0009RH-Pv for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 16:20:42 +0200 Original-Received: from localhost ([::1]:48536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndYQj-0008Cn-DM for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 10:20:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndYPM-0007Ui-Kq for emacs-devel@gnu.org; Sun, 10 Apr 2022 10:19:16 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:43318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndYPK-0001Mj-KY for emacs-devel@gnu.org; Sun, 10 Apr 2022 10:19:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0gdS6BtP8QFDoMmJ0v9R8uZXrx4QNL9DN8X4+wIiCpw=; b=aO7Y7ug3lhk4rmLA5Ek75F6SxD SvtA35/mvCAlri3tqxhBDttGXWi4/cxZ+HYhs34on0zTJ70OQNBjn1rEJ5bUJeGOBr5DeE2VZcLgf Oiz0rLAl9PY+1pZ0u8Jsb32UhQWE30YB89N7YrxaYxY01QtuT1cJzsy9VLuKnCk6f+Co=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndYPE-0007Vw-Ja; Sun, 10 Apr 2022 16:19:10 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXv4dLPtquldoSS WmliESU0Hiz///8M5QULAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YECg00DCywOBQAAAGvSURBVDjL ddTBcoMgEABQNmnvrpp7Au3dsHBvBD6gKv//K11AI2ntzjiT8MIusBIhqsDnJ0BxHDW0eAQnREnN QdZOkjoEUFqZ6wEgSUnDEWhJ5gC4NDp955Qd50N5KwBAI3Za8oxLjGRjnMpyoSONVstrhhTfZQZ2 ylEYVVMBZJAq+KArGPIM6EbrfaAKrnkG9GQXHx1xjc8CTQb84IWESOlIVoACxhj+kqGkmiDX4HN1 Mc6kxTbjW5QZUo2W4f6EIQO0RKOylGqvqZoCSiknlcrwXkFLUunUpx1yKuj559wMxOYJc5NWZZzS JE3p6/t+iOAdkSE/1BAHEGfP4o0fM5xX4C32voR7gYjC8GB6fHm/dugPYf6d6uafNc4r5OIwL2GD Ew9Gfh4lk/dbKuDBsMF5yTDHBTOk+NpAb/BRIO/8slBouDeWlwv9KzjRJRj45angtNBDQKrO7azh zadXPvV34kZVxS/O8vF3ZQa+wCQK3MS23pyqVWk7bZzSFQazgxCpkWAH3KG6shAwgUg7dPf69sfy K4ZHfcUZysXuvXsZ52VNf/5Q1tDin+Bu/ABqYZPDt0KCiAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy Mi0wNC0xMFQxMzo1MjoxMSswMDowMHO4kz4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDQtMTBU MTM6NTI6MTErMDA6MDAC5SuCAAAAAElFTkSuQmCC X-Now-Playing: Cat Power's _The Covers Record_: "Wild is the Wind" In-Reply-To: <87lewd83dx.fsf@yahoo.com> (Po Lu's message of "Sun, 10 Apr 2022 21:38:34 +0800") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288144 Archived-At: Po Lu writes: > You have to enable `mouse-drag-and-drop' too, I think the manual does > say this in the paragraph above the one where > `mouse-drag-and-drop-region' is explained. > > But please suggest a better wording if that's confusing. Also, please > report crashes, there are occasionally BadWindow errors which only occur > on GTK. Thanks, with (setq mouse-drag-and-drop-region t mouse-drag-and-drop-region-cross-program t) this does indeed work. I think what's confusing about that node is that the start of the node goes into details about dragging *to* Emacs (what with dnd-indicate-insertion-point etc). And then midway through the node, it starts talking about dragging *from* Emacs. Perhaps it should be split into two subsections -- one about dragging to Emacs, and one about dragging from Emacs (after the first paragraph which talks about dragging and dropping in general). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no