unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] A Setup package
Date: Mon, 15 Mar 2021 11:09:04 +0100	[thread overview]
Message-ID: <8735wwhgov.fsf@posteo.net> (raw)
In-Reply-To: <jwv1rchxdf8.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 15 Mar 2021 00:15:47 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>>> Why use help--make-usage at all?
>>> To avoid reinvent the wheel.
>> I could reduce it to
>>
>>         (mapcar (lambda (arg)
>>                   (if (string-match "\\`&" (symbol-name arg))
>>                       arg
>>                     (intern (upcase (symbol-name arg)))))
>>                 (get sym 'setup-signature))
>>
>> which does the job.
>
> Sounds good (but it still shows there's a need for Emacs to provide
> a function that does that).

Yes, this is just a temporary compromise.

>> The reason I introduced `none` was that :hide-mode is not repeatable and
>> has no arguments, resulting in the edebug specification
>>
>>     (":hide-mode" sexp)
>>
>> However this always fails to match.
>
> Indeed that was wrong.  Same problem for non-repeatable macros with more
> than one argument.  But in the code I sent in the last message I fixed
> this by always using `&rest sexp` for those Setup macros without debug
> spec (just like Edebug for normal macros).

I've ended up doing something similar now, just also taking :repeatable
into consideration. Either way, I with this working, I'll bump the
version to 0.1.1, to create an official release.

Thank you for all you help, your comments significantly improved the
package!

-- 
	Philip K.



      reply	other threads:[~2021-03-15 10:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 11:43 [ELPA] A Setup package Philip K.
2021-02-04 11:47 ` Philip K.
2021-02-09 21:56 ` Stefan Monnier
2021-02-09 23:42   ` Philip K.
2021-03-11 16:17     ` Philip Kaludercic
2021-03-13 19:14       ` Stefan Monnier
2021-03-13 19:44         ` Philip Kaludercic
2021-03-14 15:07           ` Stefan Monnier
2021-03-14 16:21             ` Philip Kaludercic
2021-03-14 20:19               ` Stefan Monnier
2021-03-14 23:39                 ` Philip Kaludercic
2021-03-15  4:15                   ` Stefan Monnier
2021-03-15 10:09                     ` Philip Kaludercic [this message]

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=8735wwhgov.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).