help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert rectangle's lines to a flat string and put it in the kill ri


From: Teemu Likonen
Subject: Re: Convert rectangle's lines to a flat string and put it in the kill ring
Date: Sun, 08 Sep 2013 15:58:21 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Teemu Likonen [2013-09-08 15:39:59 +03:00] wrote:

> I'm trying to write a custom rectangle copy command. It should convert
> rectangle's lines to a flat string like this: "line1|line2|line3", that
> is, use separator character "|" between lines.

> It doesn't work. The next yank command inserts the region between BEG
> and END, not the generated flat string.

The problem solved. I had select-active-regions=t so the region was
added to kill ring after my kill-new function call. When I set the
variable to symbol "only" my custom kill ring insert remains the first
one in the ring.

Attachment: pgpjrkR4r1agH.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]