From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Caps Lock affects Ctrl+keys Date: Mon, 20 Jan 2014 18:57:30 +0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1390219058 20688 80.91.229.3 (20 Jan 2014 11:57:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 11:57:38 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 20 12:57:46 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W5DU9-0002V3-M1 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 12:57:45 +0100 Original-Received: from localhost ([::1]:51220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5DU9-0008H5-CZ for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 06:57:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5DTw-0008Gx-Uj for help-gnu-emacs@gnu.org; Mon, 20 Jan 2014 06:57:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5DTv-0005hL-OF for help-gnu-emacs@gnu.org; Mon, 20 Jan 2014 06:57:32 -0500 Original-Received: from mail-qe0-x234.google.com ([2607:f8b0:400d:c02::234]:55462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5DTv-0005hF-JO for help-gnu-emacs@gnu.org; Mon, 20 Jan 2014 06:57:31 -0500 Original-Received: by mail-qe0-f52.google.com with SMTP id a11so3994588qen.25 for ; Mon, 20 Jan 2014 03:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=JHDEMz+VQgVL9l1kKJ/oND/fwThdeEfRaqwB7kdpLYg=; b=pGPuWD2P1pN2vi6k9O6ngqB38aQQ/QJMVp33QfQT3w4kfFiqgnuuHPMJeNqtMKcIUc 6mXDU0iBa7Z3J1rHjuWO4ElzW1gC/s5xTTrgjnJe1n1rl9d/gc+YnnsZ9lqHLtZQmCUL WAdU/0N0dujq1swkrRntIGzLNeeJ2nuwHHV3EhwjsYtJ08e+ugp9PQvtPW8kgo9d3Uw9 1yurbJY4TEgXL8bxVZnEPN7tSoqr0k8Vneu1HovUyE/7a06S877OcLB8Wb9/vpu56Op6 P5VzJop86QY8v61E/bNrCABLe1R7OgfIAgjAU1crueiq0eZww8EgAsrEosGO45c/PwJX QM3w== X-Received: by 10.229.184.69 with SMTP id cj5mr27149673qcb.8.1390219050885; Mon, 20 Jan 2014 03:57:30 -0800 (PST) Original-Received: by 10.96.14.74 with HTTP; Mon, 20 Jan 2014 03:57:30 -0800 (PST) X-Google-Sender-Auth: 1Iz9OKRT71N7oaiEocNC80Xf5F4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c02::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95508 Archived-At: Hello list, I notice that, when I turn on Caps Lock, all Ctrl+letter combinations behave as if I pressed Ctrl+Shift+letter. My expectation is that Caps Lock should not affect any control modifiers (Ctrl, Meta, Super, Hyper), but should affect normal character input (no modifiers or just Shift) and might affect higher levels input (Level3, Level5 and any combinations thereof with or without Shift). $ emacs -Q M-: (read-key) RET press Ctrl+z # 26 (#o32, #x1a) (so far so good) M-: (read-key) RET press Ctrl+Shift+z # 33554458 (#o200000032, #x200001a) (ok) M-: (read-key) RET press Caps Lock to turn it on press Ctrl+z # 33554458 (#o200000032, #x200001a) (expected: 26 (#o32, #x1a)) M-: (read-key) RET with Caps Lock still on press Ctrl+Shift+z # 26 (#o32, #x1a) (expected: 33554458 (#o200000032, #x200001a)) This is on GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2), in Ubuntu 13.10, GUI mode. (In -nw mode, I get 26 no matter whether Shift is pressed and/or Caps is on, which is understandable because in that mode the terminal emulator handles all keyboard input.) Does anybody else observe this? Should I report a bug? Is there an easy workaround?