From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michal Newsgroups: gmane.emacs.help Subject: defadvice question. Date: Wed, 16 Sep 2009 15:52:31 +0200 Organization: education Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253112074 9008 80.91.229.12 (16 Sep 2009 14:41:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 14:41:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 16 16:41:07 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mnvgp-0000zH-U8 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 16:41:00 +0200 Original-Received: from localhost ([127.0.0.1]:35873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mnvgp-0008BG-Dx for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 10:40:59 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.task.gda.pl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: jupiter.adlex.com Original-X-Trace: news.task.gda.pl 1253109188 10048 157.25.157.162 (16 Sep 2009 13:53:08 GMT) Original-X-Complaints-To: abuse@news.task.gda.pl Original-NNTP-Posting-Date: Wed, 16 Sep 2009 13:53:08 +0000 (UTC) X-Mailer: KMail/1.7.1 User-Agent: mozilla news reader Cancel-Lock: sha1:r0v/cyfdWWOi6i7GsjNci7JQOIg= Original-Xref: news.stanford.edu gnu.emacs.help:173092 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68214 Archived-At: 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