From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#39631: Mention how to remove entire keymaps in Your Init File Date: Sun, 16 Feb 2020 12:14:41 +0800 Message-ID: <87ftfbf9se.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="70912"; mail-complaints-to="usenet@ciao.gmane.io" To: 39631@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 16 05:39:19 2020 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 1j3Bi5-000ID3-GS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Feb 2020 05:39:13 +0100 Original-Received: from localhost ([::1]:57514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3Bi4-0002Io-HK for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Feb 2020 23:39:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53561) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3Bhv-0002H5-Kb for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 23:39:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3Bhu-0002yK-Jl for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 23:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3Bhu-0002y5-GF for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 23:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3Bhu-0002s0-EE for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 23:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Feb 2020 04:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39631 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158182790010964 (code B ref -1); Sun, 16 Feb 2020 04:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Feb 2020 04:38:20 +0000 Original-Received: from localhost ([127.0.0.1]:36660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3BhD-0002qh-QO for submit@debbugs.gnu.org; Sat, 15 Feb 2020 23:38:20 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:49127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3BhB-0002qS-Lc for submit@debbugs.gnu.org; Sat, 15 Feb 2020 23:38:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53446) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3BhA-0002El-FI for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 23:38:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3Bh9-0001sR-EG for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 23:38:16 -0500 Original-Received: from camel.birch.relay.mailchannels.net ([23.83.209.29]:42920) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j3Bh9-0001qC-5q for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 23:38:15 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A590550129E for ; Sun, 16 Feb 2020 04:38:13 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a46.g.dreamhost.com (100-96-206-172.trex.outbound.svc.cluster.local [100.96.206.172]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 41DEF5011DD for ; Sun, 16 Feb 2020 04:38:13 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a46.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sun, 16 Feb 2020 04:38:13 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Exultant-Power: 1227dbbb1c01a01a_1581827893475_2555815864 X-MC-Loop-Signature: 1581827893475:1065871083 X-MC-Ingress-Time: 1581827893475 Original-Received: from pdx1-sub0-mail-a46.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a46.g.dreamhost.com (Postfix) with ESMTP id 0B27180074 for ; Sat, 15 Feb 2020 20:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=XiK3HZ05XS00ShincTcFVwa68LU=; b=KFB3XzVbxnDCoMys SydOY1S59Tps2QKmbH/kCasVLDDjUtz+7Veo9HV/U0oWtelo+iHdrNO1yjfn1/+/ h5kouBopmqxYUU/NAXgKNikjrRqrkrlr9vVEQegccnSMP5P9o5FHlOApq6A3TpYp UheSdmAViyo6H2Orb4/YY0LZme4= Original-Received: from jidanni.org (114-41-7-64.dynamic-ip.hinet.net [114.41.7.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a46.g.dreamhost.com (Postfix) with ESMTPSA id E5CC180073 for ; Sat, 15 Feb 2020 20:38:06 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a46 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrjeefgdejhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdeguddrjedrieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduudegrdeguddrjedrieegpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176105 Archived-At: There are insufficient instructions and examples in Info 49.3.6 Rebinding Keys in Your Init File as of emacs-version "26.3" to allow the user to get rid of e.g., (seen with C-h b) C-, flyspell-goto-next-error C-. flyspell-auto-correct-word C-; flyspell-auto-correct-previous-word C-c $ flyspell-correct-word-before-point Leaving only C-M-i flyspell-auto-correct-word The user tries everything (eval-after-load "flyspell-mode" '(add-hook 'flyspell-mode-hook (lambda () (setq flyspell-mode-map nil) ;;too close to C-/ (undo) and already on ESC TAB: ;;(define-key flyspell-mode-map [(control ?\.)] []) (define-key flyspell-mode-map (kbd "C-,") (lambda () (interactive))) #<---last time what I was told to try (define-key flyspell-mode-map (kbd "C-.") (lambda () (interactive))) (define-key flyspell-mode-map [(control ?\,)] (lambda () (interactive))) (define-key flyspell-mode-map [(control ?\.)] (lambda () (interactive))) (define-key flyspell-mode-map [(control ?\;)] (lambda () (interactive))) (global-unset-key [(control ?\,)]) (global-unset-key [(control ?\.)]) (global-unset-key [(control ?\;)]) (setq flyspell-mode-map nil) ))) (global-unset-key [(control ?\,)]) (global-unset-key [(control ?\.)]) (global-unset-key [(control ?\;)]) (defvar flyspell-mode-map "") (add-hook 'flyspell-mode-hook (lambda () (define-key flyspell-mode-map (kbd "C-M-i") 'flyspell-auto-correct-word))) (setq flyspell-mode-map nil) (global-set-key (kbd "C-M-i") 'flyspell-auto-correct-word) Alas nothing will give the user the aforementioned desired result. Please put examples in Info 49.3.6 Rebinding Keys in Your Init File showing how to remove entire keymaps with one line, and then how to sparsely populate them back. Thanks.