From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jude DaShiell Newsgroups: gmane.emacs.help Subject: Re: Caps Lock affects Ctrl+keys Date: Mon, 20 Jan 2014 09:47:07 -0500 (EST) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1390229263 14682 80.91.229.3 (20 Jan 2014 14:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 14:47:43 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 20 15:47:49 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 1W5G8f-0005v7-FV for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 15:47:45 +0100 Original-Received: from localhost ([::1]:52771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5G8e-0007pf-UD for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 09:47:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5G8E-0007mL-0Z for help-gnu-emacs@gnu.org; Mon, 20 Jan 2014 09:47:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5G85-0007Cf-30 for help-gnu-emacs@gnu.org; Mon, 20 Jan 2014 09:47:17 -0500 Original-Received: from shellworld.net ([69.60.117.94]:64347 helo=server1.shellworld.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5G84-0007Ca-Us for help-gnu-emacs@gnu.org; Mon, 20 Jan 2014 09:47:09 -0500 Original-Received: by server1.shellworld.net (Postfix, from userid 1024) id B4CE3228B0; Mon, 20 Jan 2014 08:47:07 -0600 (CST) Original-Received: from localhost (localhost [127.0.0.1]) by server1.shellworld.net (Postfix) with ESMTP id B252122848; Mon, 20 Jan 2014 09:47:07 -0500 (EST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-Received-From: 69.60.117.94 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:95509 Archived-At: On Mon, 20 Jan 2014, Yuri Khan wrote: > 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? > No, the problem is in the Linux kernel emacs is by no means unique in this behavior. > jude