From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1118 Path: news.gmane.org!not-for-mail From: Derrell.Lipman@UnwiredUniverse.com Newsgroups: gmane.emacs.gnus.user Subject: using defadvice to delete other windows when hiding threads Date: Wed, 11 Sep 2002 12:45:53 GMT Organization: AT&T Broadband Message-ID: <65xc4rum.fsf@random.localnet.UnwiredUniverse.com> Reply-To: Derrell.Lipman@UnwiredUniverse.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667938 9892 80.91.229.2 (31 Jan 2006 00:38:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:38:58 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:39 2006 Original-Path: quimby.gnus.org!news.ccs.neu.edu!news.dfci.harvard.edu!news.cis.ohio-state.edu!newsfeed.berkeley.edu!ucberkeley!logbridge.uoregon.edu!ihnp4.ucsd.edu!usc.edu!attla2!ip.att.net!attbi_feed3!attbi.com!sccrnsc03.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.5 (beets, i686-pc-linux) Cancel-Lock: sha1:IZ1HxrYB6apOVD9fBBbD2ESvSyY= Original-NNTP-Posting-Host: 24.147.249.152 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: sccrnsc03 1031748353 24.147.249.152 (Wed, 11 Sep 2002 12:45:53 GMT) Original-NNTP-Posting-Date: Wed, 11 Sep 2002 12:45:53 GMT Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1258 Original-Lines: 23 X-Gnus-Article-Number: 1258 Tue Jan 17 17:28:39 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1118 Archived-At: I'm trying to learn how to use defadvice to modify gnus behavior. When I want to look only at the thread subjects in a group (T H) I always also want to delete the other windows in the frame so that I see a larger portion of the thread listing. I've tried the following, which gives no error when being eval'ed, but also does nothing at all when I do T H... (defadvice gnus-summary-hide-all-threads (after activate) "Display only one window when hiding all threads" (delete-other-windows)) What am I doing wrong here? Or is this entirely the wrong way to be going about this? Should I just define a new function that calls gnus-summary-hide-all-threads and delete-other-windows, and bind T H to it? I was hoping to use this as an excuse to understand defadvice. Thanks, Derrell