From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/772 Path: news.gmane.org!not-for-mail From: Glyn Millington Newsgroups: gmane.emacs.gnus.user Subject: Re: Signatures - an idea ? Date: Mon, 15 Jul 2002 12:32:52 +0100 Organization: Christ Church Chelmsford U.K. Message-ID: <87ofd9p6or.fsf@millingtons.org> References: <878z4d455p.fsf@chello.no> Reply-To: glyn@millingtons.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667692 8346 80.91.229.2 (31 Jan 2006 00:34:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:34:52 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:05 2006 Original-Path: quimby.gnus.org!lackawana.kippona.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newsfeed.esat.net!diablo.theplanet.net!news.theplanet.net!127.0.0.1!nobody Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: modem-1729.snake.dialup.pol.co.uk Original-X-Trace: newsg3.svr.pol.co.uk 1026738404 7506 62.137.118.193 (15 Jul 2002 13:06:44 GMT) Original-NNTP-Posting-Date: 15 Jul 2002 13:06:44 GMT Original-X-Complaints-To: abuse@theplanet.net User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Honest Recruiter, i686-pc-linux) Cancel-Lock: sha1:HC6h58MXq1zVmqWLvmhB6Y02+mU= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:912 Original-Lines: 40 X-Gnus-Article-Number: 912 Tue Jan 17 17:28:05 2006 Xref: news.gmane.org gmane.emacs.gnus.user:772 Archived-At: Per-Karsten Nordhaug 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