What does this do?
(add-hook 'compilation-mode-hook #'my-setup-compile-mode)
…and is it different than
(add-hook 'compilation-mode-hook 'my-setup-compile-mode)
elispemacs
What does this do?
(add-hook 'compilation-mode-hook #'my-setup-compile-mode)
…and is it different than
(add-hook 'compilation-mode-hook 'my-setup-compile-mode)
Best Answer
There is no difference:
yields
t
The
#
can be used in front of alambda
expression indicating to the byte-compiler that the following expression can be byte compiled, see the docs for Anonymous Functions. But there's nothing to compile in the case of a symbol.In general, it is used in the printed representation along with the left angle bracket (<) to indicate that the object printed is a description (but cannot be read). For example:
It is also used in constructs by the reader to represent circular structures. See the docs for Read Syntax for Circular Objects.
And then you have its use for denoting the base for integers, e.g.
#x2c -> 44
.Plus more I'm sure.