GNU bug report logs -
#67621
[PATCH] documentation for ert-font-lock
Previous Next
Reported by: Vladimir Kazanov <vekazanov <at> gmail.com>
Date: Mon, 4 Dec 2023 12:21:02 UTC
Severity: minor
Tags: patch
Fixed in version 30.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67621 in the body.
You can then email your comments to 67621 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#67621
; Package
emacs
.
(Mon, 04 Dec 2023 12:21:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vladimir Kazanov <vekazanov <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 04 Dec 2023 12:21: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)]
Hi team,
As (reasonably) requested in emacs-devel@ [1], sending a patch that
adds ert-font-lock to NEWS and expands the ERT manual.
[1] https://lists.gnu.org/archive/html/emacs-devel/2023-12/msg00082.html
--
Regards,
Vladimir Kazanov
[0001-add-ert-font-lock-docs.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67621
; Package
emacs
.
(Mon, 04 Dec 2023 13:02:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 67621 <at> debbugs.gnu.org (full text, mbox):
Vladimir Kazanov <vekazanov <at> gmail.com> writes:
> Hi team,
Hi Vladimir,
> As (reasonably) requested in emacs-devel@ [1], sending a patch that
> adds ert-font-lock to NEWS and expands the ERT manual.
Thanks. Just some few comments.
> --- a/doc/misc/ert.texi
> +++ b/doc/misc/ert.texi
> @@ -526,6 +526,7 @@ How to Write Tests
> * Tests and Their Environment:: Don't depend on customizations; no side effects.
> * Useful Techniques:: Some examples.
> * erts files:: Files containing many buffer tests.
> +* Syntax Highlighting Tests:: Tests for face assignment.
> @end menu
Align the entries. "Tests" must be at the same position as "Files".
> +Syntax highlighting is normally provided by the Font Lock minor mode
> +that assigns face properties to parts of the buffer. The
Use two spaces at sentence end. This is for everything in ert.texi and
NEWS.
> +Test assertion parser extracts tests from comment-only lines. Every
> +comment assertion line starts either with a caret ('^') or an arrow
> +('<-'). A caret/arrow should be followed immedately by the name of a
> +face to be checked.
Use @samp here, like (@samp{^}) and (@samp{<-}) .
> +i.e. @code{:tag} and @code{:expected-result}.
Please write i.e.,
> --- a/etc/NEWS
> +++ b/etc/NEWS
> +** ERT
> +
> ++++
> +*** Syntax highlighting unit testing support
This needs a trailing period.
> +An ERT extension ('ert-font-lock') now provides support for face
> +assignment unit testing.
Since it doesn't tell details, you might refer to the manual. like
--8<---------------cut here---------------start------------->8---
An ERT extension ('ert-font-lock') now provides support for face
assignment unit testing. For more information, see the "(ert) Syntax
Highlighting Tests" node in the ERT manual.
--8<---------------cut here---------------end--------------->8---
> Regards,
>
> Vladimir Kazanov
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67621
; Package
emacs
.
(Mon, 04 Dec 2023 13:31:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 67621 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Michael,
Thank you for reviewing the patch!
Attached is an updated patch.
Thanks,
Vlad
On Mon, 4 Dec 2023 at 13:01, Michael Albinus <michael.albinus <at> gmx.de> wrote:
>
> Vladimir Kazanov <vekazanov <at> gmail.com> writes:
>
> > Hi team,
>
> Hi Vladimir,
>
> > As (reasonably) requested in emacs-devel@ [1], sending a patch that
> > adds ert-font-lock to NEWS and expands the ERT manual.
>
> Thanks. Just some few comments.
>
> > --- a/doc/misc/ert.texi
> > +++ b/doc/misc/ert.texi
> > @@ -526,6 +526,7 @@ How to Write Tests
> > * Tests and Their Environment:: Don't depend on customizations; no side effects.
> > * Useful Techniques:: Some examples.
> > * erts files:: Files containing many buffer tests.
> > +* Syntax Highlighting Tests:: Tests for face assignment.
> > @end menu
>
> Align the entries. "Tests" must be at the same position as "Files".
>
> > +Syntax highlighting is normally provided by the Font Lock minor mode
> > +that assigns face properties to parts of the buffer. The
>
> Use two spaces at sentence end. This is for everything in ert.texi and
> NEWS.
>
> > +Test assertion parser extracts tests from comment-only lines. Every
> > +comment assertion line starts either with a caret ('^') or an arrow
> > +('<-'). A caret/arrow should be followed immedately by the name of a
> > +face to be checked.
>
> Use @samp here, like (@samp{^}) and (@samp{<-}) .
>
> > +i.e. @code{:tag} and @code{:expected-result}.
>
> Please write i.e.,
>
> > --- a/etc/NEWS
> > +++ b/etc/NEWS
> > +** ERT
> > +
> > ++++
> > +*** Syntax highlighting unit testing support
>
> This needs a trailing period.
>
> > +An ERT extension ('ert-font-lock') now provides support for face
> > +assignment unit testing.
>
> Since it doesn't tell details, you might refer to the manual. like
>
> --8<---------------cut here---------------start------------->8---
> An ERT extension ('ert-font-lock') now provides support for face
> assignment unit testing. For more information, see the "(ert) Syntax
> Highlighting Tests" node in the ERT manual.
> --8<---------------cut here---------------end--------------->8---
>
> > Regards,
> >
> > Vladimir Kazanov
>
> Best regards, Michael.
--
Regards,
Vladimir Kazanov
[0001-add-ert-font-lock-docs.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67621
; Package
emacs
.
(Mon, 04 Dec 2023 14:03:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 67621 <at> debbugs.gnu.org (full text, mbox):
Vladimir Kazanov <vekazanov <at> gmail.com> writes:
> Michael,
Hi Vlad,
> Attached is an updated patch.
Almost fine. Except
> @menu
> -* The @code{should} Macro:: A powerful way to express assertions.
> +* The @code{should} Macro:: A powerful way to express assertions.
Please don't change, it is intended. The @code{} clause isn't visible in
the resulting output. Best would be you check the result in info.
> +The @code{ert-font-lock-deftest} and @code{ert-font-lock-deftest-file}
> +macros accept the same keyword parameteres as @code{ert-deftest} i.e.,
^^ typo?
> Thanks,
> Vlad
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67621
; Package
emacs
.
(Mon, 04 Dec 2023 14:43:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 67621 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Michael,
Thanks a lot! Here's the fixed patch.
Vlad
On Mon, 4 Dec 2023 at 14:02, Michael Albinus <michael.albinus <at> gmx.de> wrote:
>
> Vladimir Kazanov <vekazanov <at> gmail.com> writes:
>
> > Michael,
>
> Hi Vlad,
>
> > Attached is an updated patch.
>
> Almost fine. Except
>
> > @menu
> > -* The @code{should} Macro:: A powerful way to express assertions.
> > +* The @code{should} Macro:: A powerful way to express assertions.
>
> Please don't change, it is intended. The @code{} clause isn't visible in
> the resulting output. Best would be you check the result in info.
>
> > +The @code{ert-font-lock-deftest} and @code{ert-font-lock-deftest-file}
> > +macros accept the same keyword parameteres as @code{ert-deftest} i.e.,
> ^^ typo?
>
> > Thanks,
> > Vlad
>
> Best regards, Michael.
--
Regards,
Vladimir Kazanov
[0001-add-ert-font-lock-docs.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67621
; Package
emacs
.
(Mon, 04 Dec 2023 15:17:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 67621 <at> debbugs.gnu.org (full text, mbox):
Vladimir Kazanov <vekazanov <at> gmail.com> writes:
> Michael,
Hi Vlad,
> Thanks a lot! Here's the fixed patch.
Fine. Let's wait for a couple of days, and if nobody objects, I'll push
it for you.
> Vlad
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67621
; Package
emacs
.
(Fri, 08 Dec 2023 13:49:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 67621 <at> debbugs.gnu.org (full text, mbox):
Hi Michael,
It seems that there are no objections to the documentation update.
Should we add it, or do you have any other worthwhile additions in
mind?
Thank you,
Vlad
On Mon, 4 Dec 2023 at 15:16, Michael Albinus <michael.albinus <at> gmx.de> wrote:
>
> Vladimir Kazanov <vekazanov <at> gmail.com> writes:
>
> > Michael,
>
> Hi Vlad,
>
> > Thanks a lot! Here's the fixed patch.
>
> Fine. Let's wait for a couple of days, and if nobody objects, I'll push
> it for you.
>
> > Vlad
>
> Best regards, Michael.
--
Regards,
Vladimir Kazanov
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67621
; Package
emacs
.
(Fri, 08 Dec 2023 13:57:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 67621 <at> debbugs.gnu.org (full text, mbox):
Vladimir Kazanov <vekazanov <at> gmail.com> writes:
> Hi Michael,
Hi Vlad,
> It seems that there are no objections to the documentation update.
> Should we add it, or do you have any other worthwhile additions in
> mind?
Usually, we give people a week or so for comments. Some of them, like
the maintainers, are very busy.
However, I have already scheduled to push your patch later this weekend
(which is less than a week). I don't expect serious objections.
> Thank you,
> Vlad
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67621
; Package
emacs
.
(Sat, 09 Dec 2023 09:30:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 67621 <at> debbugs.gnu.org (full text, mbox):
Vladimir Kazanov <vekazanov <at> gmail.com> writes:
> Michael,
Hi Vlad,
> Thanks a lot! Here's the fixed patch.
Pushed to the master branch.
> Vlad
Best regards, Michael.
bug marked as fixed in version 30.1, send any further explanations to
67621 <at> debbugs.gnu.org and Vladimir Kazanov <vekazanov <at> gmail.com>
Request was from
Michael Albinus <michael.albinus <at> gmx.de>
to
control <at> debbugs.gnu.org
.
(Sat, 09 Dec 2023 10:38:02 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
.
(Sat, 06 Jan 2024 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 126 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.