From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79852 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: proper hook for message body transform? Date: Fri, 09 Sep 2011 19:35:04 +0800 Message-ID: <87lity54pj.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315568229 8772 80.91.229.12 (9 Sep 2011 11:37:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2011 11:37:09 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28146@lists.math.uh.edu Fri Sep 09 13:37:05 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R1zOK-00010T-Uc for ding-account@gmane.org; Fri, 09 Sep 2011 13:37:05 +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 1R1zMm-0007Ac-6z; Fri, 09 Sep 2011 06:35:28 -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 1R1zMl-0007AT-54 for ding@lists.math.uh.edu; Fri, 09 Sep 2011 06:35:27 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R1zMi-0001DT-TA for ding@lists.math.uh.edu; Fri, 09 Sep 2011 06:35:26 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R1zMg-0002wX-1Q for ding@gnus.org; Fri, 09 Sep 2011 13:35:22 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R1zMf-0000AQ-4m for ding@gnus.org; Fri, 09 Sep 2011 13:35:21 +0200 Original-Received: from 114.240.64.101 ([114.240.64.101]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Sep 2011 13:35:21 +0200 Original-Received: from eric by 114.240.64.101 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Sep 2011 13:35:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 114.240.64.101 User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:iD1uGcdC6Tge3UEyyponTn4ZOmE= X-Spam-Score: -4.2 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79852 Archived-At: I hope someone can give me a little advice on a project I'm working on. I'm trying to put tags into a message body that will "do things" to my org-mode setup -- automatically create TODOs from sent messages, to be specific. What I'd like to do is have a little text tag that sits in the message composition buffer, and when the message is sent the tag itself is stripped from the message, and the good stuff happens in a hook. I tried looking at the mml package to see how they do it, but can't for the life of me figure out which hook the mml functions are attached to: the only hooks I see in the source code are those that are used to kill the tags if the message is discarded (I think). Does anyone have any words of wisdom for putting things in message buffers that are then stripped (and other functions triggered) when the message is sent? Neither `message-send-hook' nor `message-send-mail-hook' has anything attached to it by default, which makes me think there's some better way of doing this. Anyway, any experience shared would be much appreciated! Eric