GNU bug report logs - #76373
31.0.50; Extend autoconf-mode macro support

Previous Next

Package: emacs;

Reported by: "Basil L. Contovounesios" <basil <at> contovou.net>

Date: Mon, 17 Feb 2025 21:07:02 UTC

Severity: wishlist

Found in version 31.0.50

Fixed in version 31.1

Done: "Basil L. Contovounesios" <basil <at> contovou.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Basil L. Contovounesios" <basil <at> contovou.net>
Cc: Dave Love <fx <at> gnu.org>, 76373 <at> debbugs.gnu.org
Subject: bug#76373: 31.0.50; Extend autoconf-mode macro support
Date: Mon, 17 Feb 2025 17:32:57 -0800
On 2025-02-17 13:05, Basil L. Contovounesios wrote:
> The attached patch extends autoconf-mode

Thanks, I installed it.


> Also, a question: should defun-prompt-regexp really allow for leading
> indentation?  In Autoconf scripts of the form:
> 
> if ...
> 
>    ...
>    AC_MSG_...
>    ...
>    AC_MSG_...
>    ...
> 
> fi
> 
> it means that beginning-of-defun stops at every indented AC_ or AM_
> macro call (and with the attached patch, at any macro call with a known
> namespace).

Conversely, there may be conditional definitions of functions, e.g., 
Gnulib does this:

  AC_DEFUN([gl_ASSERT_NO_GNULIB_TESTS],
  [
    dnl Override gl_MODULE_INDICATOR_FOR_TESTS.
    AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], [])
  ])

Admittedly this sort of thing is rare.

Could we change the search for defuns to be more selective? It's not 
reasonable to think that every AC_.... call is a defun.




This bug report was last modified 147 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.