From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: peter hodgson Newsgroups: gmane.emacs.help Subject: disable, replace binding in method-map Date: Sun, 17 May 2020 10:59:06 -0500 Message-ID: <871rnipn79.fsf@ralph.puteracy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="82368"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 17 17:59:42 2020 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 1jaLhV-000LLS-Vl for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 May 2020 17:59:42 +0200 Original-Received: from localhost ([::1]:35710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaLhV-0003oW-1q for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 May 2020 11:59:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaLh0-0003iZ-CQ for help-gnu-emacs@gnu.org; Sun, 17 May 2020 11:59:10 -0400 Original-Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:37722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaLgz-0008TD-Ep for help-gnu-emacs@gnu.org; Sun, 17 May 2020 11:59:09 -0400 Original-Received: by mail-ot1-x32b.google.com with SMTP id x22so2397687otq.4 for ; Sun, 17 May 2020 08:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=oCn20r3BHcAJkuZzotb78yUAxM8hWAIO5u0tE/Ikfyw=; b=fmh+B67nar0ATuc7CGtEok8kNh3TmDhI89EQjRKtSbh8SBo4RVTt5Ex3Hme27Rk1OW RetMiSJa1ssil6hQuNDPESVlQFA8rF0hHrqVXi2bTSAn0AyNKOWlLJG4km9Q0pziycew Jhez3zOfBL1AJGbcKuxHifecW8xp4tJJ3UilYLloH00QAAatKQplc5bzhc3AGL94lYRT Mu1nDEwRqOo0/rBfwtrInbPeHQVExmzKqxpcGYZboSl5bhe77fkmwEyNMsC08WwFu7Qh eHEa6I+y5LgzlboO0PFslFlrsXbh4CbnKRKvrckuHq9Ku8t+xuhbw94EJmSTfa1f3P2R yq9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=oCn20r3BHcAJkuZzotb78yUAxM8hWAIO5u0tE/Ikfyw=; b=Fnx3Q4KxvsijZYAKYW5xe7yLcljYiY1r/8+WPb1H4MBfB3Yosg8Uhjm9JvwlunIx2q kwxX9vA+6VVwyR0qrdPAbwBWQscXnV0qoFTUrv3yqic+pQ6ulCeczd0vRiUBL6+loow0 LGJkwJ6tKXwUIDA86RmqiybCe7/byWUP6UmlWhFW+wVc/8KN5mq/Vv5hwhUVeqrC64K+ Ye+F7Ygd3bc8frRxmC7NsxwvxZ3y+2pAjzVgosRe4l9dZ7KmYGDBloy6HVTJyfy4cuUR 4xs9R2oUKc4suoWrbP236/uHMDJLkbXF6uLrP2wChq4Jnzk/A0mNEZuJPGaAkT74KnFH pKzA== X-Gm-Message-State: AOAM532tj05sN3wc8rRabf6SgyGC/wL2O8ta6PbwD9s4C31YGXeHD411 ZewwLW5tvV8O5JnnX2rlz6ZJyKg= X-Google-Smtp-Source: ABdhPJyck6R6uN1tdEiLF9EEMviVCOx64DhhLPYhnOVk8+GuUvmUJSqVhxIp9hlqwrXjQRZJnBjNew== X-Received: by 2002:a05:6830:18c7:: with SMTP id v7mr9830989ote.48.1589731147508; Sun, 17 May 2020 08:59:07 -0700 (PDT) Original-Received: from ralph ([2601:2c6:4600:8680:d965:290e:38d8:67a5]) by smtp.gmail.com with ESMTPSA id i8sm2311369oom.15.2020.05.17.08.59.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 08:59:07 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=imputerate@gmail.com; helo=mail-ot1-x32b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:123096 Archived-At: A simpler version of my earlier pos 1. `set-input-method` + `greek-babel`=20 turns an emacs buffer from U:** to BGU: the entire keyboard is transformed to type greek; most bindings are obvious- a =3D alpha, b =3D beta ... but a few are handled differently from other greek maps i work with, and these are the ones i want to a. preempt, then b.replace; a. theta- j, sigma- s/c, ksi-x, chi-q b. q s c x 2. i had a similar problem with org-mode=20 my global key settings worked as i wanted in org-mode,=20 unless they were set to some other task in org-mode-map (bindings- mode trumping- minor trumps major, and major trumps global) SO, i disabled the keys which=20 a. are globally bound in my emacs=20 but b. org-mode-map had given its own special tasks- this freed up such keys so they could work "globally;" (add-hook 'org-mode-hook (lambda () (define-key org-mode-map "\eh" nil))) (add-hook 'org-mode-hook (lambda () (define-key org-mode-map "\ea" nil))) ------------------------------------------ can't i do the same with greek-babel? =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1. for theta (i won't need to remap 'j',=20 but i must preempt 'q' so i can give it a new job here=20 (add-hook 'input-method-hook (lambda () (define-key input-method-greek-babel-map "j" nil)) (lambda ()=20 (define-key input-method-greek-babel-map "q" nil)) (lambda ()=20 (define-key input-method-greek-babel-map "q" '=CE=B8))) the two issues i can't successfully google are 1. does 'input-method-hook work like 'input-mode-hook? 2. how do i disable a binding, then rebind the key to a new job? --=20 imputerate@puteracy.com