Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation of parsec-query #9

Open
ilitzroth opened this issue Oct 24, 2020 · 1 comment
Open

Fix documentation of parsec-query #9

ilitzroth opened this issue Oct 24, 2020 · 1 comment

Comments

@ilitzroth
Copy link

parsec-query is a Lisp macro in ‘parsec.el’.

(parsec-query PARSER &rest ARGS)

Get an alternative return value of the PARSER specified by the ARGS.

The args can be in the following forms:

    :beg      --> return the point before applying the PARSER
    :end      --> return the point after applying the PARSER
    :nil      --> return nil
    :groups N --> return Nth group for ‘parsec-re’.

As far as I can see only 1 argument makes sense in the ARGS position,
and will be used. Given the documentation I expected all of the args to
be used e.g.
(cl-query (xxx...) :beg :end) would return :beg and :end but only :beg
is returned.

@db48x
Copy link

db48x commented Jan 12, 2021

Also, :groups should actually be :group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants