From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Quang Kien Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Windows low-level keyboard hook Date: Fri, 23 Aug 2024 10:45:18 -0700 Message-ID: References: <87bk1k8mzd.fsf@protonmail.com> <861q2gs8xu.fsf@gnu.org> <877cc88j4p.fsf@protonmail.com> <86seuvre6x.fsf@gnu.org> <8734mv8yb6.fsf@protonmail.com> <8634mvqte0.fsf@gnu.org> <87jzg773ka.fsf@protonmail.com> <86seuvpar5.fsf@gnu.org> <86o75jp6h6.fsf@gnu.org> <86ikvrp2hz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16401"; mail-complaints-to="usenet@ciao.gmane.io" To: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 23 20:00:35 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 1shYaR-00044M-Nf for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Aug 2024 20:00:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shYZf-0007LA-0l; Fri, 23 Aug 2024 13:59:48 -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 1shYLv-0005Av-1F for emacs-devel@gnu.org; Fri, 23 Aug 2024 13:45:35 -0400 Original-Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1shYLt-0001GY-Dr; Fri, 23 Aug 2024 13:45:34 -0400 Original-Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5bef4d9e7f8so2951571a12.2; Fri, 23 Aug 2024 10:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724435131; x=1725039931; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cOK63wjmt6706YQrlXsZu0PU7q/mEvzSxyHRzedgZkU=; b=hZyzwmb3NmkTLV6qb8mMvIL9tM/UU/Y9mDB2+V4PZHmz2Mb1lWyBN/0qIZtu/M4K/e cZhhXLrKSK65icT7iiydQ42F0JZIt2PRcxZApH/XTOZq/0uZmeiuF3wp1wP3mwRZ1V82 VYVNLYsWv5DCW70TXC8bY8Jt9hqzeWEkznxDuaZnhVeXWowZzUCiP0ACPOD2TKZ+9zh/ 4cRnLz474E9BXkzqZicExVs4fO+lnOV9L5cygJj3/zXFv6AQavAtiGMqpyBF3XyZlFhk tupU81J8p2sUGFHrn2kin26Sj8Ejux44S04vagPmYCt2hYQQ+iDjk9TvvJJ0iuBVuAF0 Krqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724435131; x=1725039931; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cOK63wjmt6706YQrlXsZu0PU7q/mEvzSxyHRzedgZkU=; b=QLHfJnOPHOnSzEFiqcMv1NAv2jxbJCnipy8RN9o+P1uY9X9uO0vkkYADOirQiupAoq PibqyeUALl9uSKfrXaaKBKA/tbf9JIGubxOcaytb+rZMPwP0maubzS8vbuYi3gdnZcy5 DmeLePKClE9ZfeOET7DdjWA47DRNrnlB7RWza+dYAb/Z7PHPYX6kDwasqbJVdKbIO9QN H18vFjlanbyyKZOTm9PQiISsE1K6aIWeCRu5QipyuZ88n2L04MfPPQTsBNxxKknxH+0M Y4Tyx9VTG4xMxLbCLnzwtZtP1Wqzy+kEOF4zyW7Un11GffIqftCZ54GVEuQZJbsTCGkV u1Gg== X-Forwarded-Encrypted: i=1; AJvYcCWV17qcMJFCIfmP1k/wljK6MYYQ/4y+6fdUxsm6JMJtkg6KXYowqGeCP9mGe53O69X0qzZPjYSzOuh/NQ==@gnu.org X-Gm-Message-State: AOJu0Yw5+y5+1I/ghnJ1db4QClF54qsYQJ/TJdpI8AWWN/XAHMNQ8gqP DzZPZnffHFwj9p8tG4xh9drVkjaOSM3alsaWB+LJK7dx0MADnDj8SFrCvhF7xAVae3ZCYu7lYmA xdUjE4vS03jobMWUCQ+kFKSIXse2IrjDj X-Google-Smtp-Source: AGHT+IH/RMNO5eCIJZ4+AEhg0ZdQ3S8ReHsUoRN9o2rGV+S19X0RMZZNb59wGAXBaHWDEh+l+ZClIeMN7CDeNARFs5U= X-Received: by 2002:a05:6402:13c9:b0:5c0:8ead:38bc with SMTP id 4fb4d7f45d1cf-5c08ead38ecmr1400021a12.27.1724435130416; Fri, 23 Aug 2024 10:45:30 -0700 (PDT) In-Reply-To: <86ikvrp2hz.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=kien.n.quang@gmail.com; helo=mail-ed1-x52f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 23 Aug 2024 13:59:42 -0400 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:323097 Archived-At: Oh, sorry, I chose reply and didn't notice it only replied back to one pers= on. On Fri, Aug 23, 2024 at 10:34=E2=80=AFAM Eli Zaretskii wrote= : > > [Why personal email?] > > > From: Quang Kien Nguyen > > Date: Fri, 23 Aug 2024 09:54:48 -0700 > > > > > Yes: the workaround is to start Emacs from GDB. When you do that, > > > Emacs does not install a low-level keyboard hook that it normally > > > does, and which is the reason for the slow responses to keys if you > > > attach GDB to Emacs after it already started. > > > > Oh, I see the reason why now. > > I wonder why don't the rawinput[1] is used instead of low-level keyboar= d > > hook? > > Because what we have now was how it was written to begin with, and it > works well enough for our needs, so I see no reason to explore other > ways, which will most definitely have their own issues. > > > The rawinput has better performance and runs async from the rest of > > system, unlike low-level keyboard hooks. It's only supported from > > Windows XP, although I'm not sure if Emacs still supports a Windows > > version earlier than that. > > Emacs does try to support Windows versions older than XP. --=20 Best regards, Kien