From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.bugs Subject: bug#9897: 24.0.90; w32 control character configuration is severely lacking compared to ns-win.el Date: Fri, 28 Oct 2011 15:43:17 -0400 Message-ID: References: <83hb2t9cmt.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319831062 1362 80.91.229.12 (28 Oct 2011 19:44:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2011 19:44:22 +0000 (UTC) Cc: 9897@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 28 21:44:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJsLb-0006UB-Pc for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 21:44:11 +0200 Original-Received: from localhost ([::1]:60556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJsLa-0001JI-NS for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 15:44:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJsLY-0001J2-38 for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2011 15:44:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJsLW-0003qf-O7 for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2011 15:44:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJsLW-0003qb-Mb for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2011 15:44:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RJsNO-0000o7-2Q for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2011 15:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tim Visher Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Oct 2011 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9897 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9897-submit@debbugs.gnu.org id=B9897.13198311373070 (code B ref 9897); Fri, 28 Oct 2011 19:46:02 +0000 Original-Received: (at 9897) by debbugs.gnu.org; 28 Oct 2011 19:45:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJsMz-0000nT-4W for submit@debbugs.gnu.org; Fri, 28 Oct 2011 15:45:37 -0400 Original-Received: from mail-iy0-f172.google.com ([209.85.210.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJsMw-0000nM-IJ for 9897@debbugs.gnu.org; Fri, 28 Oct 2011 15:45:35 -0400 Original-Received: by iabn5 with SMTP id n5so4443859iab.3 for <9897@debbugs.gnu.org>; Fri, 28 Oct 2011 12:43:38 -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=ZUgpFms5tqm7wF94INOV2K7v+Ze3IhOtiCNgAw8ZrI4=; b=AXUBOb9S/ziIdtBNOBRH2g2hKv+tvU9+VG+AydIC7nZXn3naAlB1QILjErG5uavkK1 Jr7j980nOyqabdUN2mnDEa3WuDE9Mf/Rx4deARO4V7TRyjdwlM5D0h734UcilduikRVN lCYWtJKG5zlm+/vH3HmAA23kDhzPL7YbWibaw= Original-Received: by 10.231.8.205 with SMTP id i13mr9609ibi.34.1319831018094; Fri, 28 Oct 2011 12:43:38 -0700 (PDT) Original-Received: by 10.231.17.194 with HTTP; Fri, 28 Oct 2011 12:43:17 -0700 (PDT) In-Reply-To: <83hb2t9cmt.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 28 Oct 2011 15:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53258 Archived-At: On Fri, Oct 28, 2011 at 2:47 PM, Eli Zaretskii wrote: >> From: Tim Visher >> Date: Fri, 28 Oct 2011 11:14:06 -0400 >> >> I'm trying to configure what pressing Alt, Windows, Apps, and Control on >> a windows keyboard translates to in emacs. I use emacs on both Macs and >> Windows boxen and I'm used to configuring the keys on macs using >> ns-win.el bindings like: >> >> =C2=A0 =C2=A0 (if (boundp 'mac-command-modifier) (setq mac-command-modif= ier 'control)) >> =C2=A0 =C2=A0 (if (boundp 'mac-option-modifier) (setq mac-option-modifie= r 'meta)) >> =C2=A0 =C2=A0 (if (boundp 'mac-control-modifier) (setq mac-control-modif= ier 'super)) >> >> Compared to that library, the ability to configure what the meta keys >> map to on windows is severely lacking, not allowing configuration at all >> of what the control-modifier is mapped to, and providing only toggles >> for the windows keys and apps keys. > > What other keys do you have on your keyboard that you'd like to > configure on Windows? =C2=A0There's no "command modifier" and no "option > modifier" on Windows. > > Note that in addition to what you mentioned, there's > w32-enable-caps-lock and w32-enable-num-lock that you can use to > produce 2 more symbols. > Thanks for your quick response! I'm essentially looking for modifier key parity with ns ala: http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/lisp/term/ns-win.= el#L182 On Windows, that list would probably look like: (defvaralias 'pc-allow-anti-aliasing 'pc-antialias-text) (defvaralias 'pc-windows-modifier 'pc-windows-modifier) (defvaralias 'pc-right-windows-modifier 'pc-right-windows-modifier) (defvaralias 'pc-control-modifier 'pc-control-modifier) (defvaralias 'pc-right-control-modifier 'pc-right-control-modifier) (defvaralias 'pc-alt-modifier 'pc-alt-modifier) (defvaralias 'pc-right-alt-modifier 'pc-right-alt-modifier) (defvaralias 'pc-function-modifier 'pc-function-modifier) (defvaralias 'pc-apps-modifier 'pc-apps-modifier) And then you could set them using the same contract that I listed in the opening mail. Make sense?