From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Rutt Newsgroups: gmane.emacs.help Subject: Re: A question regarding cut and paste. Date: Thu, 22 May 2003 21:49:46 -0400 Organization: The Ohio State University Dept. of Computer and Info. Science Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1053654696 24933 80.91.224.249 (23 May 2003 01:51:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 23 May 2003 01:51:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 23 03:51:32 2003 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 19J1iI-0006Tb-00 for ; Fri, 23 May 2003 03:51:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19J1he-0000Bg-S7 for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 21:50:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: gamma.cis.ohio-state.edu Mail-Copies-To: nobody User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:j8+EVJDIhMSxlQdGDwfWhtYBmBg= Original-Xref: shelby.stanford.edu gnu.emacs.help:113580 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10076 "Robin Singh" writes: > Hello All, > I am a naïve email user. In other windows editors, I can > 1. Select text(t1) from somewhere and copy it . > 2. Go somewhere else and and select some other text(t2) and paste > t1. So t2 will be replaced by t1. > > How do we do this in emacs ? Does anyone have macro to do this ? I > know there's search replace command but I don't want to use that. For a partial solution, I think you want (delete-selection-mode 1) in your ~/.emacs. Then, just after you select text t2, you have to hit the BACKSPACE or DELETE key, and then you can paste text t1 in its place. -- Benjamin