From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Du Yanning Newsgroups: gmane.emacs.bugs Subject: bug#13065: Bug in x-file-dialog with GetOpenFileName Date: Mon, 3 Dec 2012 19:09:49 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04447ecfb4e86304cff0c9d9 X-Trace: ger.gmane.org 1354533056 20601 80.91.229.3 (3 Dec 2012 11:10:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2012 11:10:56 +0000 (UTC) To: 13065@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 03 12:11:08 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TfTvW-0005U6-5H for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Dec 2012 12:11:06 +0100 Original-Received: from localhost ([::1]:53235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfTvJ-0003si-VI for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Dec 2012 06:10:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfTvC-0003sb-Le for bug-gnu-emacs@gnu.org; Mon, 03 Dec 2012 06:10:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfTv7-0002FN-0c for bug-gnu-emacs@gnu.org; Mon, 03 Dec 2012 06:10:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfTv6-0002FD-TB for bug-gnu-emacs@gnu.org; Mon, 03 Dec 2012 06:10:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TfTxO-0002gR-H9 for bug-gnu-emacs@gnu.org; Mon, 03 Dec 2012 06:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Du Yanning Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Dec 2012 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13065 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135453314910271 (code B ref -1); Mon, 03 Dec 2012 11:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Dec 2012 11:12:29 +0000 Original-Received: from localhost ([127.0.0.1]:50862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfTwq-0002fa-OR for submit@debbugs.gnu.org; Mon, 03 Dec 2012 06:12:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51117) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfTwo-0002fS-82 for submit@debbugs.gnu.org; Mon, 03 Dec 2012 06:12:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfTuP-0001u1-NC for submit@debbugs.gnu.org; Mon, 03 Dec 2012 06:10:03 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:34571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfTuP-0001tx-Je for submit@debbugs.gnu.org; Mon, 03 Dec 2012 06:09:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfTuO-0003lZ-Ll for bug-gnu-emacs@gnu.org; Mon, 03 Dec 2012 06:09:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfTuI-0001sL-Qf for bug-gnu-emacs@gnu.org; Mon, 03 Dec 2012 06:09:56 -0500 Original-Received: from mail-oa0-f41.google.com ([209.85.219.41]:44128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfTuI-0001s2-LL for bug-gnu-emacs@gnu.org; Mon, 03 Dec 2012 06:09:50 -0500 Original-Received: by mail-oa0-f41.google.com with SMTP id k14so2896306oag.0 for ; Mon, 03 Dec 2012 03:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1a0oAEQK7sDGfdHJC8/A+2BN85s9473jeOpD7bQekAE=; b=anrh2fTs4EIxsVypgVqta9P+2fr9QJFT5/OFjA6lJWf0+gIYIWdZsmE8krr0ASu82f 2diL+sfmaoBQZbiFoLQx/yTxfYZwkwJO0omH/KfudSO4T2E3pE9yuo1FqM52M6ruglNU Y1BfjUaupsyrNSOB3MookDlG7a2A7zlvyisZ7frG64ZvaKnfQpxim/5PTbFELPJdsrbV CQ4Fai8vSl94O3w6wSaBGIUMsiDgmfpfsRbVjG4iNnSiLd42C53eVUGQ5Hrz69j5SfaT wGKoYa2ziit8iU2C7325AiOLrRS6xx98ZGcXWuepriquYjqExBFobvxjdwEaB/BrCo/u u/Ag== Original-Received: by 10.182.194.70 with SMTP id hu6mr4073353obc.4.1354532990019; Mon, 03 Dec 2012 03:09:50 -0800 (PST) Original-Received: by 10.76.27.103 with HTTP; Mon, 3 Dec 2012 03:09:49 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67832 Archived-At: --f46d04447ecfb4e86304cff0c9d9 Content-Type: text/plain; charset=ISO-8859-1 Platform: Windows 7 Emacs version: 24.2.1 Steps to reproduce this bug: emacs -Q copy and paste the next line into the *scratch* buffer: (x-file-dialog "hi" "c:\\") C-x C-e to evaluate it. The dialog appears. Type "abc" (without the enclosing double quotes) in the "File name" field. Click the "Desktop" icon on the left side of the dialog. Click the "Open" button. The dialog does NOT disappear while it should. I have tried GetOpenFileName/GetSaveFileName in my own Win32 programs and found that this behavior is casued by GetOpenFileName and GetSaveFileName is OK in such situation. However, simply replacing GetOpenFileName with GetSaveFileName will break other code in x-file-dialog. --f46d04447ecfb4e86304cff0c9d9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Platform: Windows 7
Emacs version: 24.2.1

Steps to reproduce th= is bug:
emacs -Q

copy and paste the next line into the *scratch* b= uffer:
(x-file-dialog "hi" "c:\\")

C-x C-e to = evaluate it.
The dialog appears.

Type "abc" (without the enclosing doubl= e quotes) in the "File name" field.
Click the "Desktop&qu= ot; icon on the left side of the dialog.
Click the "Open" butt= on.
The dialog does NOT disappear while it should.

I have tried GetOpenFi= leName/GetSaveFileName in my own Win32 programs and found that this behavio= r is casued by GetOpenFileName and GetSaveFileName is OK in such situation.= However, simply replacing GetOpenFileName with GetSaveFileName will break = other code in x-file-dialog.

--f46d04447ecfb4e86304cff0c9d9--