[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Quoting functions with ' vs #'

From: Aaron Ecay
Subject: [O] Quoting functions with ' vs #'
Date: Wed, 21 May 2014 01:15:30 -0400
User-agent: Notmuch/0.17+160~g03680d1 (http://notmuchmail.org) Emacs/ (x86_64-unknown-linux-gnu)


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

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.



Aaron Ecay

reply via email to

[Prev in Thread] Current Thread [Next in Thread]