all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: David Ponce <da_vid@orange.fr>,
	56530@debbugs.gnu.org, Visuwesh <visuweshm@gmail.com>
Subject: bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled
Date: Thu, 14 Jul 2022 20:24:52 +0300	[thread overview]
Message-ID: <867d4fa9p7.fsf@mail.linkov.net> (raw)
In-Reply-To: <87edyna9wy.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 14 Jul 2022 19:20:13 +0200")

>> It should delete the region only when clicking on the selected region.
>> Maybe it's possible to add a corresponding function for the
>> 'delete-selection' property?
>
> Shouldn't be too difficult, but it seems like different people have
> different expectations of what should happen here, so I think having
> separate minor modes (or some user options) is probably the way to go.

There is already the minor mode: delete-selection-mode
that is configured by symbol properties.
Supporting a descriptive symbol name would allow to easily
configure the desired behavior with just:

  (put 'mouse-yank-at-click 'delete-selection 'yank-on-region)





  reply	other threads:[~2022-07-14 17:24 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-13  9:22 bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled David Ponce
2022-07-13  9:50 ` Visuwesh
2022-07-13 10:19   ` Lars Ingebrigtsen
2022-07-13 11:03     ` Visuwesh
2022-07-13 11:11       ` Lars Ingebrigtsen
2022-07-13 11:19         ` Visuwesh
2022-07-13 11:40           ` Lars Ingebrigtsen
2022-07-13 11:30       ` Stefan Kangas
2022-07-13 11:35         ` Visuwesh
2022-07-13 19:14         ` Juri Linkov
2022-07-13 19:19       ` Juri Linkov
2022-07-14 17:20         ` Lars Ingebrigtsen
2022-07-14 17:24           ` Juri Linkov [this message]
2022-07-14 18:04             ` Lars Ingebrigtsen
2022-07-15 18:53               ` Juri Linkov
2022-07-16 10:34                 ` Lars Ingebrigtsen
2022-07-17 18:49                   ` Juri Linkov
2022-07-22 15:07                     ` Lars Ingebrigtsen
2022-07-24 16:52                       ` Juri Linkov
2022-07-26 12:08                         ` Lars Ingebrigtsen
2022-07-13 11:10   ` David Ponce
2022-07-13 11:16     ` Visuwesh
2022-07-14  0:56   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-13 10:10 ` Stefan Kangas

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=867d4fa9p7.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=56530@debbugs.gnu.org \
    --cc=da_vid@orange.fr \
    --cc=larsi@gnus.org \
    --cc=visuweshm@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.