From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.help Subject: Re: Displaying result of describe-input-method Date: Wed, 27 Mar 2024 18:26:01 -0400 Message-ID: <87plvffh1i.fsf@gmail.com> 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="19503"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 27 23:26:55 2024 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 1rpbjS-0004qH-Mw for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Mar 2024 23:26:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpbih-0000hR-M8; Wed, 27 Mar 2024 18:26:07 -0400 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 1rpbig-0000hA-9Z for help-gnu-emacs@gnu.org; Wed, 27 Mar 2024 18:26:06 -0400 Original-Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpbie-0008LZ-NV for help-gnu-emacs@gnu.org; Wed, 27 Mar 2024 18:26:06 -0400 Original-Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-789e5021703so17683985a.0 for ; Wed, 27 Mar 2024 15:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711578363; x=1712183163; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=g2xK1BHkvG8jilDn8wUusg8MEhouppLCnzqjzfb2fhc=; b=E5WiWBLKmpINoza7V0FzC7RO3RQcufD0ce9L6w/0Qenqs/T8OF45747Wd8ljBZTnvG BiLHxVoYfN3pcZFndpbGCPaM6yFHFqpG4Q+ZlJCu5x9jtWuzasNcPfQKtHz2ezMxSm6J MeEbogJduUEi5vNpzh3nt/YBQBliWdRSIEt2TGeixwpG4qoS7lQxNHWBXv0AvZe+pmyq t6/p7esU6gm9xAYB5GZtGdGA8Wv2pGOaFZQeHmqJK7VteFtzPLdEcz2HgJf7fkPpJzY3 eVRs338X8vg0x7Dl6k0zwlDoOL7A3prjhFfUnglp5P1pW7Q8NAurTsQ5LMx7uWFIn/YF HFDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711578363; x=1712183163; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=g2xK1BHkvG8jilDn8wUusg8MEhouppLCnzqjzfb2fhc=; b=PaDM49FkN4hOURWA2ih1U2naUmQPnn+vYSNbp/jtSlmlbDKFREjAyHUW1w3dYvZAKC S7q8XXml5ocQPb9louLJvxnmLWilonRtZ3r+ZA+QL9wXTqsQjCv6RNXyrBx9pMOdgc8Q FIWPOuhzp6q8AmsUqAh0NKRdNTzQgmQ/WB+LdlejOxFRyx9GvKIUSWH0YuaG2A1Mj1pB iCGig0Z2JuELrvUuZYL/dkCujqZG5ToRhzUdV/V10/9YRMKY+a/z6JXGzxmQ3qy2jcZF R3BhMBcz8e3Hn2gvv2xf/1wsEK4YrfhNuh+5FmaC3SDHiEXGKVL+na0r2pvCOsRwmaLP kGUw== X-Gm-Message-State: AOJu0YxLBB25Gz+vXLuCqj2p4S9JMXVvMzrSzDiE/9Uiy2TFYO3NZk6r aLSMxyUalCUofVqbR3w40naB7p2Bc7r3Jy29mNGthUE/O1i8ly1jCjR+cjV3Omo= X-Google-Smtp-Source: AGHT+IFVAOIpNWCT/Osk5nXCIMD9i7UD0iAaeTV8xOwddpADk7iwHdTNSC/j0j/zk57jzTjKaoH1bQ== X-Received: by 2002:a05:620a:2442:b0:788:3121:bcb7 with SMTP id h2-20020a05620a244200b007883121bcb7mr1091557qkn.20.1711578363400; Wed, 27 Mar 2024 15:26:03 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a821:2b00::5acf]) by smtp.gmail.com with ESMTPSA id o24-20020a05620a229800b0078a469ada0fsm58026qkh.67.2024.03.27.15.26.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 15:26:02 -0700 (PDT) In-Reply-To: (Heime's message of "Wed, 20 Mar 2024 14:12:26 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=tpeplt@gmail.com; helo=mail-qk1-x729.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, 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-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:146188 Archived-At: Heime writes: > Want to display the result of calling 'describe-input-method' based on a = user > selection. But I cannot get the resulting text to be displayed. > > (defun razad (uselec) > (interactive > (list > (let ( (cseq '("icelandic-keyboard" "italian-alt-postfix" "icelandic-= postfix")) ) > (completing-read > " Lingu: " cseq nil t "icelandic-postfix")))) > > (describe-input-method uselec) > ;; (call-interactively 'describe-input-method) > > ) The resulting text is displayed in a *Help* buffer. Are you not seeing that result? Using Emacs version 29.2: 1. Start emacs from a shell prompt: $ emacs -Q 2. Copy your definition above to the *scratch* buffer and then evaluate it to define the command =E2=80=98razad=E2=80=99. 3. Invoke the command =E2=80=98razad=E2=80=99: M-x razad 4. At the prompt " Lingu: icelandic-postfix", accept the default by pressing RET. 5. A second window is displayed with a *Help* buffer that has the following contents: Input method: icelandic-postfix (mode line indicator:IS<) Icelandic (=C3=8Dslenska) input method with postfix modifiers A' -> =C3=81 E' -> =C3=89 I' -> =C3=8D O' -> =C3=93 U' -> =C3=9A Y' -> =C3=9D AE -> =C3=86 OE -> =C3=96 D/ -> =C3=90 (eth) T/ -> =C3=9E (thorn) E=3D -> =E2=82=AC Doubling the postfix separates the letter and postfix: e.g. a'' -> a' KEY SEQUENCE ------------ You can input characters by the following key sequences: key char [type a key sequence to insert the corresponding character] --- ---- --- ---- --- ---- --- ---- --- ---- --- ---- --- ---- A' =C3=81 E' =C3=89 OE =C3=96 Y' =C3=9D d/ =C3=B0 o' =C3= =B3 u' =C3=BA AE =C3=86 I' =C3=8D T/ =C3=9E a' =C3=A1 e' =C3=A9 oe =C3= =B6 y' =C3=BD D/ =C3=90 O' =C3=93 U' =C3=9A ae =C3=A6 i' =C3=AD t/ =C3=BE -- End of *Help* buffer text --