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