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 22:07:08 +0200 Message-ID: <87pn985rwz.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> <87y2nx5472.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6366"; 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 22:08:30 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 1jsXPi-0001ZU-EO for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Jul 2020 22:08:30 +0200 Original-Received: from localhost ([::1]:34412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsXPh-0005WR-GB for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Jul 2020 16:08:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsXOW-0003hi-Me for help-gnu-emacs@gnu.org; Mon, 06 Jul 2020 16:07:17 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:59419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsXOT-00054Y-9v for help-gnu-emacs@gnu.org; Mon, 06 Jul 2020 16:07:16 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id BC01716005F for ; Mon, 6 Jul 2020 22:07:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1594066029; bh=plBxu/i8KIBovQp194pNU7cP0p34TbNKh9foFvD6ZO0=; h=From:To:Cc:Subject:Date:From; b=NpDVLDZSkXRExbfg3YPSd4JhhbWDOr7uXbbbiI+U/5dVp4FOOfw8G8gOfzXW4bq3q Xa9MwHVDJWNSSDIhbTEcVSMal3JH/b6+ygcGuyu3v77t2/Yd7Ns9B9HeY4JYCbMQVb 24gT3hi50p9po6ZScqD1G5O/rOMjLXei/S+J6xnD4apWVVUDnxyHnwgjFDyw+N3Jbb TgGa1njaB4/8u43pZQgmib6Mr6R4oqNrO/dZCzr7WVnZ/JFdCVpu1VRSuBhJtqCdti o5hnTuPMEkl8L8bzYLFawh26nJwPy9SbbMbDZy/2ErWDWn+LDkvOajJx2WoHPuirOV OYNZwo/LKXX2g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4B0xRx13P0z9rxd; Mon, 6 Jul 2020 22:07:08 +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 15:07:33 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:123520 Archived-At: Dmitry Alexandrov writes: > Tomas Nordin wrote: >> Dmitry Alexandrov writes: >>> Tomas Nordin wrote: >>>> 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) > >> define-dummy-mode-and-dummy-key-map-=E2=80=A6 > > I am not sure, what =E2=80=98dummy=E2=80=99 is supposed to mean here? Mi= nor mode is fully functional, that is you are free to disable and reenable = it at will: I think I sort of tried to be funny, based on that the mode was made up just to keep a key binding available in all situations. And that the trickery with the key-maps is hard to follow for me. I got the impression that it sufficed to evaluate the forms, I mean, I didn't say, M-x my-precious-keys-mode .