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