Message159

Author rpluim
Recipients skip.montanaro, xemacs-beta
Date 2008-01-19.06:42:57
Content
On 10/17/07, skip@pobox.com <skip@pobox.com> wrote:
>
>
> > (define-key global-map 'button3 'mouse-track-adjust)
> > (add-hook 'mouse-track-click-hook
> >       (lambda (event count)
> >         (if (or (/= (event-button event) 3)
> >             (/= count 2))
> >         nil
> >           (kill-region (point) (mark))
> >           t
> >           )))
>
> > (setq mouse-yank-at-point t)
>
> > I am not able to get it to select the region spanning the last point
> where
> > button1 was clicked, to the current mouse location.  To do that I have
> to
> > highlight the region by dragging the mouse.  Presumably, I have to
> invoke
> > some 'mark the point' function in the code above when button1 is clicked
> > in the above conditional?
>
>

Does it work to use (event-point event) instead of (mark)?

Robert
Files
File name Uploaded
unnamed rpluim, 2008-01-19.06:42:57
unnamed rpluim, 2008-01-19.06:42:57
History
Date User Action Args
2008-01-19 06:42:57rpluimlinkissue125 messages
2008-01-19 06:42:57rpluimcreate