From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bad file dialog on W32 popped up by a click on C source Date: Sun, 12 Jun 2005 21:09:41 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1118599646 30312 80.91.229.2 (12 Jun 2005 18:07:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2005 18:07:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 12 20:07:23 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhWrh-000747-Bs for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2005 20:07:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhWwK-0000If-Hy for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2005 14:12:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DhWwA-0000IF-DK for emacs-devel@gnu.org; Sun, 12 Jun 2005 14:11:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DhWw7-0000Gi-AO for emacs-devel@gnu.org; Sun, 12 Jun 2005 14:11:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhWw7-0000Fw-8X for emacs-devel@gnu.org; Sun, 12 Jun 2005 14:11:55 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DhWut-0003pD-4c; Sun, 12 Jun 2005 14:10:39 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-215-61.inter.net.il [83.130.215.61]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id BMW11863 (AUTH halo1); Sun, 12 Jun 2005 21:09:38 +0300 (IDT) Original-To: Jason Rumney In-reply-to: (message from Jason Rumney on Sun, 12 Jun 2005 18:36:12 +0100) 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:38657 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38657 > Cc: emacs-devel@gnu.org > From: Jason Rumney > Date: Sun, 12 Jun 2005 18:36:12 +0100 > > Eli Zaretskii writes: > > > "C-h f some-function RET" shows "C source file" for functions defined > > in C. If you click on the xref, and if the source files are not in > > the place where Emacs expects to find them (e.g., if you removed the > > source tree), Emacs pops up a file dialog asking you to find the > > directory of the source file. > > I just get "find-function-C-source: The C source file w32fns.c is not > available" Strange...doesn't it pop the file selector for you? Anyway, what you get is not a good response, either, right? > > . it doesn't say what directory it is looking for and doesn't show > > me the name of the file, so I need to guess that it wants the src > > directory > > Seems like a problem with the prompt. Well, the prompt actually says "Emacs C source dir:", so perhaps it's okay (although maybe something like "Directory of fileio.c source file" would be better). > > . if I select the src directory where the file lives and click Open, > > it errors out saying "Current Directory -- file not found" > > An Emacs error in the echo area, or a system error in a dialog? The latter. It pops a dialog saying Current Directory File not found Please verify the correct file name was given. > If the latter then it is caused by the file-must-exist flag being set, > which does not work for directories. You mean the MUSTMATCH arg to x-file-dialog? That is, should I change the code so that this flag is ignored for directories?