From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: emacs-pgtk-git 30.0.50 not recognize kbd "S-SPC" Date: Fri, 23 Dec 2022 12:46:28 +0800 Message-ID: <87pmcaafrv.fsf@yahoo.com> References: 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="2574"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "help-gnu-emacs@gnu.org" To: Hu Elliott Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 23 05:47:34 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1p8Zy2-0000Q5-8R for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 23 Dec 2022 05:47:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8ZxN-0004Qy-MP; Thu, 22 Dec 2022 23:46:53 -0500 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 1p8ZxF-0004QZ-1E for help-gnu-emacs@gnu.org; Thu, 22 Dec 2022 23:46:45 -0500 Original-Received: from sonic308-10.consmr.mail.ne1.yahoo.com ([66.163.187.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8ZxC-0001zN-BI for help-gnu-emacs@gnu.org; Thu, 22 Dec 2022 23:46:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1671770798; bh=IsE+pvy5GSvDbw0DwM72nmI9qm4r7uizv88ZpLxXltc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=L46LaefI/tVN9GwAdphXhY5xG+HCPZ5mZkY/dXa9/w0mI9keolY/ZydbZ+z1QTsQScYsjQfTS2aoYfLlmxKXJk1EYJCr3w+Pc6UhiRW73DKhnXD0QmYaLhuLaYlSDW/aEl/r3kD3aOTrPqNvY1bmX1hz1XNsbNQGZslWjX87MYHXzUDit+PHfbmt8HLHoShUoIdmbNECcIvXcR8l7ZaMBNJD8To1tDpAMlRtfhrWNZgT/cbFm/l3xr/nvrOgW9LsduO0VieoSu6IzufTflNJbTKB31rs++ny18VpHVX3I8gfekoQ0oFNu5HVM+mpjYzpYr4ZsY3OMmXaxgc0X/F8rA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1671770798; bh=9mAXl91hPm8uR9MVuDbd7SvFHrCyYHkXVbei0d90nsp=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=tO68Qnf8KQIXFIptH+b28A7mjbbCbIANelYmkTiXctdRDlAetVB+yPu5cyGPxXtxjQoLEcX6VevClgPUBd9XWC8oTrqE1BijPgaekQFqMWryEpbTmgk4HHHV2+Ptau2ZpDJvzjPCqn5/JbjMWvxU82PBNqKdN6JbrStrkCgVpM9TxMA3Yvvg4HNqUG+Sxi5RWFSuvsFrMWG2HI1ImBUGsK/7D1DCUOLo9/fi8vfY2zhdgR8rXjdhqu4VTd7fQs9T5Xmm21wdgwznGNiC9eo+vY1w0Zk2++HPfln73k5yslSYJ+Jq5DJQmh0rdQy0LUN2rzrNRk2ezBIo2cnFJLOf2A== X-YMail-OSG: cQX_pxYVM1mamZ3SlSB5Yuh8ezSJtqTY_Ena0ysRNN3mD6k49HvvfjjKSKMTl54 Yhk67CZO24jmUN.7eGIAPYyjLSqosGrB4pwnLvgYoLAZ3lR5sWZFJkg.AWQ7Uy8PGm6ZhlUAz9bf 66sZb1b1X15e.1OKZaBJUKrFGd8Fr6DdreROQKa7o9o1s7LnMQ49RFOIV0AWGjjqRBMzrYhoMtKh pyUYI7cTOT_x9D2_a47ADjkHtYYEqezYYpNZTEmjUFVzF3JSN2qEjKzPWx1_hlpqjneW6MsUHeKA 8atx7jenqhuUprWQ6fJrS.ayymchb9ZhazYONodhro.LuaYf6bET3h_3bmmirzwXc9.t0XNtobkC StKTzoY9.euDK64LwcKJ_5pPovPLx_c0uzw995EIDGK5uhmrZ8SWduCPMBcYDe1mI29WAHgMSc0d CtNgFH8L1CVjrpfjXopcPdRysZVuVWyMEJEvxFhukjfybT94Rf8O2mX0JjK9OmeEzc7WO0srfFYg jdT.BJr7sTkoALp4Lq9tKcN7DrkCEUmKpqijOY2T.trMXObyEhEESNizIbgI6xGR1F00_lmszrlN 7SJWa71JGPYPtJNkPV5lJKm_zAotV1oE5Xb01zJOT3ctoQ7z31KT4Oz9E8DZaIFVedbseMhyfMur zY76buG7XUj._TFfG7OZDMx_dE5wxaiwvzxcO4dwzfFY90Ibugk3E.C3p64jdNxcWZs5Awo55kjP ZhN2P0le8zEXh.8MHPJe0xSvlUg9gyFfW.yzedG80hoAyEOoYjz3JiZIoizbRaj01kdsGbsJ54Tu hTrdjtKEVflGqvvtxQJbMs4Y6DbuDU9cKQGd0y06Ly X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Fri, 23 Dec 2022 04:46:38 +0000 Original-Received: by hermes--production-sg3-b666c6484-fp465 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7e87de759aaf14d17a6e225f2c9e25b3; Fri, 23 Dec 2022 04:46:34 +0000 (UTC) In-Reply-To: (Hu Elliott's message of "Fri, 23 Dec 2022 00:43:00 +0000") X-Mailer: WebService/1.1.20982 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.33; envelope-from=luangruo@yahoo.com; helo=sonic308-10.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141909 Archived-At: Hu Elliott writes: > Hi, I switched my emacs from x window-system (ver 28.x) to pgtk window-sy= stem (ver 30.0.50) for native wayland support (my WM/DE is SwayWM). > > But I can't bind "S-SPC" to a function (yasnippet's "yas-next-field") any= more because emacs won't recognize "S-SPC" (i.e. + ). > > Here's futher detail: > > 1. switched to x window-system emacs (ver 28.x, stable release) > a. run "emacs -Q" > b. press "C-h k" > c. press "S-SPC" > d. result (please notice the "translated from S-SPC"): > > SPC (translated from S-SPC) runs the command self-insert-command > (found in global-map), which is an interactive built-in function in =E2= =80=98C > source code=E2=80=99. > ... > > 2. switched to pgtk window-system emacs (ver 30.0.50) > a. run "emacs -Q" > b. press "C-h k" > c. press "S-SPC" > d. result: > > SPC runs the command self-insert-command (found in global-map), which > is an interactive built-in function in =E2=80=98C source code=E2=80=99. > ... > > As I rely on this key binding heavily to jump through tab stops in my sni= ppets (thousand times per day), I really need "S-SPC" to be recognized agai= n. Your help is highly appreciated. > > Thank you. This is a problem with GTK input methods. The bug lies with them, but you can either run: (pgtk-use-im-context nil) to disable GTK input methods altogether, or to put up with the problem, since the input method developers have no interest in supporting such unusual key press events. Thanks.