[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
defadvice question.
From: |
Michal |
Subject: |
defadvice question. |
Date: |
Wed, 16 Sep 2009 15:52:31 +0200 |
User-agent: |
mozilla news reader |
Hallo group members.
when doing C-u M-x cvs-checkout
I wanted to always have in minibuffer history ring, my cvs root, just to
use up arrow key to get it. So I did:
(setenv "CVSROOT" "/my/cvs/root")
(defadvice cvs-checkout
(before cvs-checkout-cvs-root-add-to-history-ring)
(add-to-list 'minibuffer-history (getenv "CVSROOT")))
(ad-activate 'cvs-checkout)
but it does not work. Have You an idea why?
best regards,
Michal