Reiner Steib <[EMAIL PROTECTED]> writes: > On Mon, Dec 05 2005, leon wrote: > >> Reiner Steib <[EMAIL PROTECTED]> 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 _______________________________________________ Info-gnus-english mailing list [email protected] http://lists.gnu.org/mailman/listinfo/info-gnus-english
