From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25687 Path: main.gmane.org!not-for-mail From: Laura Conrad Newsgroups: gmane.emacs.gnus.general Subject: Re: message-newline-and-reformat and supercite Date: 06 Oct 1999 09:25:48 -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=us-ascii X-Trace: main.gmane.org 1035163028 15340 80.91.224.250 (21 Oct 2002 01:17:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:17:08 +0000 (UTC) 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 JAA21247 for ; Wed, 6 Oct 1999 09:31:40 -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 IAB26630; Wed, 6 Oct 1999 08:30:21 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 06 Oct 1999 08:31:24 -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 IAA18738 for ; Wed, 6 Oct 1999 08:31:10 -0500 (CDT) Original-Received: from serpent.local (lconrad@world-f.std.com [199.172.62.5]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA21236 for ; Wed, 6 Oct 1999 09:29:07 -0400 (EDT) Original-Received: by serpent.local (Postfix, from userid 500) id C70882CF83; Wed, 6 Oct 1999 09:25:57 -0400 (EDT) Original-To: ding@gnus.org X-Face: #0j-Ll[fajrfupWYMv&wa\m7!Sh=&3;JE-_&M-L,ULz(aE8iu%m1SHa5wG.V{3B:Fdnd/T# O -}0pPGYw%t1z`o&T_c=)p8l[}7R\={[@B*Jyj*.L4 hnJ*AXb In-Reply-To: Vladimir Volovich's message of "06 Oct 1999 08:38:34 +0400" Original-Lines: 58 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:25687 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25687 >>>>> "Vladimir" == Vladimir Volovich writes: CC> Do you have a workaround ? Vladimir> the current message-newline-and-reformat in gnus 0.97 Vladimir> behaves like you said. i already posted the corrected Vladimir> function. here is it again: ... Vladimir> does it work for you, or is *the above* function behaving buggy? It seems to work some of the time, for instance, on the above, correctly filled text, I can do: Vladimir> the current message-newline-and-reformat in gnus 0.97 Vladimir> behaves like you said. Here I have inserted a break, and the next paragraph displays correctly. Vladimir> i already posted the corrected function. here is it Vladimir> again: However, if there are spaces at the ends of lines, the attributions don't get removed: Vladimir> (defun message-newline-and-reformat () Vladimir> "Insert four newlines, and then reformat if inside quoted text." Vladimir> (interactive) Vladimir> (let ((point (point)) Here's where I inserted the break. Vladimir> Vladimir> quoted) Vladimir> (save-excursion Vladimir> Vladimir> (beginning-of-line) Vladimir> (if (looking-at Vladimir> (sc-cite-regexp)) (setq quoted (buffer-substring Vladimir> (match-beginning 0) (match-end 0))))) Vladimir> Vladimir> (insert "\n\n\n\n") Vladimir> (delete-region (point) Vladimir> (re-search-forward "[ \t]*")) Vladimir> (when quoted Vladimir> Vladimir> (insert quoted)) Vladimir> (fill-paragraph Vladimir> nil) Vladimir> (goto-char point) Vladimir> Vladimir> (forward-line 2))) This is a bad example, since you wouldn't really want the lisp code reformatted, but I frequently reply to correspondents who haven't filled their lines any better than the lisp code did. -- Laura (mailto:lconrad@world.std.com , http://www.world.std.com/~lconrad/ ) (617) 661-8097 fax: (801) 365-6574 233 Broadway, Cambridge, MA 02139