From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84539 Path: news.gmane.org!not-for-mail From: Alexander Baier Newsgroups: gmane.emacs.gnus.general Subject: Custom group or topic parameters Date: Tue, 13 May 2014 15:31:30 +0200 Message-ID: <87bnv1yfd9.fsf@mailbox.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1399988395 20733 80.91.229.3 (13 May 2014 13:39:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 May 2014 13:39:55 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32784@lists.math.uh.edu Tue May 13 15:39:48 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WkCvm-0006c7-Qb for ding-account@gmane.org; Tue, 13 May 2014 15:39:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WkCvC-0006ps-Lv; Tue, 13 May 2014 08:39:06 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WkCpH-0006nv-29 for ding@lists.math.uh.edu; Tue, 13 May 2014 08:32:59 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WkCpF-0006OU-E6 for ding@lists.math.uh.edu; Tue, 13 May 2014 08:32:58 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WkCpD-0004P0-H3 for ding@gnus.org; Tue, 13 May 2014 15:32:55 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkCpD-0004J4-Ai for ding@gnus.org; Tue, 13 May 2014 15:32:55 +0200 Original-Received: from nat-wh-wh36.rz.uni-karlsruhe.de ([141.70.81.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 15:32:55 +0200 Original-Received: from alexander.baier by nat-wh-wh36.rz.uni-karlsruhe.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 15:32:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-wh-wh36.rz.uni-karlsruhe.de User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:gijnULU9Y03L4fYBhL627RxyZFA= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84539 Archived-At: [ I have sent this message before, but it does not seem to go through despite the gmane authorizer telling me it "will be posted within ten minutes". So I am trying it again.] Hello, Is there a way to set custom group parameters? What do I mean by "custom"? A custom group parameter would simply be parameter that is not yet defined by gnus (e.g. foo is no documented group parameter). The followup question to this: How do I access the group parameters in message mode? I want to do certain things based on the parameters of the group I was "in" when I started to compose a new mail thus entering message mode. The concrete functionality I want to achieve is outlined by this example: Group Parameters for group "org.group.example": #+BEGIN_SRC emacs-lisp ((subscribed . t) (to-list . "foo@example-list.org") (lang . "en_GB")) #+END_SRC And then somewhere in a message-mode hook: #+BEGIN_SRC emacs-lisp (ispell-change-dictionary (gnus-get-group-param 'lang)) #+END_SRC Note, a function like "gnus-get-group-param" is what I was referring to in the second paragraph. Regards, -- Alexander Baier