From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/37515 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: "> > >" space removal removes too many spaces? Date: Sun, 05 Aug 2001 15:03:36 +0200 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035172916 14286 80.91.224.250 (21 Oct 2002 04:01:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:01:56 +0000 (UTC) Cc: ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 19384 invoked from network); 5 Aug 2001 13:02:21 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 5 Aug 2001 13:02:21 -0000 Original-Received: from barbar.josefsson.org (slipsten.extundo.com [195.42.214.241]) (authenticated) by dolk.extundo.com (8.11.3/8.11.3) with ESMTP id f75D2Nw14488; Sun, 5 Aug 2001 15:02:23 +0200 Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Sun, 05 Aug 2001 13:53:57 +0200") Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 70 Xref: main.gmane.org gmane.emacs.gnus.general:37515 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:37515 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > Look at this: > > % ftp > ftp> open host > ftp> quit > % date > > If you hit `F' or `R' on this message you will see that some lines are > quoted like "> % ftp" whereas other lines are quoted like ">ftp> quit". > Note how a space is missing in the `ftp>' lines. > > Is this a bug? I think so; `message-yank-cited-prefix' (">") should probably only be used if the original article used the "correct" quotation style. Right now `message-cite-prefix-regexp' is used to match quoted lines, but that regexp matches lots of weird styles, and there might exist uglier missmatches than this. Also, consider the following style as well: ,---- | Kai> Hm. The agent. Hm. I have (gnus-agentize) in my .gnus and the | Kai> server is under the agent, but I'm always plugged. | | If plugged, it shouldn't matter then as it shouldn't be talking to the | agent (AFAIK). `---- When quoting that, I think ,---- | > Kai> Hm. The agent. Hm. I have (gnus-agentize) in my .gnus and the | > Kai> server is under the agent, but I'm always plugged. | > | > If plugged, it shouldn't matter then as it shouldn't be talking to the | > agent (AFAIK). `---- looks nicer than ,---- | >Kai> Hm. The agent. Hm. I have (gnus-agentize) in my .gnus and the | >Kai> server is under the agent, but I'm always plugged. | > | > If plugged, it shouldn't matter then as it shouldn't be talking to the | > agent (AFAIK). `---- Perhaps. So, maybe the following? Maybe it shouldn't match ">From"? And maybe it shouldn't be hardcoded. Or maybe, both that string and `message-yank-{cited-,}prefix' really _should_ be hardcoded (users should not really change them). Perhaps it's enough that these variables aren't documented. --- message.el.~6.108.~ Sat Jul 28 19:01:54 2001 +++ message.el Sun Aug 5 14:43:53 2001 @@ -2101,7 +2101,7 @@ (save-excursion (goto-char start) (while (< (point) (mark t)) - (if (looking-at message-cite-prefix-regexp) + (if (looking-at ">") (insert message-yank-cited-prefix) (insert message-yank-prefix)) (forward-line 1))))