1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 06:50:39 -08:00
emacs/doc/misc
Basil L. Contovounesios 2e3cf73e05 Improve autoconf-mode macro detection
* doc/lispref/modes.texi (Search-based Fontification): Fix
indentation of (MATCHER . FACESPEC) example.
* doc/misc/cc-mode.texi (Performance Issues): Index
defun-prompt-regexp under variables, not functions.

* lisp/progmodes/autoconf.el (autoconf--symbol, autoconf--macro):
New rx definitions.
(autoconf-definition-regexp): Use an optional second capture group
to indicate a function rather than variable definition.  Detect
AC_DEFINE defining a function-like CPP macro.  Skip more shell
syntax such as variable ${} expansion and command `` substitution in
AC_DEFINE_UNQUOTED variable.  Match AH_VERBATIM, AM_CONDITIONAL, and
AM_MISSING_PROG as defining variables, and AC_DEFUN, AC_DEFUN_ONCE,
AU_ALIAS, and AU_DEFUN as defining functions.  Document first
capture group in docstring.
(autoconf-font-lock-keywords): Use autoconf--macro to match more
Autoconf macros, such as those defined in the Autoconf Archive and
Gnulib.  Reserve font-lock-function-name-face for function
definitions as determined by autoconf-definition-regexp, and use
font-lock-variable-name-face for the rest instead.  Use Font Lock
face symbols directly in place of their corresponding variable.
Fontify M4 changequote primitive only as a standalone symbol.
(autoconf-imenu-generic-expression): Add commentary mentioning new
submenu possibility.
(autoconf-current-defun-function): Update docstring accuracy.
Replace line-end-position with pos-eol since there are no fields.
(autoconf-mode): Define defun-prompt-regexp in terms of
autoconf--macro to support more toplevel macros, such as those
defined in Autoheader, M4sh, etc.  Set
open-paren-in-column-0-is-defun-start to nil to avoid false
positives when an Autoconf quote character is in column zero.

* test/lisp/progmodes/autoconf-resources/configure.ac: New file.
* test/lisp/progmodes/autoconf-tests.el
(autoconf-tests-current-defun-function-define)
(autoconf-tests-current-defun-function-subst): Replace character
motion with search.
(autoconf-tests-autoconf-mode-comment-syntax): Ditto.  Test both dnl
and # comments.  Use syntax-ppss-context.
(autoconf-tests-font-lock): New test.
2025-02-17 17:28:05 -08:00
..
auth.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
autotype.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bovine.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
calc.texi Merge from origin/emacs-30 2025-01-25 10:06:19 -05:00
cc-mode.texi Improve autoconf-mode macro detection 2025-02-17 17:28:05 -08:00
ChangeLog.1 Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cl.texi New functions plusp and minusp 2025-02-17 22:46:56 +01:00
dbus.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
dired-x.texi ;* doc/misc/dired-x.texi: Remove unnecessary paren (Bug#76148) 2025-02-08 22:40:25 +01:00
doclicense.texi
ebrowse.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ede.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ediff.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
edt.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
efaq-w32.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
efaq.texi Merge from origin/emacs-30 2025-02-01 07:39:56 -05:00
eglot.texi Eglot: add support for call and type hierarchies 2025-02-07 12:22:36 +00:00
eieio.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
emacs-gnutls.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
emacs-mime.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
epa.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
erc.texi More clearly define local module behavior in ERC 2025-02-07 20:21:36 -08:00
ert.texi * doc/misc/ert.texi (Helper Functions): Improve index. Fix markups. 2025-02-10 11:30:32 +01:00
eshell.texi Merge from origin/emacs-30 2025-01-25 10:06:19 -05:00
eudc.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
eww.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
flymake.texi Avoid double spaces around abbrevations in Texinfo 2025-01-24 23:10:23 +01:00
forms.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
gnus-faq.texi Avoid double spaces around abbrevations in Texinfo 2025-01-24 23:10:23 +01:00
gnus.texi Merge from origin/emacs-30 2025-02-01 07:40:19 -05:00
gpl.texi
htmlfontify.texi ; Fix cross-references in Texinfo manuals 2025-01-19 08:23:23 +02:00
idlwave.texi Merge from origin/emacs-30 2025-01-25 10:06:19 -05:00
ido.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
info.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
mairix-el.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
Makefile.in Update copyright year to 2025 2025-01-02 18:39:42 +01:00
message.texi ; * doc/misc/message.texi (Message Headers): Improve wording. 2025-02-14 16:18:46 +01:00
mh-e.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
modus-themes.org Update copyright year to 2025 2025-01-02 18:39:42 +01:00
newsticker.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
nxml-mode.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
octave-mode.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
org-setup.org Update copyright year to 2025 2025-01-02 18:39:42 +01:00
org.org ; Don't use HTTPS in HTTP-specific example 2025-02-03 14:03:43 +01:00
pcl-cvs.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
pgg.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
rcirc.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
reftex.texi Remove support for supertabular from RefTeX 2025-01-08 20:47:43 +01:00
remember.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
sasl.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
sc.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
sem-user.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
semantic.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ses.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
sieve.texi Bind sieve-refresh-scriptlist to 'g' in sieve-mode 2025-02-13 10:31:01 +01:00
smtpmail.texi Add smtpmail cross-reference to 'auth-sources'. 2025-01-14 10:25:18 +01:00
speedbar.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
srecode.texi ; Fix cross-references in Texinfo manuals 2025-01-19 08:23:23 +02:00
texinfo.tex Update from Gnulib by running admin/merge-gnulib 2025-02-07 16:52:07 -08:00
todo-mode.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
tramp.texi Tramp: Don't require PuTTY 0.82 anymore 2025-02-15 17:12:52 +01:00
trampver.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
transient.texi Update to Transient v0.8.4-7-gabee7353 2025-02-01 18:14:47 +01:00
url.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
use-package.texi Document that 'package-vc' doesn't support built-in packages 2025-01-11 12:58:03 +02:00
vhdl-mode.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
viper.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
vtable.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
widget.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00
wisent.texi Merge from origin/emacs-30 2025-01-25 10:06:19 -05:00
woman.texi Update copyright year to 2025 2025-01-02 18:39:42 +01:00