From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#43084: toggle-korean-input-method, Korean with Dvorak Date: Wed, 27 Jan 2021 07:33:31 +0100 Message-ID: <87sg6m99dw.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19907"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43084@debbugs.gnu.org To: "L.J. Lee" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 27 07:34:11 2021 Return-path: Envelope-to: geb-bug-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 1l4eP3-00053l-Ur for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 07:34:09 +0100 Original-Received: from localhost ([::1]:59754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4eP3-000699-1z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 01:34:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4eOw-00068d-6Z for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 01:34:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4eOv-0008Iq-TO for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 01:34:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4eOv-0006VJ-Ob for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 01:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jan 2021 06:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43084 X-GNU-PR-Package: emacs Original-Received: via spool by 43084-submit@debbugs.gnu.org id=B43084.161172922524962 (code B ref 43084); Wed, 27 Jan 2021 06:34:01 +0000 Original-Received: (at 43084) by debbugs.gnu.org; 27 Jan 2021 06:33:45 +0000 Original-Received: from localhost ([127.0.0.1]:43473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4eOf-0006UX-8T for submit@debbugs.gnu.org; Wed, 27 Jan 2021 01:33:45 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:37294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4eOd-0006UF-SF for 43084@debbugs.gnu.org; Wed, 27 Jan 2021 01:33:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iFb/KObD0zISgRSKyz314//U1zeEqQbd5KKPtvNUC5o=; b=hykneVxp6O+7E9Jr4DaFL54TLY P5sMPZlEW9CsYkWFHhdO6vLBecWrEwBXMbOIhhmyCdvfBdIq74seWa9huyl5VdF5Qu2A98hJ+eh66 kc55ojnOg1lLhz081ubIvsh+p9vkSG3hmO5gX6vNquzHV0VLs9OJKe7Sy5rAZX51H3Jg=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4eOT-00035q-0U; Wed, 27 Jan 2021 07:33:37 +0100 X-Now-Playing: Richard Bone's _Third Noise Principle (Formative North American Electronica 1975-1984) (1)_: "Mambopolis" In-Reply-To: (L. J. Lee's message of "Fri, 28 Aug 2020 18:41:08 +0900") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198675 Archived-At: "L.J. Lee" writes: > I was puzzled, however, that my Korean layout > reverted to the more common 2-beol-sik (korean-hangul) whenever I > pressed S-SPC. C-\ would work to switch my layout correctly, but > pressing S-SPC even once to toggle to Korean layout would change the > default layout to korean-hangul and necessitate a manual change back to > korean-hangul3f > using M-x set-input-method. > > I found out through language-info-alist that S-SPC is > bound to toggle-korean-input-method, and used the function query to > track this function to korea-util.el under lisp/language. > > As expected, the toggle-korean-input-method function set the > default input method to korean-hangul regardless of user settings, so I > redefined it from init.el to set the default-korean-keyboard as > korean-hangul3f. Here's the code I used: > > (with-eval-after-load "language/korea-util" > (defun toggle-korean-input-method () > "Turn on or off a Korean text input method for the current butter." > (interactive) > (if current-input-method > (deactivate-input-method) > (activate-input-method) > (concat "korean-hangul3f" default-korean-keyboard))))) I don't use the Korean input methods, so this is totally uninformed -- but looking at the code, your alteration seems to be the same as putting (setq default-korean-keyboard "3f") in your init file? In which case configuring this is already supported in Emacs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no