From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.help Subject: Re: diff-goto-source hi-jacks my M-o Date: Mon, 06 Jul 2020 12:27:13 +0200 Message-ID: <87y2nx5472.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> References: <87imf2gdnp.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9637"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Dmitry Alexandrov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 06 12:27:46 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 1jsOLi-0002Rp-G3 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Jul 2020 12:27:46 +0200 Original-Received: from localhost ([::1]:43170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsOLh-00088d-HF for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Jul 2020 06:27:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsOLH-00082c-CA for help-gnu-emacs@gnu.org; Mon, 06 Jul 2020 06:27:19 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:33848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsOLF-0007nV-5V for help-gnu-emacs@gnu.org; Mon, 06 Jul 2020 06:27:19 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E25AB16005C for ; Mon, 6 Jul 2020 12:27:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1594031234; bh=vtVQgL5Dr0Blu4n++fkATfGkNj67+TOsuktx1c+Yh2A=; h=From:To:Cc:Subject:Date:From; b=ENUJaFhrKn5YJODmE2N+qnqf769KofSApu76qa0WQ1gF1B31/l8WV+dG6PYAPVx43 VoGPUagSeyLlDU4NgNMz0uP4Touz6PyRiRwLRvoL2KD0s3K2S9SQ2O8eDjiJXxf4aR Z19iGyIbefqlu9hl3FQkoyyr3TrcmmhqbJr+pF081vuzMRv3Gy3AcPc1uqYAzkpMlx F44uQs8f4hywMQAeKQbny6ONOSAwKlbyxV5AFju6HjcFSfQyR3ICX1NACLL8ebQGs6 8V6qYo4lr/TlRbsu70ISXBQCgAgo3dJV/6hkmr4uWjBtW80N5GJ5I/8Q+aUdddNVbR TJ19I/8YsjnPQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4B0hZp26Tdz6tmL; Mon, 6 Jul 2020 12:27:14 +0200 (CEST) In-Reply-To: Received-SPF: pass client-ip=185.67.36.65; envelope-from=tomasn@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/06 02:23:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, 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:123514 Archived-At: Dmitry Alexandrov writes: > Tomas Nordin wrote: >> Anyway, I discovered that one of my favorite custom key-bindings, M-o, which I use for other-window, was hi-jacked. It was hi-jacked to run the command `diff-goto-source'. > >> And if one is to be voted away, I vote for my precious M-o to be left alone. > > (define-minor-mode my-precious-keys-mode "" t) > > (defvar my-precious-keys-map (make-sparse-keymap)) > > (add-to-list 'emulation-mode-map-alists > (list (cons 'my-precious-keys-mode my-precious-keys-map))) > > (define-key my-precious-keys-map (kbd "M-o") #'other-window) OK, tried it and it works, thanks. I tag it for possible use. The good ol' define-dummy-mode-and-dummy-key-map-and-add-them-to-emulation-mode-map-alists-and-finally-add-precious-binding-to-dummy-map technique :)