Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!van-bc!ubc-cs!mprgate.mpr.ca!spain!manderso From: manderso@spain.mpr.ca (Mark Anderson) Newsgroups: comp.emacs Subject: Re: Buffer handling in GNU Emacs 18.55 Message-ID: <1990Dec11.221122.18011@mprgate.mpr.ca> Date: 11 Dec 90 22:11:22 GMT References: <2855@archive.BBN.COM> <3848@stl.stc.co.uk> Sender: news@mprgate.mpr.ca Reply-To: manderso@mprgate.mpr.ca (Mark Anderson) Organization: MPR Teltech Ltd., Burnaby, B.C., Canada Lines: 22 In article <3848@stl.stc.co.uk> "Ian Woollard" writes: >What I want to do is to be able to flip quickly between several buffers, [...] >a) have a way of rotating the buffer list, in either direction. [...] >Of this a) is the simplest, in fact Emacs can nearly do this with >'bury-buffer' command, but as far as I know there is no command to >'unbury-buffer'. (defun unbury-buffer () "Switch to the last buffer in the buffer list." (interactive) (switch-to-buffer (nth (1- (length (buffer-list))) (buffer-list)))) I have bury-buffer and unbury-buffer bound to adjacent function keys, making it easy to cycle through the buffer list. Oh, and you might like M-x electric-buffer-list. -- Mark Anderson manderso@mprgate.mpr.ca