Gnus development mailing list
 help / color / mirror / Atom feed
From: "Robin S. Socha" <robin@socha.net>
Subject: Re: OT: XEmacs mouse selection?
Date: 01 Sep 1999 22:04:08 +0200	[thread overview]
Message-ID: <deathsquad.m3k8qaiekn.fsf@socha.net> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "27 Aug 1999 19:33:12 +0200"

* Lars Magne Ingebrigtsen <larsi@gnus.org> 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 <vroonhof @ frege.math.ethz.ch>
(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  <http://socha.net/XEmacs/misc.html>


      parent reply	other threads:[~1999-09-01 20:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-27 17:33 Lars Magne Ingebrigtsen
1999-08-28 17:58 ` Jan Vroonhof
1999-09-25  6:46   ` Lars Magne Ingebrigtsen
1999-09-01 20:04 ` Robin S. Socha [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=deathsquad.m3k8qaiekn.fsf@socha.net \
    --to=robin@socha.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).