I'm trying to debug a piece of elisp that is in an orgmode template I'd like to use. (link here) The problem is occurring in the source block that is supposed define the cite links.
(org-add-link-type
"cite" 'ebib
(lambda (path desc format)
(cond
((eq format 'html)
(format "(<cite>%s</cite>)" path))
((eq format 'latex)
(if (or (not desc) (equal 0 (search "cite:" desc)))
(format "\\cite{%s}" path)
(format "\\cite[%s][%s]{%s}"
(cadr (split-string desc ";"))
(car (split-string desc ";")) path))))))
now when this block is run, it completes no problem and gives back a "Created cite link." message which is expected. However when you go to run the latex exporter, it gives me the following error.
Symbol's function definition is void: search
I have narrowed this down to the search command in the add link block, however I cannot figure out what it is supposed to be calling. From my research Common Lisp has a search function, but elisp does not. I've tried modifying the code to use every search like function build into emacs, and a few that are not such as the ebib-search with no success. Do any of you have an idea as to what this is referencing?
search
. Add(require 'cl)
, or else rename it tocl-search
(which is autoloaded).