From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: FR: Yank rectangle, not as a rectangle but as a string. Date: Thu, 06 Mar 2014 09:26:15 +0200 Message-ID: <87siqvkctk.fsf@mithlond.arda> References: <87iorssjig.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1394090805 23641 80.91.229.3 (6 Mar 2014 07:26:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2014 07:26:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Jambunathan K." Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 06 08:26:53 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WLShh-0006hH-1a for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Mar 2014 08:26:53 +0100 Original-Received: from localhost ([::1]:56054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLShg-0003cs-B9 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Mar 2014 02:26:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLShP-0003cc-7T for help-gnu-emacs@gnu.org; Thu, 06 Mar 2014 02:26:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLShH-0004qI-TG for help-gnu-emacs@gnu.org; Thu, 06 Mar 2014 02:26:35 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:55625 helo=jenni1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLShH-0004oV-JC for help-gnu-emacs@gnu.org; Thu, 06 Mar 2014 02:26:27 -0500 Original-Received: from mithlond.arda (88.193.156.216) by jenni1.inet.fi (8.5.140.03) id 527750DA0A441C0C; Thu, 6 Mar 2014 09:26:19 +0200 Original-Received: from dtw by mithlond.arda with local (Exim 4.80) (envelope-from ) id 1WLSh8-0001AE-Tv; Thu, 06 Mar 2014 09:26:18 +0200 In-Reply-To: <87iorssjig.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 05 Mar 2014 21:52:15 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 195.156.147.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96273 Archived-At: --=-=-= Content-Type: text/plain Jambunathan K. [2014-03-05 21:52:15 +05:30] wrote: > FR: Yank rectangle, not as a rectangle but as a string. I didn't read all your examples so I might not understand this correctly. Anyway, I've written a command which sounds like what you need. With prefix argument the command requests a separator string to be inserted between rectangle rows. The default is space (" "). (defun tl-yank-rectangle-sequentially (beg end char) ;; Variable "select-active-regions" must not be t. (interactive (list (region-beginning) (region-end) (if current-prefix-arg (read-string "Separator string: ") " "))) (save-match-data (kill-new (mapconcat 'identity (extract-rectangle beg end) char)) (setq deactivate-mark t))) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJTGCMXAAoJEHGdadMkU5RQwJMQAK0LXoNUDcJ0lvMmOdyTySUE pLny24GURbsavC1EJkSC4Ws6IDifzJwnNaPf2Ttu+0BBG9FOS15mHjd9DobJsGS7 n+zbeDkv0+u2Vf7Qlk3lcGj7bcv2Rp+G/cerEWjbjNRTE/ngSqpGsfcCT+wDIuxW uwjIMrnE1hBhA/G7SzWu9l72KMoj6Flcahm6mP7CrNZHrtw1WL2Oq/Psyj1xM1Vx aCHBK5JDgC7rnvSrub50E1ATFjR45vAXyi/I8kSjMxa/PX1YjVuXawFaxc1LmNeM /tmk+VYGC4Fzy2+sXOfKXJ53WfnZS5gssP1Li6AHgx1MhqFfITfcf+63v9QDKSmH 758VGOva8JHmRnUYdaZETVreZSB5KJKunRlmQI7xBXxp3t7OA00z6+I9OaFpWPX9 FQZFXN37/gINi78fo/gPLWUkRMfUnlvSQxSyuNjU5GsOd+6TtfagQL60Ww9Dj6I9 uH70o9OZGnBgmcZwUMo3xUjhW9ZPKaTKH/QqYjJBwovER8yyqmCBmO0S1R4sSTOB WZUetN9OOjHkwXMGeTvmtGvtKEG3ervOI5NEnvqVlGUgv+mjh+iIC6stG0dWfr/x INzYN47EZzJcNc4uodCWppJwWow3sFtWWlnlSCGQpH7UYR4gNtmqHjANbugV3vbO YxbIhb24/yaKwIanF0aF =Z0kz -----END PGP SIGNATURE----- --=-=-=--