... when a symbol referencing a function is actually used?
Like ‘add-function’ but for the function named SYMBOL. Contrary to ‘add-function’, this will properly handle the cases where SYMBOL is defined as a macro, alias, command, ...
I usually see the following around:
(advice-add 'some-function :after #'some-other-function)
My question is, wouldn't be the case to use
#'some-function in that case?
Of course I tried, and it works, and in fact with the sharp quote, Emacs is able to throw a warning if
some-function is not defined when I byte-compile the code.
I even tried advising aliased functions (with
defalias) and saw no difference.
So why the common advice is not to use the sharp quote for