Function: autoconf-find-query-for-func
autoconf-find-query-for-func is an interactive and byte-compiled
function defined in autoconf-edit.el.gz.
Signature
(autoconf-find-query-for-func FUNC)
Documentation
Position the cursor where FUNC is queried.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/ede/autoconf-edit.el.gz
(defun autoconf-find-query-for-func (func)
"Position the cursor where FUNC is queried."
(interactive "sFunction: ")
(let ((op (point))
(found t))
(goto-char (point-min))
(condition-case nil
(while (not
(progn
(re-search-forward
(concat "\\b" (regexp-quote func) "\\b"))
(save-excursion
(beginning-of-line)
(looking-at "AC_CHECK_FUNCS")))))
;; We depend on the search failing to exit our loop on failure.
(error (setq found nil)))
(if (not found) (goto-char op))
found))