[Top][All Lists]

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

Re: Redefining (forward-word) and (backward-word)

From: troelskn
Subject: Re: Redefining (forward-word) and (backward-word)
Date: Mon, 5 May 2008 02:02:30 -0700 (PDT)
User-agent: G2/1.0

On 4 Maj, 19:56, address@hidden (Johan Bockgård) wrote:
> troelskn <address@hidden> writes:
> > So basically, my-forward-word moves the cursor forward, until it
> > reaches a word-boundary.
> (defun my-forward-word (&optional arg)
>   (interactive "p")
>   (dotimes (n arg)
>     (goto-char (1+ (point)))
>     (re-search-forward "\\b" nil t)))

Exactly what I was trying to accomplish. Thanks a bunch!


reply via email to

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