From: Eli Zaretskii <eliz@gnu.org>
To: joaotavora@gmail.com (João Távora)
Cc: sleepboy.zzz@gmail.com, emacs-devel@gnu.org
Subject: Re: feature request: public API to get new flymake's errors/warnings
Date: Fri, 20 Oct 2017 09:53:37 +0300 [thread overview]
Message-ID: <83zi8mcnta.fsf@gnu.org> (raw)
In-Reply-To: <87r2tzid3u.fsf@gmail.com> (joaotavora@gmail.com)
> From: joaotavora@gmail.com (João Távora)
> Date: Thu, 19 Oct 2017 12:36:05 +0100
> Cc: emacs-devel@gnu.org
>
> The attached patch augments the API for these purposes (and describes it
> in the manual).
A few comments to the documentation:
> -Since overlays also support arbitrary keymaps, you can use this
> -property @code{flymake-text} to create interactive annotations, such
> -as in the following example of binding a @kbd{mouse-3} event (middle
> -mouse button click) to an Internet search for the text of a
> -@code{:warning} or @code{:error}.
> +Since overlays also support arbitrary keymaps, you can this along with
^^^^^^^^^^^^
The "use" part is missing.
> +the functions @code{flymake-diagnostics} and
> +@code{flymake-diagnostic-text} (@pxref{Flymake utility functions}) to
> +create interactive annotations, such as in the following example of
> +binding a @kbd{mouse-3} event (middle mouse button click) to an
^^^^^^^^^^^^^
Since you are talking about an event, not something that the user
does, @code is a better markup here.
> +@deffn Function flymake-diagnostics beg end
> +Get a list of Flymake diagnostics in the region comprised between
> +@var{beg} and @var{end}. If neither @var{beg} or @var{end} is
I'd say "in the region determined by @var{beg} and @var{end}". I
think it's both more correct English and avoids misinterpretation of
what exactly "between" means (is in exclusive or inclusive?).
> +supplied, use the whole buffer, otherwise if @var{beg} is non-nil and
> +@var{end} is nil, consider only diagnostics at @var{beg}.
"nil" should have the @code markup (2 counts).
> +(defun flymake-diagnostics (&optional beg end)
> + "Get Flymake diagnostics in region comprised between BEG and END.
Same comment here about the "comprised between" part.
Thanks.
next prev parent reply other threads:[~2017-10-20 6:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-16 16:41 feature request: public API to get new flymake's errors/warnings Yuta Yamada
2017-10-16 18:23 ` João Távora
2017-10-17 14:32 ` Yuta Yamada
2017-10-19 11:36 ` João Távora
2017-10-19 12:31 ` Yuta Yamada
2017-10-20 6:53 ` Eli Zaretskii [this message]
2017-10-20 9:10 ` João Távora
2017-10-20 12:47 ` Stefan Monnier
2017-10-20 13:40 ` Yuri Khan
2017-10-20 13:49 ` João Távora
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83zi8mcnta.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=joaotavora@gmail.com \
--cc=sleepboy.zzz@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).