GNU bug report logs - #77138
[PATCH] Add major mode for highlighting .npmrc files

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>

Date: Thu, 20 Mar 2025 16:27:01 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#77138: closed ([PATCH] Add major mode for highlighting .npmrc
 files)
Date: Sat, 29 Mar 2025 10:24:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 29 Mar 2025 13:23:15 +0300
with message-id <86msd487ak.fsf <at> gnu.org>
and subject line Re: bug#77138: [PATCH v5] Add major mode for highlighting .npmrc files
has caused the debbugs.gnu.org bug report #77138,
regarding [PATCH] Add major mode for highlighting .npmrc files
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
77138: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77138
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Add major mode for highlighting .npmrc files
Date: Thu, 20 Mar 2025 19:26:03 +0300
[Message part 3 (text/plain, inline)]
".npmrc" are configuration files used by "npm", which in turn is a
widely used package manager in web-development setting (javascript,
typescript, etc).

I don't have much expertise in NPM field, but judging by the official
documentation¹ it's basically ini-style `key = value`, but with two
comment styles (semicolon and hash sign).

Easily implementable by deriving from conf-mode and adding the comment
styles.

Patch is attached.

1: https://docs.npmjs.com/cli/v11/configuring-npm/npmrc
[1.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
Cc: stefankangas <at> gmail.com, 77138-done <at> debbugs.gnu.org
Subject: Re: bug#77138: [PATCH v5] Add major mode for highlighting .npmrc files
Date: Sat, 29 Mar 2025 13:23:15 +0300
> From: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
> Cc: stefankangas <at> gmail.com, 77138 <at> debbugs.gnu.org
> Date: Mon, 24 Mar 2025 11:16:28 +0300
> 
> v5 attached.
> 
> New change: the in files alist the dot excluded from npmrc naming, i.e.
> "\\.npmrc\\'" is replaced to "npmrc\\'".
> 
> Reason: even though npmrc are typically starting with a dot, but the
> official docs¹ mention there may be system-wide files without it, like
> `/etc/npmrc`.
> 
> 1: https://docs.npmjs.com/cli/v11/configuring-npm/npmrc

Thanks, installed on the master branch, and closing the bug.


This bug report was last modified 55 days ago.

Previous Next


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