🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #788

Re: emacs

#788
From: Barry Margolin
Date: Wed, 30 Sep 1992 23:57
24 lines
1642 bytes
In article <9209301431.AA04303@bambam.mitre.org> djb@babypuss.mitre.org (David J. Braunegg) writes:
>In the definition of insert-buffer in simple.el, I suggest replacing
>  (interactive "*bInsert buffer: ")
>with
>  (interactive "*BInsert buffer: ")

The interactive "B" code will allow you to specify a nonexistent buffer,
which you don't want for insert-buffer.  You'll at least have to change the
code for insert-buffer to check whether get-buffer returns a buffer or nil,
so it can print an error if the user specifies a nonexistent buffer.
Unfortunately, there's no code character for "existing buffer, defaulting
to previous buffer".

The reason is that the "b" code was designed for C-x b (switch-to-buffer),
which is used both to cycle between two buffers and to create new buffers,
while "B" was designed for C-x k (kill-buffer), which is usually used to
kill the current buffer.  You can't change either one without screwing
thousands of users who have been typing C-x k Return and C-x b Return for
years.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Technical Details
Message-ID: <1adeseINNnig@early-bird.think.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!think.com!barmar
References: <9209301431.AA04303@bambam.mitre.org>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!think.com!barmar
From: barmar@think.com (Barry Margolin)
Subject: Re: emacs
Message-ID: <1adeseINNnig@early-bird.think.com>
Sender: gnulists@ai.mit.edu
Organization: Thinking Machines Corporation, Cambridge MA, USA
References: <9209301431.AA04303@bambam.mitre.org>
Distribution: gnu
Date: Wed, 30 Sep 1992 23:57:02 GMT
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 25