From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David De La Harpe Golden" Newsgroups: gmane.emacs.devel Subject: Re: Improving X selection? Date: Fri, 8 Feb 2008 15:21:05 +0000 Message-ID: <8e24944a0802080721m1d1351a8vf777d54c37eef56b@mail.gmail.com> References: <8e24944a0802070815n18dea273j5c3962235d91ca8e@mail.gmail.com> <87bq6sir34.fsf@uwakimon.sk.tsukuba.ac.jp> <8e24944a0802071022i2b259c5fka14f191a3c519157@mail.gmail.com> <8e24944a0802071239r1cdc8affq7875fea0b9876560@mail.gmail.com> <8e24944a0802071850o2920041cw9de2f27c59f90148@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202484093 15308 80.91.229.12 (8 Feb 2008 15:21:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Feb 2008 15:21:33 +0000 (UTC) Cc: "Horsley, Tom" , "Stephen J. Turnbull" , "Jan D." , rms@gnu.org, emacs-devel@gnu.org To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 08 16:21:54 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JNV33-00035Z-5a for ged-emacs-devel@m.gmane.org; Fri, 08 Feb 2008 16:21:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNV2a-0004dD-AF for ged-emacs-devel@m.gmane.org; Fri, 08 Feb 2008 10:21:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JNV2N-0004WS-9q for emacs-devel@gnu.org; Fri, 08 Feb 2008 10:21:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNV2M-0004Vf-O9 for emacs-devel@gnu.org; Fri, 08 Feb 2008 10:21:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNV2M-0004VV-E3 for emacs-devel@gnu.org; Fri, 08 Feb 2008 10:21:10 -0500 Original-Received: from ag-out-0708.google.com ([72.14.246.241]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JNV2L-0005br-Vw for emacs-devel@gnu.org; Fri, 08 Feb 2008 10:21:10 -0500 Original-Received: by ag-out-0708.google.com with SMTP id 35so8600892aga.10 for ; Fri, 08 Feb 2008 07:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=KXxghR+ZNdxUuvHImHn1lw7hZxJga/pWjWUOQeSqPxQ=; b=oJMYgP2537gIy17e9Paa7XW0E0wtDiH/H6AKvcZGt3Og+TsAXIGGS0kYsOwWEho57dOXKRIZ2Bd3BrMOTqqZ6X12a0GYIHSuETnoSBSA8BCEiXN2friYIIhkYa8of0/SHxWC9J0myQwff9WuyodM8nps7tR3a+oogbRRi/gatNg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m33nDC/JHDxtBJtfZSuX2ncqVBYpE3I6IyfAf59hNuE5CihYgeSZUG70uCXu3VXu7DqL+jx0kTQZ3xjJpdhZBXYeEaNhQjqfrQr5oRXSf4sdjjWH2URF0bNNEaJhIov2Txbz4+Qe3l5iAUW73vGUr0I1cqOIHS/iwu7DUFtWFkc= Original-Received: by 10.142.232.20 with SMTP id e20mr1125892wfh.187.1202484065910; Fri, 08 Feb 2008 07:21:05 -0800 (PST) Original-Received: by 10.142.111.4 with HTTP; Fri, 8 Feb 2008 07:21:05 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88524 Archived-At: On 08/02/2008, Stefan Monnier wrote: > > Do you mean as a customization telling select-active-regions not to > > use kill-ring-save but rather its own call to > > interprogram-cut-function with the locally rebound > > x-select-enable-clipboard*? Or telling kill-ring-save to not use the > > kill ring (heh)? > > Not sure how I'd use it, I'd have to look more carefully at the code. > But maybe it would be a simple var used for let-binding, and not > a defcustom. > > > I still think an interprogram-select/insert-function is simpler. > > Selection and insertion are plain different interprogram operations to > > cut/copy and paste after all. In fact, outside X11, they're not even > > interprogram operations. > > I don't think you understand that interprogram-*-function are low-level > variables used to dispatch to the appropriate backend (mac/X/w32/...). > I understand that. Trouble is, you seem to want to use interprogram-cut for thigns that are not [supposed to be] cut/copy operations at the backend/OS level and interprogram-paste for things that are not [supposed to be] paste operations at the backend/OS level. Look, if the operations aren't confused, it's easy enough to provide a user preference to confuse them if they like the historic emacs behaviours. If they start off confused, it's difficult to impossible to subsequently unconfuse them. Calling (or considering the functions to be) really interprogram-input-function and interprogram-output-function that take parameters or use locally rebound variables to indicate what sort of input or output operation it really is could kind of work, but would likely encourage just the sort of historic confusion it would be nice to avoid in future (if emacs fitting in with a freedesktop.org desktop is a goal).