GNU bug report logs -
#26550
[PATCH] Fix js.el filling inline JSDoc tags
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26550 in the body.
You can then email your comments to 26550 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26550
; Package
emacs
.
(Tue, 18 Apr 2017 04:19:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Etienne Prud'homme" <e.e.f.prudhomme <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 18 Apr 2017 04:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The attached patch fixes filling inline JSDoc tags in js-mode. JSDoc allows
using tags in the form of:
> /**
> * @foo
> * Description. Link to other symbol {@link document.body.style}
> * @bar
Where "@link" is the inline tag.
Currently, the paragraph starts at the "@" sign. Therefore filling the
Description line would never make the "@bar" tag appear in an other column
(that's what we want).
However, the link tag can be broken arbitrary and would make the tag harder
to read (without considering font-lock that is implemented in an other
package).
> /**
> * @foo
> * Description. Link to other symbol {@link
> * document.body.style}
> * @bar
I searched the JSDoc documentation[1] about line breaks inside an inline
tags and didn't find explicit information about whether or not it was
valid. Given that inline litterally means on one line, I guess we can
pretend the specification doesn't allow line breaks inside an inline tag.
[1] http://usejsdoc.org/about-block-inline-tags.html
[Message part 2 (text/html, inline)]
[0001-Fix-js.el-filling-inline-JSDoc-tags.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26550
; Package
emacs
.
(Tue, 18 Apr 2017 16:15:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 26550 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I've went ahead and submitted an issue on GitHub[1] to see if it's a
valid syntax. I would ask not to apply that patch until then. And of
course I'm always open on suggestions.
[1] https://github.com/jsdoc3/jsdoc3.github.com/issues/152
ps: I've already made the copyright assignment paperwork.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26550
; Package
emacs
.
(Thu, 20 Apr 2017 00:33:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 26550 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
After checking the code, it seems that having a newline inside the inline
tag is valid [1]. However, I still think it removes clarity and it would be
better to implement the patch I proposed.
[1] https://github.com/jsdoc3/jsdoc/blob/master/lib/jsdoc/tag/inline.js#L55
2017-04-18 12:14 GMT-04:00 Etienne Prud'homme <e.e.f.prudhomme <at> gmail.com>:
> I've went ahead and submitted an issue on GitHub[1] to see if it's a
> valid syntax. I would ask not to apply that patch until then. And of
> course I'm always open on suggestions.
>
> [1] https://github.com/jsdoc3/jsdoc3.github.com/issues/152
>
> ps: I've already made the copyright assignment paperwork.
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26550
; Package
emacs
.
(Mon, 24 Jun 2019 16:45:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 26550 <at> debbugs.gnu.org (full text, mbox):
"Etienne Prud'homme" <e.e.f.prudhomme <at> gmail.com> writes:
> However, the link tag can be broken arbitrary and would make the tag harder
> to read (without considering font-lock that is implemented in an other
> package).
>
>> /**
>> * @foo
>> * Description. Link to other symbol {@link
>> * document.body.style}
>> * @bar
>
> I searched the JSDoc documentation[1] about line breaks inside an inline
> tags and didn't find explicit information about whether or not it was valid.
> Given that inline litterally means on one line, I guess we can pretend the
> specification doesn't allow line breaks inside an inline tag.
[...]
> After checking the code, it seems that having a newline inside the inline tag
> is valid [1].
Given this, the proposed change may not be the right one, so I'm closing
this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 24 Jun 2019 16:45:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
26550 <at> debbugs.gnu.org and "Etienne Prud'homme" <e.e.f.prudhomme <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 24 Jun 2019 16:45:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 23 Jul 2019 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 271 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.