help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to quote a list of functions?


From: Stefan Monnier
Subject: Re: How to quote a list of functions?
Date: Wed, 12 Aug 2015 21:56:45 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> (put #'upcase-region    'disabled   nil)

FWIW, my opinion is that #' should be used only in those places that
expect a function value.  IOW, I think of #'foo as a shorthand for
(lambda (..) (foo ...)) or (symbol-function 'foo).

So I wouldn't use it after `put' since put only accepts symbols
(regardless if those symbols work can be used as functions or not).


        Stefan




reply via email to

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