From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jonathan Ganc Newsgroups: gmane.emacs.help Subject: Understanding how emacs sets up input Date: Fri, 7 Apr 2017 00:04:38 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1491537920 11352 195.159.176.226 (7 Apr 2017 04:05:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2017 04:05:20 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 07 06:05:14 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwL97-00026S-Cs for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Apr 2017 06:05:13 +0200 Original-Received: from localhost ([::1]:48816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwL9D-0002NO-10 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Apr 2017 00:05:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwL8d-0002NG-N6 for help-gnu-emacs@gnu.org; Fri, 07 Apr 2017 00:04:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwL8a-0007m9-HP for help-gnu-emacs@gnu.org; Fri, 07 Apr 2017 00:04:43 -0400 Original-Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:34456) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwL8a-0007lO-CN for help-gnu-emacs@gnu.org; Fri, 07 Apr 2017 00:04:40 -0400 Original-Received: by mail-qt0-x229.google.com with SMTP id c45so10558856qtb.1 for ; Thu, 06 Apr 2017 21:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=9xDQ8QklqPUXv99hFnzCHj/79UNnvMRU8bG1bIUmiao=; b=EWERnXhpXODW3dC4d0rLmHR97XUkXft3KLC+/09ng8df2gskPZViYu91sojar31JF4 okuaabNeNlJBRbOe3ymPycteLMJTeaq2dZMMzHzqgSRbtKq3RLk0yxhwDiaSqHsHJ8b2 pvyJ0h79XRQRZlnnybQeUAGuaKwaNq3TF/rzM1xjOPNtXKuC28t0Qy/BG2ArUiC1aIim g020j2fPYaGHtsuSReNw3QN0dRK+lHpkUaPV0fg982tTcFu4CeJRW9xyHzytB2ChKv7S BCl6em/eLEXlZwuNvxmQrgi3uvQhTTlxfoSFJW6FpeGh3QXnYgQ+2b0Y1H1b0Cvb2SiM XDCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=9xDQ8QklqPUXv99hFnzCHj/79UNnvMRU8bG1bIUmiao=; b=fh0qROvYWSXLngeQrhI5P+IqGRU7kD4ftfLVWXXri+6hFs+09svZGngF+X2S3eCIfq OZKoYA8qU+tsDvxNxyHhX8J4ldxZ5mYuH3AaYCbeQmzMMsZpsOk6iGpieQYYC1sOaqr8 pzxk2uVM/QaJbtZMXGzxh/fNYdLuTrzc5JhOE16+g8AAyVcAAIz/j2Z4BrrqZ1ia11Xh XKA90amc/Ck5w1+jMCgwZJpxKugUfjpmHLIPU9n0KVHQvs3C8ej39p6Wd4E2J7K/PYzH mV7Y9U5pFzXYHR52DyT0qwK7K1DQl+glSeUiDHMTQXDJS+X+Cf95y375v92WMMbqNH59 +jPw== X-Gm-Message-State: AN3rC/46Ihy1lTmqQYV1hbgoOLjFPv+b1+fmqJrk+Ru3XjxG72p5f5iwFqop6qNqSnaXZA== X-Received: by 10.200.53.45 with SMTP id y42mr945495qtb.136.1491537879450; Thu, 06 Apr 2017 21:04:39 -0700 (PDT) Original-Received: from [192.168.1.198] (static-98-118-34-152.bstnma.fios.verizon.net. [98.118.34.152]) by smtp.gmail.com with ESMTPSA id z32sm2330992qtg.17.2017.04.06.21.04.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Apr 2017 21:04:39 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112715 Archived-At: Hi, I'm trying to resolve a bug I have with emacs on Ubuntu (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26104) where pressing the Alt key alone produces a 'switch-frame' command, messing up commands like 'yank-pop' or 'dabbrev-expand'. I'm trying to figure out how emacs gets commands from xwindows. One thing I noticed is that xev (e.g., if I type 'xev -id ...') does not catch most emacs keys (e.g. alphanumeric keys, Ctrl, TAB, shift) but it does catch the Alt key. Can someone explain why that is and where emacs sets that up (I realize it is likely in the C code)?