[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get topic name in summary buffer?
From: |
Reiner Steib |
Subject: |
Re: How to get topic name in summary buffer? |
Date: |
Mon, 05 Dec 2005 14:26:33 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
On Mon, Dec 05 2005, leon wrote:
> Reiner Steib <reinersteib+from-uce@imap.cc> writes:
[...]
> | (defun rs-gnus-current-topic (&optional group)
> | "Return the name of the topic for GROUP.
> | If GROUP is nil, try `gnus-newsgroup-name'."
> | (with-current-buffer gnus-group-buffer
> | (and (not group)
> | gnus-newsgroup-name
> | (setq group gnus-newsgroup-name))
> | (when group
> | (gnus-group-jump-to-group group))
> | (gnus-current-topic)))
[...]
> I bound this function to 'p' in summary mode. But I got an error
> message:
>
> "Wrong type argument: commandp, rs-gnus-current-topic"
The function is _not_ interactive because I though it was intended to
be used in a program. If you want to use it interactively, add
(interactive) after the doc string (e.g. before
`with-current-buffer').
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/