From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS: Win64 testers? Date: Sun, 01 Sep 2024 13:28:18 +0300 Message-ID: <86plpnacsd.fsf@gnu.org> References: <87bk1k8mzd.fsf@protonmail.com> <861q2gs8xu.fsf@gnu.org> <877cc88j4p.fsf@protonmail.com> <86seuvre6x.fsf@gnu.org> <8734mv8yb6.fsf@protonmail.com> <87wmk54yk5.fsf@protonmail.com> <86r0a3ahm9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30591"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sebastian@sebasmonia.com, pipcet@protonmail.com, emacs-devel@gnu.org, yantar92@posteo.net To: Kien Nguyen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 01 12:29:08 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1skhpT-0007pU-En for ged-emacs-devel@m.gmane-mx.org; Sun, 01 Sep 2024 12:29:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skhon-0007IF-0J; Sun, 01 Sep 2024 06:28:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1skhol-0007Hz-Fg for emacs-devel@gnu.org; Sun, 01 Sep 2024 06:28:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1skhok-0001EW-PY; Sun, 01 Sep 2024 06:28:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=AjeVBt3xpdaBUI5awH0Pz8KjAzP2W8Cj8V5tNJtSopk=; b=VUQrIQ8UkPzA Ypv7r9Idpg+Dek80wZJYiQDgDPrWnoj2mHgC3k3nLnEI+Rywkr6c4+4KvjqUH55kF5Ep+Qps3eGsA m1FBZoKkrg1ELJclczCaHbBfM2jZQUCIqOGVQD02FepVETw0VWB+T2XVVNJqy/Cs54qHgbLbDu1wn PBpS5qakf4ZAQ9BlFBw3dgeI9yWIHuPmeAMGNkTd5NzU6+hF1FhS+9m8jbg4QEmEUEy47vVxS/9bp xpodoPerSjqpirb0XjFZKC/lJeEettRfOG/x/73ROHV4Fu6pfZjFRhaZmZnNgOMc+YO6jZcAfP/ts x4JvzzRu2kLkwqPc57y3+Q==; In-Reply-To: (message from Kien Nguyen on Sun, 1 Sep 2024 02:36:10 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323251 Archived-At: > From: Kien Nguyen > Date: Sun, 1 Sep 2024 02:36:10 -0700 > Cc: sebastian@sebasmonia.com, pipcet@protonmail.com, emacs-devel@gnu.org, > yantar92@posteo.net > > > Why is it a pain to run Emacs under GDB at all times? That way we > > don't install the hook, and the problem doesn't happen in the first > > place. > > Because without the keyboard hook running, some of the key combinations > (Windows and Alt + ...) will be handled by Windows instead of Emacs. And you really need them while debugging? > That causes using Emacs for a long running time a bit unnatural as I > need to relearn or rebind the key combinations again. Also, running > under gdb is slow and not enjoyable for using Emacs. Slow because of the hook or because of other reasons? You should realize that attaching to Emacs when it crashes many times misses important information, because when Emacs is not running under the debugger, fatal exceptions go to the top-level exception handler, which at times loses important information, like exactly which code caused the crash. So running an unstable Emacs build outside of GDB is not recommended on Windows for several good reasons. In any case, you should be able to invoke remove_w32_kbdhook from the debugger, as soon as you attach to Emacs. I hesitate to make the change you proposed because emacs_abort is called not just when Emacs is under a debugger, so the change will affect many users who don't debug Emacs.