From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.devel Subject: Re: User option dnd-open-file-other-window has no effect Date: Mon, 03 Oct 2005 15:06:44 +0200 Message-ID: <43412CE4.5050909@gmx.de> References: <433F93D7.2000809@web.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128345605 2210 80.91.229.2 (3 Oct 2005 13:20:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2005 13:20:05 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 03 15:20:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMQDX-0004or-Mh for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 15:18:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMQDX-0001JP-3k for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 09:18:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMQBJ-0000wv-5v for emacs-devel@gnu.org; Mon, 03 Oct 2005 09:16:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMQBD-0000sm-Mr for emacs-devel@gnu.org; Mon, 03 Oct 2005 09:16:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMQBC-0000q5-KI for emacs-devel@gnu.org; Mon, 03 Oct 2005 09:16:30 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EMQ5u-0005sZ-OU for emacs-devel@gnu.org; Mon, 03 Oct 2005 09:11:03 -0400 Original-Received: (qmail invoked by alias); 03 Oct 2005 13:04:22 -0000 Original-Received: from pD9FBEADE.dip.t-dialin.net (EHLO [127.0.0.1]) [217.251.234.222] by mail.gmx.net (mp031) with SMTP; 03 Oct 2005 15:04:22 +0200 X-Authenticated: #28250155 User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050802) X-Accept-Language: de-DE, de, en-us, en Original-To: rms@gnu.org In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:43489 Archived-At: Richard M. Stallman wrote: > There is a user option, dnd-open-file-other-window, which should > control the behaviour of drag-n-dropping files onto an Emacs frame. > I customized it to t... > However, that had no effect. :-( > > If the code in x-dnd-drop-data is going to always bind > this variable, then it is useless to make it customizable. Yes, that was the main point of my bug report ;-) > There are two cases: dropping in a specific window, and dropping > elsewhere on the frame. Perhaps we should change one > of those two cases NOT to bind dnd-open-file-other-window, > or change it somehow. > > Which is the case that you want to customize? Hmm, initially I had only thought of dropping in a specific window and wanted to customize that. Only now I realize that dropping on, e.g., the titlebar makes a difference. I would suggest to change the first case (dropping in a window) not to let x-dnd-drop-data bind dnd-open-file-other-window. There is also a special case which I see now. Dropping in the minibuffer gives an error: Error: (error Cannot switch buffers in minibuffer window) In that case, x-dnd-drop-data should probably bind dnd-open-file-other-window to t. -- Sven Joachim