GNU bug report logs - #38007
scroll-lock binding on Windows

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Juanma Barranquero <lekktu@HIDDEN>; dated Thu, 31 Oct 2019 17:48:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 38007 <at> debbugs.gnu.org:


Received: (at 38007) by debbugs.gnu.org; 22 Nov 2019 10:00:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 22 05:00:36 2019
Received: from localhost ([127.0.0.1]:53798 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iY5ju-0001hF-A7
	for submit <at> debbugs.gnu.org; Fri, 22 Nov 2019 05:00:36 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47578)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iY5jq-0001YK-Kh
 for 38007 <at> debbugs.gnu.org; Fri, 22 Nov 2019 05:00:31 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:51526)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iY5jh-000587-1g; Fri, 22 Nov 2019 05:00:23 -0500
Received: from [176.228.60.248] (port=3775 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iY5jZ-0005Tf-39; Fri, 22 Nov 2019 05:00:16 -0500
Date: Fri, 22 Nov 2019 12:00:28 +0200
Message-Id: <83d0dkw7r7.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juanma Barranquero <lekktu@HIDDEN>
In-reply-to: <CAAeL0SRrn3C5LG0es64Zk83K89yXCgVM20wwD2tOobU93JznDA@HIDDEN>
 (message from Juanma Barranquero on Fri, 22 Nov 2019 10:44:55 +0100)
Subject: Re: bug#38007: scroll-lock binding on Windows
References: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
 <83zhhgn60i.fsf@HIDDEN>
 <CAAeL0SQE3Zs3PSwuASy31kT6016Csq2D1FF9seiZPyp9ZL-VMQ@HIDDEN>
 <83tv7om87f.fsf@HIDDEN>
 <CAAeL0SRWQPBPStFODX8wWbEeFk65iH0ceq5QS739BoQKjDrOoA@HIDDEN>
 <94531FFE-1CDB-49AA-B2FE-9FEAAFB7C8A9@HIDDEN>
 <CAAeL0SS9nKAPTm_R1aPQvVrHxDn8ENp8yfenPhknzcLSoVbgDQ@HIDDEN>
 <83ftigw9rr.fsf@HIDDEN>
 <CAAeL0SRrn3C5LG0es64Zk83K89yXCgVM20wwD2tOobU93JznDA@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38007
Cc: 38007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juanma Barranquero <lekktu@HIDDEN>
> Date: Fri, 22 Nov 2019 10:44:55 +0100
> Cc: 38007 <at> debbugs.gnu.org
> 
> AFAICS, the X Window System Protocol (https://www.x.org/releases/X11R7.6/doc/xproto/x11protocol.html)
> defines the keysyms as numeric codes with a conventional name, in this case 
> 
> #xFF14   SCROLL LOCK
> 
> which is represented in /usr/include/X11/keysymdef.h as
> 
> #define XK_Scroll_Lock                   0xff14
> 
> but I don't know how that is converted into a keyboard event.

Yes, the latter is the missing piece.  Maybe put all of the above into
that comment.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.

Message received at 38007 <at> debbugs.gnu.org:


Received: (at 38007) by debbugs.gnu.org; 22 Nov 2019 09:45:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 22 04:45:42 2019
Received: from localhost ([127.0.0.1]:53778 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iY5VV-0000rz-MA
	for submit <at> debbugs.gnu.org; Fri, 22 Nov 2019 04:45:41 -0500
Received: from mail-qk1-f180.google.com ([209.85.222.180]:36561)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lekktu@HIDDEN>) id 1iY5VQ-0000rk-AW
 for 38007 <at> debbugs.gnu.org; Fri, 22 Nov 2019 04:45:39 -0500
Received: by mail-qk1-f180.google.com with SMTP id d13so5730429qko.3
 for <38007 <at> debbugs.gnu.org>; Fri, 22 Nov 2019 01:45:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=L2qD+OtxATuNMbDX9aTIU9tYE3fj0X6ibTgJ02tDHNE=;
 b=CGzMhFKTELGals2lFBFduHlvL4R4XF8Z+Nk0Z7spN6rhOhPgMIdhFj9NDSQR/CeV3L
 1CotmjZ1TVuBePTiqj9qkxn+/EoCE2MO5nP27Z4bk6Nlr8IuNHow+U7ih+Stl/sJkNtC
 /s1Epc3Y8YY181WADTyCvzR8WV5lw/kPT04m8o3CKVZFxxnkLze4jeh9oaNgRLYiEtxJ
 EGxZ4WW24o9w1vWZV1j0qo9OAnVJGzAv1mMV97NFTll6UEx3z016zKxli0pVDzuTNG+m
 YUTks0Tbq8Zf3xl8+XlkhRb+VLXWhPM5cgiFMxTLvRstS5asgTUTEyoJcaoA16zx/I0w
 ypzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=L2qD+OtxATuNMbDX9aTIU9tYE3fj0X6ibTgJ02tDHNE=;
 b=kfamCiFIu3Cbdk3kUKNweWW5Y3jiTbvmlBVtU/60NLtOLzrLX9URqwuZrdECd/pqRn
 xefM0U4pQtZp4MBG98DD2Y8N36a0w+pCben5XPw69PR4gMI16QUJgHkJz6QJdeLFV7c3
 9SquulUx2Zz8MKY0oZ9yv2vEV0cWIbvMNclRvj1cP9IK7DxrN637cBHsx6qJPli/4nB6
 uh0NA+bFQZXZO+FKoqz+kuVrC0LY/Gfkvfid1J03GTV8HggfVP+5f3HrOP6D3Q55AWip
 l1Hj4cfHOuIY2Vj2TaxM2ahjryMffTGT2CvBHYs60qi2aIiZ3pAa548r116CZtwnDiP/
 B14w==
X-Gm-Message-State: APjAAAXJywLmrHoKbpt7lvP2kVRGm5hDgUE7QA/Vy5ZdIddnsmXE0jPx
 LhVlhXKNKedMeHqm4mnrAJY4FRS+JAcvp2sPCgo67Odg
X-Google-Smtp-Source: APXvYqxHzzQuoNJYMZI+mi8PFtc7qQOwJonc+BZVeyxWgaITLOJ/dRH4xJN9cBNdoJbMdB1u1Pj/lPcw6cuFAys7AbQ=
X-Received: by 2002:a37:6794:: with SMTP id b142mr7692754qkc.216.1574415930298; 
 Fri, 22 Nov 2019 01:45:30 -0800 (PST)
MIME-Version: 1.0
References: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
 <83zhhgn60i.fsf@HIDDEN>
 <CAAeL0SQE3Zs3PSwuASy31kT6016Csq2D1FF9seiZPyp9ZL-VMQ@HIDDEN>
 <83tv7om87f.fsf@HIDDEN>
 <CAAeL0SRWQPBPStFODX8wWbEeFk65iH0ceq5QS739BoQKjDrOoA@HIDDEN>
 <94531FFE-1CDB-49AA-B2FE-9FEAAFB7C8A9@HIDDEN>
 <CAAeL0SS9nKAPTm_R1aPQvVrHxDn8ENp8yfenPhknzcLSoVbgDQ@HIDDEN>
 <83ftigw9rr.fsf@HIDDEN>
In-Reply-To: <83ftigw9rr.fsf@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Fri, 22 Nov 2019 10:44:55 +0100
Message-ID: <CAAeL0SRrn3C5LG0es64Zk83K89yXCgVM20wwD2tOobU93JznDA@HIDDEN>
Subject: Re: bug#38007: scroll-lock binding on Windows
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000041198c0597ec460e"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38007
Cc: 38007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--00000000000041198c0597ec460e
Content-Type: text/plain; charset="UTF-8"

On Fri, Nov 22, 2019 at 10:16 AM Eli Zaretskii <eliz@HIDDEN> wrote:

> The former, with a comment about the (evidently unknown) source of the
> Scroll_Lock "function key".

AFAICS, the X Window System Protocol (
https://www.x.org/releases/X11R7.6/doc/xproto/x11protocol.html) defines the
keysyms as numeric codes with a conventional name, in this case

#xFF14   SCROLL LOCK

which is represented in /usr/include/X11/keysymdef.h as

#define XK_Scroll_Lock                   0xff14

but I don't know how that is converted into a keyboard event.

--00000000000041198c0597ec460e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Fri, Nov 22, 2019 at 10:16 AM Eli Zaretskii &lt=
;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br><br>&gt; Th=
e former, with a comment about the (evidently unknown) source of the<br>&gt=
; Scroll_Lock &quot;function key&quot;.<br><br>AFAICS, the X Window System =
Protocol (<a href=3D"https://www.x.org/releases/X11R7.6/doc/xproto/x11proto=
col.html">https://www.x.org/releases/X11R7.6/doc/xproto/x11protocol.html</a=
>) defines the keysyms as numeric codes with a conventional name, in this c=
ase <br><br>#xFF14=C2=A0 =C2=A0SCROLL LOCK<br><br>which is represented in /=
usr/include/X11/keysymdef.h as<br><br>#define XK_Scroll_Lock =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0xff14<br class=3D"gmail-A=
pple-interchange-newline"><div><br></div><div>but I don&#39;t know how that=
 is converted into a keyboard event.</div></div>

--00000000000041198c0597ec460e--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.

Message received at 38007 <at> debbugs.gnu.org:


Received: (at 38007) by debbugs.gnu.org; 22 Nov 2019 09:16:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 22 04:16:53 2019
Received: from localhost ([127.0.0.1]:53741 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iY53d-0000Au-87
	for submit <at> debbugs.gnu.org; Fri, 22 Nov 2019 04:16:53 -0500
Received: from eggs.gnu.org ([209.51.188.92]:41951)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iY53X-0000Ad-3A
 for 38007 <at> debbugs.gnu.org; Fri, 22 Nov 2019 04:16:49 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50672)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iY53S-0005NZ-0G; Fri, 22 Nov 2019 04:16:42 -0500
Received: from [176.228.60.248] (port=1088 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iY53R-0001ve-Di; Fri, 22 Nov 2019 04:16:41 -0500
Date: Fri, 22 Nov 2019 11:16:56 +0200
Message-Id: <83ftigw9rr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juanma Barranquero <lekktu@HIDDEN>
In-reply-to: <CAAeL0SS9nKAPTm_R1aPQvVrHxDn8ENp8yfenPhknzcLSoVbgDQ@HIDDEN>
 (message from Juanma Barranquero on Fri, 22 Nov 2019 10:06:11 +0100)
Subject: Re: bug#38007: scroll-lock binding on Windows
References: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
 <83zhhgn60i.fsf@HIDDEN>
 <CAAeL0SQE3Zs3PSwuASy31kT6016Csq2D1FF9seiZPyp9ZL-VMQ@HIDDEN>
 <83tv7om87f.fsf@HIDDEN>
 <CAAeL0SRWQPBPStFODX8wWbEeFk65iH0ceq5QS739BoQKjDrOoA@HIDDEN>
 <94531FFE-1CDB-49AA-B2FE-9FEAAFB7C8A9@HIDDEN>
 <CAAeL0SS9nKAPTm_R1aPQvVrHxDn8ENp8yfenPhknzcLSoVbgDQ@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38007
Cc: 38007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juanma Barranquero <lekktu@HIDDEN>
> Date: Fri, 22 Nov 2019 10:06:11 +0100
> Cc: 38007 <at> debbugs.gnu.org
> 
> - conditionally binding it to [scroll] in bindings.el according to system-type
> 
> - rebinding it in term/w32-win.el,
> 
> - or remapping [scroll] to [Scroll_Lock] in some special keymap (perhaps function-key-map?)

The former, with a comment about the (evidently unknown) source of the
Scroll_Lock "function key".

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.

Message received at 38007 <at> debbugs.gnu.org:


Received: (at 38007) by debbugs.gnu.org; 22 Nov 2019 09:06:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 22 04:06:55 2019
Received: from localhost ([127.0.0.1]:53736 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iY4tz-0008OR-5u
	for submit <at> debbugs.gnu.org; Fri, 22 Nov 2019 04:06:55 -0500
Received: from mail-qk1-f182.google.com ([209.85.222.182]:32783)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lekktu@HIDDEN>) id 1iY4tw-0008OB-2B
 for 38007 <at> debbugs.gnu.org; Fri, 22 Nov 2019 04:06:53 -0500
Received: by mail-qk1-f182.google.com with SMTP id c124so1201246qkg.0
 for <38007 <at> debbugs.gnu.org>; Fri, 22 Nov 2019 01:06:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=tQ15Yf/hvH42/eOkLcTktZJi+H+v6KVHVR1XwuZag2M=;
 b=prFgxxB25+rp9Os1vEcoF9kREVb/ZDJvVOkNRIqD5YR1nuyEhGew+HD9mTHEIi1T06
 c1O2mxrTkZ/yf6wlC2MUXfbo6tdb9YlS1Y8ssVAwxsThXmDE/Bkg8uf1/FV4Fzpdim03
 y5CfAUffOolRLv8twObH+qGKrCcatT2vB+Mfwrp7nhWNaMX+V03jjovia3k/ZKG/5Uyd
 mm2vjrJ+E5B6oRgV0DMUsatFL0OEHJzageXh7KYDhblX0PH/rNxGxkTTOe6eA1Me7xMj
 AMsKPMQhjqdaD+zJQxfUpefgHJLPecmvXk39B8MoM0ozn8afDR8m2HkeYaGndSlaKJGx
 8dTA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=tQ15Yf/hvH42/eOkLcTktZJi+H+v6KVHVR1XwuZag2M=;
 b=OhmvN1cT1+tBVOy219H3K2YTq3yddR0/O9gsDeBuelmDnu9TV9IBwOvMKLVrGjJhw3
 KpgRBOSYyL6Vi4itBY2DmoZiA+FrM4XTbU5CeKtRqRiZX+AqB9Ds0UVT/rHcmNQKKJIN
 9NVKuFVq6iGxEFEpNT74pZx6Cf2QqGH7M+Qx6PEiTXqQSrRT2rI7Cwe+nkhnq4Ixj1KE
 kdKCpOeOWxU3uD5yw5jdBO1II4xRBnZB0+q2CnlRE+RJj/GjOFlAol76INeuXy7fH/3c
 Sl/KMqUGowsU4q1A/byfMBC0RJCr8d5xmDcGGVPqXGtVWf8ZRDEAskwnI1LzBIRYY7N0
 1g6Q==
X-Gm-Message-State: APjAAAUH9wrsn4Q4GZQf0w5nstn71IApjpnh2AuhJaA3YgkQl0QRtw5r
 r7g88rzVarz9sxW7Z3xl5Jcx6ipHy6OOVO+anQw=
X-Google-Smtp-Source: APXvYqxD7sbiFBgfndjLyMcDtWPOSmRpy/3KiNl8eawlALm8dQEJBil80sA+OX00CIi7brcApQ8ZEU9eZbjrXNXKVB8=
X-Received: by 2002:a05:620a:11b1:: with SMTP id
 c17mr12129925qkk.496.1574413606499; 
 Fri, 22 Nov 2019 01:06:46 -0800 (PST)
MIME-Version: 1.0
References: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
 <83zhhgn60i.fsf@HIDDEN>
 <CAAeL0SQE3Zs3PSwuASy31kT6016Csq2D1FF9seiZPyp9ZL-VMQ@HIDDEN>
 <83tv7om87f.fsf@HIDDEN>
 <CAAeL0SRWQPBPStFODX8wWbEeFk65iH0ceq5QS739BoQKjDrOoA@HIDDEN>
 <94531FFE-1CDB-49AA-B2FE-9FEAAFB7C8A9@HIDDEN>
In-Reply-To: <94531FFE-1CDB-49AA-B2FE-9FEAAFB7C8A9@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Fri, 22 Nov 2019 10:06:11 +0100
Message-ID: <CAAeL0SS9nKAPTm_R1aPQvVrHxDn8ENp8yfenPhknzcLSoVbgDQ@HIDDEN>
Subject: Re: bug#38007: scroll-lock binding on Windows
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000beb9320597ebbbed"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38007
Cc: 38007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000beb9320597ebbbed
Content-Type: text/plain; charset="UTF-8"

No answer in Emacs devel after nine days.

So I'l fix it for Windows somehow.

Which alternative do you prefer:

- conditionally binding it to [scroll] in bindings.el according to
system-type

- rebinding it in term/w32-win.el,

- or remapping [scroll] to [Scroll_Lock] in some special keymap (perhaps
function-key-map?)

--000000000000beb9320597ebbbed
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">No answer in Emacs devel after nine days.=C2=A0<br><br>So =
I&#39;l fix it for Windows somehow.<div><br>Which alternative do you prefer=
:</div><div><br></div><div>- conditionally binding it to [scroll] in bindin=
gs.el according to system-type</div><div><br></div><div>- rebinding it in t=
erm/w32-win.el,</div><div><br></div><div>- or remapping [scroll] to [Scroll=
_Lock] in some special keymap (perhaps function-key-map?)<br><br></div></di=
v>

--000000000000beb9320597ebbbed--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.

Message received at 38007 <at> debbugs.gnu.org:


Received: (at 38007) by debbugs.gnu.org; 13 Nov 2019 19:46:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 13 14:46:19 2019
Received: from localhost ([127.0.0.1]:60192 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iUyao-0004vy-7R
	for submit <at> debbugs.gnu.org; Wed, 13 Nov 2019 14:46:19 -0500
Received: from eggs.gnu.org ([209.51.188.92]:58233)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iUyal-0004vT-Ux
 for 38007 <at> debbugs.gnu.org; Wed, 13 Nov 2019 14:46:16 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34907)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iUyad-0004N7-MO; Wed, 13 Nov 2019 14:46:07 -0500
Received: from [109.253.214.82] (port=39451 helo=[10.130.137.173])
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iUyac-0002F5-HU; Wed, 13 Nov 2019 14:46:07 -0500
Date: Wed, 13 Nov 2019 19:46:00 +0000
User-Agent: K-9 Mail for Android
In-Reply-To: <CAAeL0SRWQPBPStFODX8wWbEeFk65iH0ceq5QS739BoQKjDrOoA@HIDDEN>
References: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
 <83zhhgn60i.fsf@HIDDEN>
 <CAAeL0SQE3Zs3PSwuASy31kT6016Csq2D1FF9seiZPyp9ZL-VMQ@HIDDEN>
 <83tv7om87f.fsf@HIDDEN>
 <CAAeL0SRWQPBPStFODX8wWbEeFk65iH0ceq5QS739BoQKjDrOoA@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: bug#38007: scroll-lock binding on Windows
To: Juanma Barranquero <lekktu@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
Message-ID: <94531FFE-1CDB-49AA-B2FE-9FEAAFB7C8A9@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38007
Cc: 38007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On November 13, 2019 4:50:00 PM GMT, Juanma Barranquero <lekktu@gmail=2Ecom=
> wrote:
> On Fri, Nov 1, 2019 at 7:17 AM Eli Zaretskii <eliz@gnu=2Eorg> wrote:
>=20
> > I don't know yet, because I don't see where does Scroll_Lock come on
> > Posix platforms=2E  Can someone tell what did I miss?
>=20
> No answer after almost two weeks=2E Perhaps we should bring it to
> emacs-devel?

Please do, and thanks=2E




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.

Message received at 38007 <at> debbugs.gnu.org:


Received: (at 38007) by debbugs.gnu.org; 13 Nov 2019 16:50:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 13 11:50:44 2019
Received: from localhost ([127.0.0.1]:60058 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iUvqu-0000lq-HG
	for submit <at> debbugs.gnu.org; Wed, 13 Nov 2019 11:50:44 -0500
Received: from mail-qv1-f44.google.com ([209.85.219.44]:43735)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lekktu@HIDDEN>) id 1iUvqs-0000le-Ot
 for 38007 <at> debbugs.gnu.org; Wed, 13 Nov 2019 11:50:43 -0500
Received: by mail-qv1-f44.google.com with SMTP id cg2so1075421qvb.10
 for <38007 <at> debbugs.gnu.org>; Wed, 13 Nov 2019 08:50:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=0iJchjkCjfZcqGTqBgXn9ts9on5b/MMiOiFcoaMD7Mk=;
 b=VeTnHKbl5WIeoEsJ2TaaFM347faIc7b/NJTPkSUCoFyOpJGmpW1U11S/z+cHt4lveE
 PH+oKc1VNoDYiiNpDRhwwVpa1dq0AQSQ5ZTG5ZJsiYAZJ+WQzo5hSdUcA9fJaRhLeJRa
 LroePmouJHp2/4U84sYC4tH56eIEicN6r0ArxWsAyAy5SLqXYw0tOeaIRJmL4PXFhzcn
 V5E0F3Wzr5GDvu+kmw/brL/5og5MYfDLoLsGtF0D6HwWJFwfJOwv7b9lPTPl6ZNPxico
 ortLrUr0Bj6sCXfFd1W7VuXjs4jbIA4xEF8m/Ptu6mCREmps12DrAj2iV6qEcb2/yKCl
 ivbg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=0iJchjkCjfZcqGTqBgXn9ts9on5b/MMiOiFcoaMD7Mk=;
 b=as+wEIsF0twjO0BQM3PD4W79IAEY30HuHjX6HzLyfLy35YCxYK7JED8FIc/QY4yzRg
 G2N2YE/FwqobQWj6vVd3gQ/wTIbvcTUkb3NXJ/TzXnF0kCHqtkCHnUeUarMruKlEpQdq
 /2+9vTo6UZBIrzwNI+lLllgAhP+JBW87hEDA8iv5kwEM2cX0XPw4saCxD6vUxFKOqQ1X
 BPqBAw+DIdrJ2V69JKZIPFzawGUKszBDj4iIpQuS+HgWU1mfQU97Tb/N1M9vJXOQqdvg
 cUwGu5L+/l3/ZxaVoS1PgTkkMrwTCDaa+JNcLzBI4vxGeqotA/azRH11gOj2wmH+rEQx
 KhNQ==
X-Gm-Message-State: APjAAAXmmls+b3jNt/ejmIPUywPb6ClMe8HGCNDr2qbAljo7lnZwk17p
 yt/S04bWKqNb3lbKtFYRbZ/zKXhnhRWvqn2pXcZeSg==
X-Google-Smtp-Source: APXvYqybxFNUZqOOa89lhJFv4A4qMRv1NWUcnTNlGhrxcj49+YuTHcFemhPgAmLVlEj13ZKIT68QcozBhlhoRkjuZgc=
X-Received: by 2002:a05:6214:22c:: with SMTP id
 j12mr3606118qvt.150.1573663836777; 
 Wed, 13 Nov 2019 08:50:36 -0800 (PST)
MIME-Version: 1.0
References: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
 <83zhhgn60i.fsf@HIDDEN>
 <CAAeL0SQE3Zs3PSwuASy31kT6016Csq2D1FF9seiZPyp9ZL-VMQ@HIDDEN>
 <83tv7om87f.fsf@HIDDEN>
In-Reply-To: <83tv7om87f.fsf@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Wed, 13 Nov 2019 17:50:00 +0100
Message-ID: <CAAeL0SRWQPBPStFODX8wWbEeFk65iH0ceq5QS739BoQKjDrOoA@HIDDEN>
Subject: Re: bug#38007: scroll-lock binding on Windows
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000fcb1bb05973d2942"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38007
Cc: 38007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000fcb1bb05973d2942
Content-Type: text/plain; charset="UTF-8"

On Fri, Nov 1, 2019 at 7:17 AM Eli Zaretskii <eliz@HIDDEN> wrote:

> I don't know yet, because I don't see where does Scroll_Lock come on
> Posix platforms.  Can someone tell what did I miss?

No answer after almost two weeks. Perhaps we should bring it to emacs-devel?

--000000000000fcb1bb05973d2942
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Fri, Nov 1, 2019 at 7:17 AM Eli Zaretskii &lt;<=
a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br><br><div>&gt;=
 I don&#39;t know yet, because I don&#39;t see where does Scroll_Lock come =
on<br>&gt; Posix platforms.=C2=A0 Can someone tell what did I miss?<br><br>=
No answer after almost two weeks. Perhaps we should bring it to emacs-devel=
?</div></div>

--000000000000fcb1bb05973d2942--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.

Message received at 38007 <at> debbugs.gnu.org:


Received: (at 38007) by debbugs.gnu.org; 1 Nov 2019 06:17:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 01 02:17:28 2019
Received: from localhost ([127.0.0.1]:54937 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iQQFT-0002Bq-RS
	for submit <at> debbugs.gnu.org; Fri, 01 Nov 2019 02:17:28 -0400
Received: from eggs.gnu.org ([209.51.188.92]:52776)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iQQFS-0002Bd-4L
 for 38007 <at> debbugs.gnu.org; Fri, 01 Nov 2019 02:17:26 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:40371)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iQQFN-0008LE-1N; Fri, 01 Nov 2019 02:17:21 -0400
Received: from [176.228.60.248] (port=4103 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iQQFM-0007eo-GH; Fri, 01 Nov 2019 02:17:20 -0400
Date: Fri, 01 Nov 2019 08:17:24 +0200
Message-Id: <83tv7om87f.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juanma Barranquero <lekktu@HIDDEN>
In-reply-to: <CAAeL0SQE3Zs3PSwuASy31kT6016Csq2D1FF9seiZPyp9ZL-VMQ@HIDDEN>
 (message from Juanma Barranquero on Thu, 31 Oct 2019 23:59:45 +0100)
Subject: Re: bug#38007: scroll-lock binding on Windows
References: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
 <83zhhgn60i.fsf@HIDDEN>
 <CAAeL0SQE3Zs3PSwuASy31kT6016Csq2D1FF9seiZPyp9ZL-VMQ@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38007
Cc: 38007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juanma Barranquero <lekktu@HIDDEN>
> Date: Thu, 31 Oct 2019 23:59:45 +0100
> Cc: 38007 <at> debbugs.gnu.org
> 
> OK. I see three ways:
> 
> - Something like this in bindings.el:
> 
> (define-key global-map (if (eq system-type 'windows-nt) [scroll] [Scroll_Lock]) 'scroll-lock-mode)
> 
> - Leave bindings.el as is and rebind the command to [scroll] in lisp/term/w32-win.el,
> 
> - Or use some of the translation keymaps to translate [scroll] into [Scroll_Lock].
> 
> Which one makes more sense?

I don't know yet, because I don't see where does Scroll_Lock come on
Posix platforms.  Can someone tell what did I miss?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.

Message received at 38007 <at> debbugs.gnu.org:


Received: (at 38007) by debbugs.gnu.org; 31 Oct 2019 23:00:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 31 19:00:30 2019
Received: from localhost ([127.0.0.1]:54446 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iQJQc-0007bM-IV
	for submit <at> debbugs.gnu.org; Thu, 31 Oct 2019 19:00:30 -0400
Received: from mail-qt1-f175.google.com ([209.85.160.175]:43309)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lekktu@HIDDEN>) id 1iQJQZ-0007b5-Pe
 for 38007 <at> debbugs.gnu.org; Thu, 31 Oct 2019 19:00:29 -0400
Received: by mail-qt1-f175.google.com with SMTP id c26so10745222qtj.10
 for <38007 <at> debbugs.gnu.org>; Thu, 31 Oct 2019 16:00:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=j0HS+cjVHu+B1nE+9jOs64e0NXWZmTkpPc+G/JqeEcg=;
 b=cRNIfoPWKB9ODKSzDvjdt7YWsl1yLgcIMV5tGzuaYn86ygM0GLrb7jptyksAJItySh
 rWlstvAM+AEOZPZUJL0rjhdxMVcXfv9fCICsKV4Pu9U/G71SYnNkOVIiGSuyiMeUasbV
 FaAk47Vft+AFSREgnYOQm08o3hZkd3pZGWcT1PUdqaki40Qt3PNgcmz2CGPbSe5/J3tZ
 sr30Pl+ffhinSFRXpcLHvfeXrpVl1BnPbv70SZFWzTEguForQ54D0awDgDrjaVqaUpfT
 92n/EcmRzPiFaJHZ2R0JDcQfR1JVD34pk0dmxbinVa9eAFy0PbaT0zZyunz+1Hag5mxz
 WBZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=j0HS+cjVHu+B1nE+9jOs64e0NXWZmTkpPc+G/JqeEcg=;
 b=Hwmil1zanR4bJOUHpzQ975CC4zUrLxSkT+q7PUQmP3OIBwhZd0tgiYVnJJnEIa46yd
 YD89inO9tsKIgaL7rRTZOKNIBri/aCS0zva0zxyiWWHx+5JEm5KV/ZZ/iMcunxVzXfJU
 tpgPtByDlhJCV2FXA8m6J3hM15TlAosOtF5zNKVIK0M0SqWY6R1EZeJEn+TE0Yfc9ajm
 qKuNM8l3/x1qONMiqapH8g7SBLidlrILkMMTc/XQY89qq4g0WESZUkx40vJxAqnGLT+g
 Qxv0lZnZKNMsuuJkZD0ch2KJ6F8IB5BcCdMIjFYcY26H36Dq956GAQyxJ0+900Sri3Vv
 f1Aw==
X-Gm-Message-State: APjAAAV8MN4RILRbn34ujt5lgx6BotffJtm9cFARZEuU4KYx1eD7mVyf
 VhJ3dpwySazTTroT60el4Zp+E2wytvDUPptaOr2CK4vG
X-Google-Smtp-Source: APXvYqxPrymr7BA6YC7FWbYcZGzS8RG68P58XHzb4r7wSqG8HYPfiBMyjco1vB5rAXbslv7XOeDcWuoyFmE+RXvbRYo=
X-Received: by 2002:ad4:5345:: with SMTP id v5mr7234308qvs.217.1572562821870; 
 Thu, 31 Oct 2019 16:00:21 -0700 (PDT)
MIME-Version: 1.0
References: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
 <83zhhgn60i.fsf@HIDDEN>
In-Reply-To: <83zhhgn60i.fsf@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Thu, 31 Oct 2019 23:59:45 +0100
Message-ID: <CAAeL0SQE3Zs3PSwuASy31kT6016Csq2D1FF9seiZPyp9ZL-VMQ@HIDDEN>
Subject: Re: bug#38007: scroll-lock binding on Windows
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000627e5605963cd053"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38007
Cc: 38007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000627e5605963cd053
Content-Type: text/plain; charset="UTF-8"

On Thu, Oct 31, 2019 at 7:07 PM Eli Zaretskii <eliz@HIDDEN> wrote:

> > Shouldn't the binding be to [scroll] on Windows?
>
> Yes, I think so.

OK. I see three ways:

- Something like this in bindings.el:

(define-key global-map (if (eq system-type 'windows-nt) [scroll]
[Scroll_Lock]) 'scroll-lock-mode)

- Leave bindings.el as is and rebind the command to [scroll] in
lisp/term/w32-win.el,

- Or use some of the translation keymaps to translate [scroll] into
[Scroll_Lock].

Which one makes more sense?

--000000000000627e5605963cd053
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Thu, Oct 31, 2019 at 7:07 PM Eli Zaretskii &lt;<a href=
=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br><br><div>&gt; &gt; =
Shouldn&#39;t the binding be to [scroll] on Windows?<br>&gt;<br>&gt; Yes, I=
 think so.</div><div><br></div><div>OK. I see three ways:</div><div><br></d=
iv><div>- Something like this in bindings.el:</div><div><br></div><div>(def=
ine-key global-map (if (eq system-type &#39;windows-nt) [scroll] [Scroll_Lo=
ck]) &#39;scroll-lock-mode)<br></div><div><br></div><div>- Leave bindings.e=
l as is and rebind the command to [scroll] in lisp/term/w32-win.el,</div><d=
iv><br></div><div>- Or use some of the translation keymaps to translate [sc=
roll] into [Scroll_Lock].</div><div><br></div><div>Which one makes more sen=
se?</div></div>

--000000000000627e5605963cd053--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.

Message received at 38007 <at> debbugs.gnu.org:


Received: (at 38007) by debbugs.gnu.org; 31 Oct 2019 18:07:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 31 14:07:21 2019
Received: from localhost ([127.0.0.1]:54284 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iQEqu-0004Sg-Op
	for submit <at> debbugs.gnu.org; Thu, 31 Oct 2019 14:07:21 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45146)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iQEqt-0004SR-Kk
 for 38007 <at> debbugs.gnu.org; Thu, 31 Oct 2019 14:07:20 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:58331)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iQEqo-0004bq-IP; Thu, 31 Oct 2019 14:07:14 -0400
Received: from [176.228.60.248] (port=3539 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iQEqm-0003gh-J0; Thu, 31 Oct 2019 14:07:13 -0400
Date: Thu, 31 Oct 2019 20:07:09 +0200
Message-Id: <83zhhgn60i.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juanma Barranquero <lekktu@HIDDEN>
In-reply-to: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
 (message from Juanma Barranquero on Thu, 31 Oct 2019 18:46:43 +0100)
Subject: Re: bug#38007: scroll-lock binding on Windows
References: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38007
Cc: 38007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juanma Barranquero <lekktu@HIDDEN>
> Date: Thu, 31 Oct 2019 18:46:43 +0100
> 
> Shouldn't the binding be to [scroll] on Windows?

Yes, I think so.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Oct 2019 17:47:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 31 13:47:34 2019
Received: from localhost ([127.0.0.1]:54256 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iQEXm-0001tg-87
	for submit <at> debbugs.gnu.org; Thu, 31 Oct 2019 13:47:34 -0400
Received: from lists.gnu.org ([209.51.188.17]:60600)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lekktu@HIDDEN>) id 1iQEXj-0001sK-Hq
 for submit <at> debbugs.gnu.org; Thu, 31 Oct 2019 13:47:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51224)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <lekktu@HIDDEN>) id 1iQEXh-0001or-Io
 for bug-gnu-emacs@HIDDEN; Thu, 31 Oct 2019 13:47:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lekktu@HIDDEN>) id 1iQEXc-0006y3-11
 for bug-gnu-emacs@HIDDEN; Thu, 31 Oct 2019 13:47:26 -0400
Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:33564)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <lekktu@HIDDEN>) id 1iQEXb-0006wy-IU
 for bug-gnu-emacs@HIDDEN; Thu, 31 Oct 2019 13:47:23 -0400
Received: by mail-qk1-x730.google.com with SMTP id 71so7937097qkl.0
 for <bug-gnu-emacs@HIDDEN>; Thu, 31 Oct 2019 10:47:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=mt+5GiLoTZRSXvpsUULP1dHSf8dFxRMSx0cO8Kc4djA=;
 b=WaMbq+gX4Lsr0url1N0prhkTYEGhkdl8DGxGFAs8zjJb5NSBAKCMhxPiDpHynEWu1O
 aNOUxANWfKUCVXqE+Lz9m2VXYOcluwWVxMqzYMTicnO7FoE05M9PawiT5FX9LSE1apPP
 iiSYjhe5uNjKq5QwJemTA69JfZBu5yfi8tafNofyKouUkuZghfUMwDV+XAt2A8AbfGPh
 +ZWzlng5EiKBEd+Jc/B6j7LgT4PfoIUlF4Y0Zs+AWSw5EPtXJD6yRX0ELTngIeTyab7n
 gVL+xcO7Rjf1RCUg1qQ2F5+G782sTg9dcCOV6dgnG+L6mU6Zv69ZXbyKJu46CWbD4K65
 y56A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=mt+5GiLoTZRSXvpsUULP1dHSf8dFxRMSx0cO8Kc4djA=;
 b=sNJtt89tXrrZ8PXEKdBFjfwNW81ziAL8jEBMn30XnpxYB/Aou5ehEKEORH3HXO+Lnr
 JrJiXLfghenol0Mk+QyqsN/v5WTN4JxvszSyDp7zjw7xAJZ4KqeDidQx2W/7O9Zqbeun
 08O6yVANyQkqlzwAxDvco4vFHVBuy0SFkGDehVe/J0pbgEuTR84H3uwo0yfgagS8WZQf
 ye9NHbFjknAMlMPMFCkYGFOZz+uneAugPUQ/gv0/biQxmtXLwoqfyJqJ4zFW8EOXN6O7
 IEJ2IfKSMsTwwC5V2lVhMHSbUJ6fg3OkXLmQLnlLd7Ad77KW78oD+IFm0FKI5LHtenrA
 cdGQ==
X-Gm-Message-State: APjAAAUkHwINMNnE8njpgxmk/dX+ISvwWF0BRD1L1TD1tHwNXbM4Vd7G
 w6y/CEVqRsrCSiRp43xagD+w7zUQBQfwzvBkAXnCwJiI
X-Google-Smtp-Source: APXvYqyFSihqMyj09UByi0YalUfYv/Fff/nNkZBdTwmceNFv3zxpljaiDxQQ+SeYNeU5DnWV8RZWP/9E9eSMp4pedVU=
X-Received: by 2002:a05:620a:a91:: with SMTP id
 v17mr1175783qkg.281.1572544039420; 
 Thu, 31 Oct 2019 10:47:19 -0700 (PDT)
MIME-Version: 1.0
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Thu, 31 Oct 2019 18:46:43 +0100
Message-ID: <CAAeL0SSWgMOM0AKz+S7uT+j6=e5wrWO7UQ8TW2cxV4zxgw143Q@HIDDEN>
Subject: scroll-lock binding on Windows
To: Bug-Gnu-Emacs <bug-gnu-emacs@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000dd07df0596387099"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::730
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--000000000000dd07df0596387099
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

This is with 27.0.50, on Windows 10.

The binding of scroll-lock-mode on binding.el is:

  (define-key global-map [Scroll_Lock]    'scroll-lock-mode)

and the docstring of scroll-lock-mode says:

  Note that the default key binding to Scroll_Lock will not work on
  MS-Windows systems if =E2=80=98w32-scroll-lock-modifier=E2=80=99 is non-n=
il.

And the default value of w32-scroll-lock-modifier is nil:

  w32-scroll-lock-modifier is a variable defined in =E2=80=98C source code=
=E2=80=99.
  Its value is nil

But the Scroll Lock key does not generate a Scroll_Lock event, but scroll:

  <scroll> is undefined

Shouldn't the binding be to [scroll] on Windows?

--000000000000dd07df0596387099
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">This is with 27.0.50, on Windows 10.<br><br>The binding of=
 scroll-lock-mode on binding.el is:<div><br></div><div>=C2=A0 (define-key g=
lobal-map [Scroll_Lock] =C2=A0 =C2=A0&#39;scroll-lock-mode)<br></div><div><=
br></div><div>and the docstring of scroll-lock-mode says:</div><div><br></d=
iv><div>=C2=A0 Note that the default key binding to Scroll_Lock will not wo=
rk on<br>=C2=A0 MS-Windows systems if =E2=80=98w32-scroll-lock-modifier=E2=
=80=99 is non-nil.<br></div><div><br></div><div>And the default value of w3=
2-scroll-lock-modifier is nil:</div><div><br></div><div>=C2=A0 w32-scroll-l=
ock-modifier is a variable defined in =E2=80=98C source code=E2=80=99.<br>=
=C2=A0 Its value is nil<br><br></div><div>But the Scroll Lock key does not =
generate a Scroll_Lock event, but scroll:</div><div><br></div><div>=C2=A0 &=
lt;scroll&gt; is undefined</div><div><br></div><div>Shouldn&#39;t the bindi=
ng be to [scroll] on Windows?</div><div><br></div></div>

--000000000000dd07df0596387099--




Acknowledgement sent to Juanma Barranquero <lekktu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#38007; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.