From: "David Chadd" <d.chadd@uea.ac.uk>
Subject: Help with elisp
Date: Wed, 30 Jul 2003 19:06:49 +0100 [thread overview]
Message-ID: <16168.2361.250000.589153@gargle.gargle.HOWL> (raw)
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: <d.chadd@uea.ac.uk>
fax: +44 (0)1263 250454
--------------------------
next reply other threads:[~2003-07-30 18:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-30 18:06 David Chadd [this message]
[not found] <mailman.767.1059641390.8231.help-gnu-emacs@gnu.org>
2003-07-31 11:30 ` Help with elisp lawrence mitchell
2003-07-31 11:59 ` Tom Capey
2003-07-31 15:59 ` Kevin Rodgers
-- strict thread matches above, loose matches on Subject: below --
2003-07-31 18:13 David Chadd
2021-10-14 22:18 help with Elisp Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-14 22:21 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-14 22:23 ` Gregory Heytings
2021-10-14 22:24 ` Óscar Fuentes
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16168.2361.250000.589153@gargle.gargle.HOWL \
--to=d.chadd@uea.ac.uk \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).