From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46512 Path: main.gmane.org!not-for-mail From: Reiner Steib <4uce.02.r.steib@gmx.net> Newsgroups: gmane.emacs.gnus.general Subject: Re: Incorporate message-utils.el? Date: Thu, 12 Sep 2002 22:12:25 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1031866768 22230 127.0.0.1 (12 Sep 2002 21:39:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2002 21:39:28 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17pbgN-0005mO-00 for ; Thu, 12 Sep 2002 23:39:27 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17pbdm-0003Cy-00; Thu, 12 Sep 2002 16:36:47 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 12 Sep 2002 16:37:24 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA14907 for ; Thu, 12 Sep 2002 16:37:11 -0500 (CDT) Original-Received: (qmail 469 invoked by alias); 12 Sep 2002 21:35:17 -0000 Original-Received: (qmail 437 invoked from network); 12 Sep 2002 21:35:15 -0000 Original-Received: from theotp5.physik.uni-ulm.de (134.60.10.145) by gnus.org with SMTP; 12 Sep 2002 21:35:15 -0000 Original-Received: (from ste@localhost) by theotp5.physik.uni-ulm.de (8.11.2/8.11.2) id g8CKCPK32109; Thu, 12 Sep 2002 22:12:25 +0200 X-Authentication-Warning: theotp5.physik.uni-ulm.de: ste set sender to reiner.steib@physik.uni-ulm.de using -f Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Original-Lines: 60 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i586-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46512 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46512 On Thu, Sep 12 2002, Kai Gro=DFjohann wrote: > Reiner Steib <4uce.02.r.steib@gmx.net> writes: >> [...] I thought, that it would be enough to add "(require >> 'message-utils)" and merge the menu entries and key-bindings to >> `message.el' (eventually adjust the key-bindings to the given >> conventions). > Maybe it's enough to add autoload cookies to message-utils.el. Or > maybe move the defuns to message.el. >> [...] functions like `message-strip-subject-was' should be >> integrated directly into the function building the subject and _not_ >> be called add a hook afterwards. > > Hm. It's a point. Would you like to do that? Sorry, I don't think that I'm able to do what Holger suggested, or I didn't understand it ;-), see (c) below. My knowledge about the control flow in Gnus (and about lisp in general) is probably not sufficient. What *I* could do is: (a) move the defuns to message.el or/and add autoload cookies to message-utils.el. (b) add the menu entries and key-bindings. I suppose this has to be done in `message.el' no matter whether or not we put all functions in `message.el' or leave them in `message-utils.el'. =20=20 (c) put the function call of `message-strip-subject-was' to the spot in `message.el' where `message-header-setup-hook' is called. Would this be enough? (d) What about the behavior of `message-strip-subject-was'? Should it be enabled by default? I'd suggest the following (I just added the behavior described in the doc-string to the function `message-strip-subject-was' and it works for me): --8<------------------------schnipp------------------------->8--- (defcustom message-strip-subject-was 'ask "*What to do with trailing \"(was: )\" in subject lines. If nil, leave the subject unchanged. If it is the symbol `ask', ask the use what do do. If it is t, always strip the trailing old subject. See the variable `message-subject-was-regexp' how an old subject may look like." [...] :group 'message-various) --8<------------------------schnapp------------------------->8--- I could do it, if people think that this makes sense. But I don't want to spend time on this, if it's unclear how the Gnus developers want it to be done. What do you (Kai or others) suggest? Bye, Reiner. --=20 ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/