From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25677 Path: main.gmane.org!not-for-mail From: Vladimir Volovich Newsgroups: gmane.emacs.gnus.general Subject: Re: message-newline-and-reformat and supercite Date: 06 Oct 1999 08:38:34 +0400 Sender: owner-ding@hpc.uh.edu 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 1035163020 15274 80.91.224.250 (21 Oct 2002 01:17:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:17:00 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id AAA17995 for ; Wed, 6 Oct 1999 00:47:22 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id XAB26035; Tue, 5 Oct 1999 23:46:24 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 05 Oct 1999 23:47:27 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id XAA10121 for ; Tue, 5 Oct 1999 23:46:46 -0500 (CDT) Original-Received: from relay2.vsu.ru (postfix@mail.vsu.ru [62.76.169.17]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id AAA17953 for ; Wed, 6 Oct 1999 00:44:08 -0400 (EDT) Original-Received: by relay2.vsu.ru (Postfix, from userid 5) id BC63518F7; Wed, 6 Oct 1999 08:43:53 +0400 (MSD) Original-Received: (from vvv@localhost) by vvv.vsu.ru (8.9.3/8.9.3) id IAA00618; Wed, 6 Oct 1999 08:38:35 +0400 Original-To: Christophe Cuq In-Reply-To: Christophe Cuq's message of "05 Oct 1999 20:50:01 +0200" Original-Lines: 35 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 X-MIME-Autoconverted: from quoted-printable to 8bit by sclp3.sclp.com id AAA17995 Xref: main.gmane.org gmane.emacs.gnus.general:25677 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25677 "CC" == Christophe Cuq writes: VV> Note that the rest of the quote was micely reformatted, and VV> cursor was put at the convenient place. Doesn't this work for VV> you? CC> I have the same problem as François. When I use M-RET it does not CC> reformat the quoted material. The first line appears without the CC> quote mark. CC> Do you have a workaround ? the current message-newline-and-reformat in gnus 0.97 behaves like you said. i already posted the corrected function. here is it again: (defun message-newline-and-reformat () "Insert four newlines, and then reformat if inside quoted text." (interactive) (let ((point (point)) quoted) (save-excursion (beginning-of-line) (if (looking-at (sc-cite-regexp)) (setq quoted (buffer-substring (match-beginning 0) (match-end 0))))) (insert "\n\n\n\n") (delete-region (point) (re-search-forward "[ \t]*")) (when quoted (insert quoted)) (fill-paragraph nil) (goto-char point) (forward-line 2))) does it work for you, or is *the above* function behaving buggy? Best regards, -- Vladimir.