From unknown Mon Aug 18 11:18:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3792: 23.1.50; other-window misbehaving with C-tab keybinding Reply-To: Ivan Andrus , 3792@debbugs.gnu.org Resent-From: Ivan Andrus Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Jul 2009 19:55:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3792 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124708263124168 (code B ref -1); Wed, 08 Jul 2009 19:55:05 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 8 Jul 2009 19:50:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.1 required=4.0 tests=FOURLA,THREADTOPIC autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n68JoQQj024162 for ; Wed, 8 Jul 2009 12:50:27 -0700 Received: from mail.gnu.org ([199.232.76.166]:34177 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MOd9t-0000CU-0R for emacs-pretest-bug@gnu.org; Wed, 08 Jul 2009 15:50:25 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MOd9q-00047d-Os for emacs-pretest-bug@gnu.org; Wed, 08 Jul 2009 15:50:24 -0400 Received: from exhub01.orm.omniture.com ([64.0.193.252]:4819) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.60) (envelope-from ) id 1MOd9q-00047C-Cz for emacs-pretest-bug@gnu.org; Wed, 08 Jul 2009 15:50:22 -0400 Received: from exHC01.orm.omniture.com (10.10.0.213) by exHub01.orm.omniture.com (10.10.0.212) with Microsoft SMTP Server (TLS) id 8.1.358.0; Wed, 8 Jul 2009 13:30:10 -0600 Received: from Exchange1.orm.omniture.com ([fe80::557e:8a15:8eb3:a5cd]) by exHC01.orm.omniture.com ([::1]) with mapi; Wed, 8 Jul 2009 13:30:10 -0600 From: Ivan Andrus To: "emacs-pretest-bug@gnu.org" Date: Wed, 8 Jul 2009 13:29:45 -0600 Thread-Topic: 23.1.50; other-window misbehaving with C-tab keybinding Thread-Index: AcoAAnLVhUx2zoWPNk6vmIbSsZsg9w== Message-ID: Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Greylist: delayed 1229 seconds by postgrey-1.27 at monty-python; Wed, 08 Jul 2009 15:50:21 EDT I only see this problem in the NextStep (Cocoa actually) version (i.e. not X-windows) that I build from CVS. I did the following: nextstep/Emacs.app/Contents/MacOS/Emacs -q (global-set-key [(control tab)] 'other-window) C-x 2 ; to create a new window C-tab ; switches to the other window, then back when I release tab. If I release control first then it does not change back to the other window. It should not switch back to the other window. In GNU Emacs 23.1.50.2 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) of 2009-07-06 on ivan-andruss-macbook-pro.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: s-w s-x C-g C-x b d s-( s-( ( c l g l o b a l - s e t - k e y SPC " C - T a b " SPC ' o t h e r - w i n d o w ) C-j q C-y C-d C-d C-d C-d C-d C-d C-d C-e C-x C-e C-x 2 s-x r e l C-/ C-/ C-/ C-/ C-/ SPC C-/ C-/ x r e p o r Recent messages: call-interactively: Attempt to delete the sole visible or iconified frame kill-region: The mark is not set now, so there is no region Quit Entering debugger... Back to top level. Mark set other-window Undo! [6 times] Redo! Making completion list... From unknown Mon Aug 18 11:18:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3792: #3792 - 23.1.50; other-window misbehaving with C-tab keybinding - Emacs bug report logs Reply-To: Ivan Andrus , 3792@debbugs.gnu.org Resent-From: Ivan Andrus Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 10 Jul 2009 15:20:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3792 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3792-submit@emacsbugs.donarmstrong.com id=B3792.124723885232678 (code B ref 3792); Fri, 10 Jul 2009 15:20:05 +0000 Received: (at 3792) by emacsbugs.donarmstrong.com; 10 Jul 2009 15:14:12 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=3.1 required=4.0 tests=AWL,MURPHY_DRUGS_REL8, THREADTOPIC,XMSATT autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from exHub01.orm.omniture.com (exHub01.orm.omniture.com [64.0.193.252]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6AFE4dd032650 for <3792@emacsbugs.donarmstrong.com>; Fri, 10 Jul 2009 08:14:05 -0700 Received: from Exchange1.orm.omniture.com ([fe80::557e:8a15:8eb3:a5cd]) by exhub01 ([10.10.0.212]) with mapi; Fri, 10 Jul 2009 09:14:22 -0600 From: Ivan Andrus To: "3792@debbugs.gnu.org" <3792@debbugs.gnu.org> Date: Fri, 10 Jul 2009 09:13:55 -0600 Thread-Topic: #3792 - 23.1.50; other-window misbehaving with C-tab keybinding - Emacs bug report logs Thread-Index: AcoBcQpYhEiDCHzcFkmU8QLaRK0m2Q== Message-ID: Accept-Language: en-US Content-Language: en X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/mixed; boundary="_004_C67CB6D58F92Eiandrusomniturecom_" MIME-Version: 1.0 --_004_C67CB6D58F92Eiandrusomniturecom_ Content-Type: multipart/alternative; boundary="_000_C67CB6D58F92Eiandrusomniturecom_" --_000_C67CB6D58F92Eiandrusomniturecom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I noticed that view-lossage shows two for every time I press it. I= n nsterm.m it specifically checks for control-tab and references http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html Which in turn references https://bugzilla.mozilla.org/show_bug.cgi?id=3D374076#c12 Which makes me think that in Mac OS 10.4 the control-tab keyDown event isn'= t sent, but in 10.5 it is. Or at the very least in the latest version of 1= 0.5 (I'm running 10.5.7) it sends a keyDown event. I have implemented what I think is a very simple fix (though it is probably= not ideal). It sets a flag if it recieves a C-tag keyDown, and if so does= not send the corresponging keyUp. I like this because then it works on ke= yDown like everything else if possible, but if not it should work on keyUp.= I don't have the facilities to test the latter assumption. Also the patch almost certainly is less efficient than it could be. For ex= ample it sets flags and code twice (I believe) to the same thing, but I'm n= ot really familiar enough with the code to want to risk changing that (and = it's only for the Cocoa port as well). I believe it should be correct at l= east. -Ivan Andrus --_000_C67CB6D58F92Eiandrusomniturecom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable #3792 - 23.1.50; other-window misbehaving with C-tab keybinding - Em= acs bug report logs I noticed that view-lossage shows two <C-tab> for every time I = press it.  In nsterm.m it specifically checks for control-tab and refe= rences
http:= //osdir.com/ml/editors.vim.mac/2007-10/msg00141.html
Which in turn references
https= ://bugzilla.mozilla.org/show_bug.cgi?id=3D374076#c12

Which makes me think that in Mac OS 10.4 the control-tab keyDown event isn&= #8217;t sent, but in 10.5 it is.  Or at the very least in the latest v= ersion of 10.5 (I’m running 10.5.7) it sends a keyDown event.  <= BR>
I have implemented what I think is a very simple fix (though it is probably= not ideal).  It sets a flag if it recieves a C-tag keyDown, and if so= does not send the corresponging keyUp.  I like this because then it w= orks on keyDown like everything else if possible, but if not it should work= on keyUp.  I don’t have the facilities to test the latter assum= ption.

Also the patch almost certainly is less efficient than it could be.  F= or example it sets flags and code twice (I believe) to the same thing, but = I’m not really familiar enough with the code to want to risk changing= that (and it’s only for the Cocoa port as well).  I believe it = should be correct at least.

-Ivan Andrus
--_000_C67CB6D58F92Eiandrusomniturecom_-- --_004_C67CB6D58F92Eiandrusomniturecom_ Content-Type: application/octet-stream; name="emacs.patch" Content-Description: emacs.patch Content-Disposition: attachment; filename="emacs.patch"; size=1541; creation-date="Fri, 10 Jul 2009 09:14:21 GMT"; modification-date="Fri, 10 Jul 2009 09:14:21 GMT" Content-Transfer-Encoding: base64 LS0tIG5zdGVybS5tCTA2IEp1bCAyMDA5IDIxOjQ2OjU3IC0wNjAwCTEuNzYKKysrIG5zdGVybS5t CTEwIEp1bCAyMDA5IDA5OjExOjIwIC0wNjAwCkBAIC0yMTgsNiArMjE4LDE1CiAgICBNb2RlIDAg aXMgbm9ybWFsIGFudGktYWxpYXNpbmcsIG1vZGUgMSBpcyBubyBhbnRpLW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Fuc19mYWtlX2tleWRvd24gJiYgY29kZSA9PSAweDMwICYmIChmbGFncyAmIE5TQ29udHJvbEtl eU1hc2spICYmICEoZmxhZ3MgJiBOU0NvbW1hbmRLZXlNYXNrKSkgeworICAgIG5zX3NlbmRzX2Nv bnRyb2xfdGFiX2tleWRvd24gPSBZRVM7CisgIH0KKyNlbmRpZgorCiAgIE5TVFJBQ0UgKGtleURv d24pOwoKICAgLyogUmhhcHNvZHkgYW5kIE9TIFggZ2l2ZSB1cCBhbmQgZG93biBldmVudHMgZm9y IHRoZSBhcnJvdyBrZXlzICovCkBAIC00NjI4LDYgKzQ2MjgsOCBAQAogICAgSWYgaXQgbWF0Y2hl cyBvbmUgb2YgdGhlc2UsIHNlbmQgaXQgb24gdG8ga2V5RG93bi4gKi8KIC0odm9pZClrZXlVcDog KE5TRXZlbnQgKil0aGVFdmVudAogeworICBpZiAoIG5zX3NlbmRzX2NvbnRyb2xfdGFiX2tleWRv d24gKSAgcmV0dXJuOworCiAgIGludCBmbGFncyA9IFt0aGVFdmVudCBtb2RpZmllckZsYWdzXTsK ICAgaW50IGNvZGUgPSBbdGhlRXZlbnQga2V5Q29kZV07CiAgIGlmIChjb2RlID09IDB4MzAgJiYg KGZsYWdzICYgTlNDb250cm9sS2V5TWFzaykgJiYgIShmbGFncyAmIE5TQ29tbWFuZEtleU1hc2sp KQo= --_004_C67CB6D58F92Eiandrusomniturecom_-- From unknown Mon Aug 18 11:18:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3792: 23.1.50; other-window misbehaving with C-tab keybinding Reply-To: YAMAMOTO Mitsuharu , 3792@debbugs.gnu.org Resent-From: YAMAMOTO Mitsuharu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 11 Jul 2009 07:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3792 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3792-submit@emacsbugs.donarmstrong.com id=B3792.12472982952795 (code B ref 3792); Sat, 11 Jul 2009 07:50:04 +0000 Received: (at 3792) by emacsbugs.donarmstrong.com; 11 Jul 2009 07:44:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.4 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mathmail.math.s.chiba-u.ac.jp (mathmail.math.s.chiba-u.ac.jp [133.82.132.2]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6B7im2e002778 for <3792@emacsbugs.donarmstrong.com>; Sat, 11 Jul 2009 00:44:50 -0700 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 37EB52C43; Sat, 11 Jul 2009 16:44:47 +0900 (JST) Date: Sat, 11 Jul 2009 16:44:47 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Ivan Andrus , 3792@debbugs.gnu.org In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII >>>>> On Fri, 10 Jul 2009 09:13:55 -0600, Ivan Andrus said: > I noticed that view-lossage shows two for every time I press > it. In nsterm.m it specifically checks for control-tab and > references > http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html > Which in turn references > https://bugzilla.mozilla.org/show_bug.cgi?id=374076#c12 > Which makes me think that in Mac OS 10.4 the control-tab keyDown > event isn't sent, but in 10.5 it is. Or at the very least in the > latest version of 10.5 (I'm running 10.5.7) it sends a keyDown > event. FWIW, the latest release of my Carbon+AppKit port (*), which also uses Cocoa for GUI stuff, has the problem that it doesn't recognize Control-Tab on Mac OS X 10.4 and earlier. And I'm planning to add the following change to the next release: *: http://lists.gnu.org/archive/html/emacs-devel/2009-06/msg00532.html *** ../../emacs-22.3-appkit-1.4/src/macappkit.m 2009-06-27 13:49:25.000000000 +0900 --- macappkit.m 2009-07-10 10:54:02.000000000 +0900 *************** static EventRef peek_if_next_event_activ *** 747,753 **** if (!(mac_mapped_modifiers (modifiers, [event keyCode]) & ~(mac_pass_command_to_system ? cmdKey : 0) & ~(mac_pass_control_to_system ? controlKey : 0)) ! && ([NSApp keyWindow] || (flags & NSCommandKeyMask))) goto OTHER; characters = [event characters]; --- 747,764 ---- if (!(mac_mapped_modifiers (modifiers, [event keyCode]) & ~(mac_pass_command_to_system ? cmdKey : 0) & ~(mac_pass_control_to_system ? controlKey : 0)) ! && ([NSApp keyWindow] || (flags & NSCommandKeyMask)) ! #if MAC_OS_X_VERSION_MIN_REQUIRED < 1050 ! /* This is a workaround for the problem that Control-Tab ! is not recognized on Mac OS X 10.4 and earlier. */ ! && !(floor (NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4 ! && [[[NSApp keyWindow] firstResponder] ! isMemberOfClass:[EmacsView class]] ! && [event keyCode] == 0x30 /* kVK_Tab */ ! && ((flags & (NSControlKeyMask | NSCommandKeyMask)) ! == NSControlKeyMask)) ! #endif ! ) goto OTHER; characters = [event characters]; On Mac OS X 10.4 and earlier, the first responder object doesn't receive the keyDown: message for Control-Tab. But still NSApplication and NSWindow objects can detect such NSKeyDown events via sendEvent:. Processing key events at the timing of keyUp: gives a strange feeling to the user because the command bound to the key is executed much later than expected and auto-repeat does not work. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From unknown Mon Aug 18 11:18:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3792: #3792 - 23.1.50; other-window misbehaving with C-tab keybinding - Emacs bug report logs Reply-To: Harald Maier , 3792@debbugs.gnu.org Resent-From: Harald Maier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 11 Jul 2009 18:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3792 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3792-submit@emacsbugs.donarmstrong.com id=B3792.12473349644180 (code B ref 3792); Sat, 11 Jul 2009 18:00:03 +0000 Received: (at 3792) by emacsbugs.donarmstrong.com; 11 Jul 2009 17:56:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.5 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6BHtwYO004173 for <3792@emacsbugs.donarmstrong.com>; Sat, 11 Jul 2009 10:56:00 -0700 Received: from ate.maierh (p54986867.dip.t-dialin.net [84.152.104.103]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MKsym-1MPgni3548-000Y7b; Sat, 11 Jul 2009 19:55:55 +0200 Received: by ate.maierh (Postfix, from userid 501) id 8783E7D881A; Sat, 11 Jul 2009 19:55:54 +0200 (CEST) From: Harald Maier To: Ivan Andrus Cc: 3792@debbugs.gnu.org References: Date: Sat, 11 Jul 2009 19:55:54 +0200 In-Reply-To: (Ivan Andrus's message of "Fri, 10 Jul 2009 09:13:55 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Provags-ID: V01U2FsdGVkX18E3Z230g3w52zurUUWKdlb4I1hcmkYhMK7H2z ookk2At+2dYOlfa5Yku81e5cxP/LNdbZRqXfUgt5ZLurt+X1Ap 1fV0KU7tM8dIVxbKGU8oQ== Ivan Andrus writes: > I noticed that view-lossage shows two for every time I press > it. In nsterm.m it specifically checks for control-tab and references > http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html Which in > turn references > https://bugzilla.mozilla.org/show_bug.cgi?id=374076#c12 > > Which makes me think that in Mac OS 10.4 the control-tab keyDown event > isn't sent, but in 10.5 it is. Or at the very least in the latest > version of 10.5 (I'm running 10.5.7) it sends a keyDown event. > > I have implemented what I think is a very simple fix (though it is > probably not ideal). It sets a flag if it recieves a C-tag keyDown, > and if so does not send the corresponging keyUp. I like this because > then it works on keyDown like everything else if possible, but if not > it should work on keyUp. I don't have the facilities to test the > latter assumption. > > Also the patch almost certainly is less efficient than it could be. > For example it sets flags and code twice (I believe) to the same > thing, but I'm not really familiar enough with the code to want to > risk changing that (and it's only for the Cocoa port as well). I > believe it should be correct at least. > > -Ivan Andrus Works fine for me. Thanks! Maybe you should resend the Patch. In line 3 at the end the two final '@@' characters are missing. IMHO, that workaround should be added to 23.1. In 2009-02-20 I too reported the bug as #2402. Harald From rgm@gnu.org Sat Jul 11 12:43:03 2009 Received: (at control) by emacsbugs.donarmstrong.com; 11 Jul 2009 19:43:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.6 required=4.0 tests=AWL,ONEWORD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6BJh0Gx021734 for ; Sat, 11 Jul 2009 12:43:01 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MPiTK-0002mi-V3; Sat, 11 Jul 2009 15:42:59 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19032.60226.695938.148181@fencepost.gnu.org> Date: Sat, 11 Jul 2009 15:42:58 -0400 From: Glenn Morris To: control Subject: control close 3769 close 3820 reassign 3792 emacs,ns merge 3824 3825 From unknown Mon Aug 18 11:18:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3792: #3792 - 23.1.50; other-window misbehaving with C-tab keybinding - Emacs bug report logs Reply-To: Ivan Andrus , 3792@debbugs.gnu.org Resent-From: Ivan Andrus Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org Resent-Date: Mon, 13 Jul 2009 17:25:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3792 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 3792-submit@emacsbugs.donarmstrong.com id=B3792.124750547915838 (code B ref 3792); Mon, 13 Jul 2009 17:25:10 +0000 Received: (at 3792) by emacsbugs.donarmstrong.com; 13 Jul 2009 17:17:59 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=3.5 required=4.0 tests=AWL,MURPHY_DRUGS_REL8, THREADTOPIC,XMSATT autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from exHub01.orm.omniture.com (exHub01.orm.omniture.com [64.0.193.252]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6DHHtho015818 for <3792@emacsbugs.donarmstrong.com>; Mon, 13 Jul 2009 10:17:56 -0700 Received: from exHC01.orm.omniture.com (10.10.0.213) by exHub01.orm.omniture.com (10.10.0.212) with Microsoft SMTP Server (TLS) id 8.1.375.2; Mon, 13 Jul 2009 11:18:14 -0600 Received: from Exchange1.orm.omniture.com ([fe80::557e:8a15:8eb3:a5cd]) by exHC01.orm.omniture.com ([::1]) with mapi; Mon, 13 Jul 2009 11:18:14 -0600 From: Ivan Andrus To: "3792@debbugs.gnu.org" <3792@debbugs.gnu.org> Date: Mon, 13 Jul 2009 11:17:45 -0600 Thread-Topic: #3792 - 23.1.50; other-window misbehaving with C-tab keybinding - Emacs bug report logs Thread-Index: AcoD3dY2Z8ifAbE7A0KqweF/Z3YmHA== Message-ID: Accept-Language: en-US Content-Language: en X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/mixed; boundary="_004_C680C85A8FC24iandrusomniturecom_" MIME-Version: 1.0 --_004_C680C85A8FC24iandrusomniturecom_ Content-Type: multipart/alternative; boundary="_000_C680C85A8FC24iandrusomniturecom_" --_000_C680C85A8FC24iandrusomniturecom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Resending patch (properly formatted this time I hope). --_000_C680C85A8FC24iandrusomniturecom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable #3792 - 23.1.50; other-window misbehaving with C-tab keybinding - Em= acs bug report logs Resending patch (properly formatted this time I hope). --_000_C680C85A8FC24iandrusomniturecom_-- --_004_C680C85A8FC24iandrusomniturecom_ Content-Type: application/octet-stream; name="emacs.patch" Content-Description: emacs.patch Content-Disposition: attachment; filename="emacs.patch"; size=1544; creation-date="Mon, 13 Jul 2009 11:18:14 GMT"; modification-date="Mon, 13 Jul 2009 11:18:14 GMT" Content-Transfer-Encoding: base64 LS0tIG5zdGVybS5tCTA2IEp1bCAyMDA5IDIxOjQ2OjU3IC0wNjAwC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K KyAgICAgYmVmb3JlIG5zX2Zha2Vfa2V5ZG93biBpcyBjaGFuZ2VkLiAqLworICBmbGFncyA9IFt0 aGVFdmVudCBtb2RpZmllckZsYWdzXTsKKyAgY29kZSA9IFt0aGVFdmVudCBrZXlDb2RlXTsKKyAg aWYgKCFuc19mYWtlX2tleWRvd24gJiYgY29kZSA9PSAweDMwICYmIChmbGFncyAmIE5TQ29udHJv bEtleU1hc2spICYmICEoZmxhZ3MgJiBOU0NvbW1hbmRLZXlNYXNrKSkgeworICAgIG5zX3NlbmRz X2NvbnRyb2xfdGFiX2tleWRvd24gPSBZRVM7CisgIH0KKyNlbmRpZgorCiAgIE5TVFJBQ0UgKGtl eURvd24pOwoKICAgLyogUmhhcHNvZHkgYW5kIE9TIFggZ2l2ZSB1cCBhbmQgZG93biBldmVudHMg Zm9yIHRoZSBhcnJvdyBrZXlzICovCkBAIC00NjI4LDYgKzQ2MjgsOCBAQAogICAgSWYgaXQgbWF0 Y2hlcyBvbmUgb2YgdGhlc2UsIHNlbmQgaXQgb24gdG8ga2V5RG93bi4gKi8KIC0odm9pZClrZXlV cDogKE5TRXZlbnQgKil0aGVFdmVudAogeworICBpZiAoIG5zX3NlbmRzX2NvbnRyb2xfdGFiX2tl eWRvd24gKSAgcmV0dXJuOworCiAgIGludCBmbGFncyA9IFt0aGVFdmVudCBtb2RpZmllckZsYWdz XTsKICAgaW50IGNvZGUgPSBbdGhlRXZlbnQga2V5Q29kZV07CiAgIGlmIChjb2RlID09IDB4MzAg JiYgKGZsYWdzICYgTlNDb250cm9sS2V5TWFzaykgJiYgIShmbGFncyAmIE5TQ29tbWFuZEtleU1h c2spKQo= --_004_C680C85A8FC24iandrusomniturecom_-- From unknown Mon Aug 18 11:18:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Ivan Andrus Subject: bug#3792 closed by Adrian Robert (Re: 23.1.50; other-window misbehaving with C-tab keybinding) Message-ID: References: <188AF6D9-A3C9-4C84-BC7B-4A7E8E7E3F22@gmail.com> X-Emacs-PR-Message: they-closed 3792 X-Emacs-PR-Package: emacs,ns Reply-To: 3792@debbugs.gnu.org Date: Thu, 23 Jul 2009 12:00:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1248350405-24813-1" This is a multi-part message in MIME format... ------------=_1248350405-24813-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs,ns package: #3792: 23.1.50; other-window misbehaving with C-tab keybinding It has been closed by Adrian Robert . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Adrian Robert by replying to this email. --=20 3792: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3792 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1248350405-24813-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3792-done) by emacsbugs.donarmstrong.com; 23 Jul 2009 11:54:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.3 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-gx0-f224.google.com (mail-gx0-f224.google.com [209.85.217.224]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NBsFdn023846 for <3792-done@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 04:54:16 -0700 Received: by gxk24 with SMTP id 24so1531177gxk.1 for <3792-done@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 04:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date:cc :x-mailer; bh=Uxj+zbbHdNH+tjbV9bXQWl8WrUY9VLSKxnWwlYdoFSs=; b=iYfAtJ4sLAYI3BIZIXDIfXBDo4ON+6CXzUsTD0JSrGJpIdxLu/81e1nu7pn6llC8F2 MIC/kLc6MmwdKqFvqXIestQvcJ0MQu5bkrJP1juwS+A7PtNf3Y/Q85yXtwojQxfKgavq FK75pJOFDvE/VjDuRYIOfs67wCaViOLwxsw+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:cc:x-mailer; b=r7+ufyuSnWDd4KSvrFHHu/K/FSFzw/hH1ReNxrF5hK1gdqlbG2ETaWwyeWGiItz/iO rM/tR+Z0toST3bmOK6/JleagZ5pP5OVYIiPetZpHnaB+UqaI3gsvqNL2gSP0pJzO5Jve QfUBJYhSBBWcvJVLaG/SyK9MsL8tDwqLkRSX8= Received: by 10.90.70.15 with SMTP id s15mr1794351aga.49.1248350050193; Thu, 23 Jul 2009 04:54:10 -0700 (PDT) Received: from ?10.0.1.3? (dpc6745214221.direcpc.com [67.45.214.221]) by mx.google.com with ESMTPS id 5sm5146774agc.15.2009.07.23.04.54.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Jul 2009 04:54:09 -0700 (PDT) Message-Id: <188AF6D9-A3C9-4C84-BC7B-4A7E8E7E3F22@gmail.com> From: Adrian Robert To: 3792-done@debbugs.gnu.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: 23.1.50; other-window misbehaving with C-tab keybinding Date: Thu, 23 Jul 2009 07:53:57 -0400 Cc: Ivan Andrus X-Mailer: Apple Mail (2.935.3) I checked in a fix to trunk and branch to simply not do the keyUp- detection on Leopard and above. Tested on Tiger and Leopard. ------------=_1248350405-24813-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 8 Jul 2009 19:50:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.1 required=4.0 tests=FOURLA,THREADTOPIC autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n68JoQQj024162 for ; Wed, 8 Jul 2009 12:50:27 -0700 Received: from mail.gnu.org ([199.232.76.166]:34177 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MOd9t-0000CU-0R for emacs-pretest-bug@gnu.org; Wed, 08 Jul 2009 15:50:25 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MOd9q-00047d-Os for emacs-pretest-bug@gnu.org; Wed, 08 Jul 2009 15:50:24 -0400 Received: from exhub01.orm.omniture.com ([64.0.193.252]:4819) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.60) (envelope-from ) id 1MOd9q-00047C-Cz for emacs-pretest-bug@gnu.org; Wed, 08 Jul 2009 15:50:22 -0400 Received: from exHC01.orm.omniture.com (10.10.0.213) by exHub01.orm.omniture.com (10.10.0.212) with Microsoft SMTP Server (TLS) id 8.1.358.0; Wed, 8 Jul 2009 13:30:10 -0600 Received: from Exchange1.orm.omniture.com ([fe80::557e:8a15:8eb3:a5cd]) by exHC01.orm.omniture.com ([::1]) with mapi; Wed, 8 Jul 2009 13:30:10 -0600 From: Ivan Andrus To: "emacs-pretest-bug@gnu.org" Date: Wed, 8 Jul 2009 13:29:45 -0600 Subject: 23.1.50; other-window misbehaving with C-tab keybinding Thread-Topic: 23.1.50; other-window misbehaving with C-tab keybinding Thread-Index: AcoAAnLVhUx2zoWPNk6vmIbSsZsg9w== Message-ID: Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Greylist: delayed 1229 seconds by postgrey-1.27 at monty-python; Wed, 08 Jul 2009 15:50:21 EDT I only see this problem in the NextStep (Cocoa actually) version (i.e. not X-windows) that I build from CVS. I did the following: nextstep/Emacs.app/Contents/MacOS/Emacs -q (global-set-key [(control tab)] 'other-window) C-x 2 ; to create a new window C-tab ; switches to the other window, then back when I release tab. If I release control first then it does not change back to the other window. It should not switch back to the other window. In GNU Emacs 23.1.50.2 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) of 2009-07-06 on ivan-andruss-macbook-pro.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: s-w s-x C-g C-x b d s-( s-( ( c l g l o b a l - s e t - k e y SPC " C - T a b " SPC ' o t h e r - w i n d o w ) C-j q C-y C-d C-d C-d C-d C-d C-d C-d C-e C-x C-e C-x 2 s-x r e l C-/ C-/ C-/ C-/ C-/ SPC C-/ C-/ x r e p o r Recent messages: call-interactively: Attempt to delete the sole visible or iconified frame kill-region: The mark is not set now, so there is no region Quit Entering debugger... Back to top level. Mark set other-window Undo! [6 times] Redo! Making completion list... ------------=_1248350405-24813-1--