From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63660 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: a colon with forward-slashes kicks lines to the top - why? Date: Tue, 05 Sep 2006 08:17:03 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157412078 11177 80.91.229.2 (4 Sep 2006 23:21:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Sep 2006 23:21:18 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m12187@lists.math.uh.edu Tue Sep 05 01:21:13 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 1GKNkW-0003p0-SH for ding-account@gmane.org; Tue, 05 Sep 2006 01:21:05 +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 1GKNkS-0001Ov-00; Mon, 04 Sep 2006 18:21:00 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1GKNgy-0001Op-00 for ding@lists.math.uh.edu; Mon, 04 Sep 2006 18:17:24 -0500 Original-Received: from quimby.gnus.org ([80.91.227.211]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1GKNgo-0000JI-PV for ding@lists.math.uh.edu; Mon, 04 Sep 2006 18:17:23 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GKNgj-000570-00 for ; Tue, 05 Sep 2006 01:17:09 +0200 Original-Received: from [205.234.185.198] (port=37224 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1GKNgp-0004rW-9t; Mon, 04 Sep 2006 18:17:15 -0500 Original-To: Tomasz Mieszkowski X-Hashcash: 1:20:060904:tomaszm@post.pl::5cZJLiOdmJ1Ch/U2:001bwL X-Hashcash: 1:20:060904:ding@gnus.org::QbnM4ufo7fispr7Y:00000MLg X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:5uYxF2aqlIVv3xIC0QTzp9xvGFc= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63660 Archived-At: >>>>> In Tomasz Mieszkowski wrote: > Hello everyone, > I've been wrestling with this for quite long (without success), so maybe > here I'll find some light :) > The problem is when I use a combination of colon and forward-slashes (an > URL for example) in the body of my posts, the line which contains them, > irrespective of its original location, is moved somehow to the top when > I hit C-c C-c. Because of that, my posts are screwed quite often and I > have to supersede them. I thought that maybe article fontisizing is > responsible for this behavior, but it seems that it has nothing to do > with it. And the only function I have on message-send-news-hook is > message-sort-headers. I think it is just the cause of your problem. `message-sort-headers' requires that there is a separator (i.e., "--text follows this line--") between header and body. However, it isn't at the time when `message-send-news-hook' is run. How about using `message-send-hook' instead? P.S. No Gnus users don't have to run `message-sort-headers' by yourself since it is always run by Gnus (see the function definition of `message-fix-before-sending') when sending a message.