Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!3comvax!bridge2!mdb From: mdb@bridge2.3Com.COM (Mark D. Baushke) Newsgroups: gnu.emacs Subject: Re: different default for insert-buffer Message-ID: Date: 19 May 89 15:46:59 GMT References: <40151@bbn.COM> Sender: news@bridge2.ESD.3Com.COM Distribution: gnu.emacs comp.emacs Organization: 3Com Corp., Mountain View, CA. Lines: 33 In-reply-to: jr@bbn.com's message of 18 May 89 19:40:02 GMT In article <40151@bbn.COM> jr@bbn.com (John Robinson) writes: >In article , >lynn@rave (Lynn D. Newton) writes: >>When I execute insert-buffer, the prompt "Insert buffer: (default ...)" >>asks me for the current buffer. This seems like a strange >>default. Why would I want to duplicate the current buffer? > >This same thing has been annoying me lately. Mayne this is motivation >to fix it. > >In the definition of insert-buffer (in simple.el), it has the >following: > > (interactive "*bInsert buffer: ") > >... You have to use the more elaborate form of interactive: > > (interactive (list (read-buffer "Insert buffer: " (other-buffer) t)) A simpler alternative to this is to use (interactive "*BInsert buffer: ") which is equivalent to (and more efficient than) the more elaborate form. The 'B' documentation may not be very clear, but the code does an (other-buffer) as the default. Enjoy! -- Mark D. Baushke UUCP: {3comvax,auspex,sun}!bridge2!mdb Nameserver: mdb@bridge2.ESD.3Com.COM