unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Passing user selection to a command
@ 2024-03-19 10:01 Heime
  2024-03-19 11:01 ` Bruno Barbier
  0 siblings, 1 reply; 8+ messages in thread
From: Heime @ 2024-03-19 10:01 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

How can I pass the user selection to 'activate-input-method' ?


(defun glossus ()

  (interactive
   (list
    (let ( (cseq '("italian-alt-postfix" "italian-keyboard"
                     "italian-postfix")) )
      (completing-read
        " Glossus: " cseq nil t "italian-postfix"))))

  (setq ispell-local-dictionary "it_IT")
  (activate-input-method "italian-postfix") )




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-03-19 16:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-19 10:01 Passing user selection to a command Heime
2024-03-19 11:01 ` Bruno Barbier
2024-03-19 12:21   ` Heime
2024-03-19 12:32     ` Bruno Barbier
2024-03-19 14:19       ` Heime
2024-03-19 15:56         ` Bruno Barbier
2024-03-19 16:26           ` Heime
2024-03-19 16:11         ` Stefan Monnier via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).