From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66989 Path: news.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.gnus.general Subject: Re: advising gnus - a report from the front lines Date: Sat, 24 May 2008 16:27:32 +1000 Organization: How about yours? Message-ID: <87k5hkz06j.fsf@rimspace.net> References: <87od6yhgyg.fsf@burly.wgtn.ondioline.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211610916 28654 80.91.229.12 (24 May 2008 06:35:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 May 2008 06:35:16 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15460@lists.math.uh.edu Sat May 24 08:35:54 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JznM9-0002yF-BF for ding-account@gmane.org; Sat, 24 May 2008 08:35:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JznKw-0005il-8z; Sat, 24 May 2008 01:34:38 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JznKs-0005iK-LM for ding@lists.math.uh.edu; Sat, 24 May 2008 01:34:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JznKm-0000L6-9w for ding@lists.math.uh.edu; Sat, 24 May 2008 01:34:34 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JznL0-0000om-00 for ; Sat, 24 May 2008 08:34:42 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JznKk-00043y-7F for ding@gnus.org; Sat, 24 May 2008 06:34:26 +0000 Original-Received: from ppp59-167-189-244.static.internode.on.net ([59.167.189.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 May 2008 06:34:26 +0000 Original-Received: from daniel by ppp59-167-189-244.static.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 May 2008 06:34:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-Distribution: bofh Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp59-167-189-244.static.internode.on.net User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:oPXBupOBX5/wqkl1nbnn5w7tqMc= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66989 Archived-At: Paul Collins writes: > I recently added the following piece of advice: > > (defadvice gnus (before gnus-homedir-advice activate) > (cd (expand-file-name "~/"))) > > This is so that subprocesses started by Gnus (e.g. my IMAP wossname) > don't end up with a network directory as their cwd. However, advising > the `gnus' function makes its check for compiled-ness trip, Well, that makes the gnus function be something that isn't compiled. You could, rather, try this: ;; The `gnus' function verifies it is compiler, so ensure that ;; the advice function is also compiled. (defadvice gnus (before gnus-homedir-advice activate compile) (cd "~/")) ; cd will expand the filename automatically Note the presence of the `compile' flag to defadvice; from the help: `compile': In conjunction with `activate' specifies that the resulting advised function should be compiled. That would achieve the same result without removing a (presumably valuable) test from Gnus. Regards, Daniel