From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#38007: scroll-lock binding on Windows Date: Thu, 31 Oct 2019 23:59:45 +0100 Message-ID: References: <83zhhgn60i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000627e5605963cd053" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="246378"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38007@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 00:01:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQJRI-0011zF-DV for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 00:01:12 +0100 Original-Received: from localhost ([::1]:54636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQJRH-0001TC-9e for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 19:01:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53154) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQJR9-0001T3-C5 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 19:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQJR8-0001k4-9j for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 19:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45625) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQJR8-0001iy-4C for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 19:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQJR7-0007cR-Ve for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 19:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2019 23:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38007 X-GNU-PR-Package: emacs Original-Received: via spool by 38007-submit@debbugs.gnu.org id=B38007.157256283029229 (code B ref 38007); Thu, 31 Oct 2019 23:01:01 +0000 Original-Received: (at 38007) by debbugs.gnu.org; 31 Oct 2019 23:00:30 +0000 Original-Received: from localhost ([127.0.0.1]:54446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQJQc-0007bM-IV for submit@debbugs.gnu.org; Thu, 31 Oct 2019 19:00:30 -0400 Original-Received: from mail-qt1-f175.google.com ([209.85.160.175]:43309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQJQZ-0007b5-Pe for 38007@debbugs.gnu.org; Thu, 31 Oct 2019 19:00:29 -0400 Original-Received: by mail-qt1-f175.google.com with SMTP id c26so10745222qtj.10 for <38007@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) In-Reply-To: <83zhhgn60i.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170565 Archived-At: --000000000000627e5605963cd053 Content-Type: text/plain; charset="UTF-8" On Thu, Oct 31, 2019 at 7:07 PM Eli Zaretskii 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
On Thu, Oct 31, 2019 at 7:07 PM Eli Zaretskii <eliz@gnu.org> 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:

(def= ine-key global-map (if (eq system-type 'windows-nt) [scroll] [Scroll_Lo= ck]) 'scroll-lock-mode)

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

- Or use some of the translation keymaps to translate [sc= roll] into [Scroll_Lock].

Which one makes more sen= se?
--000000000000627e5605963cd053--