From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.bugs Subject: Re: emacs lacks ed's "c" Date: Mon, 23 Dec 2002 19:06:59 +0100 Organization: University of Dortmund, Germany Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <841y48d2yk.fsf@lucy.cs.uni-dortmund.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040666977 6087 80.91.224.249 (23 Dec 2002 18:09:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Dec 2002 18:09:37 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18QX1D-0001Zv-00 for ; Mon, 23 Dec 2002 19:09:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QX1F-0002JW-03 for gnu-bug-gnu-emacs@m.gmane.org; Mon, 23 Dec 2002 13:09:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18QX0l-0001vC-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 23 Dec 2002 13:09:07 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18QX0F-000175-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 23 Dec 2002 13:08:44 -0500 Original-Received: from sjc3-1.relay.mail.uu.net ([199.171.54.122]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QX07-0000d0-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 23 Dec 2002 13:08:28 -0500 Original-Received: from mail.fu-berlin.de by sjc3sosrv11.alter.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQnumy21907 for ; Mon, 23 Dec 2002 18:08:20 GMT Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 23 Dec 2002 19:07:02 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 23 Dec 2002 19:07:02 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: pd9e1ef94.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 22 X-Orig-NNTP-Posting-Host: pd9e1ef94.dip.t-dialin.net (217.225.239.148) X-Orig-X-Trace: fu-berlin.de 1040666822 5455621 217.225.239.148 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:RA4uPrp5VSci0IuH4aTKzhSNjo8= X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4084 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4084 Dan Jacobson writes: > Could it be that emacs does not implement a basic ed(1) command, "c", > for changing text, i.e. emacs seems to have no way, with just one > command, to exchange the current region with the contents of the kill > buffer. FWIW, I think `c' requires you to type in the new text. So after marking the region, you might as well type C-w, then type the new text :-) > Not that anybody needed it of course but aren't you going to keep up > with the Joneses? Whee. Of course, there is always M-x viper RET... Hm. Indeed, it seems that there is no easy way to do what you are asking for. Hm. One would have to type C-w C-y M-y. Luckily, it's easy to make a kbd macro that does this. -- ~/.signature is: umop ap!sdn (Frank Nobis)