all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs24/gtk3 - how to mark rectangle of to primary selection?
Date: Wed, 27 Jun 2012 13:58:25 +0700	[thread overview]
Message-ID: <CAP_d_8V2u=UCZ=0kcdXUQ4mL22EeFtZ+9mXW9t8ky7OFuF12iA@mail.gmail.com> (raw)
In-Reply-To: <CAMXnza1HmVoqvObLQKuDHZ1e+m=ZFnYmxTB+M44X-FKaXVA4xw@mail.gmail.com>

On Wed, Jun 27, 2012 at 4:19 AM, suvayu ali <fatkasuvayu+linux@gmail.com> wrote:

> 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 “text in the locale-specific legacy single-
or multibyte encoding”). 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 “Target
Atoms”, ICCCM chapter 2.6.2.



  reply	other threads:[~2012-06-27  6:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26 14:24 emacs24/gtk3 - how to mark rectangle of to primary selection? Paul K
2012-06-26 14:52 ` Peter Dyballa
2012-06-26 18:29 ` Jonathan Groll
2012-06-26 20:33   ` Paul K
2012-06-26 20:44     ` Peter Dyballa
2012-06-26 20:58       ` Paul K
2012-06-26 21:19         ` suvayu ali
2012-06-27  6:58           ` Yuri Khan [this message]
     [not found]   ` <mailman.3529.1340742812.855.help-gnu-emacs@gnu.org>
2012-06-27 11:47     ` Xah Lee
2012-06-27 17:15       ` Aurélien Aptel
2012-06-27 18:41         ` Andreas Röhler
     [not found]       ` <mailman.3573.1340817336.855.help-gnu-emacs@gnu.org>
2012-06-29 16:38         ` Xah Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_d_8V2u=UCZ=0kcdXUQ4mL22EeFtZ+9mXW9t8ky7OFuF12iA@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.