From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Proper way to add bindings under C-x 8 Date: Tue, 30 Nov 2021 17:43:53 +0100 Message-ID: <87a6hl386u.fsf@gmail.com> References: <835z0u596d.fsf@gnu.org> <83zgy548vr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34329"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Howard Melman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 30 17:46:45 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ms6HF-0008hs-BB for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 17:46:45 +0100 Original-Received: from localhost ([::1]:50214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ms6HE-0001o6-6K for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 11:46:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms6Eb-0007lb-As for help-gnu-emacs@gnu.org; Tue, 30 Nov 2021 11:44:01 -0500 Original-Received: from [2a00:1450:4864:20::32e] (port=34623 helo=mail-wm1-x32e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ms6EX-0004p6-EN for help-gnu-emacs@gnu.org; Tue, 30 Nov 2021 11:43:59 -0500 Original-Received: by mail-wm1-x32e.google.com with SMTP id m25-20020a7bcb99000000b0033aa12cdd33so8048895wmi.1 for ; Tue, 30 Nov 2021 08:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=wjt1lvVd/pgmC4C79t0GNBprmxUsskWLPyFTQxk79xg=; b=d73crE8p3UXDGdrUARnPs/2tlvK94yZ1nV24yYnI25TzsXHqYcTQbRlW+W5PWN95RD Khpfq6MfBYAp6oK+Cli7y+tTG9w1cf33GER/Dfu7FlguMTckmnr7WVWsSpRh0J8VW+0k 9RqLT109b41od3okZxpT+Yd4Cr8LxYNVprgG6xayiPj3JwfInnfnRauzXZRvXU5t7bDM JSmzfkBWcL7xvYF6XzbhrnNserFvp4Dzu9Bua6ZDkK+/I1jhfqVSBv6a8rbRTNLNYh7/ N+j2PsRgOPCzZiSSREGIyoknzMB8T7lR/hTMFIDLNVTUfofk34ZNrwiJqU8nszA4m3be 4xgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=wjt1lvVd/pgmC4C79t0GNBprmxUsskWLPyFTQxk79xg=; b=qXlGBgw4G6cJu1YUOPuWODp2sAxT8RvVF0egFepeVxajCIFvTSz8i20Beu9miTakpb n4iAlRslDdIWPsBsbDvrbFnZvsdFoPCd6Tv7vdN4ziQHce3oTWUVXk6gIo8riRLkYWYB pZzZTPx6dRO0jSc4NA6IxvVVdCTC+H1gViUl6ilCNXNmXibHNXp6nqT5eLIUHP3sdj5u yYrrN9xMr+O5eJRSJ9AP2vsSBo0DltZe+WkmqsWvHj+wmENre6UPYfMFB7+tHkNnsNVs HXh3+l+3/0cbKjhflP+qhoFNfsjTgfGRERVFiAelRRSK+yJwJx71Cnyx9cJu6gVvSxNx q4Mw== X-Gm-Message-State: AOAM531VypV72PmMGZVTzNe//jeDKoLmzPcgMrKZ9Pgkc4qmSZOv53Zj XmokfhEm4u0TdUnlBwr+no2dmN5lR5w= X-Google-Smtp-Source: ABdhPJwsJ5lc9LNhEThPwnD8SrZkxWDHguWWQ6mFUmZN3gaE9sPtW7D8etwxvC9ykCN3zFG1+xXERg== X-Received: by 2002:a1c:8002:: with SMTP id b2mr59160wmd.2.1638290635794; Tue, 30 Nov 2021 08:43:55 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:3c45:157c:7662:2fd3]) by smtp.gmail.com with ESMTPSA id o4sm20693945wry.80.2021.11.30.08.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 08:43:54 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: (Howard Melman's message of "Mon, 29 Nov 2021 11:21:46 -0500") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134740 Archived-At: >>>>> On Mon, 29 Nov 2021 11:21:46 -0500, Howard Melman = said: Howard> Well, it mostly works just fine. I'm using the following Howard> and they work up until the "card suits" section: Howard> ;; card suits Howard> ;; ("es" . [?=E2=99=A0=EF=B8=8F]) Howard> ;; ("eC" . [?=E2=99=A3=EF=B8=8F]) Howard> ;; ("eH" . [?=E2=99=A5=EF=B8=8F]) Howard> ;; ("eD" . [?=E2=99=A6=EF=B8=8F]) Howard> )) Howard> If the card suits are uncommented I get the error: Howard> (invalid-read-syntax "?") That may or may not be a bug, I=CA=BCm not sure. In the meantime, there=CA= =BCs nothing stopping you from adding bindings to the keymap used for 'C-x' without using iso-transl-define-keys. It=CA=BCs a bit more verbose, but works fine: (let ((map (make-sparse-keymap))) (define-key map "s" [?=E2=99=A0?=EF=B8=8F]) (define-key map "C" [?=E2=99=A3?=EF=B8=8F]) (define-key map "H" [?=E2=99=A5?=EF=B8=8F]) (define-key map "D" [?=E2=99=A6?=EF=B8=8F]) (define-key ctl-x-map "8e" map)) Robert --=20