Subject: bug#6774: Cut and paste with C-w/mouse-2 not working?

From: Kenichi Handa <[email-masked]>
Date: Thu, 12 Aug 2010 16:51:01 +0900

In article <[email-masked]>, Jan Djärv <[email-masked]> writes:

> Kenichi Handa skrev 2010-08-12 05.54:
> > We can add a proper code to set_point_both like this code in
> > init_iterator (xdisp.c).
> >
> >    /* Non-zero if we should highlight the region.  */
> >    highlight_region_p
> >      = (!NILP (Vtransient_mark_mode)
> >         &&  !NILP (current_buffer->mark_active)
> >         &&  XMARKER (current_buffer->mark)->buffer != 0);
> >

> Don't you have to check that point != mark also?

Yes, of course.  The above code is just an example.

---
Kenichi Handa
[email-masked]