[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kill-region and white space

From: kgold
Subject: Re: kill-region and white space
Date: 1 Sep 2004 18:47:48 GMT

Kevin Rodgers <address@hidden> writes:
> Instead, there are
> 2 utility functions that try be intelligent about what the user is
> selecting depending on where the mouse clicks occur: mouse-start-end
> and mouse-skip-word.  So I think you could advise mouse-skip-word like
> this:
> (defadvice mouse-skip-word (after trailing-whitespace activate)
>    "Skip trailing whitespace at a word boundary when going forward."
>    (if (and (> (ad-get-arg 0) 0) (looking-at "\\>"))
>        (skip-syntax-forward " ")))

That was it.  I'm a happy mouse-clicker.  Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]