From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Emacs not receiving C-M-right from keyboard Date: Fri, 24 Aug 2007 15:39:57 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87sl691oeq.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187934055 16261 80.91.229.12 (24 Aug 2007 05:40:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2007 05:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 24 07:40:53 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IORue-0002NG-UO for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Aug 2007 07:40:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IORue-0007TP-9Q for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Aug 2007 01:40:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!sn-xt-sjc-04!sn-xt-sjc-06!sn-xt-sjc-01!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:5AAOWSieEjtJV4slhMkch7wH3O0= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 65 X-Original-Bytes: 3627 Original-Xref: shelby.stanford.edu gnu.emacs.help:151229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46801 Archived-At: "Drew Adams" writes: >> > I have a new Dell Latitude D620 laptop. I have everything, >> > including Emacs, installed identically to the way I had it >> > on my old machine. However, the key sequences `C-M-right', >> > `C-M-left', `C-M-up', and `C-M-down' are apparently not >> > being sent to Emacs from the keyboard of the new machine. >> > >> > In emacs -Q (it doesn't matter which Emacs version), `C-h k' >> > followed by using `C-M-right' still waits for me to hit a >> > key - the `C-M-right' is not seen by Emacs at all. Opening >> > a dribble file shows the same thing: >> > `C-M-right' key sequences are not recorded. >> > >> > I've looked through the Emacs doc. I've tried to google for >> > something about this, but I haven't found anything. Anyone >> > know what's going on and how to fix it? Thanks. >> >> Are you running under X? If so, what window manager are you using? > > No, I'm on MS Windows - a native Emacs build. I do have Cygwin installed > also, but the Emacs I use is not a Cygwin Emacs. > >> I'm wondering if it is either a modmap issue or if your window manager >> might be stealing the keys and not passing them on to emacs. If your >> running under X, are you running from within an XTerm or 'native' X >> Toolkit/GTK? as I've seen xterms have similar issues as well. >> >> The fact the keystrokes are not showing up in a dribble file >> makes me think they are not getting passed to emacs at all and >> therefore the problem isn't actually emacs. > > I agree; the problem is not Emacs. I just don't know how to find the problem > (and solution). (The same Emacs builds (20, 22) work fine on the old laptop, > which is supposedly almost identical, so Emacs is not the culprit.) I'm > hoping someone here might have run into this or otherwise has an idea. > The only thing I can suggest is possibly doing a registry compare. Not bbing much of a windows user, I can't be more specific. However, I do seem to remember seeing something about registry tweaks and emacs. Is it possible you made a registry change on the old laptop and have forgotten about it? also, just wondering if the following (taken from the Emacs Problems file) might be relevant? ** On MS-Windows, you cannot use the right-hand ALT key and the left-hand CTRL key together to type a Control-Meta character. This is a consequence of a misfeature beyond Emacs's control. Under Windows, the AltGr key on international keyboards generates key events with the modifiers Right-Alt and Left-Ctrl. Since Emacs cannot distinguish AltGr from an explicit Right-Alt and Left-Ctrl combination, whenever it sees Right-Alt and Left-Ctrl it assumes that AltGr has been pressed. The variable `w32-recognize-altgr' can be set to nil to tell Emacs that AltGr is really Ctrl and Alt. Tim > -- tcross (at) rapttech dot com dot au