In this example, the system-configuration-options
is a string:
"--prefix=/Users/HOME/.0.data/.0.emacs/.0.x11 --with-x --with-ns=no --enable-checking=yes,glyphs --enable-check-lisp-object-type --without-compress-install 'CFLAGS=-O0 -g3' CPPFLAGS=-I/Users/HOME/.0.data/.0.emacs/.0.macports/include LDFLAGS=-L/Users/HOME/.0.data/.0.emacs/.0.macports/lib"
Inasmuch as the order of the configuration options may change, I would like to come up with a fancier test than the layman's approach (i.e, me) using split-string
and comparing each element one-by-one with member
using mapc
. [Some cl-...
magic, for example, would be nifty.]
MY CUSTOM LIST:
'("--prefix=/Users/HOME/.0.data/.0.emacs/.0.x11"
"--with-x"
"--with-ns=no"
"--enable-checking=yes,glyphs"
"--enable-check-lisp-object-type"
"--without-compress-install"
"'CFLAGS=-O0 -g3'"
"CPPFLAGS=-I/Users/HOME/.0.data/.0.emacs/.0.macports/include"
"LDFLAGS=-L/Users/HOME/.0.data/.0.emacs/.0.macports/lib")
Q: How to programmatically determine whether system-configuration-options
contains ALL of the members of My Custom List?
ediff-buffer
?cl-...-thing-a-majig
combination that can do this in a few lines of code. I haven't usedediff-buffer
, but would be pleased to research that possibility with a cup of coffee in the morning ...