From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris F.A. Johnson" Newsgroups: gmane.emacs.help Subject: Re: No copy-rectangle-as-kill? Date: Wed, 1 Jun 2005 06:58:06 -0400 Message-ID: References: Reply-To: cfajohnson@gmail.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117625826 16004 80.91.229.2 (1 Jun 2005 11:37:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2005 11:37:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 01 13:36:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DdRVP-0001ZA-Kv for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jun 2005 13:35:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdRaf-0004xh-Ux for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jun 2005 07:40:54 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.rogers.com!news.rogers.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 01 Jun 2005 06:03:02 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.7.4 (Linux) Original-Lines: 18 Original-NNTP-Posting-Host: 70.25.29.224 Original-X-Trace: sv3-tGPe0+qsTkr/KXvDlnUk3x6pkLBwY52ec/w0kbYXTgwp8FeSlva8xMsMQZ85XPlC9PBbIsDPUSaqDu8!TQ02kGlYp2iEWUZpuRt9GLgVUE0z6+5ERqPG/YVnSsKxA3xlHfUkhg7lSLkG Original-X-Complaints-To: abuse@rogers.com X-DMCA-Complaints-To: abuse@rogers.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:131663 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27123 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27123 On Wed, 01 Jun 2005 at 09:50 GMT, Hattuari wrote: > Am I overlooking something, or is there no command in Emacs to copy a > rectangle into the last killed rectangle "special place" without also > removing it from the current buffer? I gotta tell y'all, XEmacs has better > rectangle support than Emacs. ;) (defun copy-rectangle-as-kill () (interactive) (save-excursion (kill-rectangle (mark) (point)) (exchange-point-and-mark) (yank-rectangle))) -- Chris F.A. Johnson ================================================================== Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress