[Top][All Lists]

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

Re: [elpa] master e2ceef9 57/79: Prepend function symbols with octothorp

From: Kaushal
Subject: Re: [elpa] master e2ceef9 57/79: Prepend function symbols with octothorpes.
Date: Thu, 18 Jun 2015 14:33:15 +0000

Does that apply to advice-add too?

I use something like

(advice-add #'kill-word :after (lambda (arg) (modi/space-as-i-mean)))

On Thu, Jun 18, 2015 at 5:00 AM Jackson Hamilton <address@hidden> wrote:
I figured I could generate more spelling error related compiler errors if I added the hash. By that motivation, I'd prefer to add them in as many places as possible.

On Sat, Jun 13, 2015 at 7:59 PM, Stefan Monnier <address@hidden> wrote:
> -                   (advice-remove 'context-coloring-colorize advice)
> +                   (advice-remove #'context-coloring-colorize advice)

Actually, the first argument of `advice-remove' has to be a *symbol*
(bound to a function value) rather than a function, so I think it's
better to write

                   (advice-remove 'context-coloring-colorize advice)
rather than
                   (advice-remove #'context-coloring-colorize advice)

IOW, I think #' only makes sense at those places where one could also
use a (lambda ...).  It's largely philosophical, admittedly.


reply via email to

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