unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Setting keybinding for org-support-shift-select t
Date: Mon, 05 Oct 2020 06:12:56 +0200	[thread overview]
Message-ID: <87o8lh71kn.fsf@ebih.ebihd> (raw)
In-Reply-To: trinity-909a0873-2aa7-47ab-a146-9c3deb35c485-1601870111853@3c-app-mailcom-bs04

Christopher Dimech wrote:

> I am getting a bit confused on the to use
>
> #'func-name
>
> and when using
>
> 'func-name
>
> Previously, in my code, I was not using the #, see
> below
>
> ( global-set-key (kbd "C-t l <down>") 'Line-Dw )

Well then, it is one of many improvements you can
make to your code :)

The symbol's name should already tell you it is
intended to be used as a function (the function of the
symbol should be used). But for extra clarity, add
the sharp quote.

Also if you byte compile the code, which is
recommended for Elisp perfecting purposes, debugging,
and execution speed, _if_ you byte compile the code
the byte compiler will tell you if the function isn't
known to be defined... there was a thread about this
(WRT lambdas) recently, check it out if you can find
it (don't remember the subject TBH, I think we
hijacked another thread so probably won't even be in
the subject now that I say it...)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




  reply	other threads:[~2020-10-05  4:12 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-04 10:55 Setting keybinding for org-support-shift-select t Christopher Dimech
2020-10-04 11:23 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 11:31   ` Christopher Dimech
2020-10-04 11:49     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 11:52       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 12:25         ` Christopher Dimech
2020-10-04 12:40           ` 2QdxY4RzWzUUiLuE
2020-10-04 12:54             ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 14:03             ` Christopher Dimech
2020-10-04 15:02               ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 16:19                 ` Christopher Dimech
2020-10-04 18:57                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 19:26                     ` Christopher Dimech
2020-10-04 19:34                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 16:57                 ` Christopher Dimech
2020-10-04 17:08                   ` Drew Adams
2020-10-04 17:36                     ` Christopher Dimech
2020-10-04 17:52                       ` Drew Adams
2020-10-04 18:10                         ` Christopher Dimech
2020-10-04 19:00                           ` Drew Adams
2020-10-05  3:55                             ` Christopher Dimech
2020-10-05  4:12                               ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2020-10-04 19:16                           ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 19:10                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 12:48           ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 11:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 12:14   ` Christopher Dimech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8lh71kn.fsf@ebih.ebihd \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).