From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "David Chadd" Newsgroups: gmane.emacs.help Subject: Help with elisp Date: Wed, 30 Jul 2003 19:06:49 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <16168.2361.250000.589153@gargle.gargle.HOWL> Reply-To: d.chadd@uea.ac.uk NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059641610 31785 80.91.224.249 (31 Jul 2003 08:53:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2003 08:53:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 31 10:53:27 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 19i9Bf-0008GK-00 for ; Thu, 31 Jul 2003 10:53:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19i98F-0004O6-I5 for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jul 2003 04:49:55 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19i987-0004K1-HR for help-gnu-emacs@gnu.org; Thu, 31 Jul 2003 04:49:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19i97v-00045R-7j for help-gnu-emacs@gnu.org; Thu, 31 Jul 2003 04:49:36 -0400 Original-Received: from mailgate2.uea.ac.uk ([139.222.230.101]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19i957-0002kH-JD for help-gnu-emacs@gnu.org; Thu, 31 Jul 2003 04:46:41 -0400 Original-Received: from [139.222.130.17] (helo=mailserver2.uea.ac.uk) by mailgate2.uea.ac.uk with esmtp (Exim 3.02 #1) id 19i94X-000COz-00 for help-gnu-emacs@gnu.org; Thu, 31 Jul 2003 09:46:05 +0100 Original-Received: from [139.222.250.229] (helo=DCHADD-NOTEBOOK) by mailserver2.uea.ac.uk with esmtp (Exim 3.02 #1) id 19i94W-001Mlz-00 for help-gnu-emacs@gnu.org; Thu, 31 Jul 2003 09:46:05 +0100 X-Mailer: emacs 21.2.1 (via feedmail 8 Q); VM 7.17 under Emacs 21.2.1 Original-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11497 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11497 Apologies for a question demonstrating beginner's total Elisp incompetence. I want to make lists out of series of attribute-values in an xml file. (The values are sigla of manuscripts.) These are e.g. in the form: wit="CAO-C Alb2 Hyd" Having found the string of values (CAO-C Alb2 Hyd) with a regexp search, I simple-mindedly thought I would be able to do something like (setq wits (split-string (match-string 1))) This does indeed make a list --- (listp wits) returns T --- but the lists don't behave as I would expect. For instance, they don't respond correctly to (set-difference), (intersection) etc. And for reasons I can guess at, but don't know enough to do anything about, the lists are in the form ("CAO-C" "Alb2" "Hyd") rather than (CAO-C Alb2 Hyd). I'm obviously going totally the wrong way about this. How should I be trying to make a conventional Lisp list out of a found string of this kind? Advice and guidance gratefully received. DC -- -------------------------- Professor David Chadd University of East Anglia Norwich NR4 7TJ, UK net: fax: +44 (0)1263 250454 --------------------------