Gnus development mailing list
 help / color / mirror / Atom feed
From: Kim-Minh Kaplan <KimMinh.Kaplan@utopia.eunet.fr>
Cc: ding@gnus.org
Subject: Re: PATCH: Don't quote signature (was: Re: GNKSA and Gnus)
Date: 15 Jan 1998 00:57:06 +0100	[thread overview]
Message-ID: <yg4d8hu38z1.fsf@lombric.s-ip.eunet.fr> (raw)
In-Reply-To: Per Abrahamsen's message of "13 Jan 1998 16:58:34 +0100"

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

Per Abrahamsen <abraham@dina.kvl.dk> writes:

> Here is a patch to `message-cite-original' which simply doesn't quote
> the signature.  I think that in the rare cases where the user *want*
> to quote the signature, he can just cut and paste it manually.

Gnus can put the quoted signature in the kill ring.  Then pasting is
really easy.

Hmm, may be an empty kill should be added even when there is no
signature for consistency...  What do you think ?

Kim-Minh.

[-- Attachment #2: Type: text/plain, Size: 1041 bytes --]

--- /usr/local/lib/xemacs/gnus/lisp/message.el	Tue Jan  6 07:48:40 1998
+++ /usr/tmp/message.el	Thu Jan 15 00:47:04 1998
@@ -1690,18 +1690,26 @@
 (defun message-cite-original ()
   "Cite function in the standard Message manner."
   (let ((start (point))
+	(end (mark t))
+	sig-start
 	(functions
 	 (when message-indent-citation-function
 	   (if (listp message-indent-citation-function)
 	       message-indent-citation-function
 	     (list message-indent-citation-function)))))
+    (goto-char end)
+    (when (re-search-backward "^-- $" start t)
+      (setq sig-start (point-marker)))
     (goto-char start)
     (while functions
       (funcall (pop functions)))
     (when message-citation-line-function
       (unless (bolp)
 	(insert "\n"))
-      (funcall message-citation-line-function))))
+      (funcall message-citation-line-function))
+    (when sig-start
+      (kill-region sig-start (mark t))
+      (set-marker sig-start nil))))
 
 (defun message-insert-citation-line ()
   "Function that inserts a simple citation line."

  reply	other threads:[~1998-01-14 23:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199712280107.UAA02498@mail.interpath.net>
1998-01-05 19:54 ` GNKSA and Gnus Per Abrahamsen
1998-01-05 20:31   ` Russ Allbery
1998-01-05 21:29     ` Selective quoting (was: Re: GNKSA and Gnus) Per Abrahamsen
1998-01-12 22:15   ` GNKSA and Gnus Lars Magne Ingebrigtsen
1998-01-12 22:45     ` Russ Allbery
1998-02-02 18:25       ` Lars Magne Ingebrigtsen
1998-01-12 22:48     ` Hrvoje Niksic
1998-01-13 15:58     ` PATCH: Don't quote signature (was: Re: GNKSA and Gnus) Per Abrahamsen
1998-01-14 23:57       ` Kim-Minh Kaplan [this message]
1998-01-15  0:15         ` Hrvoje Niksic
1998-01-15  8:52           ` Stig Sandbeck Mathisen
1998-01-15 13:55             ` Per Abrahamsen
1998-01-15 14:16               ` Lars Balker Rasmussen
1998-01-15 14:42                 ` Per Abrahamsen
1998-01-15 14:49                   ` Lars Balker Rasmussen
1998-01-15 15:36                     ` Per Abrahamsen
1998-01-18 13:16           ` Kim-Minh Kaplan
1998-02-08 15:18       ` 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=yg4d8hu38z1.fsf@lombric.s-ip.eunet.fr \
    --to=kimminh.kaplan@utopia.eunet.fr \
    --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).