From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Reset C-, only for the org-mode case Date: Wed, 5 May 2021 12:10:12 +0200 Message-ID: References: <83lf8x8wxw.fsf@gnu.org> <87h7jjmkvr.fsf@zoho.eu> <87y2ctbsa9.fsf@zoho.eu> <87h7jhblmh.fsf@zoho.eu> 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="15032"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: moasenwood@zoho.eu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 05 12:11:10 2021 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 1leEUo-0003nJ-4B for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 12:11:10 +0200 Original-Received: from localhost ([::1]:47562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leEUn-0007tW-2H for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 06:11:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leETx-0007tP-B5 for help-gnu-emacs@gnu.org; Wed, 05 May 2021 06:10:17 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:53255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leETv-0008FJ-DW for help-gnu-emacs@gnu.org; Wed, 05 May 2021 06:10:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620209413; bh=YPujZVgdaJNW/bpij8VEcOdtecXkit65s4HvkSGP3hE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=H3+ewKWzggL7ZGtA4PJjlJUxLyYGMzN/ElDhK7vpigyXqM29qaVdaWpWwr87tq9SA ln/5c5WL70zoyK2+zUTZ6KualHESWhOM/8uBeE+7OiW9vwy1ec/6usQMI1G+vU6uvG BrJlSX8XYjD63nGNZkxaXTp0SG5WfoH/uHsresvM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Wed, 5 May 2021 12:10:12 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87h7jhblmh.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:keAx49ShCq5RZCLK8nufhSfVdqZ6dwRzxjfS0Zy4w1NDpXPPT7Oip0VHp4RV354dnND0c mwZ1R/kI3WvikP3MrcCH+K+0nCvRLBuPIqWf6IKgSfIMtwPayODh9GzSdoIiIZFfss/LLuusdpDh iMJW4ognaO7NtXAJZoVQozE8hC19nOj1dpDm9lPprrdgLnFl0bXqqQ7TkZt2wOrEH1lNUVD2akWr qh7hdoqQ1KEYBhoAgUnBw50hpskGcGh5MHpObzyLeXkm5jROwJ71vFVY5yYrKAbKw4xIX4X3g8Wt 3g= X-UI-Out-Filterresults: notjunk:1;V03:K0:elCExFKxOjU=:39451/tQUhtcG0FKfmao50 TH6YaIgzp2qo+0btSWfcRYmp7xOXaaqROHygbHtUlxuqA9ESU6WfKjyXzxaW3pb7yvEljU2nN lSjkaeN5KmlqhNc2hPynllYgYzk70m7OC/U9W52zum95KKmYg+irISzeuHjVbMoAUZFPLpyMs 5C7Ed2MXy+eToYI1PHuXJ2+frkDGUU67WTWRjVyW0Kz9Fn1Si5VmO4D92GwPlDGKDNwPNmYMW bgkHreMo0iSHOpYCP61ev8vUtmTAV1bqszyCnW9Leu6rjaG1ReeQN5ed9bYUuOuoS4N23Z+O5 NySPl3pB/T3ADt4PMhj1n4UhUwr7J6OYY/IO8E2dYlNFJDU6qI1IMiJ2flFhmRKNc+oYhG+d/ T7pS5enoYYdcAlhwtc26LbOQtHASq/R4StdKOD2Mxj28guMuphdyHx8qkWSdqtRVhRLodDY8G wz5ajE1aHM17IPA7DX3hLlqc/Cz3sgiIw7EQeNlDDg0Eqe5w82K+RtQdEn6OympbNrp3swrV8 pX/MHNWbk31bym0pfrhxkmZswQsSEZoRTWXL8Uvt/2xQ1nFsp9Tg6sVlnp36s0bmyWsvXCJIF 3fKNMCS8XZMcPsyU78ajuDQyRo1Gzg+lecNcpe/XJGZq2U1wf2bi7a3Y9JfKou/Yr+7VKmciY /bS6+aoR8gS0Buy5s7y0RbSPvhysbYAVIMn4RCcp+iJBOQ96fMYzCoSKgU0k7xO+7HfOoPBYi kecZgGN92ZeeV3yiGk7LzWTP+2INdNuGXcTWmr9FkJpbjNIYdWyu4kTNdTgJIRo//hOaXzhI Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:129459 Archived-At: > Sent: Wednesday, May 05, 2021 at 9:00 PM > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: Reset C-, only for the org-mode case > > Christopher Dimech wrote: > > >>>> Is it good enough? > >>>> > >>>> (define-key org-mode-map (kbd "C-,") 'undefined) > >>>> (define-key org-mode-map (kbd "C-,") 'text-scale-decrease) > >>> > >>> "C-," in already bound in org-mode > >> > >> Doesn't matter, you don't have to bind it to `undefined' > >> first :) > > > > So it is a bit different than with the usual "unset-key" or > > "set-key" to nil. > > > > (global-set-key (kbd "C-e") nil) > > (global-unset-key (kbd "C-e")) > > ? :) I wrote an example with global-set-key where you have to unset it first. > What is it that you want to do? You want this? > > (define-key org-mode-map (kbd "C-,") #'text-scale-decrease) > > Then it is enough :) This means that define-key works a bit different than global-set-key. > Now it is `text-scale-decrease' and it doesn't matter what it > was before or if it was set n times to n different values... Yes, because in org-mode the C-, was already used to do some other thing. > Year zero. No tradition. No history! Depends which year zero you are talking about. Many things happened befor= e the christ story, if that happened at all! > -- > underground experts united > https://dataswamp.org/~incal > > >