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

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!cs.utexas.edu!usc!sdd.hp.com!network.ucsd.edu!riscsm!usenet
  3. From: bashford@scripps.edu (Don &)
  4. Subject: Re: Sequentially edit several files
  5. In-Reply-To: sef@Veritas.COM's message of 22 Jul 92 00:44:46 GMT
  6. Message-ID: <BASHFORD.92Jul21211537@griffy.scripps.edu>
  7. Sender: usenet@riscsm.scripps.edu
  8. Organization: The Scripps Research Institute, La Jolla, CA, USA
  9. References: <1992Jul22.004446.27938@Veritas.COM>
  10. Date: Wed, 22 Jul 1992 04:10:35 GMT
  11. Lines: 27
  12.  
  13. >>>>> In article <1992Jul22.004446.27938@Veritas.COM>, sef@Veritas.COM (Sef Kloninger) writes:
  14.  
  15. SK> There's a feature in VI that I still find useful:  you can select 
  16. SK> many files to edit, and then use ":n" to go sequentially through
  17. SK> the list, visiting or editing each file once and only once.
  18.  
  19. SK> Anyone know of something similar in emacs?  Just editing multiple
  20. SK> files in emacs isn't enough because there's no quick way to visit
  21. SK> each file once, as far as I can tell...
  22.  
  23. kill-buffer (C-x k) is the key.  Do "emacs bunch o files" to start up and
  24. you will be presented with a window into the buffer of one file.
  25. After you've finished with it (perhaps saving it with C-x s) kill the
  26. buffer with C-x k.  You will then get the buffer of the next file,
  27. and so on.  The only big difference from VI is that you will be presented
  28. with the files in the reverse order to what you typed on the input line.
  29.  
  30. For visiting files in random order, do C-x C-b as soon as emacs starts
  31. and you'll get a listing of all the current buffers and their associated
  32. files.  To edit one of the files on the list move your cursor to the
  33. corresponding line and type f and you'll be in that file.  C-x b will
  34. get you back to the *Buffer List* buffer so you can select a new file.
  35.  
  36. Enjoy,
  37.  
  38. Don Bashford
  39. bashford@scripps.edu
  40.