home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / emacs / 3034 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  2.3 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!swrinde!gatech!hubcap!ncrcae!ncrlnk!torynews!garye
  2. From: garye@TorreyPinesCA.ncr.com (Gary Engebretson 3793)
  3. Newsgroups: comp.emacs
  4. Subject: shell command and macro completion
  5. Message-ID: <1992Sep3.171417.21110@TorreyPinesCA.ncr.com>
  6. Date: 3 Sep 92 17:14:17 GMT
  7. Organization: NCR (Torrey Pines Development Center)
  8. Lines: 44
  9. Disclaimer: This posting does not neccessarily reflect the opinions of NCR.
  10.  
  11.  
  12.  
  13. 1. I use csh and have a large .cshrc file. This means that when I do 'M-x shell'
  14. I have to wait while .cshrc is executed. No problem there. But when I do 'ESC !'
  15. .cshrc is also executed which takes a lot of time for no real purpose. The
  16. question is : how can I get 'M-x shell' to execute .cshrc but 'ESC !' to NOT
  17. execute .cshrc?
  18.  
  19. Ideas that didn't work :
  20.     1. setting SHELL to '/bin/csh -f'
  21.     2. setting SHELL to '/home/ccsh' where /home/ccsh contained
  22.        '/bin/csh -f'
  23.     3. fooling around with env. variables and then checking for specific
  24.        values of this variable within .cshrc. This 'kinda' works but
  25.        it is very kludgey.
  26.         4. turn on/off protections on .cshrc -- works but annoying
  27.  
  28. 2. I would like to map 'M-x occur' to a keyboard macro. No problem you say,
  29. just use  'C-x (' and 'C-x )'. The problem with this is that whatever
  30. search string you enter during macro definition is the one that will be
  31. used every time you execute this macro. BTW, closing the macro with C-x )
  32. BEFORE you enter the search string, which seems like the obvious thing
  33. to do, will simply enter a string of "" as your search string in the macro.
  34. Probably not too useful. So the question is : how do I define a keyboard
  35. macro that will allow me to enter data?
  36.  
  37. The Info pages discuss 'querying' macros, and I have experimented using some
  38. of the options discussed there, but nothing seems to work as desired.
  39.  
  40. 3. FAQ # 65 discusses the ^M problem within a shell buffer. I have tried the
  41. advice given for csh, but with no visible effect. Is this the whole story
  42. or is there some little  'gotcha' lurking in the shadows?
  43.  
  44.  
  45. Gary Engebretson -- gary.engebretsoin@torreypinesca.ncr.com
  46. NCR/Teradata
  47. SAn Diego, CA
  48. -- 
  49. +-------------------------------------------------------+
  50. |                                |
  51. |     Gary Engebretson  (garye)  x3793 -- RDS Group    |
  52. |                               |
  53. |     "I used to be disgusted. Now I'm only amused."    |
  54. |                               |
  55.