From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62678 Path: news.gmane.org!not-for-mail From: Elias Oltmanns Newsgroups: gmane.emacs.gnus.general Subject: Recovering newsgroup specific settings when editing drafts Date: Wed, 12 Apr 2006 12:59:35 +0200 Message-ID: <878xqbawko.fsf@denkblock.local> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144839678 22567 80.91.229.2 (12 Apr 2006 11:01:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Apr 2006 11:01:18 +0000 (UTC) Original-X-From: ding-owner+m11205@lists.math.uh.edu Wed Apr 12 13:01:16 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FTd5o-0004nd-KY for ding-account@gmane.org; Wed, 12 Apr 2006 13:01:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FTd5i-00027g-00; Wed, 12 Apr 2006 06:00:54 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FTd4k-00027b-00 for ding@lists.math.uh.edu; Wed, 12 Apr 2006 05:59:54 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FTd4i-00027l-VO for ding@lists.math.uh.edu; Wed, 12 Apr 2006 05:59:54 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FTd4i-0006qO-00 for ; Wed, 12 Apr 2006 12:59:52 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FTd4a-0004Xf-4N for ding@gnus.org; Wed, 12 Apr 2006 12:59:44 +0200 Original-Received: from p508866ab.dip.t-dialin.net ([80.136.102.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Apr 2006 12:59:44 +0200 Original-Received: from oltmanns by p508866ab.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Apr 2006 12:59:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 17 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508866ab.dip.t-dialin.net User-Agent: Gnus/5.110004 (No Gnus v0.4) Cancel-Lock: sha1:0KmqPC7KnoctEJqZH37A3ZUtcD4= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62678 Archived-At: Hi all, here is a problem which I couldn't find a solution for. If you have code hooked into message-setup-hook or message-header-setup-hook which performs various actions depending on the current group, you would often want to have this code referring to the original group of a draft when pressing e in the drafts group. Good examples are changing ispell-local-dictionary or pgg-default-user-id. Since X-Draft-From holds the name of the group in which the message was originally created, the obvious way is to make the code refer to this header. However, message-fetch-field / message-field-value don't seem to have access to this variable by the time message-(header-)setup-hook is run. What would be the right way to accomplish my goal? Thanks in advance, Elias