From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: newbie elisp question
Date: Thu, 08 Sep 2005 06:19:40 +0200 [thread overview]
Message-ID: <87k6hsdwdf.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: iWMTe.9109$FW1.3505@newsread3.news.atl.earthlink.net
"B. T. Raven" <ecinmn@peoplepc.com> 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/
next prev parent reply other threads:[~2005-09-08 4:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-08 1:59 newbie elisp question B. T. Raven
2005-09-08 2:20 ` Drew Adams
2005-09-08 4:19 ` Pascal Bourguignon [this message]
2005-09-08 22:40 ` B. T. Raven
2005-09-09 0:08 ` Pascal Bourguignon
2005-09-09 16:28 ` B. T. Raven
2005-09-09 17:32 ` Pascal Bourguignon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k6hsdwdf.fsf@thalassa.informatimago.com \
--to=spam@mouse-potato.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.