help-gnu-emacs
[Top][All Lists]
Advanced

[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, bojohan+n...@dd.chalmers.se (Johan Bockgård) wrote:
> troelskn <troel...@gmail.com> 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!

--
troels


reply via email to

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