GNU bug report logs - #78273
I would like to contribute: jsdoc support in typescript-ts-mode

Previous Next

Package: emacs;

Reported by: Martin Šošić <sosic.martin <at> gmail.com>

Date: Tue, 6 May 2025 03:44:02 UTC

Severity: normal

To reply to this bug, email your comments to 78273 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#78273; Package emacs. (Tue, 06 May 2025 03:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Martin Šošić <sosic.martin <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 06 May 2025 03:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Martin Šošić <sosic.martin <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: I would like to contribute: jsdoc support in typescript-ts-mode
Date: Mon, 5 May 2025 21:47:54 +0200
[Message part 1 (text/plain, inline)]
Hi,
I noticed there is no jsdoc support in typescript-ts-mode, and I would love
to add a patch/PR to add it! I already have a working solution: I found who
that same support is implemented in js-ts-mode and slightly modified it to
work with typescript-ts-mode. Currently I apply that extra config in my
init.el, but I imagine it relatively straightforward from here to
contribute it to typescript-ts-mode.el itself.

More info can be found here on reddit where I asked for help, got it, and
then I edited the answer to contain the full solution:
https://www.reddit.com/r/emacs/comments/1kfblch/need_help_with_adding_jsdoc_highlighting_to/
.

I would appreciate any direction on how to go about this: I have been
programming for 20 years but I never used a mailing list and am not sure
what is the etiquette / right way to handle this!

Thanks,
Martin Sosic
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78273; Package emacs. (Tue, 06 May 2025 11:21:01 GMT) Full text and rfc822 format available.

Message #8 received at 78273 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Martin Šošić <sosic.martin <at> gmail.com>,
 Yuan Fu <casouri <at> gmail.com>, Theodor Thornhill <theo <at> thornhill.no>
Cc: 78273 <at> debbugs.gnu.org
Subject: Re: bug#78273: I would like to contribute: jsdoc support in
 typescript-ts-mode
Date: Tue, 06 May 2025 14:20:16 +0300
> From: Martin Šošić <sosic.martin <at> gmail.com>
> Date: Mon, 5 May 2025 21:47:54 +0200
> 
> Hi,
> I noticed there is no jsdoc support in typescript-ts-mode, and I would love to add a patch/PR to add it! I
> already have a working solution: I found who that same support is implemented in js-ts-mode and slightly
> modified it to work with typescript-ts-mode. Currently I apply that extra config in my init.el, but I imagine it
> relatively straightforward from here to contribute it to typescript-ts-mode.el itself.
> 
> More info can be found here on reddit where I asked for help, got it, and then I edited the answer to contain
> the full solution:
> https://www.reddit.com/r/emacs/comments/1kfblch/need_help_with_adding_jsdoc_highlighting_to/ .
> 
> I would appreciate any direction on how to go about this: I have been programming for 20 years but I never
> used a mailing list and am not sure what is the etiquette / right way to handle this!

Thank you for your interest in Emacs.

I think the next steps would be:

 . post here a patch relative to typescript-ts-mode.el as we have it
   on the master branch of the Emacs Git repository, so people could
   review your changes and suggest improvements if needed
 . start your legal paperwork of assigning to FSF the copyright for
   your changes -- contributions of this size cannot be accepted
   without the assignment

The last point is actually the first one you should consider.  If you
are okay with assigning the copyright to the FSF, I will send you the
form to fill and the instructions to go with it, so you could start
the paperwork rolling; then you can post the patches even before the
process is completed (but we will wait for it to complete before we
can install your changes).  If for some reason you are unwilling or
unable to assign the copyright, then your code will have to be a
separate package, perhaps part of Non-GNU ELPA, not an integral part
of typescript-ts-mode.el that comes with Emacs.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78273; Package emacs. (Tue, 06 May 2025 12:04:01 GMT) Full text and rfc822 format available.

Message #11 received at 78273 <at> debbugs.gnu.org (full text, mbox):

From: Martin Šošić <sosic.martin <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78273 <at> debbugs.gnu.org, Yuan Fu <casouri <at> gmail.com>,
 Theodor Thornhill <theo <at> thornhill.no>
Subject: Re: bug#78273: I would like to contribute: jsdoc support in
 typescript-ts-mode
Date: Tue, 6 May 2025 14:03:02 +0200
[Message part 1 (text/plain, inline)]
Yeah no problem, happy to sign!

I have never sent a patch in this way (only PRs via Github) but I assume
googling will give me answers? Or is there a piece of docs specific for
emacs contributing?

Thanks

On Tue, May 6, 2025 at 1:20 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Martin Šošić <sosic.martin <at> gmail.com>
> > Date: Mon, 5 May 2025 21:47:54 +0200
> >
> > Hi,
> > I noticed there is no jsdoc support in typescript-ts-mode, and I would
> love to add a patch/PR to add it! I
> > already have a working solution: I found who that same support is
> implemented in js-ts-mode and slightly
> > modified it to work with typescript-ts-mode. Currently I apply that
> extra config in my init.el, but I imagine it
> > relatively straightforward from here to contribute it to
> typescript-ts-mode.el itself.
> >
> > More info can be found here on reddit where I asked for help, got it,
> and then I edited the answer to contain
> > the full solution:
> >
> https://www.reddit.com/r/emacs/comments/1kfblch/need_help_with_adding_jsdoc_highlighting_to/
> .
> >
> > I would appreciate any direction on how to go about this: I have been
> programming for 20 years but I never
> > used a mailing list and am not sure what is the etiquette / right way to
> handle this!
>
> Thank you for your interest in Emacs.
>
> I think the next steps would be:
>
>  . post here a patch relative to typescript-ts-mode.el as we have it
>    on the master branch of the Emacs Git repository, so people could
>    review your changes and suggest improvements if needed
>  . start your legal paperwork of assigning to FSF the copyright for
>    your changes -- contributions of this size cannot be accepted
>    without the assignment
>
> The last point is actually the first one you should consider.  If you
> are okay with assigning the copyright to the FSF, I will send you the
> form to fill and the instructions to go with it, so you could start
> the paperwork rolling; then you can post the patches even before the
> process is completed (but we will wait for it to complete before we
> can install your changes).  If for some reason you are unwilling or
> unable to assign the copyright, then your code will have to be a
> separate package, perhaps part of Non-GNU ELPA, not an integral part
> of typescript-ts-mode.el that comes with Emacs.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78273; Package emacs. (Tue, 06 May 2025 15:33:02 GMT) Full text and rfc822 format available.

Message #14 received at 78273 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Martin Šošić <sosic.martin <at> gmail.com>
Cc: 78273 <at> debbugs.gnu.org, casouri <at> gmail.com, theo <at> thornhill.no
Subject: Re: bug#78273: I would like to contribute: jsdoc support in
 typescript-ts-mode
Date: Tue, 06 May 2025 18:31:54 +0300
> From: Martin Šošić <sosic.martin <at> gmail.com>
> Date: Tue, 6 May 2025 14:03:02 +0200
> Cc: Yuan Fu <casouri <at> gmail.com>, Theodor Thornhill <theo <at> thornhill.no>, 78273 <at> debbugs.gnu.org
> 
> Yeah no problem, happy to sign!

Thanks, form sent off-list.

> I have never sent a patch in this way (only PRs via Github) but I assume googling will give me answers? Or is
> there a piece of docs specific for emacs contributing?

I suggest to read the file CONTRIBUTE in the top-level directory of
the Emacs source tree, you will find there answers to moist of your
questions.  If anything's still unclear after that, feel free to ask
here.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78273; Package emacs. (Sat, 17 May 2025 20:53:02 GMT) Full text and rfc822 format available.

Message #17 received at 78273 <at> debbugs.gnu.org (full text, mbox):

From: Martin Šošić <sosic.martin <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78273 <at> debbugs.gnu.org, casouri <at> gmail.com, theo <at> thornhill.no
Subject: Re: bug#78273: I would like to contribute: jsdoc support in
 typescript-ts-mode
Date: Sat, 17 May 2025 22:52:32 +0200
[Message part 1 (text/plain, inline)]
Thanks, I sent the form! Awesome, I will look more into the CONTRIBUTE file.

Best,
Martin

On Tue, May 6, 2025 at 5:32 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Martin Šošić <sosic.martin <at> gmail.com>
> > Date: Tue, 6 May 2025 14:03:02 +0200
> > Cc: Yuan Fu <casouri <at> gmail.com>, Theodor Thornhill <theo <at> thornhill.no>,
> 78273 <at> debbugs.gnu.org
> >
> > Yeah no problem, happy to sign!
>
> Thanks, form sent off-list.
>
> > I have never sent a patch in this way (only PRs via Github) but I assume
> googling will give me answers? Or is
> > there a piece of docs specific for emacs contributing?
>
> I suggest to read the file CONTRIBUTE in the top-level directory of
> the Emacs source tree, you will find there answers to moist of your
> questions.  If anything's still unclear after that, feel free to ask
> here.
>
> Thanks.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 33 days ago.

Previous Next


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