From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: Re: How to extend the ctl-x 8 map? Date: Sun, 1 Jan 2023 14:34:39 -0600 Message-ID: References: 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="5297"; mail-complaints-to="usenet@ciao.gmane.io" To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 01 21:35:27 2023 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 1pC53H-0001Ec-PX for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Jan 2023 21:35:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pC532-0004FX-1A; Sun, 01 Jan 2023 15:35:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pC530-0004FC-0E for help-gnu-emacs@gnu.org; Sun, 01 Jan 2023 15:35:10 -0500 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pC52y-0005Jk-Cv for help-gnu-emacs@gnu.org; Sun, 01 Jan 2023 15:35:09 -0500 Original-Received: by mail-lf1-x129.google.com with SMTP id f34so38955214lfv.10 for ; Sun, 01 Jan 2023 12:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=BoX5iMRjXT/yJKXpuT3zV6q3PYE0PwywOOlYZNW5RDU=; b=m2ztMGM1YWAwXEFzbntB4p2SMHd+14vUOMT1wsvKCqLjJKc0doEaRmsnpSGr1609U2 KKCVkUK0wv4J1JWIx8196hOI8mlU/FAMV9R4zxtBNJF5cVrj/QKs7frFaQJWwAh2t6cd 1DcV/BiLB90cul1GhNjGyXMMnw8oXio6i6WPwOXQbHrW+LIICfjbLI9NIA4mrDQULDCv Hbn2VyrxCrDt5O6uMkV445npc4rq8+/ZyYL2oZ/vgUSA5y7eyHAkM6BkCKIbeNScOvRv tflZvsjTwSp6FmhnUFwvAHAMNm0jtqNy37mWiT5b9nn+U9QXQe9dgPCPXe3PA1hAqLka 9WgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BoX5iMRjXT/yJKXpuT3zV6q3PYE0PwywOOlYZNW5RDU=; b=MPY8nox45kAgx5nFXynkEhc39jTFVtZvd0NvckVO5qfhKP6fRStZzHbbdtND8E+3Zu ubED4NYSsobPR4fAbjo/6pLKTPBs0H1LjVi0WTBDIBmhRLC6Rad0Ag/9PTaUPt6oqKXV vu0CjEyofCOb3fan+4HaURrFB6xkkccqePVfV7p/RESCHDGj3QV7+WyOxtsBWOvrCMM2 zXD7/juJj+YwY5YqJV3yH47zh3WPeIE/V2CfLo0g+Z4JgtfgKdBNHOkU2k+D/ILRR31R BnqAvKVUCR65GSr14Clg8Wyxb2qRJtOkOWyCAFBldWt17U75K1iR/IyKo3PGb7jGiGxF yTlw== X-Gm-Message-State: AFqh2krEUMG1g+lXRvieuV12l1cJJ4nilxUUlRrC6bOEJY1kGGmCr5OI r8lw8mlY6naTzaAQ6Wzs0RQqfru70iTgCHB3WVbX8sUvJI5Ih4I= X-Google-Smtp-Source: AMrXdXuszq1QRvAECpS/tQkMP2U8HMgWZMzlBr8lT6U8vRW8k7qV58MxryQ4QKnbh9N2GujwfOf/LfPQaS53hNtmZVw= X-Received: by 2002:a05:6512:3baa:b0:4b5:59aa:402a with SMTP id g42-20020a0565123baa00b004b559aa402amr4032419lfv.633.1672605305983; Sun, 01 Jan 2023 12:35:05 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=skip.montanaro@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142088 Archived-At: > > I found myself at a loss to type =C5=81 characters in an email today. I r= ealize > I can type CTL-X 8 RET and enter the Unicode phrase corresponding to that > letter (which I didn't know), but would like something a bit less > verbose, like CTL-X 8 / L. I see an iso-spanish function in iso-cvt.el an= d > corresponding translation table, but don't understand how it's involved (= if > at all) with the CTL-X 8 keymap stuff. Does someone have an example of > extending the reach of that keymap? > After a bit more reading, I think I figured it out. iso-cvt.el isn't involved at all, but iso-transl.el is. I came up with the following in my init.el file: (defvar polish-language '("Polish" (",A" . [?=C4=84]) (",a" . [?=C4=85]) ("'C" . [?=C4=86]) ("'c" . [?=C4=87]) (",E" . [?=C4=98]) (",e" . [?=C4=99]) ("/L" . [?=C5=81]) ("/l" . [?=C5=82]) ("'N" . [?=C5=83]) ("'n" . [?=C5=84]) ("'O" . [?=C3=93]) ("'o" . [?=C3=B3]) ("'S" . [?=C5=9A]) ("'s" . [?=C5=9B]) ("'Z" . [?=C5=B9]) ("'z" . [?=C5=BA]))) (require 'iso-transl) (add-to-list 'iso-transl-language-alist polish-language) The only pairs I didn't add were ".Z" and ".z" because "C-x 8 ." doesn't lead to a keymap. I suppose I could cheat and use ",Z" and ",z", but I let it go for now. Skip