From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roy Smith Newsgroups: gmane.emacs.help Subject: looping over characters in a string in elisp? Date: Wed, 25 Dec 2002 18:53:54 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1040861117 27394 80.91.224.249 (26 Dec 2002 00:05:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Dec 2002 00:05:17 +0000 (UTC) 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 18RLWW-00077i-00 for ; Thu, 26 Dec 2002 01:05:16 +0100 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 18RLWk-0004xS-02 for gnu-help-gnu-emacs@m.gmane.org; Wed, 25 Dec 2002 19:05:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!roy Original-Newsgroups: gnu.emacs.help Original-Lines: 8 Original-NNTP-Posting-Host: p67-13.acedsl.com Original-X-Trace: reader1.panix.com 1040860434 17377 66.114.67.13 (25 Dec 2002 23:53:54 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Wed, 25 Dec 2002 23:53:54 +0000 (UTC) User-Agent: MT-NewsWatcher/3.1 (PPC) Original-Xref: shelby.stanford.edu gnu.emacs.help:108481 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:5010 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5010 I'm probably being dense, but I can't figure out how to loop over each character in a string in elisp (I'm using emacs 20.5.1). I know I can use mapchar to map a function to each character, but I'm looking for something that lets me do (essentially): (while char in string (do stuff) )