From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Tor-bj=C3=B6rn?= Claesson Newsgroups: gmane.emacs.bugs Subject: bug#70138: Do not intercept C-TAB on Haiku OS Date: Tue, 2 Apr 2024 09:33:24 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000026ab16061517490e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37889"; mail-complaints-to="usenet@ciao.gmane.io" To: 70138@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 02 08:34:19 2024 Return-path: Envelope-to: geb-bug-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 1rrXit-0009eE-2n for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Apr 2024 08:34:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrXib-0005RS-VK; Tue, 02 Apr 2024 02:34:01 -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 1rrXiZ-0005RD-GA for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:34:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrXiZ-00019p-6N for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:33:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrXic-0007a2-FR for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Tor-bj=C3=B6rn?= Claesson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Apr 2024 06:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70138 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171203963229116 (code B ref -1); Tue, 02 Apr 2024 06:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2024 06:33:52 +0000 Original-Received: from localhost ([127.0.0.1]:52131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrXiS-0007ZY-D6 for submit@debbugs.gnu.org; Tue, 02 Apr 2024 02:33:52 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:45616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrXiP-0007Ye-Ia for submit@debbugs.gnu.org; Tue, 02 Apr 2024 02:33:51 -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 1rrXiF-0005Q0-Vj for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:33:39 -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 1rrXiE-00018G-Fi for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:33:39 -0400 Original-Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-56c147205b9so8338239a12.0 for ; Mon, 01 Apr 2024 23:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712039616; x=1712644416; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=TencS6gIOQ32XUu8gFHHawGAXpsIj92VnpFB1KOvdyg=; b=Lq+yz24KiklDnOWNrbDSaM+3K6Dw80oA7oHK0JrfW92c2q4jOQI+hkJG404/MgMVMm 5SRxO/WVBwCkpd3j2kZiuQLuX13QQfiNPf7ALI+msKDALb2Rocx4JjR2l0Z7A7Agj2PJ iDcpkncf51klvBes3mZRk8Gg/+ZFjqJvm1pccTZRMnyNx/IRoaAljKe0cfmvGcR4mqGM sk3AmNANmhOBNYVWguzQ9qwE3AsrRMYS4Ie4RLzyP3fCq/QdsccecoiCLqmKuyl3T0KO 5ylijG1s9kg68JsWjcVTqpKIrixnAJJvBXg/yTz85xfW0UJc22JalmQtW+Dg9u/l5lOi EUdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712039616; x=1712644416; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TencS6gIOQ32XUu8gFHHawGAXpsIj92VnpFB1KOvdyg=; b=rJ+U3XjgcKKfb8YC7k0MGouGaNJ8xtU5SUe7AcBZP+jD6cXfwC9qSGgO8keTyAIyaP YmoBe2PayF/V1AlCGTEM1atLN3oMDNN690Ua/1vZkXAxwCoWvWPswdjPOY0/nnC75z3B ebonCAZYD2hpLYw3a9kE9ygDNt+Z4rzxHbqonQOylbJWt8+4RqrxU1onGL3iXDaWuIyL wLwbcwFy8jMRUKtVuPD/B45KXY9bU2PAPXqghKkRizJF6n8XgXJrM9C1VYihQvrvs8wk i5NUGJloVd1VPS1J/S/g7duDGSxkTq5QxaSOGXK4HVXM/LBnMsKw67yliBQxhBdvAoTX timQ== X-Gm-Message-State: AOJu0YyVTtOvr/q38MnpdS8FKeZjTBnTy/hZ0S3ChCnbgqsl7MFHVAQk 6tpZ4hDmgNMOtvulgba+z75tgvp3HcePkXCbWQuoisCIWXLtd+qPjJH0ufMZcc0uc8yfKhtJra6 RU6TbtatfRorfI+OFLPEf1D8GY3f0aX80 X-Google-Smtp-Source: AGHT+IGt3hViCqkArYFbo4SWv1+ZrN0jni2IZjWXkcq5PzUmgn1n4lPaP0FqzOkb9Zgudq1qXnvyPgjP1dJmbeopgGs= X-Received: by 2002:a05:6402:51c9:b0:568:c6fd:4f50 with SMTP id r9-20020a05640251c900b00568c6fd4f50mr11238791edd.7.1712039615958; Mon, 01 Apr 2024 23:33:35 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=tclaesson@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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282498 Archived-At: --00000000000026ab16061517490e Content-Type: multipart/alternative; boundary="00000000000026ab15061517490c" --00000000000026ab15061517490c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello! On Haiku, C-TAB switches between application windows. Emacs unfortunately intercepts this keystroke, breaking window switching. This patch makes Emacs instead pass C-TAB to Haiku, while introducing the variable haiku-pass-control-tab-to-system, allowing the current behaviour. I would be grateful for feedback on this patch, and am willing to work on it until it is ok. If necessary, I'm happy to assign copyright. Cheers, Tor-bj=C3=B6rn Claesson --00000000000026ab15061517490c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello!=C2=A0

On Haiku, C-TAB= switches between application windows. Emacs unfortunately intercepts this = keystroke, breaking window switching.

This patch makes Emacs instead pass C-TAB to Haiku, while introducing th= e variable haiku-pass-control-tab-to-system, allowing the current behaviour= .

I would be grateful for feedback on this patch, = and am willing to work on it until it is ok. If necessary, I'm happy to= assign copyright.

Cheers,
Tor-bj=C3=B6r= n Claesson
--00000000000026ab15061517490c-- --00000000000026ab16061517490e Content-Type: application/x-patch; name="0001-Add-haiku-pass-control-tab-to-system.patch" Content-Disposition: attachment; filename="0001-Add-haiku-pass-control-tab-to-system.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lu6v1pu50 RnJvbSAwOTY3Y2ZhYzM1ZWFiYWQxMmJmOWU4MjBiMWVkNWY3NjRhMDg4ZTllIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/VG9yLWJqPUMzPUI2cm49MjBDbGFlc3Nvbj89 IDx0Y2xhZXNzb25AZ21haWwuY29tPgpEYXRlOiBNb24sIDI1IE1hciAyMDI0IDEzOjE1OjE0ICsw MjAwClN1YmplY3Q6IFtQQVRDSF0gQWRkIGhhaWt1LXBhc3MtY29udHJvbC10YWItdG8tc3lzdGVt CgpFbWFjcyB3b3VsZCBwcmV2aW91c2x5IGludGVyY2VwdCBDLVRBQiBvbiBIYWlrdSBPUywgYnJl YWtpbmcKd2luZG93IHN3aXRjaGluZy4gVGhpcyBwYXRjaCBmaXhlcyB0aGlzLCB3aXRoIGFuIG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