Gnus development mailing list
 help / color / mirror / Atom feed
From: Vladimir Volovich <vvv@vvv.vsu.ru>
Subject: message-newline-and-reformat and supercite
Date: 26 Sep 1999 23:51:07 +0400	[thread overview]
Message-ID: <m3ln9tmoyc.fsf@vvv.vsu.ru> (raw)

Lars,

message-newline-and-reformat (M-RET) does not work with supercited
messages, which is very inconvenient: i find this function VERY useful
in general, so it would be great to make it SC-aware.

i modified it as follows, and it "works for me" (c):

(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)))

The line (delete-region (point) (re-search-forward "[ \t]*"))
is in general useful (not only for SC), as it removes extra spaces at
the beginning of the recited message, preserving good indentation.

Could you please merge something like the above into the mainstream
gnus?

	Best regards, -- Vladimir.


             reply	other threads:[~1999-09-26 19:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-26 19:51 Vladimir Volovich [this message]
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
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=m3ln9tmoyc.fsf@vvv.vsu.ru \
    --to=vvv@vvv.vsu.ru \
    /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).