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: Fri, 29 Jan 2021 06:08:32 +0100 Message-ID: <877dnwxrcf.fsf@gnus.org> References: <87sg6m99dw.fsf@gnus.org> <877dnwz6jn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17641"; 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 Fri Jan 29 06:09:28 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 1l5M2C-0004Uz-5q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jan 2021 06:09:28 +0100 Original-Received: from localhost ([::1]:55168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5M2B-0005F7-3W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jan 2021 00:09:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5M1m-0004ek-Uu for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 00:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5M1m-0004aJ-Ng for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 00:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5M1m-0001Nc-IH for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 00:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jan 2021 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43084 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 43084-submit@debbugs.gnu.org id=B43084.16118969255280 (code B ref 43084); Fri, 29 Jan 2021 05:09:02 +0000 Original-Received: (at 43084) by debbugs.gnu.org; 29 Jan 2021 05:08:45 +0000 Original-Received: from localhost ([127.0.0.1]:50833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5M1V-0001N6-06 for submit@debbugs.gnu.org; Fri, 29 Jan 2021 00:08:45 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:41546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5M1S-0001Mt-Q6 for 43084@debbugs.gnu.org; Fri, 29 Jan 2021 00:08:43 -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=pmoisG6uARTOe6342wYM741SQsAObBw/+Ha0ITxHAew=; b=N54bkUMNjPBMonyzoGoyCvaJuE udx5jacI6X1/X2/qgyU990y/Xs6jfrvRoztTh4gyQqOFBBcgh79AnuM27uDPGeS4N4h1TF3NeRf1D iDnIvnnRMDZVyVN8HSkid0afgQUbUL4Cl/a2fRd5br+5GNT01DBewq4xUQDuQFC11oWk=; 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 1l5M1J-0007ra-VC; Fri, 29 Jan 2021 06:08:36 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVHR1KPcI5SbqwS DxDIwMX///8rhAWZAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UBHQQyE3uJOxAAAAGcSURBVDjLhdKN ccIwDAVgxcoAcfEAxjCAEjFA3Gr/mfpkB0KP5OrLHYTPevIPNMTjQRtMH1D6eH6+xr8gJ5CXI8jh BG54DoHxLCj7ADTWcACer+G2QdgB+RmwvfMOHMpNywbC4QUK09JnZuGhxHrFWd0zQJ8wzTwmm4IZ 3VkaaIOofLdKA6AAsgrW5b9HFrOVR0DWBb1l1eC3oqrJWB0IwLrcdIxpLZmmAXHJQUa0EOykVmwy 00JCBkBdVl1Yg1XGGfC8Dg8HLAggrFiJfaE//gVjA9nA375LuU5KT8CihAUV4wogYWsQNsC0VP2Q fMW9AklCvltzyD2VJKCFUosy62AdWL15q7DwBoxQr5k3KEqth3gSK7U1GgW/nPEVhadDDCX0vZLE liR+1BZrwK2rONAV81lo8uDERN6zHftVPEv6OYi2xTy820oX8SYOPVU9i2QdLqS4g1StNvBZyY99 4AFfBdArfDyMejF6pPUNpEPb+R/Q9AY/ZrxnPUF0RMXlBTPtsbi4nz1rB1C8HMP7mM8gncBoJxDp LEp/AWosrWb/MSsPAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAxLTI5VDA0OjUwOjE4KzAwOjAw i7qUXgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMS0yOVQwNDo1MDoxOCswMDowMPrnLOIAAAAA SUVORK5CYII= X-Now-Playing: Don Cherry's _Brown Rice_: "Malkauns" In-Reply-To: <877dnwz6jn.fsf@gmail.com> (L. J. Lee's message of "Fri, 29 Jan 2021 13:54:52 +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:198836 Archived-At: "L.J. Lee" writes: >>> (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. > > It doesn't, actually--your suggested method was what I tried at first, > because it's the normal way to do things. I'm just reading the code, and I don't quite understand why. `default-korean-keyboard' is (by default) "", so this: (defun toggle-korean-input-method () "Turn on or off a Korean text input method for the current buffer." (interactive) (if current-input-method (deactivate-input-method) (activate-input-method (concat "korean-hangul" default-korean-keyboard)))) means that we call (activate-input-method "korean-hangul") If `default-korean-keyboard' was "3f", then we'd call (activate-input-method "korean-hangul3f") You suggested this change: >>> (activate-input-method) >>> (concat "korean-hangul3f" default-korean-keyboard))))) and assuming that ")" after `activate-input-method' is a typo, that would mean that we call (activate-input-method "korean-hangul3f") which is identical to what we'd get if we set the variable to "3f". Or am I misreading the code or what you suggested? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no