[Top][All Lists]

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

Re: Make defadvice mode local

From: Frederik
Subject: Re: Make defadvice mode local
Date: Sun, 03 Nov 2013 20:54:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

> Pieces of advice are always activated globally.  So what you want to do
> is to make this advice do nothing (which in this case means, do just
> "ad-to-it") when the buffer is not under version-control.
> E.g. use (if (not (and buffer-file-name (vc-backend buffer-file-name)))
>              ad-do-it
>            <do-the-special-thing>)

This works like a charm! Thanks!



reply via email to

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