home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / emacs / 2704 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.7 KB  |  46 lines

  1. Newsgroups: comp.emacs,cs.emacs
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!news.cs.indiana.edu!nstn.ns.ca!cs.dal.ca!ug.cs.dal.ca!legrady
  3. From: legrady@ug.cs.dal.ca (Tom Legrady)
  4. Subject: Re: Is there a way to get RMAIL to behave like this:
  5. Message-ID: <BrwIrz.G8u@cs.dal.ca>
  6. Sender: usenet@cs.dal.ca (USENET News)
  7. Nntp-Posting-Host: ug.cs.dal.ca
  8. Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
  9. References: <1992Jul24.142245.9472@bronze.ucs.indiana.edu>
  10. Date: Fri, 24 Jul 1992 16:21:35 GMT
  11. Lines: 33
  12.  
  13. In article <1992Jul24.142245.9472@bronze.ucs.indiana.edu> ericg@bronze.ucs.indiana.edu (E. Chris Garrison) writes:
  14. >I am trying to get RMAIL to include a message I am replying to
  15. >with > characters at the beginning of a line.  When I used to
  16. >use /bin/mail with vi, all I had to do was R reply and then
  17. >had a mapped key to do the following vi global search and
  18. >replace command:
  19. >
  20. >:%s/^/>/
  21. >
  22. >Easy enough.  Not so in RMAIL, replying does not include
  23. >text, and I can't get regexp-replace to do the above replace.
  24.  
  25.  
  26. In RMAIL, press 'r' to begin a reply. Then press C-c C-y to yank the
  27. original message into your reply. The minibuffer will ask which
  28. message you wish to yank, giving as a default the number of the
  29. message where you were. Then either modify it manually, or use:
  30.  
  31. Mx replace-regexp (return) ^\(.\) (return) > \1
  32.  
  33.                            ~~~~~~          ~~~~~
  34.  
  35. Te first marked section is the regular expression for anything at the
  36. start of a line. The second replaces tat expression with a rigt angle
  37. bracket, a blank space, and then puts back the character which was
  38. found.
  39.  
  40.  
  41. If you look at lemacs, the behaviour of C-c C-y as been modified to
  42. provide the kind of behaviour Mail and elm users are accustumed to.
  43.  
  44. Tom Legrady
  45.  
  46.