home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3511 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  3.5 KB

  1. Path: sparky!uunet!noc.near.net!chaos!splinter.coe.northeastern.edu
  2. From: ratinox@splinter.coe.northeastern.edu (Richard Pieri/Stainless Steel Rat)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: easy gnuemacs questions
  5. Message-ID: <RATINOX.92Jul27135611@splinter.coe.northeastern.edu>
  6. Date: 27 Jul 92 17:56:11 GMT
  7. References: <1992Jul27.051435.16819@leland.Stanford.EDU>
  8.     <RATINOX.92Jul27083452@splinter.coe.northeastern.edu>
  9.     <1992Jul27.161716.77531@cs.cmu.edu>
  10. Sender: usenet@chaos.DAC.Northeastern.edu
  11. Organization: 3WA, Boston Office. Or Nu Meta Chi. Take your pick.
  12. Lines: 58
  13. In-reply-to: rudis+@cs.cmu.edu's message of 27 Jul 92 16:17:16 GMT
  14. X-Get-A-Clue: Have two, they're small.
  15. X-Signature-Virus-Protection: Version 1.51
  16. X-Posting-Software: GNUS 3.14.1 [ NNTP-based News Reader for GNU Emacs ]
  17.  
  18. >>>>> On 27 Jul 92 16:17:16 GMT, rudis+@cs.cmu.edu (Rujith S DeSilva) said:
  19.  
  20. CM> 1) Is there a way to specify two or more files when invoking gnuemacs,
  21. CM> with each file ending up in its own window?
  22.  
  23. >Certainly: emacs file1 file2 file3 ... filen
  24.  
  25. RSD> This doesn't make each file end up in its own window.
  26.  
  27. If you mean "put up an emacs process under (whatver) window system for each
  28. file, each with its own separate window," no. That would be horrendous to
  29. deal with visually. If you mean "call split-window-vertically for each file
  30. found," that would also be horrendous to deal with visually, and you'll
  31. rapidly run out of screen lines with a lot of files.
  32.  
  33. CM> 2) Is there a way to make . refer to the directory where gnuemacs was 
  34. CM> invoked instead of the default directory?
  35.  
  36. >Normally this behavior is... normal :-). Check your .emacs file and the
  37. >system configuration for a "cd" command. You may want to ask your sysadmin
  38. >if you didn't understand that.
  39.  
  40. RSD> Useful advice, and probably addresses CM's particular problem.
  41. RSD> However, in emacs, `.'  refers neither to the default directory, nor
  42. RSD> to the directory emacs was invoked in.  Try it and see!
  43.  
  44. RSD> Both the above would require some hacking to do.
  45.  
  46. Now you've lost me. Unless you mean making "." equal to "./"... Ah, now I
  47. understand the question better. No, you can't. "." is considered part of a
  48. file name (like ".login"). It's part of the Unix filesystem structure; if
  49. you hacked Emacs to get around this, then you'd never be able to call up a
  50. file like ".login" without typing full pathnames.
  51.  
  52. CM> 3) What is a simple way to change the default directory?  (This is a
  53. CM> real beginner's question; I know that I have to set the variable
  54. CM> default-directory, but I don't know the syntax for binding this to a
  55. CM> key.)
  56.  
  57. >M-x cd RET directory RET
  58.  
  59. RSD> Right.  It doesn't help that `apropos directory' doesn't point to
  60. RSD> `cd', and who would expect the Unix command to work within emacs?
  61.  
  62. Because "apropos" is "command-appropos" and searches function *names*, not
  63. documentation. So of course apropos won't tag "cd" for a search on
  64. "directory."
  65.  
  66. --Rat
  67.  
  68. ||||| | | | |  |  |  |   |   |    |    |    |   |   |  |  |  |  | | | | | |||||
  69.                                                    __        ___ 
  70. Richard Pieri, Northeastern's Stainless Steel Rat/   | /| / /   | The Worlds
  71. Internet: ratinox@meceng.coe.northeastern.edu   /__  |/ |/ / /| | Welfare Works
  72.     UUCP: ...!northeastern.edu!splinter!ratinox/   | /| / / / | | Association:
  73.   BITNET: UA_RLP@NUHUB{.BITNET}               /__  |/ |/ / /  | | I will solve
  74.   USNail: 14 Westdale RD  Holbrook, MA 02343 /   | /| / / /___| | any problem
  75.  ICBMnet: 42 deg 1 min N, 71 deg 0 min W    /    |/ |/ /_//_____| for you.
  76.