From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edward O'Connor Newsgroups: gmane.emacs.help Subject: Re: Designing interface of a simple elisp function Date: 12 Oct 2002 17:24:55 -0700 Organization: OEC, Jacobs School of Engineering, UCSD Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <87y993eiqc.fsf@pokey.henrik-motakef.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034468852 5446 127.0.0.1 (13 Oct 2002 00:27:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 13 Oct 2002 00:27:32 +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 180WbQ-0001PN-00 for ; Sun, 13 Oct 2002 02:27:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 180WaL-0002nD-00; Sat, 12 Oct 2002 20:26:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!ihnp4.ucsd.edu!news.ucsd.edu!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Followup-To: comp.emacs Original-Lines: 19 Original-NNTP-Posting-Host: oecpc11.ucsd.edu Original-X-Trace: news1.ucsd.edu 1034468705 12326 132.239.18.171 (13 Oct 2002 00:25:05 GMT) Original-X-Complaints-To: usenet@news1.ucsd.edu Original-NNTP-Posting-Date: Sun, 13 Oct 2002 00:25:05 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:105986 comp.emacs:75253 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2533 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2533 On 12 Oct 2002, Henrik Motakef wrote: > The map-functions work on sequences, not only lists. So, for > example > > (mapcar 'identity "foo") > > returns a list of three characters. An alternative would be > > (split-string "foo" "") > > which gives a list of one-character strings. You want to be careful with this latter option if you want to write portable Elisp programs. Some XEmacsen will infloop on that. -- Edward O'Connor oconnor@soe.ucsd.edu