all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* The symbol # in mapcat
@ 2014-08-24 18:27 Shiyuan
  2014-08-24 18:41 ` Teemu Likonen
  0 siblings, 1 reply; 2+ messages in thread
From: Shiyuan @ 2014-08-24 18:27 UTC (permalink / raw
  To: help-gnu-emacs

Hi,
    Anyone can explain what is the meaning of the symbol # in the following
mapconcat call (from ob-python.el),
(mapconcat
              #'org-babel-trim
              (butlast
               (org-babel-comint-with-output
                   (session org-babel-python-eoe-indicator t body)
                 (funcall input-body body)
                 (funcall send-wait) (funcall send-wait)
                 (insert org-babel-python-eoe-indicator)
                 (funcall send-wait))
               2) "\n")
Thanks.

Shiyuan


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: The symbol # in mapcat
  2014-08-24 18:27 The symbol # in mapcat Shiyuan
@ 2014-08-24 18:41 ` Teemu Likonen
  0 siblings, 0 replies; 2+ messages in thread
From: Teemu Likonen @ 2014-08-24 18:41 UTC (permalink / raw
  To: Shiyuan; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

Shiyuan [2014-08-24 11:27:32 -07:00] wrote:

> Anyone can explain what is the meaning of the symbol # in the
> following mapconcat call (from ob-python.el),

It's part of read syntax #' which is short-hand for special form
(function ...). That is, both of the following are the same:

    (function foo)
    #'foo

They return the function object of symbol foo.

http://www.gnu.org/software/emacs/manual/html_node/elisp/Anonymous-Functions.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-24 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-24 18:27 The symbol # in mapcat Shiyuan
2014-08-24 18:41 ` Teemu Likonen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.