Thanks. This is what I wanted.
> Is there any Emacs built-in function that returns the index of an element ofIf you don't mind using the CL package (included with Emacs), the
> a list?
function you want is `position'
(position "banana" '("apple" "banana" "orange") :test 'string=) => 1
Juanma