From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: mickbert@posteo.net
Newsgroups: gmane.emacs.help
Subject: Re: How do we copy rectangular selected region
Date: Fri, 10 May 2019 10:40:16 +0200
Message-ID: <e9adedb13c6f06c8d6d7c514d3610b97@posteo.net>
References: <CAH0GyZDwfwt-wJG7SEixZkd8uE40hkF8JsmDnh8PtNPJzrU0SA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="100936"; mail-complaints-to="usenet@blaine.gmane.org"
User-Agent: Posteo Webmail
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 10 10:40:42 2019
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256)
	(Exim 4.89)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hP156-000Q8i-Nk
	for geh-help-gnu-emacs@m.gmane.org; Fri, 10 May 2019 10:40:40 +0200
Original-Received: from localhost ([127.0.0.1]:39061 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hP155-0004I4-LN
	for geh-help-gnu-emacs@m.gmane.org; Fri, 10 May 2019 04:40:39 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:33006)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mickbert@posteo.net>) id 1hP14o-0004Gg-Im
	for help-gnu-emacs@gnu.org; Fri, 10 May 2019 04:40:23 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mickbert@posteo.net>) id 1hP14n-00029Y-FR
	for help-gnu-emacs@gnu.org; Fri, 10 May 2019 04:40:22 -0400
Original-Received: from mout01.posteo.de ([185.67.36.65]:57854)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <mickbert@posteo.net>) id 1hP14m-00022O-E0
	for help-gnu-emacs@gnu.org; Fri, 10 May 2019 04:40:20 -0400
Original-Received: from submission (posteo.de [89.146.220.130]) 
	by mout01.posteo.de (Postfix) with ESMTPS id 953EB16005F
	for <help-gnu-emacs@gnu.org>; Fri, 10 May 2019 10:40:17 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
	t=1557477617; bh=jzJMung2GruLPm6SUpkKCiVPEXz/Jy4IE0R/RFXfR8Y=;
	h=Date:From:To:Subject:From;
	b=Fh1wLTasoSAGeLftGarNd3dLGpSqBAf5CAvHh5X1kZb1Gi8XkliWCqfoi/ss4+Srk
	8yXMdAbmmrHd3I7VSQiEcqblQnZLXONgYp/sQdCAJAcpBBM3ZtdfBk4r1EyFbkjZ2d
	gCQlbkyKCHOtPIjBiREnY/wsGaEg2yW5y4KJfTdhF/cGn3L0GE0T23prhJXgpAfq9X
	BSwDK1iCGo7zpnu0h5iP21CQsKj1KBHRAwnALDvkawx0MQ9pzKSpmOAOP85wYTLoG1
	aJXoWtX40kx7hYufkIe6PxBClH8V5/2LyiY49Lj+4npwjPB5XYmCNV+jOwkdwH7Me7
	oiaT+B++VCfHQ==
Original-Received: from customer (localhost [127.0.0.1])
	by submission (posteo.de) with ESMTPSA id 450kDc738Kz6tm5
	for <help-gnu-emacs@gnu.org>; Fri, 10 May 2019 10:40:16 +0200 (CEST)
In-Reply-To: <CAH0GyZDwfwt-wJG7SEixZkd8uE40hkF8JsmDnh8PtNPJzrU0SA@mail.gmail.com>
X-Sender: mickbert@posteo.net
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 185.67.36.65
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs/>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "help-gnu-emacs"
	<help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.help:120283
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/120283>

On 05.05.2019 09:21, Budi wrote:
> How can we copy  rectangular selected region on latest emacs
> we paste it as line region instead
> how do such by script elisp.. thanks in advance

I use a temporary buffer, (like "*scratch*", but anything else is the 
same):
- select rectangle and copy it: M-x copy-rectangle-as-kill
- yank rectangle in in temporary buffer: C-x r y
- select what has just been yanked: C-x C-x
- move it in the kill-ring: C-w
- go to destination buffer and yank: C-y

I didn't know the command copy-rectangle-as-kill before; I used to kill 
the rectangle then re-yank, or undo, every time!
--
Mick