From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marco Parrone Newsgroups: gmane.emacs.help Subject: Re: A few simple questions Date: Sat, 10 May 2003 14:35:42 GMT Organization: none Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <871xz6uawv.fsf@marc0host.dyndns.org> References: <87n0hv9tgc.fsf@fbigm.here> <87d6iqubnw.fsf@marc0host.dyndns.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052577801 9812 80.91.224.249 (10 May 2003 14:43:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 10 May 2003 14:43:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat May 10 16:43:18 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19EVZG-0002Y6-00 for ; Sat, 10 May 2003 16:43:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19EVWU-00030f-05 for gnu-help-gnu-emacs@m.gmane.org; Sat, 10 May 2003 10:40:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeeder.edisontel.com!news-out.tin.it!news-in.tin.it!news2.tin.it.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 80.117.89.185 Original-X-Complaints-To: newsmaster@tin.it Original-X-Trace: news2.tin.it 1052577342 80.117.89.185 (Sat, 10 May 2003 16:35:42 MET DST) Original-NNTP-Posting-Date: Sat, 10 May 2003 16:35:42 MET DST Original-Xref: shelby.stanford.edu gnu.emacs.help:113023 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9520 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9520 > (defun go-to-non-alphanum (arg) > "Search forward for a whitespace." > (interactive "p") > (re-search-forward "[^A-Za-z1-9]" nil nil arg)) > > (define-key global-map (kbd "C-c n") 'go-to-char) I'm very sorry, I should be less instinctive, this should work. (defun go-to-whitespace (arg) "Search forward for a whitespace." (interactive "p") (re-search-forward " \\|\n\\|\t" nil nil arg)) (define-key global-map (kbd "C-c w") 'go-to-whitespace)