From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: How to change the keyboard mapping? Date: Mon, 15 Aug 2016 10:37:10 -0700 Message-ID: References: <87r39t3afa.fsf@skimble.plus.com> <87lh011p5k.fsf@skimble.plus.com> <874m6mrxwg.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1471282692 6988 195.159.176.226 (15 Aug 2016 17:38:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2016 17:38:12 +0000 (UTC) Cc: Sharon Kimble To: help-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 15 19:38:06 2016 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 1bZLpu-0001Qh-Lq for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Aug 2016 19:38:06 +0200 Original-Received: from localhost ([::1]:38243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZLpq-0002tv-RK for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Aug 2016 13:38:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZLpO-0002tn-AJ for help-gnu-emacs@gnu.org; Mon, 15 Aug 2016 13:37:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZLpM-00035C-Ca for help-gnu-emacs@gnu.org; Mon, 15 Aug 2016 13:37:33 -0400 Original-Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:33035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZLpM-000358-8C for help-gnu-emacs@gnu.org; Mon, 15 Aug 2016 13:37:32 -0400 Original-Received: by mail-qk0-x233.google.com with SMTP id z190so16881673qkc.0 for ; Mon, 15 Aug 2016 10:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QSIIf6mm/ErFQXBp1tfJ6fVtNmyLIVzt+hRULsTEcP4=; b=zKSUNAGMx/JVnRDvGF/yX9BLZXPax0BL+Ikw+kbKhXfOcN9xFTPqvPQDxZC3H3mOv6 Hwbn5MfY1OApFqjzc1TskO4gHDGhKnaDio6rND4y9FLdvKFWj0u2eOMsDmiNrnxKHA7K DsH+zfbgy8UE5AFzFnjmeHXNjGuS+IG+z7GvOMfMMi0TSKcI02c0Fanyr+mXa+vDhffn PZUiHqLh9YiOAgHWLVR4hrfkwnqJ/RhGZS28fTc1EMlvYvzgIqXZlTmdNHri2y4FKCFl 0CYxUD4jJSjbPaHPq2rIONl96Ql1DWIyOwRquXIQSeK4fhCTpkx13IfxoWPID9c2NXh+ 7Qxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QSIIf6mm/ErFQXBp1tfJ6fVtNmyLIVzt+hRULsTEcP4=; b=epigSSOfDOf8oIszHdJBDe5Iv1xsaDTH3tMPOZitqhhq/+Wl34hAPpVJJythZz96Ws dkAQO60uG+go9SzBRNFBahyct2RVTJjeZZ24B5su57csEkk8yXjdBKLwrX4agnxFVb6o lAc0XFQUsO84UdKyIpSy6II0N0uQ/vzJ9P45QcArFNlSyY7hIGhMtNR+7DRRLeyW+PiY pFqTQYyw/N29EJNwBINDMhfLVg3DtDB98q+v+pOQHlI3/hIu9arK3pWLynbQfOS43xQl 3RL+zz3jGPBPsNXIe0H7XoLuSBLSu7CMFOIdMKrf3XBBAnSQ4idZA+58V9BJ8dzTpqYZ ovsQ== X-Gm-Message-State: AEkoouvjVsCLrCGN4s6GkAoN/+b3djPZvTEFgNXX5NbhllAs5wys3pSrJ53BsY8BICjRnlVC2Rl19j9CZW8A9Q== X-Received: by 10.55.147.1 with SMTP id v1mr28950503qkd.188.1471282651362; Mon, 15 Aug 2016 10:37:31 -0700 (PDT) Original-Received: by 10.237.33.46 with HTTP; Mon, 15 Aug 2016 10:37:10 -0700 (PDT) In-Reply-To: <874m6mrxwg.fsf@skimble.plus.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::233 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:111148 Archived-At: Sharon Kimble wrote: > John Mastro writes: >> (with-eval-after-load 'popup >> (define-key popup-menu-keymap [return] #'popup-select)) > Thanks John, this works perfectly. Glad I could help. Here's what I suspect happened: Normally, [return] is translated to "\r" (RET), but on a GUI Emacs it's possible for them to have separate bindings. You (either in your own configuration or in a mode you use) likely have a binding for [return], which causes it not to be translated to "\r". The popup package only creates a binding for "\r", so your [return] wasn't triggering it. On the other hand, [kp-enter] did not have its own bindings, so it was translated to "\r" and thus worked. John