Function: autoconf-current-defun-function
autoconf-current-defun-function is a byte-compiled function defined in
autoconf.el.gz.
Signature
(autoconf-current-defun-function)
Documentation
Function to use for add-log-current-defun-function in Autoconf mode.
This version looks back for an AC_DEFINE or AC_SUBST. It will stop searching backwards at another AC_... command.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/autoconf.el.gz
;; It's not clear how best to implement this.
(defun autoconf-current-defun-function ()
"Function to use for `add-log-current-defun-function' in Autoconf mode.
This version looks back for an AC_DEFINE or AC_SUBST. It will stop
searching backwards at another AC_... command."
(save-excursion
(skip-syntax-forward "w_" (line-end-position))
(if (re-search-backward autoconf-definition-regexp
(save-excursion (beginning-of-defun) (point))
t)
(match-string-no-properties 1))))