home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.emacs
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!ghost.dsi.unimi.it!newsserver.di.unipi.it!newsserver.di.unipi.it!campo
- From: campo@sunthpi3.difi.unipi.it (Massimo Campostrini)
- Subject: Re: Emacs & mail
- In-Reply-To: oshins@wolf.cs.washington.edu's message of 21 Nov 92 21: 21:52 GMT
- Message-ID: <CAMPO.92Nov23143809@sunthpi3.difi.unipi.it>
- Sender: netnews@di.unipi.it (USENET News System)
- Nntp-Posting-Host: sunthpi3.difi.unipi.it
- Organization: Istituto Nazionale di Fisica Nucleare
- References: <1992Nov20.164126.17154@lynx.dac.northeastern.edu>
- <OSHINS.92Nov21132152@wolf.cs.washington.edu>
- Date: Mon, 23 Nov 1992 19:38:09 GMT
- Lines: 42
-
- In article <OSHINS.92Nov21132152@wolf.cs.washington.edu> oshins@wolf.cs.washington.edu (Jake Oshins) writes:
-
- >> Is there any way to use emacs to reply to e-mail and include the previous
- >> message? Want i really want is emacs to insert some type of marker, such
- >> as the `>` before every line of the previous message. I know that elm
- >> does this but i don't have access to it anymore.
- >>
- >> thanks
- >>
- >> bert
- >
- > If you reply to a message using Emacs, you can include the original
- > message by typing C-c C-y, which is bound to mail-yank-original. This
- > puts four spaces in front of every line instead of a '>'. But you can
- > get rid of this by using C-u C-c C-y.
- > If anyone knows of a way to change this to a '>' I would be
- > interested.
- >
- > Jake Oshins
-
- You can put the following in your .emacs :
-
- (defun new-rmail-reply (recipients-too)
- "Reply to the sender of the current message.
- Prefix argument means CC: all other recipients of original message."
- (interactive "P")
- (rmail-reply (not recipients-too))
- (mail-yank-original 0)
- (goto-char 1)
- (re-search-forward mail-header-separator nil t)
- (replace-regexp "^" "> ")
- )
- ;; bind new-rmail-reply to `z'
- (setq rmail-mode-hook
- '(lambda ()
- (define-key rmail-mode-map "z" 'new-rmail-reply))
- )
- --
- Massimo Campostrini
- Istituto Nazionale di Fisica Nucleare, Sezione di Pisa,
- Piazza Torricelli 2, I-56126 Pisa, Italy || Phone: (+39)(50)42093
- Internet: campo@sunthpi3.difi.unipi.it || Fax: (+39)(50)48277
-