From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: A question about GTK file selection dialog and `use-dialog-box' Date: 27 Nov 2003 13:38:41 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20106.1069904944@mixed> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069936867 7814 80.91.224.253 (27 Nov 2003 12:41:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2003 12:41:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Nov 27 13:41:05 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1APLSC-000434-00 for ; Thu, 27 Nov 2003 13:41:04 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1APLSC-000754-00 for ; Thu, 27 Nov 2003 13:41:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1APMPa-0003X3-Co for emacs-devel@quimby.gnus.org; Thu, 27 Nov 2003 08:42:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1APMOi-000364-Md for emacs-devel@gnu.org; Thu, 27 Nov 2003 08:41:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1APMNS-0002SN-1o for emacs-devel@gnu.org; Thu, 27 Nov 2003 08:40:46 -0500 Original-Received: from [62.226.12.157] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1APMNQ-0002RZ-Va for emacs-devel@gnu.org; Thu, 27 Nov 2003 08:40:13 -0500 Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id hARCchDt008657 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Nov 2003 13:38:43 +0100 Original-Received: (from dak@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id hARCcgT9008653; Thu, 27 Nov 2003 13:38:42 +0100 Original-To: Peter S Galbraith In-Reply-To: <20106.1069904944@mixed> Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18165 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18165 Peter S Galbraith writes: > Using a GTK build of CVS Emacs, I see that `read-file-name' uses a > GTK file selector instead of the minbuffer. I had to disable it > because it's very awkward to use compared to the minibuffer (no > history or completion). The only advertised way to disable it is to > unset `use-dialog-box', which also disables the nice `y-or-n-p' and > `yes-or-no-p' pop-ups (I like thoese!). > > It would be great if the GTK file selector's minibuffer area acted like > the minibuffer (history and completion). If not, then consider > providing a way to disable the file selector without disabling > `y-or-n-p' and `yes-or-no-p' pop-ups. It only uses the GTK file selector if the triggering event is a mouse event. So if you are using the keyboard, you won't get to see a GTK file selector. Unless, say, you are hitting upon a bug of AUCTeX that can trigger calling read-file-name from update-menu-hook or so (which apparently does not count as a keyboard event in that context). The solution, of course, is to fix that by delaying the guilty functions until the LaTeX menu or respective keyboard functions actually get called. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum