Gnus development mailing list
 help / color / mirror / Atom feed
From: Vladimir Volovich <vvv@vvv.vsu.ru>
Cc: ding@gnus.org
Subject: Re: message-newline-and-reformat and supercite
Date: 06 Oct 1999 08:38:34 +0400	[thread overview]
Message-ID: <m3905hkss5.fsf@vvv.vsu.ru> (raw)
In-Reply-To: Christophe Cuq's message of "05 Oct 1999 20:50:01 +0200"

"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.


  parent reply	other threads:[~1999-10-06  4:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-26 19:51 Vladimir Volovich
1999-10-04 22:41 ` François Pinard
1999-10-05  6:45   ` Vladimir Volovich
1999-10-05 18:50     ` Christophe Cuq
1999-10-05 20:25       ` David S. Goldberg
1999-10-05 21:22         ` Christophe Cuq
1999-10-06  4:38       ` Vladimir Volovich [this message]
1999-10-06  8:29         ` Kai Großjohann
1999-10-07  0:22           ` Francisco Solsona
1999-11-06  3:13             ` Lars Magne Ingebrigtsen
1999-10-06 13:25         ` Laura Conrad
1999-10-06 17:52           ` Vladimir Volovich
  -- strict thread matches above, loose matches on Subject: below --
1997-12-20 21:10 Michael R Cook
1998-01-04  9:29 ` Lars Magne Ingebrigtsen
1998-01-04 16:08   ` Wes Hardaker
1998-01-05  4:05     ` Lars Magne Ingebrigtsen
1998-01-05 10:21       ` Kai Grossjohann
1998-01-12 22:11         ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3905hkss5.fsf@vvv.vsu.ru \
    --to=vvv@vvv.vsu.ru \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).