From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Nikos Pitsianis Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2011 07:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9751@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.131857670129954 (code B ref -1); Fri, 14 Oct 2011 07:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Oct 2011 07:18:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REc28-0007n2-3r for submit@debbugs.gnu.org; Fri, 14 Oct 2011 03:18:21 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REbqE-0007Uw-2p for submit@debbugs.gnu.org; Fri, 14 Oct 2011 03:06:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REbpb-00070s-BK for submit@debbugs.gnu.org; Fri, 14 Oct 2011 03:05:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:51865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REbpb-00070o-80 for submit@debbugs.gnu.org; Fri, 14 Oct 2011 03:05:23 -0400 Received: from eggs.gnu.org ([140.186.70.92]:41873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REbpa-0007y2-4B for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 03:05:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REbpY-00070c-Id for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 03:05:22 -0400 Received: from duke.cs.duke.edu ([152.3.140.1]:40823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REbpY-0006yi-F3 for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 03:05:20 -0400 Received: from [192.168.1.5] (ppp-94-68-106-191.home.otenet.gr [94.68.106.191]) (authenticated bits=0) by duke.cs.duke.edu (8.14.5/8.14.5) with ESMTP id p9E75BNJ009110 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 14 Oct 2011 03:05:13 -0400 (EDT) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu p9E75BNJ009110 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1318575914; bh=BAwgcTH0WjAtPCUbxOGjhjHbgQtvfJcxts8JjF+ESSw=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Date: Message-Id:To:Mime-Version; b=73XxIL4JZZIbmTOvgwXPxqGOx8FSpbrQw+tWAIa9VPekpJkli7QFmzi+05tCKFxNO RpexvSm5kTptmFqGmRJkQcQxngBB2lwo51xb01S7Is45z+WZgPGemPL89PWN9ETQ8W gENH9odda7p9omjxZjMd4hXEAyzXfkTuthcJ7vYdR/Ev8K8CJKbSPN2bf94lLgQVK7 0VfAWx/Ba2hGjzt36pB5lX0Gl1j5ZvE6+eu0S0TV8h580h/IGQWZRQBr0XknbI5KCf lbzs9AhW76NF3zrXnBq9uwqv6YRkYzulGsNgZySW/7uw/ej82PmDEjGhGaHAjaFlbY Zv0cSKQ7CIADA== From: Nikos Pitsianis Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 14 Oct 2011 10:05:10 +0300 Message-Id: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.0 (------) X-Mailman-Approved-At: Fri, 14 Oct 2011 03:18:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) There is a behavior that is not correct. When I use a different keyboard than English, say to enter Greek, the key combinations Ctr and Alt do not work as intented because Ctr-G for example is interpreted as Ctr-Gamma which does not bring the intended outcome. I believe it is a reasonable assumption that Ctr and Alt key combinations in any alternative keyboard should be interpreted as the corresponding English keyboard ones. In GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-03-10 on black.porkrind.org Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--host=3Dx86_64-apple-darwin' = '--build=3Di686-apple-darwin' '--with-ns' = 'build_alias=3Di686-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' = 'CC=3Dgcc -mmacosx-version-min=3D10.5'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: Loading paren...done For information about GNU Emacs and the GNU system, type M-? C-a. Load-path shadows: None found. Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug jka-compr paren cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2011 11:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nikos Pitsianis Cc: 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131859296323966 (code B ref 9751); Fri, 14 Oct 2011 11:50:01 +0000 Received: (at 9751) by debbugs.gnu.org; 14 Oct 2011 11:49:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REgGR-0006EV-Kl for submit@debbugs.gnu.org; Fri, 14 Oct 2011 07:49:23 -0400 Received: from mail-pz0-f50.google.com ([209.85.210.50]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REgGO-0006EH-Ia for 9751@debbugs.gnu.org; Fri, 14 Oct 2011 07:49:21 -0400 Received: by pzk37 with SMTP id 37so5324298pzk.9 for <9751@debbugs.gnu.org>; Fri, 14 Oct 2011 04:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=DaPbbrXj7LJda263gscenleHBNHLmzEQd81gAxj2OkQ=; b=KEjLYMlvWo/0XaNCWVbiJAnE8hwLuN3QJih1nqtOk60EMu7/lTxD1DeNfkA0QJWz7v OKlx53R2tSb6U7BL5621lo691K6iFdb6O3r1nxEi6eWjcQ+ySxp8qDjF9nBqE+5OeUVk xxZR75xwz7GwhKMTGY8vlCoYMt72ObHJopuRg= Received: by 10.68.0.227 with SMTP id 3mr16526283pbh.48.1318592921075; Fri, 14 Oct 2011 04:48:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.165.16 with HTTP; Fri, 14 Oct 2011 04:48:01 -0700 (PDT) In-Reply-To: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> From: Juanma Barranquero Date: Fri, 14 Oct 2011 13:48:01 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) On Fri, Oct 14, 2011 at 09:05, Nikos Pitsianis wrote: > There is a behavior that is not correct. When I use a different keyboard > than English, say to enter Greek, the key combinations Ctr and Alt do > not work as intented because Ctr-G for example is interpreted as > Ctr-Gamma which does not bring the intended outcome. That's a feature (and not a bug) of the Windows keyboard handler. > I believe it is a reasonable assumption that Ctr and Alt key > combinations in any alternative keyboard should be interpreted as the > corresponding English keyboard ones. Do you also believe that the key just right of the "l" should be interpreted as ";"? That's going to make difficult to type "=C3=B1" for me... =C2=A0 =C2=A0 Juanma From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Nikos Pitsianis Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2011 17:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juanma Barranquero Cc: 9751@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.131861207223053 (code B ref -1); Fri, 14 Oct 2011 17:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Oct 2011 17:07:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RElEd-0005zl-ME for submit@debbugs.gnu.org; Fri, 14 Oct 2011 13:07:52 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RElEa-0005zX-BS for submit@debbugs.gnu.org; Fri, 14 Oct 2011 13:07:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RElDu-0005ks-JW for submit@debbugs.gnu.org; Fri, 14 Oct 2011 13:07:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:51521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RElDu-0005ko-FT for submit@debbugs.gnu.org; Fri, 14 Oct 2011 13:07:06 -0400 Received: from eggs.gnu.org ([140.186.70.92]:47074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RElDo-0003zw-H0 for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 13:07:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RElDi-0005jD-Dk for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 13:07:00 -0400 Received: from duke.cs.duke.edu ([152.3.140.1]:58465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RElDh-0005j6-VM for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 13:06:54 -0400 Received: from [192.168.1.5] (ppp-94-68-106-191.home.otenet.gr [94.68.106.191]) (authenticated bits=0) by duke.cs.duke.edu (8.14.5/8.14.5) with ESMTP id p9EH6n6K006199 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 14 Oct 2011 13:06:51 -0400 (EDT) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu p9EH6n6K006199 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1318612012; bh=RyLxUqY7BKI2dYF5XyqG2tIH2hauQuV0/Tbl2ad9oVc=; h=Subject:Mime-Version:Content-Type:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=WHTG7eisg7xvQeYkWpn9R3PAuvqJVtp+orO41NyvKLDrqeydc94mEzZZ5tuqwoRRB z0aJVBoGfvn5nymtfjwAd/+bETlLEgjb3oGdoUVmz8Dv8FUhEMHMp1WU3arwunCOp+ tG89g68ylV4/LJVKiHBm3ORQPEPoimtuLcaRc1h4onTXr1Pu0In7ociBIDWdeY8x+I ufxKKGFJDsT6rsmLTZ8ggfh8EWHBUyv+Gz/FA9nQ1lBDssLurQPLGuHDvv8bDP5o51 VcAORjLAsatGfvEWlnfu88Y8kO4KZkdsEL9nxLvmU2/ejCklhorM9dH8Mcnchskz3m oxiQp9/IGaORQ== Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Nikos Pitsianis In-Reply-To: Date: Fri, 14 Oct 2011 20:06:49 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) Juanma=20 Thank you following up on my report. On Windows XP when I type in greek in emacs and I need to save, I simply = type Ctr-x Ctr-s irrespective of the keyboard mode (English or Greek). On the Mac OS version of emacs, I have to turn into english, issue Ctr-x = Ctr-s and then return beck to greek to continue. I assume that all users of alternative keyboards would expect that an = Alt or Ctr combination should be sending an emacs command just like the = behavior in Windows XP emacs. I just verified this in=20 This is GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-03-10 on black.porkrind.org and This is GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON In my humble understanding, the behavior of the Mac emacs is a bug :-) -- Nikos Pitsianis On Oct 14, 2011, at 2:48 PM, Juanma Barranquero wrote: > On Fri, Oct 14, 2011 at 09:05, Nikos Pitsianis = wrote: >=20 >> There is a behavior that is not correct. When I use a different = keyboard >> than English, say to enter Greek, the key combinations Ctr and Alt do >> not work as intented because Ctr-G for example is interpreted as >> Ctr-Gamma which does not bring the intended outcome. >=20 > That's a feature (and not a bug) of the Windows keyboard handler. >=20 >> I believe it is a reasonable assumption that Ctr and Alt key >> combinations in any alternative keyboard should be interpreted as the >> corresponding English keyboard ones. >=20 > Do you also believe that the key just right of the "l" should be > interpreted as ";"? That's going to make difficult to type "=F1" for > me... >=20 > Juanma From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2011 17:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nikos Pitsianis Cc: lekktu@gmail.com, 9751@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131861292124287 (code B ref 9751); Fri, 14 Oct 2011 17:22:01 +0000 Received: (at 9751) by debbugs.gnu.org; 14 Oct 2011 17:22:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RElSK-0006Jg-PO for submit@debbugs.gnu.org; Fri, 14 Oct 2011 13:22:00 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RElSH-0006JP-GR for 9751@debbugs.gnu.org; Fri, 14 Oct 2011 13:21:58 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LT200D00G763C00@a-mtaout21.012.net.il> for 9751@debbugs.gnu.org; Fri, 14 Oct 2011 19:21:15 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.79.107]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LT200CE3G7EW4A0@a-mtaout21.012.net.il>; Fri, 14 Oct 2011 19:21:15 +0200 (IST) Date: Fri, 14 Oct 2011 19:21:19 +0200 From: Eli Zaretskii In-reply-to: <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> X-012-Sender: halo1@inter.net.il Message-id: <83sjmvjxps.fsf@gnu.org> References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Nikos Pitsianis > Date: Fri, 14 Oct 2011 20:06:49 +0300 > Cc: 9751@debbugs.gnu.org > > On Windows XP when I type in greek in emacs and I need to save, I simply type Ctr-x Ctr-s irrespective of the keyboard mode (English or Greek). > > On the Mac OS version of emacs, I have to turn into english, issue Ctr-x Ctr-s and then return beck to greek to continue. > > I assume that all users of alternative keyboards would expect that an Alt or Ctr combination should be sending an emacs command just like the behavior in Windows XP emacs. There's nothing Emacs can do about this. What you see on Windows is a general feature of Windows keyboard input. Other systems don't have that feature. From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Nikos Pitsianis Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2011 17:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: lekktu@gmail.com, 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131861447526676 (code B ref 9751); Fri, 14 Oct 2011 17:48:01 +0000 Received: (at 9751) by debbugs.gnu.org; 14 Oct 2011 17:47:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RElrO-0006wC-CV for submit@debbugs.gnu.org; Fri, 14 Oct 2011 13:47:55 -0400 Received: from duke.cs.duke.edu ([152.3.140.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RElrL-0006w4-P8 for 9751@debbugs.gnu.org; Fri, 14 Oct 2011 13:47:52 -0400 Received: from [192.168.1.5] (ppp-94-68-106-191.home.otenet.gr [94.68.106.191]) (authenticated bits=0) by duke.cs.duke.edu (8.14.5/8.14.5) with ESMTP id p9EHlCNM009107 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 14 Oct 2011 13:47:15 -0400 (EDT) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu p9EHlCNM009107 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1318614435; bh=MsYx9K7NzAx3KRG7X4fWNaFIz1lfsz2oHesrtHNVrIE=; h=Subject:Mime-Version:Content-Type:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=xovMuMnHCPmEyZS+/PzdI7yu+5AG7SzMg9IXIJJoIcUtKVfl3+X3fxOe6iMWfzknC SrVZ5+WP5GJIL3pE20v61tMeSvyNUuJHCMy1QABYvJFPPGkRXdldjz2lAOky6DLekI iLt8br1iVPXgcwDP97LmU/PzhyAiLV27wKI+4TSSh/IWuST89bQKce1A2SOe6RE9fy eNggZzIAMPKOYoy6UQHMZ8iwG7M5NpZTsR1CQFcwBjZFQHU0blfEBbnJI9mPdTeHXT tSb5SAqemSPz88eZg8d1D3ZLX3C0/2+MwoOyMn0g7MWKEvvE7cg9LehaIMYavUqX0S DLo156Npdupvg== Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=utf-8 From: Nikos Pitsianis In-Reply-To: <83sjmvjxps.fsf@gnu.org> Date: Fri, 14 Oct 2011 20:47:12 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> X-Mailer: Apple Mail (2.1084) X-Spam-Score: -4.3 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) What is the way in emacs to alias Ctr-chi to Ctr-x ? Alternatively, how do I map a few commonly used commands to the = alternative keyboard combinations?=20 (global-set-key "\C-=CF=87\C-=CF=88" 'save-buffers-kill-emacs) returns with=20 error: Invalid modifier in string Nikos On Oct 14, 2011, at 8:21 PM, Eli Zaretskii wrote: >> From: Nikos Pitsianis >> Date: Fri, 14 Oct 2011 20:06:49 +0300 >> Cc: 9751@debbugs.gnu.org >>=20 >> On Windows XP when I type in greek in emacs and I need to save, I = simply type Ctr-x Ctr-s irrespective of the keyboard mode (English or = Greek). >>=20 >> On the Mac OS version of emacs, I have to turn into english, issue = Ctr-x Ctr-s and then return beck to greek to continue. >>=20 >> I assume that all users of alternative keyboards would expect that an = Alt or Ctr combination should be sending an emacs command just like the = behavior in Windows XP emacs. >=20 > There's nothing Emacs can do about this. What you see on Windows is a > general feature of Windows keyboard input. Other systems don't have > that feature. From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2011 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nikos Pitsianis Cc: lekktu@gmail.com, Eli Zaretskii , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131861821132314 (code B ref 9751); Fri, 14 Oct 2011 18:51:01 +0000 Received: (at 9751) by debbugs.gnu.org; 14 Oct 2011 18:50:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REmpe-0008P9-BM for submit@debbugs.gnu.org; Fri, 14 Oct 2011 14:50:11 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REmpb-0008Ow-Sm for 9751@debbugs.gnu.org; Fri, 14 Oct 2011 14:50:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EALuDmE5FxJoX/2dsb2JhbABDDoRoo3CBBoFuAQEEASMzIwULCxoCGA4CAhQYDSSIEqVXkXqBLIU5gRQEoSODclM X-IronPort-AV: E=Sophos;i="4.69,348,1315195200"; d="scan'208";a="141934829" Received: from 69-196-154-23.dsl.teksavvy.com (HELO pastel.home) ([69.196.154.23]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 14 Oct 2011 14:49:26 -0400 Received: by pastel.home (Postfix, from userid 20848) id 7B7355934A; Fri, 14 Oct 2011 14:49:26 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> Date: Fri, 14 Oct 2011 14:49:26 -0400 In-Reply-To: <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> (Nikos Pitsianis's message of "Fri, 14 Oct 2011 20:47:12 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > What is the way in emacs to alias Ctr-chi to Ctr-x ? I'd do it in input-decode-map: (define-key input-decode-map [?\C-=CF=87] [?\C-x]) (define-key input-decode-map [?\C-=CF=88] [?\C-s]) > (global-set-key "\C-=CF=87\C-=CF=88" 'save-buffers-kill-emacs) > returns with=20 > error: Invalid modifier in string Event sequences are vectors, the string syntax is still allowed but only covers limited cases as you've just discovered. Stefan From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2011 19:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nikos Pitsianis Cc: 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.13186200332552 (code B ref 9751); Fri, 14 Oct 2011 19:21:01 +0000 Received: (at 9751) by debbugs.gnu.org; 14 Oct 2011 19:20:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REnJ3-0000f6-0F for submit@debbugs.gnu.org; Fri, 14 Oct 2011 15:20:33 -0400 Received: from mail-pz0-f50.google.com ([209.85.210.50]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REnJ0-0000et-QW for 9751@debbugs.gnu.org; Fri, 14 Oct 2011 15:20:31 -0400 Received: by pzk37 with SMTP id 37so6272485pzk.9 for <9751@debbugs.gnu.org>; Fri, 14 Oct 2011 12:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=xPhOVavYysGOk4It/XzMuRQo/wCnuQPRDw+t5QVXE8o=; b=A1OT5ErIDZBdoTG7SUZsdveolLGLBT7mcr0+oHUjc1L/vjbxQZ8BbF+H3yScdE9UU/ LGzLH49XTrx3ZY8EbVyMbcZq8PIV62RtlvV2su94I1ox1cVmjGE4DUi4vcQji4QKRKnD UkmotL94v5HLp36iNELbMDO9SfhD/Dppu7AxQ= Received: by 10.68.37.97 with SMTP id x1mr18663782pbj.14.1318619989088; Fri, 14 Oct 2011 12:19:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.165.16 with HTTP; Fri, 14 Oct 2011 12:19:09 -0700 (PDT) In-Reply-To: <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> From: Juanma Barranquero Date: Fri, 14 Oct 2011 21:19:09 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) On Fri, Oct 14, 2011 at 19:06, Nikos Pitsianis wrote: > In my humble understanding, the behavior of the Mac emacs is a bug :-) Sorry, I read Ctrl and Alt and didn't realize you were using Emacs on the M= ac. =C2=A0 =C2=A0 Juanma From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2011 00:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131906974832372 (code B ref 9751); Thu, 20 Oct 2011 00:16:01 +0000 Received: (at 9751) by debbugs.gnu.org; 20 Oct 2011 00:15:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGgIW-0008Q4-7z for submit@debbugs.gnu.org; Wed, 19 Oct 2011 20:15:48 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGgIU-0008Px-7V for 9751@debbugs.gnu.org; Wed, 19 Oct 2011 20:15:47 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id E49E56E806B; Wed, 19 Oct 2011 17:14:39 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id AC1BDAC9400A; Wed, 19 Oct 2011 17:14:38 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> Date: Thu, 20 Oct 2011 03:12:31 +0300 In-Reply-To: (Stefan Monnier's message of "Fri, 14 Oct 2011 14:49:26 -0400") Message-ID: <87r528pllc.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> What is the way in emacs to alias Ctr-chi to Ctr-x ? > > I'd do it in input-decode-map: > > (define-key input-decode-map [?\C-=CF=87] [?\C-x]) > (define-key input-decode-map [?\C-=CF=88] [?\C-s]) The problem is that this method doesn't work for self-inserting character= s, i.e. to be able to handle keybindings that contain characters without modifiers like e.g. `C-x b' we can't use (define-key input-decode-map [?=CE=B2] [?b]) because it will translate all plain self-inserting characters, and this is not desirable. So users have to bother about rebinding all keybindings individually like (define-key input-decode-map [?\C-=CF=87 ?=CE=B2] [?\C-x ?b]) ... I have no idea how to cover all keybindings automatically. From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2011 02:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.13190766829907 (code B ref 9751); Thu, 20 Oct 2011 02:12:01 +0000 Received: (at 9751) by debbugs.gnu.org; 20 Oct 2011 02:11:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGi6L-0002Zj-QW for submit@debbugs.gnu.org; Wed, 19 Oct 2011 22:11:22 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGi6I-0002ZU-Lw for 9751@debbugs.gnu.org; Wed, 19 Oct 2011 22:11:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAH+Cn05MCqLO/2dsb2JhbABEhHWkDYEGgW4BAQQBIzMjEAsaAhgOAgIUGA0kiBOkK5IHgTCFV4EUBKEshEU X-IronPort-AV: E=Sophos;i="4.69,375,1315195200"; d="scan'208";a="143202958" Received: from 76-10-162-206.dsl.teksavvy.com (HELO ceviche.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 19 Oct 2011 22:10:06 -0400 Received: by ceviche.home (Postfix, from userid 20848) id B9A75660B6; Wed, 19 Oct 2011 22:10:05 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> Date: Wed, 19 Oct 2011 22:10:05 -0400 In-Reply-To: <87r528pllc.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 20 Oct 2011 03:12:31 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) >>> What is the way in emacs to alias Ctr-chi to Ctr-x ? >> I'd do it in input-decode-map: >> (define-key input-decode-map [?\C-=CF=87] [?\C-x]) >> (define-key input-decode-map [?\C-=CF=88] [?\C-s]) > The problem is that this method doesn't work for self-inserting character= s, > i.e. to be able to handle keybindings that contain characters without > modifiers like e.g. `C-x b' we can't use > (define-key input-decode-map [?=CE=B2] [?b]) That's a problem indeed. I guess we can use function-key-map instead, tho. Stefan From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2011 06:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.13190929374218 (code B ref 9751); Thu, 20 Oct 2011 06:43:01 +0000 Received: (at 9751) by debbugs.gnu.org; 20 Oct 2011 06:42:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGmKW-00015z-Ps for submit@debbugs.gnu.org; Thu, 20 Oct 2011 02:42:17 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGmKR-00015o-6J for 9751@debbugs.gnu.org; Thu, 20 Oct 2011 02:42:12 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 2F88A6E8093; Wed, 19 Oct 2011 23:41:03 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id B4106AAB4B5C; Wed, 19 Oct 2011 23:41:01 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> Date: Thu, 20 Oct 2011 09:29:54 +0300 In-Reply-To: (Stefan Monnier's message of "Wed, 19 Oct 2011 22:10:05 -0400") Message-ID: <878vogmazh.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > I guess we can use function-key-map instead, tho. And `function-key-map' really works even for characters with no modifiers (for the value `nil' below): (let ((modifiers '(nil (control) (meta) (control meta))) (map '((?=CF=82 . ?w) (?=CE=B5 . ?e) (?=CF=81 . ?r) (?=CF=84 . ?t= ) (?=CF=85 . ?y) (?=CE=B8 . ?u) (?=CE=B9 . ?i) (?=CE=BF . ?o) (?=CF=80 . ?p= ) (?=CE=B1 . ?a) (?=CF=83 . ?s) (?=CE=B4 . ?d) (?=CF=86 . ?f) (?=CE=B3 . ?g= ) (?=CE=B7 . ?h) (?=CE=BE . ?j) (?=CE=BA . ?k) (?=CE=BB . ?l) (?=CE=B6 . ?z= ) (?=CF=87 . ?x) (?=CF=88 . ?c) (?=CF=89 . ?v) (?=CE=B2 . ?b) (?=CE=BD . ?n= ) (?=CE=BC . ?m) (?\; . ?q)))) (dolist (pair map) (dolist (mod modifiers) (define-key local-function-key-map (vector (append mod (list (car pair)))) (vector (append mod (list (cdr pair)))))))) So `C-=CF=87 =CE=B2' runs `switch-to-buffer' whereas self-inserting chara= cters are inserted as is, without translation. However, there is another problem. Single-key bindings don't work in mod= es where they are bound to other commands, like `v' (`dired-view-file') in D= ired, or `d' (`Info-directory') in Info. I see no better way than to translate single keys in such modes individua= lly: (let ((map '((?=CF=82 . ?w) (?=CE=B5 . ?e) (?=CF=81 . ?r) (?=CF=84 . ?t= ) (?=CF=85 . ?y) (?=CE=B8 . ?u) (?=CE=B9 . ?i) (?=CE=BF . ?o) (?=CF=80 . ?p= ) (?=CE=B1 . ?a) (?=CF=83 . ?s) (?=CE=B4 . ?d) (?=CF=86 . ?f) (?=CE=B3 . ?g= ) (?=CE=B7 . ?h) (?=CE=BE . ?j) (?=CE=BA . ?k) (?=CE=BB . ?l) (?=CE=B6 . ?z= ) (?=CF=87 . ?x) (?=CF=88 . ?c) (?=CF=89 . ?v) (?=CE=B2 . ?b) (?=CE=BD . ?n= ) (?=CE=BC . ?m) (?\; . ?q)))) (dolist (pair map) (define-key dired-mode-map (vector (car pair)) (vector (cdr pair))) (define-key Info-mode-map (vector (car pair)) (vector (cdr pair))) ;; and many other similar modes ... )) And then some single keys work, some don't. For example, typing a key that translates to `x' in Dired writes in the echo area: Keyboard macro terminated by a command ringing the bell From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2011 13:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131911682710032 (code B ref 9751); Thu, 20 Oct 2011 13:21:02 +0000 Received: (at 9751) by debbugs.gnu.org; 20 Oct 2011 13:20:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGsXq-0002bl-Nr for submit@debbugs.gnu.org; Thu, 20 Oct 2011 09:20:27 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGsXo-0002bX-IR for 9751@debbugs.gnu.org; Thu, 20 Oct 2011 09:20:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAJgfoE5MCqLO/2dsb2JhbABDhHWkIIEGgW4BAQQBIzMjBQsJAhAKAhgOAgIUGA0kiBOje5FzgTCFZYEUBKEuhEU X-IronPort-AV: E=Sophos;i="4.69,379,1315195200"; d="scan'208";a="143348925" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 20 Oct 2011 09:19:10 -0400 Received: by pastel.home (Postfix, from userid 20848) id C7C7D588A2; Thu, 20 Oct 2011 09:19:09 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> Date: Thu, 20 Oct 2011 09:19:09 -0400 In-Reply-To: <878vogmazh.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 20 Oct 2011 09:29:54 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > And `function-key-map' really works even for characters > with no modifiers (for the value `nil' below): > (let ((modifiers '(nil (control) (meta) (control meta))) > (map '((?=CF=82 . ?w) (?=CE=B5 . ?e) (?=CF=81 . ?r) (?=CF=84 . ?t= ) (?=CF=85 . ?y) > (?=CE=B8 . ?u) (?=CE=B9 . ?i) (?=CE=BF . ?o) (?=CF=80 . ?p= ) (?=CE=B1 . ?a) > (?=CF=83 . ?s) (?=CE=B4 . ?d) (?=CF=86 . ?f) (?=CE=B3 . ?g= ) (?=CE=B7 . ?h) > (?=CE=BE . ?j) (?=CE=BA . ?k) (?=CE=BB . ?l) (?=CE=B6 . ?z= ) (?=CF=87 . ?x) > (?=CF=88 . ?c) (?=CF=89 . ?v) (?=CE=B2 . ?b) (?=CE=BD . ?n= ) (?=CE=BC . ?m) (?\; . ?q)))) > (dolist (pair map) > (dolist (mod modifiers) > (define-key local-function-key-map > (vector (append mod (list (car pair)))) > (vector (append mod (list (cdr pair)))))))) > So `C-=CF=87 =CE=B2' runs `switch-to-buffer' whereas self-inserting chara= cters > are inserted as is, without translation. Yes, that's what I expected. > However, there is another problem. Single-key bindings don't work in mod= es > where they are bound to other commands, like `v' (`dired-view-file') in D= ired, > or `d' (`Info-directory') in Info. I don't understand what you mean here. Do you mean that hitting v/=CF=89/omega will not run dired-view-file? That's very odd. Can you try and investigate why that is? Stefan From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Oct 2011 14:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131920637025162 (code B ref 9751); Fri, 21 Oct 2011 14:13:02 +0000 Received: (at 9751) by debbugs.gnu.org; 21 Oct 2011 14:12:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHFq6-0006Xj-5l for submit@debbugs.gnu.org; Fri, 21 Oct 2011 10:12:50 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHFq3-0006XY-Ds for 9751@debbugs.gnu.org; Fri, 21 Oct 2011 10:12:48 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 6CE4D6E80A8; Fri, 21 Oct 2011 07:11:32 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id ECFDD451C452; Fri, 21 Oct 2011 07:11:30 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> Date: Fri, 21 Oct 2011 17:01:33 +0300 In-Reply-To: (Stefan Monnier's message of "Thu, 20 Oct 2011 09:19:09 -0400") Message-ID: <87fwimeety.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> However, there is another problem. Single-key bindings don't work in = modes >> where they are bound to other commands, like `v' (`dired-view-file') i= n Dired, >> or `d' (`Info-directory') in Info. > > I don't understand what you mean here. Do you mean that hitting > v/=CF=89/omega will not run dired-view-file? That's very odd. Can you= try > and investigate why that is? Sorry, it seems I did a stupid thing. Major mode maps don't perform key translation, so (define-key dired-mode-map [?=CE=B2] [?b]) binds `=CE=B2' to a keyboard macro instead of translating keys like `input-decode-map' does. I can't find a way to translate keys on a per-mode basis in modes where single keys are bound to non-self-inserting commands. From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Oct 2011 17:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131921871116379 (code B ref 9751); Fri, 21 Oct 2011 17:39:02 +0000 Received: (at 9751) by debbugs.gnu.org; 21 Oct 2011 17:38:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHJ38-0004G8-VV for submit@debbugs.gnu.org; Fri, 21 Oct 2011 13:38:31 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHJ36-0004Fr-7p for 9751@debbugs.gnu.org; Fri, 21 Oct 2011 13:38:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAPCsoU5MCqLO/2dsb2JhbABDhHWkKYEGgW4BAQQBIzMjBQsLGgIYDgICFBgNJIgToieRboEwhXyBFAShMoRF X-IronPort-AV: E=Sophos;i="4.69,387,1315195200"; d="scan'208";a="143618539" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 21 Oct 2011 13:37:07 -0400 Received: by pastel.home (Postfix, from userid 20848) id DB838591FD; Fri, 21 Oct 2011 13:37:06 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> Date: Fri, 21 Oct 2011 13:37:06 -0400 In-Reply-To: <87fwimeety.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 21 Oct 2011 17:01:33 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > I can't find a way to translate keys on a per-mode basis > in modes where single keys are bound to non-self-inserting commands. Well, if you really have to, you can do it with something like: (define-key function-key-map [=CE=B2] (lambda (_prompt) (if (derived-mode-p 'dired-mode) [?a] [?b]))) but I wonder in which circumstance you'd want to do that. Stefan From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2011 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.13192982305004 (code B ref 9751); Sat, 22 Oct 2011 15:44:02 +0000 Received: (at 9751) by debbugs.gnu.org; 22 Oct 2011 15:43:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHdjh-0001Ie-U9 for submit@debbugs.gnu.org; Sat, 22 Oct 2011 11:43:50 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHdje-0001IO-R9 for 9751@debbugs.gnu.org; Sat, 22 Oct 2011 11:43:47 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 00E856E8065; Sat, 22 Oct 2011 08:42:25 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id B024E451C4E8; Sat, 22 Oct 2011 08:42:24 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> Date: Sat, 22 Oct 2011 18:36:54 +0300 In-Reply-To: (Stefan Monnier's message of "Fri, 21 Oct 2011 13:37:06 -0400") Message-ID: <87sjmlhwbt.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> I can't find a way to translate keys on a per-mode basis >> in modes where single keys are bound to non-self-inserting commands. > > Well, if you really have to, you can do it with something like: > > (define-key function-key-map [=CE=B2] > (lambda (_prompt) (if (derived-mode-p 'dired-mode) [?a] [?b]))) > > but I wonder in which circumstance you'd want to do that. The problem common to Greek and Cyrillic is how to configure keybindings in such a way that single characters bound to `self-insert-command' remained untranslated as they are typed with a non-English system input method, but to translate single characters to English letters when they are bound to other Emacs commands (like `v' in Dired mode) that would allow to run commands bound to them. From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2011 20:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131940061427543 (code B ref 9751); Sun, 23 Oct 2011 20:11:02 +0000 Received: (at 9751) by debbugs.gnu.org; 23 Oct 2011 20:10:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RI4N3-0007AB-N3 for submit@debbugs.gnu.org; Sun, 23 Oct 2011 16:10:14 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RI4N0-00079y-MX for 9751@debbugs.gnu.org; Sun, 23 Oct 2011 16:10:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EACZzpE5MCqLO/2dsb2JhbABDhHWkHIEGgW4BAQQBIzMjBQsLGgIYDgICFBgNJIgTpD6QUYEwhXyBFAShO4RF X-IronPort-AV: E=Sophos;i="4.69,394,1315195200"; d="scan'208";a="144011345" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 23 Oct 2011 16:08:37 -0400 Received: by pastel.home (Postfix, from userid 20848) id 744BD58B4A; Sun, 23 Oct 2011 16:08:37 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> Date: Sun, 23 Oct 2011 16:08:37 -0400 In-Reply-To: <87sjmlhwbt.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 22 Oct 2011 18:36:54 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >>> I can't find a way to translate keys on a per-mode basis >>> in modes where single keys are bound to non-self-inserting commands. >>=20 >> Well, if you really have to, you can do it with something like: >>=20 >> (define-key function-key-map [=CE=B2] >> (lambda (_prompt) (if (derived-mode-p 'dired-mode) [?a] [?b]))) >>=20 >> but I wonder in which circumstance you'd want to do that. > The problem common to Greek and Cyrillic is how to configure > keybindings in such a way that single characters bound to > `self-insert-command' remained untranslated as they are typed > with a non-English system input method, but to translate > single characters to English letters when they are bound > to other Emacs commands (like `v' in Dired mode) > that would allow to run commands bound to them. But (define-key function-key-map [=CE=B2] [?b]) does that already. Stefan From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2011 20:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Juri Linkov , lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131940159528962 (code B ref 9751); Sun, 23 Oct 2011 20:27:02 +0000 Received: (at 9751) by debbugs.gnu.org; 23 Oct 2011 20:26:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RI4cs-0007X4-KI for submit@debbugs.gnu.org; Sun, 23 Oct 2011 16:26:35 -0400 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RI4cq-0007Ww-At for 9751@debbugs.gnu.org; Sun, 23 Oct 2011 16:26:33 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id F135F186DEC6; Sun, 23 Oct 2011 22:25:19 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 24A1C1C0008D; Sun, 23 Oct 2011 22:25:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id 2pYcR1u7n3BX; Sun, 23 Oct 2011 22:25:01 +0200 (CEST) Received: from igel.home (ppp-93-104-155-18.dynamic.mnet-online.de [93.104.155.18]) by mail.mnet-online.de (Postfix) with ESMTP; Sun, 23 Oct 2011 22:25:01 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 92126CA29C; Sun, 23 Oct 2011 22:25:00 +0200 (CEST) From: Andreas Schwab References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> X-Yow: Yow! STYROFOAM.. Date: Sun, 23 Oct 2011 22:24:59 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 23 Oct 2011 16:08:37 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Stefan Monnier writes: > But > > (define-key function-key-map [=CE=B2] [?b]) > > does that already. function-key-map applies only to (suffixes of) unbound key sequences. Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 03:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: Juri Linkov , lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.13194256472307 (code B ref 9751); Mon, 24 Oct 2011 03:08:01 +0000 Received: (at 9751) by debbugs.gnu.org; 24 Oct 2011 03:07:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIAsp-0000bA-5m for submit@debbugs.gnu.org; Sun, 23 Oct 2011 23:07:27 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIAsm-0000ay-KG for 9751@debbugs.gnu.org; Sun, 23 Oct 2011 23:07:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlAJAJnVpE5MCqLO/2dsb2JhbABDhHWjCYEOgQaBbgEBBAEjMyMQCxoCGA4CAhQYDSSIE6MZkGKBMIV8gRQEoTuERQ X-IronPort-AV: E=Sophos;i="4.69,396,1315195200"; d="scan'208";a="144047242" Received: from 76-10-162-206.dsl.teksavvy.com (HELO ceviche.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 23 Oct 2011 23:05:49 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 8ADE6660D4; Sun, 23 Oct 2011 23:05:49 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> Date: Sun, 23 Oct 2011 23:05:49 -0400 In-Reply-To: (Andreas Schwab's message of "Sun, 23 Oct 2011 22:24:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> But >> (define-key function-key-map [=CE=B2] [?b]) >> does that already. > function-key-map applies only to (suffixes of) unbound key sequences. Right, which is exactly what he was asking for, AFAIK. I'm obviously missing something, but I still haven't seen a concrete example where the function-key-map binding doesn't do what we want (or maybe I've seen it, but I didn't understand it, if so please spell it out for me). Stefan From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 05:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, Andreas Schwab , Nikos Pitsianis , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131943395214360 (code B ref 9751); Mon, 24 Oct 2011 05:26:02 +0000 Received: (at 9751) by debbugs.gnu.org; 24 Oct 2011 05:25:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RID2l-0003jZ-Jn for submit@debbugs.gnu.org; Mon, 24 Oct 2011 01:25:51 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RID2h-0003jL-SG for 9751@debbugs.gnu.org; Mon, 24 Oct 2011 01:25:48 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id B85E46E8061; Sun, 23 Oct 2011 22:24:17 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 140DB451C375; Sun, 23 Oct 2011 22:24:15 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> Date: Mon, 24 Oct 2011 08:17:31 +0300 In-Reply-To: (Stefan Monnier's message of "Sun, 23 Oct 2011 23:05:49 -0400") Message-ID: <87fwijdmb0.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >>> But >>> (define-key function-key-map [=CE=B2] [?b]) >>> does that already. >> function-key-map applies only to (suffixes of) unbound key sequences. > > Right, which is exactly what he was asking for, AFAIK. > I'm obviously missing something, but I still haven't seen a concrete > example where the function-key-map binding doesn't do what we want (or > maybe I've seen it, but I didn't understand it, if so please spell it > out for me). Let's consider `Info-mode' instead of `dired-mode' for testing purposes because `b' is unbound in Dired, but in Info it's bound to `beginning-of-buffer'. After evaluating (define-key function-key-map [?=CE=B2] [?b]) typing `=CE=B2' in Info has no effect, it doesn't call `beginning-of-buff= er'. When typing in Info `C-h k =CE=B2', it says: =CE=B2 is undefined What is expected for `C-h k =CE=B2' to say is that `b' is translated from= `=CE=B2'. OTOH, after evaluating (define-key function-key-map [?\C-=CF=87] [?\C-x]) (define-key function-key-map [?=CE=B2] [?b]) `C-=CF=87 =CE=B2' runs `switch-to-buffer' correctly, and `C-h k C-=CF=87 =CE=B2' says: C-x b (translated from C-=CF=87 =CE=B2) runs the command switch-to-buff= er From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 13:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: lekktu@gmail.com, Andreas Schwab , Nikos Pitsianis , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131946139527677 (code B ref 9751); Mon, 24 Oct 2011 13:04:01 +0000 Received: (at 9751) by debbugs.gnu.org; 24 Oct 2011 13:03:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIKBP-0007CM-3j for submit@debbugs.gnu.org; Mon, 24 Oct 2011 09:03:15 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIKBL-0007C8-LY for 9751@debbugs.gnu.org; Mon, 24 Oct 2011 09:03:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiIFAA9hpU5MCqLO/2dsb2JhbABDhHWiFIIIgQaBbgEBBAEjMyMFCwsaAhgOAgIUGA0kiBOhfZEygTCFfIEUBKE7hEU X-IronPort-AV: E=Sophos;i="4.69,398,1315195200"; d="scan'208";a="144109668" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 24 Oct 2011 09:01:34 -0400 Received: by pastel.home (Postfix, from userid 20848) id E898D58B4A; Mon, 24 Oct 2011 09:01:33 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> <87fwijdmb0.fsf@mail.jurta.org> Date: Mon, 24 Oct 2011 09:01:33 -0400 In-Reply-To: <87fwijdmb0.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 24 Oct 2011 08:17:31 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > typing `=CE=B2' in Info has no effect, it doesn't call `beginning-of-buff= er'. > When typing in Info `C-h k =CE=B2', it says: > =CE=B2 is undefined Ah, thanks, now I see. So the issue is the following one: 1- keymaps provide a way to hide bindings in parent keymaps (by using an explicit nil binding), but not to hide a binding in subsequent maps (e.g. a local map can't hide a binding in the global map). 2- for the main keymaps used to bind keys to commands, we can work around this limitation by binding the key to the command `undefined'. 3- but function-key-map doesn't know about this convention, so `undefined' is not recognized as "not bound". I think it would be good to fix (1), but there are very few keymaps that are both "special in that the bindings are not commands" and have a "subsequent keymap" at the same time. Also even if we fix (1), we'd have to update all the code using `undefined' to use the new special value (unless we choose `undefined' for that new value, of course). So I think that fixing (3) is the best choice for now. Does the patch below work for you? Stefan =3D=3D=3D modified file 'src/keyboard.c' --- src/keyboard.c 2011-10-03 20:50:54 +0000 +++ src/keyboard.c 2011-10-24 13:00:50 +0000 @@ -9852,7 +9852,9 @@ } } =20 - if (first_binding < nmaps && NILP (submaps[first_binding]) + if (first_binding < nmaps + && NILP (submaps[first_binding]) + && !EQ (defs[first_binding], Qundefined) && indec.start >=3D t) /* There is a binding and it's not a prefix. (and it doesn't have any input-decode-map translation pending). From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 15:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, Andreas Schwab , Nikos Pitsianis , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.13194707789573 (code B ref 9751); Mon, 24 Oct 2011 15:40:01 +0000 Received: (at 9751) by debbugs.gnu.org; 24 Oct 2011 15:39:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIMcj-0002UK-CG for submit@debbugs.gnu.org; Mon, 24 Oct 2011 11:39:37 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIMcg-0002UC-OP for 9751@debbugs.gnu.org; Mon, 24 Oct 2011 11:39:35 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 1B3F86E804B; Mon, 24 Oct 2011 08:38:02 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 0A7CF451C44F; Mon, 24 Oct 2011 08:37:48 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> <87fwijdmb0.fsf@mail.jurta.org> Date: Mon, 24 Oct 2011 18:35:46 +0300 In-Reply-To: (Stefan Monnier's message of "Mon, 24 Oct 2011 09:01:33 -0400") Message-ID: <87aa8qbdwt.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > So I think that fixing (3) is the best choice for now. > Does the patch below work for you? Sorry, it doesn't seem to work. After (define-key function-key-map [?=CE= =B2] [?b]), typing `=CE=B2' in Info still does nothing. From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 16:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: lekktu@gmail.com, Andreas Schwab , Nikos Pitsianis , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131947245411995 (code B ref 9751); Mon, 24 Oct 2011 16:08:02 +0000 Received: (at 9751) by debbugs.gnu.org; 24 Oct 2011 16:07:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIN3l-00037Q-8M for submit@debbugs.gnu.org; Mon, 24 Oct 2011 12:07:33 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIN3j-00037E-57 for 9751@debbugs.gnu.org; Mon, 24 Oct 2011 12:07:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAGmMpU5MCqLO/2dsb2JhbABDhHWkHIEGgW4BAQQBIzMjBQsLGgIYDgICFBgNJBOIAKIokUeBMIV8gRQEoTuERQ X-IronPort-AV: E=Sophos;i="4.69,399,1315195200"; d="scan'208";a="144131136" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 24 Oct 2011 12:05:53 -0400 Received: by pastel.home (Postfix, from userid 20848) id B594258963; Mon, 24 Oct 2011 12:05:52 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> <87fwijdmb0.fsf@mail.jurta.org> <87aa8qbdwt.fsf@mail.jurta.org> Date: Mon, 24 Oct 2011 12:05:52 -0400 In-Reply-To: <87aa8qbdwt.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 24 Oct 2011 18:35:46 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >>>>> "Juri" =3D=3D Juri Linkov writes: >> So I think that fixing (3) is the best choice for now. >> Does the patch below work for you? > Sorry, it doesn't seem to work. After (define-key function-key-map [?=CE= =B2] [?b]), > typing `=CE=B2' in Info still does nothing. Oh, yes, it wasn't complete. Here is a more complete one which seems to work to remap 3 to 4 with 3 globally bound to `undefined'. Stefan =3D=3D=3D modified file 'src/keyboard.c' --- src/keyboard.c 2011-10-03 20:50:54 +0000 +++ src/keyboard.c 2011-10-24 16:05:31 +0000 @@ -9852,7 +9852,9 @@ } } =20 - if (first_binding < nmaps && NILP (submaps[first_binding]) + if (first_binding < nmaps + && NILP (submaps[first_binding]) + && !EQ (defs[first_binding], Qundefined) && indec.start >=3D t) /* There is a binding and it's not a prefix. (and it doesn't have any input-decode-map translation pending). @@ -9879,7 +9881,9 @@ /* If there's a binding (i.e. first_binding >=3D nmaps) we don't want to apply this function-key-mapping. */ - fkey.end + 1 =3D=3D t && first_binding >=3D nmaps, + fkey.end + 1 =3D=3D t + && (first_binding >=3D nmaps + || EQ (defs[first_binding], Qundefined)), &diff, prompt); UNGCPRO; if (done) From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 16:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, Andreas Schwab , Nikos Pitsianis , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131947344213504 (code B ref 9751); Mon, 24 Oct 2011 16:25:01 +0000 Received: (at 9751) by debbugs.gnu.org; 24 Oct 2011 16:24:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RINJi-0003Vk-HG for submit@debbugs.gnu.org; Mon, 24 Oct 2011 12:24:02 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RINJf-0003VL-U2 for 9751@debbugs.gnu.org; Mon, 24 Oct 2011 12:24:01 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id B32F76E8058; Mon, 24 Oct 2011 09:22:26 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 37E2C451C44F; Mon, 24 Oct 2011 09:22:24 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> <87fwijdmb0.fsf@mail.jurta.org> <87aa8qbdwt.fsf@mail.jurta.org> Date: Mon, 24 Oct 2011 19:20:42 +0300 In-Reply-To: (Stefan Monnier's message of "Mon, 24 Oct 2011 12:05:52 -0400") Message-ID: <87ipne9x9h.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > Oh, yes, it wasn't complete. Here is a more complete one which seems to > work to remap 3 to 4 with 3 globally bound to `undefined'. It still does nothing. I guess for testing it, a Greek keyboard layout is not necessary. It's enough to evaluate: (define-key function-key-map [?*] [?b]) and typing `*' is expected to run `beginning-of-buffer' in Info. From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 20:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: lekktu@gmail.com, Andreas Schwab , Nikos Pitsianis , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131948760513970 (code B ref 9751); Mon, 24 Oct 2011 20:21:01 +0000 Received: (at 9751) by debbugs.gnu.org; 24 Oct 2011 20:20:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIR08-0003dH-Sd for submit@debbugs.gnu.org; Mon, 24 Oct 2011 16:20:05 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIR04-0003ci-Qq for 9751@debbugs.gnu.org; Mon, 24 Oct 2011 16:20:02 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiEFAPXGpU5FpYvX/2dsb2JhbABDpwmCCIEGgW4BAQQBViMQCzQSFBgNJIgTtBuIQAShO4RF X-IronPort-AV: E=Sophos;i="4.69,399,1315195200"; d="scan'208";a="144158546" Received: from 69-165-139-215.dsl.teksavvy.com (HELO ceviche.home) ([69.165.139.215]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 24 Oct 2011 16:18:21 -0400 Received: by ceviche.home (Postfix, from userid 20848) id F1366660D4; Mon, 24 Oct 2011 16:18:20 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> <87fwijdmb0.fsf@mail.jurta.org> <87aa8qbdwt.fsf@mail.jurta.org> <87ipne9x9h.fsf@mail.jurta.org> Date: Mon, 24 Oct 2011 16:18:20 -0400 In-Reply-To: <87ipne9x9h.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 24 Oct 2011 19:20:42 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) >> Oh, yes, it wasn't complete. Here is a more complete one which seems to >> work to remap 3 to 4 with 3 globally bound to `undefined'. > It still does nothing. I guess for testing it, a Greek keyboard layout > is not necessary. It's enough to evaluate: > (define-key function-key-map [?*] [?b]) > and typing `*' is expected to run `beginning-of-buffer' in Info. Oh, right because * is not bound to `undefined', instead it's bound to self-insert-command which is remapped to `undefined'. Damn! The patch below at least works for this test case, Stefan === modified file 'src/keyboard.c' --- src/keyboard.c 2011-10-03 20:50:54 +0000 +++ src/keyboard.c 2011-10-24 20:15:14 +0000 @@ -8902,6 +8902,14 @@ return 0; } +static int +test_undefined (Lisp_Object binding) +{ + return (EQ (binding, Qundefined) + || (!NILP (binding) && SYMBOLP (binding) + && EQ (Fcommand_remapping (binding, Qnil, Qnil), Qundefined))); +} + /* Read a sequence of keys that ends with a non prefix character, storing it in KEYBUF, a buffer of size BUFSIZE. Prompt with PROMPT. @@ -9852,7 +9860,9 @@ } } - if (first_binding < nmaps && NILP (submaps[first_binding]) + if (first_binding < nmaps + && NILP (submaps[first_binding]) + && !test_undefined (defs[first_binding]) && indec.start >= t) /* There is a binding and it's not a prefix. (and it doesn't have any input-decode-map translation pending). @@ -9879,7 +9889,9 @@ /* If there's a binding (i.e. first_binding >= nmaps) we don't want to apply this function-key-mapping. */ - fkey.end + 1 == t && first_binding >= nmaps, + fkey.end + 1 == t + && (first_binding >= nmaps + || test_undefined (defs[first_binding])), &diff, prompt); UNGCPRO; if (done) From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2011 04:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, Andreas Schwab , Nikos Pitsianis , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131951752428345 (code B ref 9751); Tue, 25 Oct 2011 04:39:01 +0000 Received: (at 9751) by debbugs.gnu.org; 25 Oct 2011 04:38:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIYmh-0007N7-G5 for submit@debbugs.gnu.org; Tue, 25 Oct 2011 00:38:43 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIYme-0007Mc-Q2 for 9751@debbugs.gnu.org; Tue, 25 Oct 2011 00:38:41 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id CFF9B6E8056; Mon, 24 Oct 2011 21:37:04 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 64A3B451C567; Mon, 24 Oct 2011 21:37:02 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> <87fwijdmb0.fsf@mail.jurta.org> <87aa8qbdwt.fsf@mail.jurta.org> <87ipne9x9h.fsf@mail.jurta.org> Date: Tue, 25 Oct 2011 07:33:46 +0300 In-Reply-To: (Stefan Monnier's message of "Mon, 24 Oct 2011 16:18:20 -0400") Message-ID: <87k47t249t.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> (define-key function-key-map [?*] [?b]) >> and typing `*' is expected to run `beginning-of-buffer' in Info. > > Oh, right because * is not bound to `undefined', instead it's bound to > self-insert-command which is remapped to `undefined'. Damn! > The patch below at least works for this test case, Thanks, now it works! I tested it with single keys in Dired and Info and it translates all single keys and runs commands bound to them. The only case where it still doesn't work is `view-mode'. For example, on Greek keyboards `;' corresponds to `q', so it's easier to test with: (define-key function-key-map [?;] [?q]) Now typing `;' in Info quits it by running `Info-exit', typing `;' in Dired quits it by running `quit-window'. But typing `;' in View mode does nothing, it doesn't run `View-quit'. `C-h k ;' in View mode says: ; runs the command self-insert-command whereas in other modes (e.g. Dired and Help mode) it says: q (translated from ;) runs the command quit-window as expected. From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2011 12:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: lekktu@gmail.com, Andreas Schwab , Nikos Pitsianis , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.13195453949712 (code B ref 9751); Tue, 25 Oct 2011 12:24:02 +0000 Received: (at 9751) by debbugs.gnu.org; 25 Oct 2011 12:23:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIg2D-0002Wb-To for submit@debbugs.gnu.org; Tue, 25 Oct 2011 08:23:14 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIg2B-0002WN-3d for 9751@debbugs.gnu.org; Tue, 25 Oct 2011 08:23:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0JACappk5MCrTo/2dsb2JhbABDqAWBD4EGgW4BAQQBViMFCws0EhQYDSSIE7ReiEMEoT2ERQ X-IronPort-AV: E=Sophos;i="4.69,404,1315195200"; d="scan'208";a="144275416" Received: from 76-10-180-232.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.232]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 25 Oct 2011 08:21:28 -0400 Received: by ceviche.home (Postfix, from userid 20848) id E18BB66158; Tue, 25 Oct 2011 08:21:27 -0400 (EDT) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> <87fwijdmb0.fsf@mail.jurta.org> <87aa8qbdwt.fsf@mail.jurta.org> <87ipne9x9h.fsf@mail.jurta.org> <87k47t249t.fsf@mail.jurta.org> Date: Tue, 25 Oct 2011 08:21:27 -0400 In-Reply-To: <87k47t249t.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 25 Oct 2011 07:33:46 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > But typing `;' in View mode does nothing, it doesn't run `View-quit'. > `C-h k ;' in View mode says: > ; runs the command self-insert-command > whereas in other modes (e.g. Dired and Help mode) it says: That's because view-mode does not change key-bindings, it just overlays its own and set buffer-read-only, so ; is still bound to self-insert-command (which just signals an error). Changing the keyboard.c code so that function-key-map applies also in such a case would be pushing it too far. Stefan From unknown Sun Jun 22 07:55:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nikos Pitsianis Subject: bug#9751: closed (Re: bug#9751: 23.3; Alternative Keyboard Feature/Bug) Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> X-Gnu-PR-Message: they-closed 9751 X-Gnu-PR-Package: emacs Reply-To: 9751@debbugs.gnu.org Date: Tue, 25 Oct 2011 12:57:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1319547422-13316-1" This is a multi-part message in MIME format... ------------=_1319547422-13316-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9751: 23.3; Alternative Keyboard Feature/Bug which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9751@debbugs.gnu.org. --=20 9751: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9751 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1319547422-13316-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9751-done) by debbugs.gnu.org; 25 Oct 2011 12:56:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIgYM-0003Rw-HL for submit@debbugs.gnu.org; Tue, 25 Oct 2011 08:56:26 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIgYK-0003Rk-Ih for 9751-done@debbugs.gnu.org; Tue, 25 Oct 2011 08:56:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqUlAD2xpk5MCrTo/2dsb2JhbABDqAUBAYENgQaBbgEBBAFWIwULCzQSFBgNJIgTtGuIQwShPYRF X-IronPort-AV: E=Sophos;i="4.69,404,1315195200"; d="scan'208";a="144278956" Received: from 76-10-180-232.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.232]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 25 Oct 2011 08:54:42 -0400 Received: by ceviche.home (Postfix, from userid 20848) id C844C66158; Tue, 25 Oct 2011 08:54:41 -0400 (EDT) From: Stefan Monnier To: Juri Linkov Subject: Re: bug#9751: 23.3; Alternative Keyboard Feature/Bug Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> <87fwijdmb0.fsf@mail.jurta.org> <87aa8qbdwt.fsf@mail.jurta.org> <87ipne9x9h.fsf@mail.jurta.org> Date: Tue, 25 Oct 2011 08:54:41 -0400 In-Reply-To: (Stefan Monnier's message of "Mon, 24 Oct 2011 16:18:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9751-done Cc: lekktu@gmail.com, Andreas Schwab , 9751-done@debbugs.gnu.org, Nikos Pitsianis X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > The patch below at least works for this test case, Installed, Stefan ------------=_1319547422-13316-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Oct 2011 07:18:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REc28-0007n2-3r for submit@debbugs.gnu.org; Fri, 14 Oct 2011 03:18:21 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REbqE-0007Uw-2p for submit@debbugs.gnu.org; Fri, 14 Oct 2011 03:06:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REbpb-00070s-BK for submit@debbugs.gnu.org; Fri, 14 Oct 2011 03:05:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:51865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REbpb-00070o-80 for submit@debbugs.gnu.org; Fri, 14 Oct 2011 03:05:23 -0400 Received: from eggs.gnu.org ([140.186.70.92]:41873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REbpa-0007y2-4B for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 03:05:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REbpY-00070c-Id for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 03:05:22 -0400 Received: from duke.cs.duke.edu ([152.3.140.1]:40823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REbpY-0006yi-F3 for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 03:05:20 -0400 Received: from [192.168.1.5] (ppp-94-68-106-191.home.otenet.gr [94.68.106.191]) (authenticated bits=0) by duke.cs.duke.edu (8.14.5/8.14.5) with ESMTP id p9E75BNJ009110 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 14 Oct 2011 03:05:13 -0400 (EDT) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu p9E75BNJ009110 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1318575914; bh=BAwgcTH0WjAtPCUbxOGjhjHbgQtvfJcxts8JjF+ESSw=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Date: Message-Id:To:Mime-Version; b=73XxIL4JZZIbmTOvgwXPxqGOx8FSpbrQw+tWAIa9VPekpJkli7QFmzi+05tCKFxNO RpexvSm5kTptmFqGmRJkQcQxngBB2lwo51xb01S7Is45z+WZgPGemPL89PWN9ETQ8W gENH9odda7p9omjxZjMd4hXEAyzXfkTuthcJ7vYdR/Ev8K8CJKbSPN2bf94lLgQVK7 0VfAWx/Ba2hGjzt36pB5lX0Gl1j5ZvE6+eu0S0TV8h580h/IGQWZRQBr0XknbI5KCf lbzs9AhW76NF3zrXnBq9uwqv6YRkYzulGsNgZySW/7uw/ej82PmDEjGhGaHAjaFlbY Zv0cSKQ7CIADA== From: Nikos Pitsianis Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 23.3; Alternative Keyboard Feature/Bug Date: Fri, 14 Oct 2011 10:05:10 +0300 Message-Id: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 14 Oct 2011 03:18:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) There is a behavior that is not correct. When I use a different keyboard than English, say to enter Greek, the key combinations Ctr and Alt do not work as intented because Ctr-G for example is interpreted as Ctr-Gamma which does not bring the intended outcome. I believe it is a reasonable assumption that Ctr and Alt key combinations in any alternative keyboard should be interpreted as the corresponding English keyboard ones. In GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-03-10 on black.porkrind.org Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--host=3Dx86_64-apple-darwin' = '--build=3Di686-apple-darwin' '--with-ns' = 'build_alias=3Di686-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' = 'CC=3Dgcc -mmacosx-version-min=3D10.5'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: Loading paren...done For information about GNU Emacs and the GNU system, type M-? C-a. Load-path shadows: None found. Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug jka-compr paren cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) ------------=_1319547422-13316-1-- From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2011 15:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, Andreas Schwab , Nikos Pitsianis , 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131955823929401 (code B ref 9751); Tue, 25 Oct 2011 15:58:02 +0000 Received: (at 9751) by debbugs.gnu.org; 25 Oct 2011 15:57:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIjNO-0007e9-TY for submit@debbugs.gnu.org; Tue, 25 Oct 2011 11:57:19 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIjNM-0007e2-LC for 9751@debbugs.gnu.org; Tue, 25 Oct 2011 11:57:17 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id CDD536E805B; Tue, 25 Oct 2011 08:55:37 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 2445D451C47A; Tue, 25 Oct 2011 08:55:35 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <878vogmazh.fsf@mail.jurta.org> <87fwimeety.fsf@mail.jurta.org> <87sjmlhwbt.fsf@mail.jurta.org> <87fwijdmb0.fsf@mail.jurta.org> <87aa8qbdwt.fsf@mail.jurta.org> <87ipne9x9h.fsf@mail.jurta.org> Date: Tue, 25 Oct 2011 18:45:01 +0300 In-Reply-To: (Stefan Monnier's message of "Tue, 25 Oct 2011 08:54:41 -0400") Message-ID: <87ehy1t6ky.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> The patch below at least works for this test case, > > Installed, Thanks! This old problem is finally solved: http://lists.gnu.org/archive/html/emacs-devel/2009-05/msg00091.html Building the reverse mapping is possible now with a function like: (defun reverse-input-method (input-method) "Build the reverse mapping of single letters from INPUT-METHOD." (interactive (list (read-input-method-name "Use input method (default current): "))) (if (and input-method (symbolp input-method)) (setq input-method (symbol-name input-method))) (let ((current current-input-method) (modifiers '(nil (control) (meta) (control meta)))) (when input-method (activate-input-method input-method)) (when (and current-input-method quail-keyboard-layout) (dolist (map (cdr (quail-map))) (let* ((to (car map)) (from (quail-get-translation (cadr map) (char-to-string to) 1))) (when (and (characterp from) (characterp to)) (dolist (mod modifiers) (define-key function-key-map (vector (append mod (list from))) (vector (append mod (list to))))))))) (when input-method (activate-input-method current)))) From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 11 19:22:55 2012 Received: (at control) by debbugs.gnu.org; 12 Jan 2012 00:22:55 +0000 Received: from localhost ([127.0.0.1]:54258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl8RS-0007UO-DP for submit@debbugs.gnu.org; Wed, 11 Jan 2012 19:22:54 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:34890 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl8RP-0007UG-GP for control@debbugs.gnu.org; Wed, 11 Jan 2012 19:22:52 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 2FAA2451C6FF for ; Wed, 11 Jan 2012 16:21:30 -0800 (PST) From: Juri Linkov To: control@debbugs.gnu.org Subject: unarchive 9751 Organization: JURTA Date: Thu, 12 Jan 2012 02:22:01 +0200 Message-ID: <87r4z5db2u.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) unarchive 9751 From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jan 2012 00:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.1326328899981 (code B ref 9751); Thu, 12 Jan 2012 00:42:02 +0000 Received: (at 9751) by debbugs.gnu.org; 12 Jan 2012 00:41:39 +0000 Received: from localhost ([127.0.0.1]:54269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl8jb-0000Fl-2y for submit@debbugs.gnu.org; Wed, 11 Jan 2012 19:41:39 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:49812 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl8jY-0000Fd-Fp for 9751@debbugs.gnu.org; Wed, 11 Jan 2012 19:41:37 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id A7D66451C6FF; Wed, 11 Jan 2012 16:40:14 -0800 (PST) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> Date: Thu, 12 Jan 2012 02:35:54 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 19 Oct 2011 22:10:05 -0400") Message-ID: <87ty41ahal.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>>> What is the way in emacs to alias Ctr-chi to Ctr-x ? >>> I'd do it in input-decode-map: >>> (define-key input-decode-map [?\C-=CF=87] [?\C-x]) >>> (define-key input-decode-map [?\C-=CF=88] [?\C-s]) >> The problem is that this method doesn't work for self-inserting charac= ters, >> i.e. to be able to handle keybindings that contain characters without >> modifiers like e.g. `C-x b' we can't use >> (define-key input-decode-map [?=CE=B2] [?b]) > > That's a problem indeed. I guess we can use function-key-map instead, = tho. There is a serious problem with using `function-key-map'. The users who encrypt gpg files in Emacs, can't decrypt them using command line tools. The reason is that `epa-encrypt-file' uses `read-passwd' to read a passphrase for symmetric encryption, but some keys are translated according to `function-key-map'. Trying to decrypt the file with command line tools using the same passphrase fails because command line tools don't use `function-key-map' translation for passphrases. This problem can be fixed with the following patch: =3D=3D=3D modified file 'lisp/subr.el' --- lisp/subr.el 2012-01-07 19:50:04 +0000 +++ lisp/subr.el 2012-01-12 00:34:03 +0000 @@ -2092,6 +2092,7 @@ (defun read-passwd (prompt &optional con (echo-keystrokes 0) (cursor-in-echo-area t) (message-log-max nil) + (local-function-key-map nil) (stop-keys (list 'return ?\r ?\n ?\e)) (rubout-keys (list 'backspace ?\b ?\177))) (add-text-properties 0 (length prompt) From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jan 2012 02:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.132633653812053 (code B ref 9751); Thu, 12 Jan 2012 02:49:02 +0000 Received: (at 9751) by debbugs.gnu.org; 12 Jan 2012 02:48:58 +0000 Received: from localhost ([127.0.0.1]:54309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlAin-00038L-Pc for submit@debbugs.gnu.org; Wed, 11 Jan 2012 21:48:58 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:13132) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlAil-00038E-Ov for 9751@debbugs.gnu.org; Wed, 11 Jan 2012 21:48:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EAERJDk9FxKkV/2dsb2JhbABDqlSCNoEGgXIBAQQBViMFCwswBAgKFBgNJIgNqiuNVYkDgxoEiDqaWoRS X-IronPort-AV: E=Sophos;i="4.71,495,1320642000"; d="scan'208";a="156338478" Received: from 69-196-169-21.dsl.teksavvy.com (HELO ceviche.home) ([69.196.169.21]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Jan 2012 21:48:25 -0500 Received: by ceviche.home (Postfix, from userid 20848) id F049766110; Wed, 11 Jan 2012 21:48:24 -0500 (EST) From: Stefan Monnier Message-ID: References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <87ty41ahal.fsf@mail.jurta.org> Date: Wed, 11 Jan 2012 21:48:24 -0500 In-Reply-To: <87ty41ahal.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 12 Jan 2012 02:35:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > This problem can be fixed with the following patch: > === modified file 'lisp/subr.el' > --- lisp/subr.el 2012-01-07 19:50:04 +0000 > +++ lisp/subr.el 2012-01-12 00:34:03 +0000 > @@ -2092,6 +2092,7 @@ (defun read-passwd (prompt &optional con > (echo-keystrokes 0) > (cursor-in-echo-area t) > (message-log-max nil) > + (local-function-key-map nil) > (stop-keys (list 'return ?\r ?\n ?\e)) > (rubout-keys (list 'backspace ?\b ?\177))) > (add-text-properties 0 (length prompt) I'd rather not go down that path (it might fix this problem but would introduce others). I wrote it too late for 24.1, but I'm using now a version of read-passwd that uses read-string, so function-key-map (as well as all your familiar key bindings) works just like for normal text. I think it will fix this problem in a more satisfactory way (but it's too late for 24.1). Stefan (defun read-passwd (prompt &optional confirm default) "Read a password, prompting with PROMPT, and return it. If optional CONFIRM is non-nil, read the password twice to make sure. Optional DEFAULT is a default password to use instead of empty input. This function echoes `.' for each character that the user types. Once the caller uses the password, it can erase the password by doing (clear-string STRING)." (if confirm (let (success) (while (not success) (let ((first (read-passwd prompt nil default)) (second (read-passwd "Confirm password: " nil default))) (if (equal first second) (progn (and (arrayp second) (clear-string second)) (setq success first)) (and (arrayp first) (clear-string first)) (and (arrayp second) (clear-string second)) (message "Password not repeated accurately; please start over") (sit-for 1)))) success) (let (minibuf) (minibuffer-with-setup-hook (lambda () (setq minibuf (current-buffer)) ;; Turn off electricity. (set (make-local-variable 'post-self-insert-hook) nil) (add-hook 'after-change-functions (lambda (beg end len) (clear-this-command-keys) (setq beg (min end (max (minibuffer-prompt-end) beg))) (dotimes (i (- end beg)) (put-text-property (+ i beg) (+ 1 i beg) 'display (string ?.)))) nil t)) (unwind-protect (read-string prompt nil (let ((sym (make-symbol "forget-history"))) (set sym nil) sym) default) (when (buffer-live-p minibuf) (with-current-buffer minibuf (erase-buffer)))))))) From unknown Sun Jun 22 07:55:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jan 2012 10:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 9751@debbugs.gnu.org Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.132636464021126 (code B ref 9751); Thu, 12 Jan 2012 10:38:02 +0000 Received: (at 9751) by debbugs.gnu.org; 12 Jan 2012 10:37:20 +0000 Received: from localhost ([127.0.0.1]:54622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlI24-0005Uh-DN for submit@debbugs.gnu.org; Thu, 12 Jan 2012 05:37:20 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:49073 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlI22-0005Ua-DV for 9751@debbugs.gnu.org; Thu, 12 Jan 2012 05:37:19 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 0A29E451C795; Thu, 12 Jan 2012 02:35:54 -0800 (PST) From: Juri Linkov Organization: JURTA References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> <87r528pllc.fsf@mail.jurta.org> <87ty41ahal.fsf@mail.jurta.org> Date: Thu, 12 Jan 2012 12:33:48 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 11 Jan 2012 21:48:24 -0500") Message-ID: <877h0x6whf.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > I'd rather not go down that path (it might fix this problem but would > introduce others). > I wrote it too late for 24.1, but I'm using now a version of read-passwd > that uses read-string, so function-key-map (as well as all your familiar > key bindings) works just like for normal text. I think it will fix this > problem in a more satisfactory way (but it's too late for 24.1). Thanks, using `read-string' will not translate self-inserting characters thus it will fix this problem (and also with `read-string' it would be much more convenient to enter passwords). Waiting for it in 24.2...