From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: `C-c C-v' should keep citation prefix
Date: 05 Jun 2001 20:37:13 +0200 [thread overview]
Message-ID: <iluu21un57q.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <87lmn7ssbl.fsf@lux.speakeasy.org> ("Steven E. Harris"'s message of "04 Jun 2001 17:06:54 -0700")
"Steven E. Harris" <sharris@speakeasy.org> writes:
>> I think it would be a good idea if C-c C-v would keep it.
>
> I agree wholeheartedly. In fact, while quoting the line above, I had
> to add the '>' to the beginning of the line after using C-c C-v.
Does this do anything useful?
Index: message.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/message.el,v
retrieving revision 6.83
diff -u -u -w -r6.83 message.el
--- message.el 2001/05/26 09:25:13 6.83
+++ message.el 2001/06/05 18:35:51
@@ -1786,7 +1786,13 @@
(defun message-delete-not-region (beg end)
"Delete everything in the body of the current message outside of the region."
(interactive "r")
+ (let (citeprefix)
(save-excursion
+ (goto-char beg)
+ ;; snarf citation prefix, if appropriate
+ (unless (eq (point) (progn (beginning-of-line) (point)))
+ (when (looking-at message-cite-prefix-regexp)
+ (setq citeprefix (match-string 0))))
(goto-char end)
(delete-region (point) (if (not (message-goto-signature))
(point)
@@ -1796,7 +1802,9 @@
(goto-char beg)
(delete-region beg (progn (message-goto-body)
(forward-line 2)
- (point))))
+ (point)))
+ (when citeprefix
+ (insert citeprefix))))
(when (message-goto-signature)
(forward-line -2)))
next prev parent reply other threads:[~2001-06-05 18:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-02 19:50 Kai Großjohann
2001-06-05 0:06 ` Steven E. Harris
2001-06-05 18:37 ` Simon Josefsson [this message]
2001-06-05 23:54 ` Steven E. Harris
2001-06-19 19:42 ` Simon Josefsson
2001-06-20 2:07 ` Josh Huber
2001-06-20 8:22 ` Simon Josefsson
2001-06-20 13:03 ` Josh Huber
2001-06-20 13:12 ` Simon Josefsson
2001-06-20 13:21 ` Josh Huber
2001-06-20 14:36 ` David S. Goldberg
2001-06-22 9:54 ` Kai Großjohann
2001-06-22 14:14 ` Josh Huber
2001-06-22 15:45 ` Paul Jarc
2001-06-22 19:02 ` Josh Huber
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=iluu21un57q.fsf@barbar.josefsson.org \
--to=jas@extundo.com \
--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).