GNU bug report logs - #12931
a bug in Emacs for Windows (win32fns.c: x-file-dialog)

Previous Next

Package: emacs;

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

Date: Mon, 19 Nov 2012 13:55:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Du Yanning <duyanning <at> gmail.com>
Subject: bug#12931: closed (Re: bug#12931: a bug in Emacs for Windows
 (win32fns.c: x-file-dialog))
Date: Thu, 06 Feb 2014 06:17:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#12931: a bug in Emacs for Windows (win32fns.c: x-file-dialog)

which was filed against the emacs,w32 package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 12931 <at> debbugs.gnu.org.

-- 
12931: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12931
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: duyanning <at> gmail.com, 12931-done <at> debbugs.gnu.org
Subject: Re: bug#12931: a bug in Emacs for Windows (win32fns.c: x-file-dialog)
Date: Thu, 06 Feb 2014 08:16:39 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Wed, 05 Feb 2014 17:38:04 -0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > You replied only to me, so I'm CC'ing the bug address to get this
> > archived with the bug.
> >
> >> Date: Tue, 20 Nov 2012 12:27:10 +0800
> >> From: Du Yanning <duyanning <at> gmail.com>
> >> 
> >> I cannot recreate it every time.
> >> I do not know the reason. Perhaps it is a problem with my system.
> >> Sorry for my premature conclusion.
> >> If I can recreate it, I will contact you.
> >> I am sorry, and Thank you!
> 
> Are you still seeing this problem in Emacs 24.3?

This is a duplicate of #13065, which was fixed long ago.

Closing.

[Message part 3 (message/rfc822, inline)]
From: Du Yanning <duyanning <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: a bug in Emacs for Windows (win32fns.c: x-file-dialog)
Date: Mon, 19 Nov 2012 21:53:02 +0800
[Message part 4 (text/plain, inline)]
x-file-dialog uses GetOpenFileName to get a file name.
If you have a buffer that is not visiting any file, when you call
save-buffer through a tool-bar button, x-file-dialog gets called.
However, with GetOpenFileName, you must select an existing file.

We can fix this bug by minimum change.

in x-file-dialog (defined in win32fns.c)

change the line:

    file_opened = GetOpenFileName (file_details);

to

    if (!NILP (mustmatch))
      {
        file_opened = GetOpenFileName (file_details);
      }
    else
      {
        file_opened = GetSaveFileName (file_details);
      }
[Message part 5 (text/html, inline)]

This bug report was last modified 11 years and 194 days ago.

Previous Next


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