From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: emacs24/gtk3 - how to mark rectangle of to primary selection? Date: Wed, 27 Jun 2012 13:58:25 +0700 Message-ID: References: <87sjdi3p0y.wl%lists@groll.co.za> <05AA5016-B837-4A18-B759-9F06878A978D@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340780320 8362 80.91.229.3 (27 Jun 2012 06:58:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2012 06:58:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 08:58:40 2012 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 1SjmCx-000260-VE for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 08:58:36 +0200 Original-Received: from localhost ([::1]:56200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjmCy-0000eD-1w for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 02:58:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjmCs-0000e6-Un for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 02:58:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjmCr-0007QD-C3 for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 02:58:30 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:33502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjmCr-0007Nz-2x for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 02:58:29 -0400 Original-Received: by pbbrp2 with SMTP id rp2so1245741pbb.0 for ; Tue, 26 Jun 2012 23:58:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type :content-transfer-encoding; bh=ge5rjs3twDvofRfMnAkfczbLGIWOFNiSoQce7n2w3QU=; b=TV2M/Nz3nlklo1JGgq4CrBwu2ObYp7ME7JTvo/6K/G+ar3Yx9I09bHKzGFytV5fFjY OzBGdSlcSeTnbf5EllPjYTBSxXjaKzySCmQ8plMfIifJsJVN1GQ58AztfOnQ9ae6toNu xVrT1on/xtAjO1UerLN/bf4EmMWhGx2ypmr1xJXm5rBArRtu8GfuyjiciIMS8XAEAkc+ 5fqf9lAsleDCySlLHCEC5ujT06Z7CByThKwwiR1qe1DShszqF8cedudsobHt6WPIhYxM azfSLo5XtqvYoKMyM0gNgtVN82wDpU1F+Ct2weOgexGROJGxr3rc5rRHucFwA1bgfyer AW8w== Original-Received: by 10.68.220.39 with SMTP id pt7mr62117428pbc.40.1340780305630; Tue, 26 Jun 2012 23:58:25 -0700 (PDT) Original-Received: by 10.143.29.10 with HTTP; Tue, 26 Jun 2012 23:58:25 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: xL5oDHeV0Q4uzGMfnpg3f9LPIXs X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 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:85504 Archived-At: On Wed, Jun 27, 2012 at 4:19 AM, suvayu ali w= rote: > I think the limitation is in X; it is not rectangle aware. Maybe Emacs > can "fool" X into thinking a rectangle kill to appear as a normal kill > region. FAR Manager on Windows has rectangular selection and copy/paste. The Windows clipboard is not inherently rectangle-aware. An application that copies content to clipboard can provide a prioritized list of formats, so that the receiving application can choose the first one it supports. So, in FAR, when a rectangle is copied, the top format is a custom format tag, followed by CF_UNICODETEXT, followed by CF_TEXT (which stands for =93text in the locale-specific legacy single- or multibyte encoding=94). This way, if the block is then pasted back in FAR, it knows to paste it as a rectangle, while other applications paste as a plain garden-variety Unicode text block. As far as I understand, the corresponding concept in X is =93Target Atoms=94, ICCCM chapter 2.6.2.