emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aaron Ecay <aaronecay@gmail.com>
To: orgmode <emacs-orgmode@gnu.org>
Cc: Bastien <bzg@altern.org>
Subject: Quoting functions with ' vs #'
Date: Wed, 21 May 2014 01:15:30 -0400	[thread overview]
Message-ID: <87r43nrac2.fsf@gmail.com> (raw)

Hello,

Commit a5686d87 (link[1]) changes several uses of #' to '.  Is this org
“house style”?  It disables a compile-time warning about potentially
undefined functions:

#+begin_src elisp
(defun i-give-a-warning () (mapc #'doesnt-exist '(1 2 3)))

(defun i-do-not () (mapc 'doesnt-exist2 '(1 2 3)))
#+end_src

When I’m writing elisp, this warning catches my own mistakes on a pretty
regular basis, and so I’m rather fond of it.  But if bare ' is how org
code should be written, it would be good to know that.

Thanks,
Aaron

[1] <http://repo.or.cz/w/org-mode.git/commitdiff/a5686d87786b1d6514ec85959a2188f703346a06>

--
Aaron Ecay

             reply	other threads:[~2014-05-21  5:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-21  5:15 Aaron Ecay [this message]
2014-05-21  7:29 ` Quoting functions with ' vs #' Bastien

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.orgmode.org/

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

  git send-email \
    --in-reply-to=87r43nrac2.fsf@gmail.com \
    --to=aaronecay@gmail.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).