home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / emacs / 2692 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  3.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!loyola!ross.COM!srm
  2. From: srm@ross.com (Sesha Myneni)
  3. Newsgroups: comp.emacs
  4. Subject: Re: Sequentially edit several files
  5. Message-ID: <SRM.92Jul22181825@bajrang.ross.com>
  6. Date: 22 Jul 92 23:18:25 GMT
  7. References: <1992Jul22.004446.27938@Veritas.COM>
  8.     <BASHFORD.92Jul21211537@griffy.scripps.edu>
  9. Sender: news@ross.COM
  10. Organization: ROSS Technology, Inc. Austin, Tx.
  11. Lines: 54
  12. In-Reply-To: bashford@scripps.edu's message of 22 Jul 92 04:10:35 GMT
  13. Nntp-Posting-Host: bajrang
  14.  
  15. In article <BASHFORD.92Jul21211537@griffy.scripps.edu> bashford@scripps.edu (Don &) writes:
  16. |>>
  17. |>>   Path: ross.COM!loyola!cs.utexas.edu!usc!sdd.hp.com!network.ucsd.edu!riscsm!usenet
  18. |>>   From: bashford@scripps.edu (Don &)
  19. |>>   Newsgroups: comp.emacs
  20. |>>   Date: 22 Jul 92 04:10:35 GMT
  21. |>>   References: <1992Jul22.004446.27938@Veritas.COM>
  22. |>>   Sender: usenet@riscsm.scripps.edu
  23. |>>   Organization: The Scripps Research Institute, La Jolla, CA, USA
  24. |>>   Lines: 27
  25. |>>
  26. |>>   >>>>> In article <1992Jul22.004446.27938@Veritas.COM>, sef@Veritas.COM (Sef Kloninger) writes:
  27. |>>
  28. |>>   SK> There's a feature in VI that I still find useful:  you can select 
  29. |>>   SK> many files to edit, and then use ":n" to go sequentially through
  30. |>>   SK> the list, visiting or editing each file once and only once.
  31. |>>
  32. |>>   SK> Anyone know of something similar in emacs?  Just editing multiple
  33. |>>   SK> files in emacs isn't enough because there's no quick way to visit
  34.  
  35.     Editing a bunch of files as Don explained below is a better
  36. way than what we have in "vi". In vi you can't access the files
  37. randomly(as I remember last). But in emacs once you invoke emacs on
  38. all the files say "abc*" then using the buffer commands you can access
  39. any file. I think this is a great feature.
  40.  
  41. |>>   SK> each file once, as far as I can tell...
  42. |>>
  43. |>>   kill-buffer (C-x k) is the key.  Do "emacs bunch o files" to start up and
  44. |>>   you will be presented with a window into the buffer of one file.
  45. |>>   After you've finished with it (perhaps saving it with C-x s) kill the
  46. |>>   buffer with C-x k.  You will then get the buffer of the next file,
  47. |>>   and so on.  The only big difference from VI is that you will be presented
  48. |>>   with the files in the reverse order to what you typed on the input line.
  49. |>>
  50. |>>   For visiting files in random order, do C-x C-b as soon as emacs starts
  51. |>>   and you'll get a listing of all the current buffers and their associated
  52. |>>   files.  To edit one of the files on the list move your cursor to the
  53. |>>   corresponding line and type f and you'll be in that file.  C-x b will
  54. |>>   get you back to the *Buffer List* buffer so you can select a new file.
  55. |>>
  56. |>>   Enjoy,
  57. |>>
  58. |>>   Don Bashford
  59. |>>   bashford@scripps.edu
  60. |>>
  61.  
  62. -sesha
  63.  
  64. --
  65. _______``When the going gets wierd, the weird turn pro...''__________
  66. Seshagiri Rao Myneni                                     srm@ross.com
  67. -ROSS Technology Inc., 5316 Hwy 290 West, Suite 500, Austin, TX 78735
  68. -Work: (512) 892-7802 x264  fax: (512) 892-3036  Home: (512) 892-7993
  69.