Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Glyn Millington <glyn@millingtons.org>
Subject: Re: Signatures - an idea ?
Date: Mon, 15 Jul 2002 12:32:52 +0100	[thread overview]
Message-ID: <87ofd9p6or.fsf@millingtons.org> (raw)
In-Reply-To: <878z4d455p.fsf@chello.no>

Per-Karsten Nordhaug <pnordhau@chello.no> writes:

> Heya, all...
>
> I'm no elisp guru, that's why I post this here for you all...
> Has anyone (other than me) thought a little code snippet that could
> _remove_ the signature (other than using posting styles), when you're
> in the message buffer would be nice ?
>
> I spend some time and effort reporting spam - put I've only bothered
> to make one signature. Whenever I report stuff to abuse etc., a
> feature to remove the standard signature from the buffer I'm in would
> be *so* useful...


Is this any use?  



;; replace-signature will replace the signature in an email (in case it's
;; inappropriate) Lifted this from Charles Seebold's .emacs

(defun replace-signature ()
  (interactive)
  (save-excursion
    (goto-char (point-min))
    (search-forward-regexp "^--")
    (search-forward-regexp "^--" (point-max) nil 1)
    (next-line 1)
    (beginning-of-line)
    (delete-region (point) (point-max))))

(global-set-key [f9] 'replace-signature) ; hitting "F9" removes  the signature






Glyn


  reply	other threads:[~2002-07-15 11:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-15 11:11 Per-Karsten Nordhaug
2002-07-15 11:32 ` Glyn Millington [this message]
     [not found] ` <87bs99usnt.fsf@enberg.org>
     [not found]   ` <874rf1yxom.fsf@chello.no>
2002-07-15 12:52     ` Sherilyn

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=87ofd9p6or.fsf@millingtons.org \
    --to=glyn@millingtons.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).