info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get topic name in summary buffer?


From: Leon
Subject: Re: How to get topic name in summary buffer?
Date: Mon, 05 Dec 2005 17:58:14 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (windows-nt)

Reiner Steib <reinersteib+from-uce@imap.cc> writes:

> 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').
>

Works like a charm.

Thank you very much for your help.

--
Leon


reply via email to

[Prev in Thread] Current Thread [Next in Thread]