* bug#50659: Fontify Libtool macros in autoconf-mode
@ 2021-09-18 11:49 Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-18 12:00 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-09-18 11:49 UTC (permalink / raw)
To: 50659
[-- Attachment #1: Type: text/plain, Size: 231 bytes --]
Severity: wishlist
Tags: patch
The built-in autoconf-mode currently fontifies Autoconf (AC_*),
Autoheader (AH_*), Automake (AM_*), and M4sh (AS_*) macro names as
keywords.
What about including Libtool (LT_*) macros in the list?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Font-lock-Libtool-macros-in-autoconf-mode.patch --]
[-- Type: text/x-diff, Size: 1087 bytes --]
From d0cfd2afd9e451e851e55ce6a2fc3f49a4517b80 Mon Sep 17 00:00:00 2001
From: "Basil L. Contovounesios" <contovob@tcd.ie>
Date: Sat, 18 Sep 2021 11:49:07 +0100
Subject: [PATCH] Fontify Libtool macros in autoconf-mode
* lisp/progmodes/autoconf.el (autoconf-font-lock-keywords): Apply
font-lock-keyword-face also to Libtool's LT_* macros.
---
lisp/progmodes/autoconf.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/autoconf.el b/lisp/progmodes/autoconf.el
index 73cf290f43..78148ccf85 100644
--- a/lisp/progmodes/autoconf.el
+++ b/lisp/progmodes/autoconf.el
@@ -44,7 +44,7 @@ autoconf-definition-regexp
"A\\(?:H_TEMPLATE\\|C_\\(?:SUBST\\|DEFINE\\(?:_UNQUOTED\\)?\\)\\)(\\[*\\(\\(?:\\sw\\|\\s_\\)+\\)\\]*")
(defvar autoconf-font-lock-keywords
- `(("\\_<A[CHMS]_\\(?:\\sw\\|\\s_\\)+" . font-lock-keyword-face)
+ `(("\\_<\\(?:A[CHMS]\\|LT\\)_\\(?:\\sw\\|\\s_\\)+" . font-lock-keyword-face)
(,autoconf-definition-regexp
1 font-lock-function-name-face)
;; Are any other M4 keywords really appropriate for configure.ac,
--
2.33.0
[-- Attachment #3: Type: text/plain, Size: 366 bytes --]
Thanks,
--
Basil
In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
of 2021-09-17 built on tia
Repository revision: 12d2fb58c416b557924174f57bfb1c9b9e7cf999
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux bookworm/sid
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#50659: Fontify Libtool macros in autoconf-mode
2021-09-18 11:49 bug#50659: Fontify Libtool macros in autoconf-mode Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-09-18 12:00 ` Eli Zaretskii
2021-09-18 12:15 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2021-09-18 12:00 UTC (permalink / raw)
To: Basil L. Contovounesios; +Cc: 50659
> Date: Sat, 18 Sep 2021 12:49:58 +0100
> From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> The built-in autoconf-mode currently fontifies Autoconf (AC_*),
> Autoheader (AH_*), Automake (AM_*), and M4sh (AS_*) macro names as
> keywords.
>
> What about including Libtool (LT_*) macros in the list?
SGTM, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#50659: Fontify Libtool macros in autoconf-mode
2021-09-18 12:00 ` Eli Zaretskii
@ 2021-09-18 12:15 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 3+ messages in thread
From: Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-09-18 12:15 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 50659
close 50659 28.1
quit
Eli Zaretskii [2021-09-18 15:00 +0300] wrote:
>> Date: Sat, 18 Sep 2021 12:49:58 +0100
>> From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>>
>> The built-in autoconf-mode currently fontifies Autoconf (AC_*),
>> Autoheader (AH_*), Automake (AM_*), and M4sh (AS_*) macro names as
>> keywords.
>>
>> What about including Libtool (LT_*) macros in the list?
>
> SGTM, thanks.
Thanks, done.
Fontify Libtool macros in autoconf-mode
1b623d0fbf 2021-09-18 13:12:32 +0100
https://git.sv.gnu.org/cgit/emacs.git/commit/?id=1b623d0fbf5e69910379a8f1e23006419b046e23
--
Basil
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-18 12:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-18 11:49 bug#50659: Fontify Libtool macros in autoconf-mode Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-18 12:00 ` Eli Zaretskii
2021-09-18 12:15 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).