From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: newbie elisp question Date: Thu, 08 Sep 2005 06:19:40 +0200 Organization: Informatimago Message-ID: <87k6hsdwdf.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1126153288 2029 80.91.229.2 (8 Sep 2005 04:21:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2005 04:21:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 08 06:21:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EDDuI-0008PY-BS for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Sep 2005 06:21:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EDDuH-000605-QD for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Sep 2005 00:21:01 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feeder.ecngs.de!ecngs!feeder2.ecngs.de!newsfeed.stueberl.de!proxad.net!proxad.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:eUGrfh1FUVwNBHI6yGELNpEdR4M= Original-Lines: 43 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=VBShFddPRMHM`936J8m;nJEY<>`XO4V7M>Uh List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29309 Archived-At: "B. T. Raven" writes: > [...] > (defun goto-vowel > "Skip to next vowel after point." > (interactive) > (while (not (vowelp (char-after))) (forward-char)) > ) > [...] > What am I not understanding here? Drew answered why. I'll add that you could use looking-at: (defun goto-vowel () "Skip to next vowel after point." (interactive) (while (not (looking-at "[aeiouy]") (forward-char))) More over, only in iso-8859-1 there are a lot of other vowels: ÀÁÂÃÄÅÆÈÉÊËÌÍÎÏÒÓÔÕÖØÙÚÛÜÝàáâãäåæèéêëìíîïòóôõöøùúûüýÿ (and what about semi-vowels like y? In some languages it's considered a plain vowel). One would hope to be able to use the character categories and match \C1 as in: (while (looking-at "\\C1") (forward-char)) unfortunately, in the default category table, the consonant/vowel attribute is not set for ASCII characters. You'd have to build a correct category table. -- __Pascal_Bourguignon__ _ Software patents are endangering () ASCII ribbon against html email (o_ the computer industry all around /\ 1962:DO20I=1.100 //\ the world http://lpf.ai.mit.edu/ 2001:my($f)=`fortune`; V_/ http://petition.eurolinux.org/