[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6774: Cut and paste with C-w/mouse-2 not working?
From: |
Kenichi Handa |
Subject: |
bug#6774: Cut and paste with C-w/mouse-2 not working? |
Date: |
Thu, 12 Aug 2010 21:14:43 +0900 |
In article <jwv62zgdynz.fsf-monnier+emacs@gnu.org>, Stefan Monnier
<monnier@iro.umontreal.ca> writes:
>>> So the C-f (or any other movement) would cause the selection of PRIMARY?
> > When transient-mark-mode is on (including temporary one), I
> > think yes.
>>> That would have to be performed in some kind of post-command-hook, which
>>> is undesirable.
> > We can add a proper code to set_point_both like this code in
> > init_iterator (xdisp.c).
> Putting it in set_point_both would be much worse than on
> post-command-hook (set-point-both is a very low-level function,
> triggered in many more cases than just moving the cursor).
If a test to check if we have to newly own the PRIMARY
selection is trivial, there should be no problem.
Another candidate for checking that is somewher near here in
command_loop_1 () (around line 1818).
finalize:
if (current_buffer == prev_buffer
&& last_point_position != PT
&& NILP (Vdisable_point_adjustment)
&& NILP (Vglobal_disable_point_adjustment))
{
This place is similar to post-command-hook, but we can avoid
unnecessary Lisp calls in many cases.
---
Kenichi Handa
handa@m17n.org
- bug#6774: Cut and paste with C-w/mouse-2 not working?, (continued)
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Jan Djärv, 2010/08/10
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Stefan Monnier, 2010/08/11
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Jan Djärv, 2010/08/11
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Stefan Monnier, 2010/08/11
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Jan Djärv, 2010/08/11
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Stefan Monnier, 2010/08/11
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Kenichi Handa, 2010/08/12
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Jan Djärv, 2010/08/12
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Kenichi Handa, 2010/08/12
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Stefan Monnier, 2010/08/12
- bug#6774: Cut and paste with C-w/mouse-2 not working?,
Kenichi Handa <=
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Stefan Monnier, 2010/08/12
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Jan Djärv, 2010/08/12
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Stefan Monnier, 2010/08/13
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Eli Zaretskii, 2010/08/13
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Kenichi Handa, 2010/08/13
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Stefan Monnier, 2010/08/13
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Kenichi Handa, 2010/08/16
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Jan Djärv, 2010/08/16
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Kenichi Handa, 2010/08/16
- bug#6774: Cut and paste with C-w/mouse-2 not working?, Jan Djärv, 2010/08/17