GNU bug report logs - #13065
Bug in x-file-dialog with GetOpenFileName

Previous Next

Packages: w32, emacs;

Reported by: Du Yanning <duyanning <at> gmail.com>

Date: Mon, 3 Dec 2012 11:13:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Du Yanning <duyanning <at> gmail.com>
To: 13065 <at> debbugs.gnu.org
Subject: bug#13065: Bug in x-file-dialog with GetOpenFileName
Date: Mon, 3 Dec 2012 19:09:49 +0800
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]

This bug report was last modified 12 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.