home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!loyola!ross.COM!srm
- From: srm@ross.com (Sesha Myneni)
- Newsgroups: comp.emacs
- Subject: Re: Sequentially edit several files
- Message-ID: <SRM.92Jul22181825@bajrang.ross.com>
- Date: 22 Jul 92 23:18:25 GMT
- References: <1992Jul22.004446.27938@Veritas.COM>
- <BASHFORD.92Jul21211537@griffy.scripps.edu>
- Sender: news@ross.COM
- Organization: ROSS Technology, Inc. Austin, Tx.
- Lines: 54
- In-Reply-To: bashford@scripps.edu's message of 22 Jul 92 04:10:35 GMT
- Nntp-Posting-Host: bajrang
-
- In article <BASHFORD.92Jul21211537@griffy.scripps.edu> bashford@scripps.edu (Don &) writes:
- |>>
- |>> Path: ross.COM!loyola!cs.utexas.edu!usc!sdd.hp.com!network.ucsd.edu!riscsm!usenet
- |>> From: bashford@scripps.edu (Don &)
- |>> Newsgroups: comp.emacs
- |>> Date: 22 Jul 92 04:10:35 GMT
- |>> References: <1992Jul22.004446.27938@Veritas.COM>
- |>> Sender: usenet@riscsm.scripps.edu
- |>> Organization: The Scripps Research Institute, La Jolla, CA, USA
- |>> 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
-
- Editing a bunch of files as Don explained below is a better
- way than what we have in "vi". In vi you can't access the files
- randomly(as I remember last). But in emacs once you invoke emacs on
- all the files say "abc*" then using the buffer commands you can access
- any file. I think this is a great feature.
-
- |>> 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
- |>>
-
- -sesha
-
- --
- _______``When the going gets wierd, the weird turn pro...''__________
- Seshagiri Rao Myneni srm@ross.com
- -ROSS Technology Inc., 5316 Hwy 290 West, Suite 500, Austin, TX 78735
- -Work: (512) 892-7802 x264 fax: (512) 892-3036 Home: (512) 892-7993
-