[Top][All Lists]

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

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

From: Johan Bockgård
Subject: Re: Redefining (forward-word) and (backward-word)
Date: Sun, 04 May 2008 19:56:24 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

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)))

Johan Bockgård

reply via email to

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