Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Select-copy: a la emacs. How?



>>>>> "Joseph" == Joseph C Slater <[EMAIL PROTECTED]> writes:

    Joseph> I've been hunting around looking to figure out how to set
    Joseph> the behavior of xemacs to be like emacs so that selecting
    Joseph> some text puts it in the kill-ring (copy).

It's possible, but not easy.  The problem is that in fact that's not
what Emacs does; it does something far more complicated because for
many users that behavior, implemented naively, really gets in the way
of other functionality.

The obvious try is something like (untested)

(defun select-and-copy ()
  (own-clipboard)
  (copy-region-as-kill (region-beginning) (region-end)))

(setq interprogram-cut-function 'select-and-copy)

But you'll end up with lots of garbage in your kill-ring, I think.

-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.