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 a definition such as by AC_DEFINE or AC_SUBST. It stops searching when it encounters other Autoconf macros.

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 a definition such as by AC_DEFINE or
AC_SUBST.  It stops searching when it encounters other Autoconf macros."
  (save-excursion
    (skip-syntax-forward "w_" (pos-eol))
    (if (re-search-backward autoconf-definition-regexp
                            (save-excursion (beginning-of-defun) (point))
                            t)
        (match-string-no-properties 1))))