GNU bug report logs -
#70138
Do not intercept C-TAB on Haiku OS
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70138 in the body.
You can then email your comments to 70138 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70138
; Package
emacs
.
(Tue, 02 Apr 2024 06:34:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tor-björn Claesson <tclaesson <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 02 Apr 2024 06:34:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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örn Claesson
[Message part 2 (text/html, inline)]
[0001-Add-haiku-pass-control-tab-to-system.patch (application/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70138
; Package
emacs
.
(Tue, 02 Apr 2024 13:02:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 70138 <at> debbugs.gnu.org (full text, mbox):
Tor-björn Claesson <tclaesson <at> gmail.com> writes:
> 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.
Thanks. Please insert an entry in etc/NEWS documenting this change, and
format the code consistently with its surroundings, thus:
> + if (haiku_should_pass_control_tab_to_system() &&
> + mods & B_CONTROL_KEY && key == 38) {
> + BWindow::DispatchMessage (msg, handler);
> + return;
> + }
if (haiku_should_pass_control_tab_to_system ()
&& (mods & B_CONTROL_KEY) && key == 38)
{
BWindow::DispatchMessage (msg, handler);
return;
}
> +bool
> +haiku_should_pass_control_tab_to_system (void) {
> + return haiku_pass_control_tab_to_system;
> +}
Please position the opening brace of this defun on its own line.
> + DEFVAR_BOOL ("haiku-pass-control-tab-to-system",
> + haiku_pass_control_tab_to_system,
> + doc: /* Whether or not to pass C-TAB to the system.
> + Settings this variable will cause Emacs to pass C-TAB to the system (allowing window switching on Haiku), rather than intercepting it for use in Emacs." */);
> + haiku_pass_control_tab_to_system = true;
Please move the second paragraph of the doc string to column zero and
fill it with M-q.
Last but not least, please write ChangeLog entries for the commit
message as specified in our CONTRIBUTE document. I'm willing to write
them on your behalf, as a first time contributor, but it would better
acquaint you with our practices to apply yourself to the task.
Thanks.
Eli, will we require copyright assignment for this change?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70138
; Package
emacs
.
(Tue, 02 Apr 2024 15:08:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 70138 <at> debbugs.gnu.org (full text, mbox):
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: 70138 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
> Date: Tue, 02 Apr 2024 21:00:58 +0800
>
> Eli, will we require copyright assignment for this change?
No, it's small enough to not require copyright assignment.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70138
; Package
emacs
.
(Wed, 03 Apr 2024 08:54:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 70138 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi!
Thanks for the feedback!
I have updated the patch and commit message, and am happy to fix it
further if needed.
[0001-New-variable-haiku-pass-control-tab-to-system.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
Cheers,
Tor-björn Claesson
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70138
; Package
emacs
.
(Wed, 03 Apr 2024 13:48:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 70138 <at> debbugs.gnu.org (full text, mbox):
Tor-björn Claesson <tclaesson <at> gmail.com> writes:
> Hi!
>
> Thanks for the feedback!
>
> I have updated the patch and commit message, and am happy to fix it
> further if needed.
Thanks. Three minor (or perhaps trifling) issues:
> Allow passing C-TAB on to the Haiku operating system, fixing window
> switching when an Emacs frame has focus (Bug#70138).
--
Duplicate whitespace.
> * src/haiku_support.cc (DispatchMessage): conditionally pass message to
> BWindow.
> * src/haiku_support.h:
> * src/haikufns.c (haiku_should_pass_control_tab_to_system):
> Add variable haiku-pass-control-tab-to-system, and c function
> haiku_should_pass_control_tab_to_system.
C should be capitalized, as should the first word in each sentence.
Please also fill the message to 64 columns; in a vc-log buffer, simply
typing M-q should suffice.
> + DEFVAR_BOOL("haiku-pass-control-tab-to-system",
> + haiku_pass_control_tab_to_system,
> + doc: /*Whether or not to pass C-TAB to the system.
-
> +Setting this variable will cause Emacs to pass C-TAB to the system
> +(allowing window switching on the Haiku operating system), rather than
> +intercepting it.*/);
-
Missing whitespace. Otherwise, you're good to go.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70138
; Package
emacs
.
(Wed, 03 Apr 2024 15:29:03 GMT)
Full text and
rfc822 format available.
Message #20 received at 70138 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi!
Thanks, well spotted!
Here is a new version of the patch.
[0001-New-variable-haiku-pass-control-tab-to-system-rev2.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
Thank you very much for helping me fix this=)
Cheers,
Tor-björn
Po Lu <luangruo <at> yahoo.com> writes:
> Tor-björn Claesson <tclaesson <at> gmail.com> writes:
>
>> Hi!
>>
>> Thanks for the feedback!
>>
>> I have updated the patch and commit message, and am happy to fix it
>> further if needed.
>
> Thanks. Three minor (or perhaps trifling) issues:
>
>> Allow passing C-TAB on to the Haiku operating system, fixing window
>> switching when an Emacs frame has focus (Bug#70138).
> --
>
> Duplicate whitespace.
>
>> * src/haiku_support.cc (DispatchMessage): conditionally pass message to
>> BWindow.
>> * src/haiku_support.h:
>> * src/haikufns.c (haiku_should_pass_control_tab_to_system):
>> Add variable haiku-pass-control-tab-to-system, and c function
>> haiku_should_pass_control_tab_to_system.
>
> C should be capitalized, as should the first word in each sentence.
> Please also fill the message to 64 columns; in a vc-log buffer, simply
> typing M-q should suffice.
>
>> + DEFVAR_BOOL("haiku-pass-control-tab-to-system",
>> + haiku_pass_control_tab_to_system,
>> + doc: /*Whether or not to pass C-TAB to the system.
> -
>> +Setting this variable will cause Emacs to pass C-TAB to the system
>> +(allowing window switching on the Haiku operating system), rather than
>> +intercepting it.*/);
> -
>
> Missing whitespace. Otherwise, you're good to go.
--
Mvh,
Tor-björn Claesson
Reply sent
to
Po Lu <luangruo <at> yahoo.com>
:
You have taken responsibility.
(Thu, 04 Apr 2024 00:31:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Tor-björn Claesson <tclaesson <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 04 Apr 2024 00:31:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 70138-done <at> debbugs.gnu.org (full text, mbox):
Tor-björn Claesson <tclaesson <at> gmail.com> writes:
> Hi!
>
> Thanks, well spotted!
>
> Here is a new version of the patch.
Installed, and closing. Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70138
; Package
emacs
.
(Thu, 04 Apr 2024 00:32:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 70138-done <at> debbugs.gnu.org (full text, mbox):
Tor-björn Claesson <tclaesson <at> gmail.com> writes:
> Hi!
>
> Thanks, well spotted!
>
> Here is a new version of the patch.
Installed, and closing. Thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 02 May 2024 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.