Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Derrell.Lipman@UnwiredUniverse.com
Subject: using defadvice to delete other windows when hiding threads
Date: Wed, 11 Sep 2002 12:45:53 GMT	[thread overview]
Message-ID: <65xc4rum.fsf@random.localnet.UnwiredUniverse.com> (raw)

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


             reply	other threads:[~2002-09-11 12:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-11 12:45 Derrell.Lipman [this message]
2002-09-11 15:23 ` Klaus Berndl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=65xc4rum.fsf@random.localnet.UnwiredUniverse.com \
    --to=derrell.lipman@unwireduniverse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).