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: RE: RE: Setting keybinding for org-support-shift-select t Date: Sun, 4 Oct 2020 20:10:34 +0200 Message-ID: References: <87d01yi6ad.fsf@ebih.ebihd> <87y2kmgqi7.fsf@ebih.ebihd> <87ft6ugqcp.fsf@ebih.ebihd> <20201004124018.GA292110@scrozzle> <87r1qeavax.fsf@ebih.ebihd> <3713af7f-9c34-4ed9-8f51-acc912344bb2@default> <94858e0d-61f9-4e33-9c53-24ad39b0aab9@default> 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="33397"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 20:18:43 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 1kP8ap-0008Xu-Hh for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 20:18:43 +0200 Original-Received: from localhost ([::1]:50586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP8ao-0007Sd-4f for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 14:18:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP8T5-0001Zu-AN for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 14:10:43 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:60685) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP8T2-0000XX-O0 for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 14:10:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601835034; bh=VH3K16s0YhjIWLJNPcB7gzwgcNbQ9igCv3abX1oJM68=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=d9GvUt1Axi6FT+mzWBcn6yg0k5/cJkiGOsBluYoYDbTwrQQmi4Kjzf3aQc0Aen1xR nrjVstnP42Q5R5OxfFm+EOJbUEtVYHePUenFKT2DafzULIq02ky/Kf6VlLJ4QtjzLN B0dTignY4YRL899NLg79NqzymD22ofwEoUt8FoO8= 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-bs04.server.lan [172.19.170.170]) (via HTTP); Sun, 4 Oct 2020 20:10:34 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <94858e0d-61f9-4e33-9c53-24ad39b0aab9@default> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:tB6dK5704OSwgs7saSm9M7D9DCz7rqcHfKSTgdx2yV/sjYMyuGT3w2Uj/TCFbt9BIOFKc h8SC55pjBlPpitPQZpZ2GcPKCP2Sz6alTXArkm500juKbY8298xzk016C9kmy64+iVZ3HVNrfKUo b0B5dJ/GZde6KLLYAkKvEzRJuYmBkfJKrlZjJPN5kwXVM55y9EX27N6YQDtU+R+prmdyunqy9HMi z/afAinSuDgOd2evWKpSx7/PYiViNAApksJdVQ72D/J92gLOw78bc3vg2nlij4apZZ8k+bLgek49 Jg= X-UI-Out-Filterresults: notjunk:1;V03:K0:U5YBfSTaRJQ=:t8Gq9qoGEIfhFjj0o0gX3y L8DXEByr4sQBB1gLKYf8jO+5i8YNGcePi/atqFlwTm/Bc77n8RASrQWvVV+AigqrsgLpWexKc 4D5qNXeCUeMbdtqmzyH0xA++Zz8uqJQjPexnDhIvLMhvGBiU4HOw6U8FTdtfgKVS0q3r7I7SX +H8nveSDAmDkl9UCJivgHJ4gPUAg7RIreFHNkKjQQ59Hvf8276GfWiwvn1rqnqzxH8IYtMZjV UHDOWbhgBc9jRNyQvLkJ/fzEjeIPfAnQvPtPzygOEzfvXHdXPdqAgpsJrNbZuX+HdmbRFN89u ATyTCjETKqPHcoTf1+xDMsRvFL4g0j42rB+yEmxxchNOJ4sa3hrhwnt61QqrILEsxFJzZ2zVJ 4Wpzme+b3usiYXIXoFHKGYWvwpBXDzeQP75OUt3k2YNzB+pzkoFvPFvuUlQI2Agf2BjZztld4 hx/et0tZ143bqFVeLFCJS7OZUWIAJMGLXd2Jx14hoOZtzreQEg0CBnm4ZZ4RY8aYlzXw8D7+J JfnACW1R6HfoGZRQzgY62qBci6Jl9pSEBKjXatRp62CM30cc7I0gLPWjnA/S5E9NzN7BwLPek CR47xFg6UzQkAax5mrybKwxfCaXRn8px7jlmsSs+gNmaI5UVEdwLFxGW85kpkKvMYowwQeDFP DjlFNg4RwLaZ4w/cLoKoYHxCf5nPWfEVn9iyTDLX5MJhyMLL7FEMZoYUxtwTl1l3cR3Q= Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/04 12:19:59 X-ACL-Warn: Detected OS = Linux 3.11 and newer 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:124291 Archived-At: Instead of using (global-set-key [f2] #'execute-extended-command) can I call my function directly, (global-set-key "[f2] fnm" #'myfunction) Cheers C* > Sent: Sunday, October 04, 2020 at 6:52 PM > From: "Drew Adams" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu > Subject: RE: RE: Setting keybinding for org-support-shift-select t > > > I have usually used key bindings to do some operations I like. But the= n, > > the keybindings became too cryptic for me to remember and thought of > > using my user defined function names for the more complicated operatio= ns. > > > > As you are saying, I can either have defined as a Prefix-Key > > or use it to call my user defined functions. Hover I cannot use > > to do both - calling functions and using keybindings. > > > > So then I might have, for example, to use with keybindings and > > to use with my user defined functions. > > > > Correct me if I am wrong, but I think I understood you. > > Yes, I believe you understood. > > A key can _either_ be bound to a keymap (and to > a prefix command, which is, in effect, just that > keymap) _or_ be bound to a command (which is not > a prefix command, i.e., not just a keymap). > > Removing the parenthetical qualifications: A key > can either be bound to a keymap or to a command, > not to both. > > Either Emacs sees only a prefix key and waits for > the rest of a key sequence or Emacs sees a completed > sequence and invokes its command. > >