From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24986 Path: main.gmane.org!not-for-mail From: "Robin S. Socha" Newsgroups: gmane.emacs.gnus.general Subject: Re: OT: XEmacs mouse selection? Date: 01 Sep 1999 22:04:08 +0200 Organization: Usenet Death Squad Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035162455 11675 80.91.224.250 (21 Oct 2002 01:07:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:07:35 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id QAA23106 for ; Wed, 1 Sep 1999 16:50:21 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB24617; Wed, 1 Sep 1999 15:50:18 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 01 Sep 1999 15:50:17 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA20452 for ; Wed, 1 Sep 1999 15:50:07 -0500 (CDT) Original-Received: from kens.com (kens.com [129.250.30.40]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id QAA23086 for ; Wed, 1 Sep 1999 16:49:08 -0400 (EDT) Original-Received: from socha.net (IDENT:root@next3.rhrz.uni-bonn.de [131.220.224.32]) by kens.com (8.9.3/8.9.3-mod-for-majordomo) with ESMTP id QAA04712 for ; Wed, 1 Sep 1999 16:48:43 -0400 (EDT) Original-Received: (from robin@localhost) by socha.net (8.8.7/8.8.7) id WAA13439; Wed, 1 Sep 1999 22:04:11 +0200 Original-To: ding@gnus.org X-URL: X-Face: #Z}0zkbqU,m`+S)^0R[.23L-o>U{UQ|(DvIqu^Bjw:po_g9;4JnT9tbn;QX$ga/LYS In-Reply-To: Lars Magne Ingebrigtsen's message of "27 Aug 1999 19:33:12 +0200" Original-Lines: 20 User-Agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) XEmacs/21.2 (Shinjuku) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24986 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24986 * Lars Magne Ingebrigtsen writes: > It's driving me nuts that XEmacs doesn't copy the top of the kill > ring to the X selection (and vice versa). I think I remember someone > sending me something that made XEmacs behave like Emacs here, but I > seem to have, er, misplaced it. Some kind soul...? Like this? ;:* Put the mouse selection in the kill buffer ;: Jan Vroonhof (defun mouse-track-drag-copy-to-kill (event count) "Copy the dragged region to the kill ring" (let ((region (default-mouse-track-return-dragged-selection event))) (when region (copy-region-as-kill (car region) (cdr region))) nil)) (add-hook 'mouse-track-drag-up-hook 'mouse-track-drag-copy-to-kill) -- Robin S. Socha