mouse-copy icon indicating copy to clipboard operation
mouse-copy copied to clipboard

Submit to MELPA

Open Wilfred opened this issue 6 years ago • 7 comments

This is a neat little package, and it would be nice to see it on MELPA.

Wilfred avatar Aug 22 '18 21:08 Wilfred

Thank you! That is a good idea.

vsedach avatar Aug 26 '18 03:08 vsedach

Not that it's a big deal for trivial code like this, but there is a minor license conflict: this package says it's ISC, yet says it's adapted from GPL code.

alphapapa avatar Aug 29 '18 22:08 alphapapa

Yes, I overlooked that.

After learning more about licensing and doing some thinking, it seems nonsensical in principle to release extensions to GNU Emacs that are not licensed under the GPL.

alphapapa [email protected] writes:

Not that it's a big deal for trivial code like this, but there is a minor license conflict: this package says it's ISC, yet says it's adapted from GPL code.

vsedach avatar Aug 30 '18 02:08 vsedach

Uh, so I was compiling Emacs today, and noticed that this is already built-in to Emacs! https://github.com/emacs-mirror/emacs/blob/master/lisp/mouse-copy.el

I really appreciate your package for helping me discover it, but perhaps it doesn't need to be on MELPA :)

Wilfred avatar Sep 02 '18 22:09 Wilfred

That is mouse-drag-, which is enabled by default. I did not know about that when I first wrote mouse-copy.el. It does something quite different. Maybe instead of submitting to MELPA I should get around to doing my FSF copyright assignment paperwork and submit a patch for Emacs.

Wilfred Hughes [email protected] writes:

Uh, so I was compiling Emacs today, and noticed that this is already built-in to Emacs! https://github.com/emacs-mirror/emacs/blob/master/lisp/mouse-copy.el

I really appreciate your package for helping me discover it, but perhaps it doesn't need to be on MELPA :)

vsedach avatar Sep 05 '18 02:09 vsedach

Commands in mouse-copy.el aren't enabled by default, but I see they're slightly different. mouse-drag-secondary-pasting requires you to M-down-mouse-1 and drag the region you want, and it's inserted at point.

This package uses the sexp you've just clicked on, saving you from needing to drag across the sexp.

It's definitely more convenient with this package, but since core Emcs already has a mouse-copy.el, this package will need to be renamed before MELPA I suspect.

Wilfred avatar Sep 23 '18 23:09 Wilfred

It's definitely more convenient with this package, but since core Emcs already has a mouse-copy.el, this package will need to be renamed before MELPA I suspect.

Here is what I would like to do:

Rewrite this functionality as new code that extends Emacs' mouse-copy.el and submit it as a patch for inclusion into Emacs.

There are many things wrong with this code (like the use of error). I would also like to have these features:

  1. Use secondary selection face for highlighting the s-exp about to be copied.
  2. Customization group and better documentation.
  3. Look into adding other mouse actions from ZWEI/Zmacs.

I can't promise this will be done soon, but I would like to do it (I even bought a mouse again last week, in anticipation of the work, after almost a decade of pointing stick use). Thank you for showing interest in this code, and for calling my attention to Emacs' mouse-copy.el

Vladimir

vsedach avatar Sep 25 '18 06:09 vsedach