From: Wilhelm Kirschbaum <wkirschbaum@gmail.com>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: 75156-done@debbugs.gnu.org
Subject: bug#75156: [PATCH] Please install these elixir-ts-mode fixes
Date: Sat, 28 Dec 2024 10:49:10 +0200 [thread overview]
Message-ID: <CAOS0-34J+qd6qkQBOL9=zR1ttDfM_HcHXq2Ji57ks3y4aTpM4w@mail.gmail.com> (raw)
In-Reply-To: <CADwFkmmj_HQ9FV-uVfhSnCshONB-D9M2ABdedtFXx1jriUOqZQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 840 bytes --]
On Sat, Dec 28, 2024 at 10:44 AM Stefan Kangas <stefankangas@gmail.com>
wrote:
> Version: 30.1
>
> Wilhelm Kirschbaum <wkirschbaum@gmail.com> writes:
>
> > On Sat, Dec 28, 2024 at 8:49 AM Wilhelm Kirschbaum <
> wkirschbaum@gmail.com>
> > wrote:
> >
> >> Attached are two updates to elixir-ts-mode for minor improvements. Can
> >> someone please install them if there are no concerns.
> >>
> >> The patches are from the emacs-30 branch. I can rebase them on master if
> >> required?
> >>
> >> Kind regards,
> >> Wilhelm
> >>
> >
> > I see there is a typo in the commit message, apologies.
>
> Thanks. Installed on emacs-30 as commit 624322d5f6a.
>
Thanks Stefan, much appreciated.
I added two patches to the original email. Do you mind installing the other
patch as well? I attached it for convenience.
[-- Attachment #1.2: Type: text/html, Size: 1431 bytes --]
[-- Attachment #2: 0001-Always-match-underscore-variables-for-elixir-ts-mode.patch --]
[-- Type: text/x-patch, Size: 1321 bytes --]
From 14f8fbbfa9322fa15a556f67715b11b6db4b56eb Mon Sep 17 00:00:00 2001
From: Wilhelm Kirschbaum <wkirschbaum@gmail.com>
Date: Sun, 15 Sep 2024 09:46:07 +0200
Subject: [PATCH 1/2] Always match underscore variables for elixir-ts-mode
The code comment is invalid, as it is common to treat any _variable as a
comment.
* lisp/progmodes/elixir-ts-mode.el (elixir-ts-font-lock-settings):
Add ":override t" to comment identifier match.
---
lisp/progmodes/elixir-ts-mode.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lisp/progmodes/elixir-ts-mode.el b/lisp/progmodes/elixir-ts-mode.el
index cacdb266298..4e0caae93e3 100644
--- a/lisp/progmodes/elixir-ts-mode.el
+++ b/lisp/progmodes/elixir-ts-mode.el
@@ -402,11 +402,9 @@ elixir-ts--font-lock-settings
(binary_operator
left: (call target: (identifier) @font-lock-function-name-face))))))
- ;; A function definition like "def _foo" is valid, but we should
- ;; not apply the comment-face unless its a non-function identifier, so
- ;; the comment matches has to be after the function matches.
:language 'elixir
:feature 'elixir-comment
+ :override t
'((comment) @font-lock-comment-face
((identifier) @font-lock-comment-face
(:match "^_[a-z]\\|^_$" @font-lock-comment-face)))
--
2.45.2
next prev parent reply other threads:[~2024-12-28 8:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-28 6:49 bug#75156: [PATCH] Please install these elixir-ts-mode fixes Wilhelm Kirschbaum
2024-12-28 6:53 ` Wilhelm Kirschbaum
2024-12-28 8:44 ` Stefan Kangas
2024-12-28 8:49 ` Wilhelm Kirschbaum [this message]
2024-12-28 16:38 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOS0-34J+qd6qkQBOL9=zR1ttDfM_HcHXq2Ji57ks3y4aTpM4w@mail.gmail.com' \
--to=wkirschbaum@gmail.com \
--cc=75156-done@debbugs.gnu.org \
--cc=stefankangas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.