unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13065: Bug in x-file-dialog with GetOpenFileName
@ 2012-12-03 11:09 Du Yanning
  2012-12-04 19:10 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Du Yanning @ 2012-12-03 11:09 UTC (permalink / raw)
  To: 13065

[-- Attachment #1: Type: text/plain, Size: 693 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 817 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-01-22 13:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03 11:09 bug#13065: Bug in x-file-dialog with GetOpenFileName Du Yanning
2012-12-04 19:10 ` Eli Zaretskii
2013-01-08 13:10   ` Jason Rumney
2013-01-08 21:26     ` Eli Zaretskii
2013-01-13 12:52       ` Jason Rumney
2013-01-13 16:35         ` Eli Zaretskii
2013-01-15 18:03           ` Eli Zaretskii
2013-01-16 12:23             ` Jason Rumney
2013-01-16 18:54               ` Eli Zaretskii
2013-01-22 13:32                 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).