GNU bug report logs - #8181
23.2; Dired on Windows 7

Previous Next

Package: emacs;

Reported by: "Robert I. Eachus" <rieachus <at> comcast.net>

Date: Sat, 5 Mar 2011 23:07:01 UTC

Severity: normal

Merged with 8191, 8741

Found in versions 23.2, 23.2.50

Done: Juanma Barranquero <lekktu <at> gmail.com>

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: Ben Key <bkey76 <at> gmail.com>
Subject: bug#8191: closed (Re: bug#8181: Patch to fix bug#8181: 23.2;
 Dired on Windows 7)
Date: Mon, 07 Mar 2011 21:19:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#8181: Patch to fix bug#8181: 23.2; Dired on Windows 7

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

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

-- 
8181: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8181
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Juanma Barranquero <lekktu <at> gmail.com>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 8181-done <at> debbugs.gnu.org, Ben Key <bkey76 <at> gmail.com>
Subject: Re: bug#8181: Patch to fix bug#8181: 23.2; Dired on Windows 7
Date: Mon, 7 Mar 2011 22:17:17 +0100
On Mon, Mar 7, 2011 at 21:59, Chong Yidong <cyd <at> stupidchicken.com> wrote:

> Yes, I see him now, listed under Benjamin E. Key.

OK, committed.

> Could you do me a favor and also remove the (tiny change) tag to the
> previous ChangeLog entry under his name?  Thanks.

Done.

    Juanma

[Message part 3 (message/rfc822, inline)]
From: Ben Key <bkey76 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org, Juanma Barranquero <lekktu <at> gmail.com>
Subject: Patch to fix bug#8181: 23.2; Dired on Windows 7
Date: Sun, 6 Mar 2011 22:15:51 -0600
[Message part 4 (text/plain, inline)]
Hello,

The attached patch fixes bug #8181: 23.2; Dired on Windows 7.  The patch is
for the Emacs trunk.  I can provide a patch for the Emacs 23 branch if it is
decided that this bug is important enough to go into Emacs 23.

This patch has been tested on Windows 7 32-bit, Windows 7 64-bit, and
Windows XP 32-bit.

This patch fixes three problems.

   1. The code that was attempting to set the text of the file name text
   field when processing the CDN_INITDONE WM_NOTIFY message does not work.
   This is because the code that processes the lpstrFile member of the
   OPENFILENAME structure to set the initial value of the window is called
   after the CDN_INITDONE WM_NOTIFY message is processed.  The correct way
   to set the text of the file name text field to "Current Directory" is to
   set the initial value of the lpstrFile member of the OPENFILENAME
   structure to "Current Directory" in the only_dir_p case if it does not
   already have another value.
   2. The attempt to find the window handle of the file name text field
   failed, at least on Windows XP and Windows 7.  By using Microsoft Spy++ I
   was able to discover the correct way to obtain this Window handle.  I
   modified the code in file_dialog_callback that initializes the edit_control
   using this information.
   3. Disabling the file name text field during dialog box initialization
   has undesirable side effects because this is the window that has focus when
   the open file dialog box is first opened by default.  The end result of
   disabling a window that would otherwise have focus is that focus lands in no
   man's land and the user is not able to navigate through the dialog box using
   the tab key.  Instead the system plays the system default error sound every
   time the tab key was pressed.  Now that the window is actually being
   disabled as a result of change 2, it is necessary to take steps to prevent
   this from happening.  My solution was to set focus to the list box
if the file
   name text field is disabled during dialog box initialization.  This part
   could use a little more work.


If it matters, I have already signed the appropriate copyright assignment
papers for Emacs.
[Message part 5 (text/html, inline)]
[emacs-bug-8181.patch (application/octet-stream, attachment)]

This bug report was last modified 13 years and 360 days ago.

Previous Next


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