unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Eason Huang <aqua0210@foxmail.com>
Cc: 67006@debbugs.gnu.org
Subject: bug#67006: 30.0.50; w32-shell-execute will freeze Emacs on Windows 10
Date: Thu, 09 Nov 2023 21:22:22 +0200	[thread overview]
Message-ID: <83a5rmzq8h.fsf@gnu.org> (raw)
In-Reply-To: <tencent_8AEAE6A49CED8B55891AD2DE862C38D91A06@qq.com> (message from Eason Huang on Thu, 09 Nov 2023 10:35:09 +0800)

> From: Eason Huang <aqua0210@foxmail.com>
> Date: Thu, 09 Nov 2023 10:35:09 +0800
> 
> I found that when running w32-shell-execute with "open" will cause Emacs
> freeze. And I have to kill the process of Emacs to restart.
> 
> Steps to reproduce:
> 
> 1. Start Emacs with `emacs -Q`
> 2. M-: to eval the code below, you can change the second arg to other folder: 
> ```
> (w32-shell-execute "open" "~/.emacs.d/")
> ```
> 
> 3. Now the Emacs is frozen, C-Q also can not recover it. So you have to
> kill process of Emacs, and restart Emacs again.

I cannot reproduce this.  I tried this on several Windows systems and
several Emacs versions, including Windows 10 and Emacs 30, and I don't
see the hang.  (I don't have a Windows 10 system with Emacs 30, so I
tested there with an older version, but unless you are saying that
this happens only with Emacs 30 and only on Windows 10, I don't think
this matters.)

Tell me, does the directory "~/.emacs.d/" exist on that system?  If
you type "C-x C-f ~/.e" and press TAB, do you see ".emacs.d" among the
completion candidates?

Another thing to check is whether you customized your Windows system
in a way that affects the "open" operation on directories.

Also, what happens if you type

  M-: (w32-shell-execute nil "~/.emacs.d/")

?





  reply	other threads:[~2023-11-09 19:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-09  2:35 bug#67006: 30.0.50; w32-shell-execute will freeze Emacs on Windows 10 Eason Huang
2023-11-09 19:22 ` Eli Zaretskii [this message]
2023-11-10  1:58   ` Eason Huang
2023-11-10  7:19     ` Eli Zaretskii
2023-11-10 23:28       ` Eason Huang
2023-11-11  7:12         ` Eli Zaretskii
2023-11-12  2:33         ` Eason Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a5rmzq8h.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=67006@debbugs.gnu.org \
    --cc=aqua0210@foxmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).