home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / emacs / help / 5457 < prev    next >
Encoding:
Text File  |  1993-01-21  |  736 b   |  27 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!retix.com!dspencer
  3. From: dspencer@mproj.retix.com (David Spencer)
  4. Subject: howto replace . with \. in a string..
  5. Message-ID: <1993Jan21.162113.26993@spock.retix.com>
  6. Sender: dspencer@spock.retix.com (David Spencer)
  7. Organization: Retix, Santa Monica CA
  8. Distribution: usa
  9. Date: Thu, 21 Jan 1993 16:21:13 GMT
  10. Lines: 15
  11.  
  12. I'm having trouble doing the following:
  13.  
  14. I have a string within elisp like "main.c" and I want to 
  15. search for it in a file, so I want to convert it to "main\.c"
  16. so that it matches exactly - but how to modify the string from
  17. within elisp?
  18.  
  19. Do I have to write my own routine/loop and keep calling substring or
  20. string-match?
  21.  
  22.         Thanks,
  23.             Dave Spencer
  24.             dspencer@retix.com
  25.  
  26.  
  27.