all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David De La Harpe Golden <david@harpegolden.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Drew Adams <drew.adams@oracle.com>, emacs-devel@gnu.org
Subject: Re: The X window system, yanking, and pasting using the mouse
Date: Sat, 29 Jan 2011 19:06:03 +0000	[thread overview]
Message-ID: <4D44651B.4090606@harpegolden.net> (raw)
In-Reply-To: <jwvei7whkcf.fsf-monnier+emacs@gnu.org>

On 28/01/11 19:59, Stefan Monnier wrote:
>> really what the option is all about IIUC.  Please rename the option.  One
>> possible name is `autocopy-active-region-to-primary': a copy is made
>> automatically, from the active region to the primary selection.
>
> That sounds like a good idea.
>

I'm certainly not averse to renaming it if people are happy to use the 
x11-specific terminology "[[window] system] primary" and "[[window] 
system] clipboard" instead of more neutral "[[window] system] 
selection", "[[window] system] clipboard" terminology.

I did /suggest/ renaming some years ago owing to various confusions (and 
despite the fact it is demonstrably commonplace to refer to primary as 
"the" selection here in x11 land, it after all conventionally holds the 
most recently selected text - we see that in apps from KDE klipper to 
GNUstep's pasteboard daemon...)

Care must be taken to layer the api, though, just because it's being 
referred to as "primary" doesn't mean you should short-circuit /asking 
the backend/ to update the system primary like you ask it to update the 
system clipboard. The x11 backend implementation would then update the 
primary x11-selection and the ns backend implementation the 'Selection' 
pasteboard.

"autocopy" may be oversimplified given the lazy nature of the protocol 
involved on some platforms, though user-visible behaviour is such that 
it doesn't matter all that much. "map" might be a alternative that 
glosses over the lazy vs. eager issues of the different platforms if you 
want an explicit verb at all e.g.

map-emacs-active-region-to-system-primary
or just emacs-active-region-to-system-primary
  - explicit

map-active-region-to-system-primary
or just active-region-to-system-primary
  - after all, you don't encounter "active region" outside emacs jargon.

map-active-region-to-primary
or just active-region-to-primary
- Short, but primary isn't rightly considered an emacs-level entity 
(even if it is emulated internally by emacs on some platforms), so I 
kind of like having "system" in there.

(see, we'll likely eventually also want a
map-active-region-to-system-clipboard
for people who like that sort of thing, previously referred to as 
"clipboard-active-regions", especially since w32 doesn't have a
system-primary)



      reply	other threads:[~2011-01-29 19:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27  2:31 The X window system, yanking, and pasting using the mouse Manoj Srivastava
2011-01-27  2:39 ` Miles Bader
2011-01-27  3:33   ` Manoj Srivastava
2011-01-27  7:49     ` Stefan Reichör
2011-01-27  6:56 ` Eli Zaretskii
2011-01-27 10:36   ` Manoj Srivastava
2011-01-27 21:41     ` Chong Yidong
2011-01-27 21:35 ` David De La Harpe Golden
2011-01-28  8:42   ` Manoj Srivastava
2011-01-28 18:22   ` Drew Adams
2011-01-28 19:59     ` Stefan Monnier
2011-01-29 19:06       ` David De La Harpe Golden [this message]

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=4D44651B.4090606@harpegolden.net \
    --to=david@harpegolden.net \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.