From: "Jostein Kjønigsen" <jostein@secure.kjonigsen.net>
To: emacs-devel@gnu.org, Stefan Monnier <monnier@IRO.UMontreal.CA>
Subject: Re: cc-mode: Make all parameters introduced in Emacs 26 optional
Date: Tue, 13 Mar 2018 21:08:04 +0100 [thread overview]
Message-ID: <1520971684.2873032.1301975008.24C87686@webmail.messagingengine.com> (raw)
In-Reply-To: <jwv7eqg9awk.fsf-monnier+gmane.emacs.devel@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 802 bytes --]
Thanks Stefan.
That's great help and for now will allow me to provide working C#
support to Emacs 26 users, while I work out what to do with our
troublesome usage of internal cc-mode functions. I really appreciate it.
I picked up this project as a community service when editing C# stopped
working sometime in Emacs 24, and it would be pretty daft to simply give
up on it now. :)
--
Regards
Jostein Kjønigsen
On Mon, Mar 12, 2018, at 11:40 PM, Stefan Monnier wrote:
>> Is there any way for package to know how many mandatory arguments a
>> function has, to be able to branch out for compatibility reasons?
>
> The way I recommend is:
>
> (condition-case nil
> (call1 ...)
> (wrong-number-of-arguments
> (call2 ...)))
>
>
> -- Stefan
>
>
[-- Attachment #2: Type: text/html, Size: 1601 bytes --]
prev parent reply other threads:[~2018-03-13 20:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-22 8:09 cc-mode: Make all parameters introduced in Emacs 26 optional Jostein Kjønigsen
2018-01-22 20:32 ` Alan Mackenzie
2018-02-03 5:59 ` Matthew Carter
2018-02-03 6:13 ` Matthew Carter
2018-02-03 11:44 ` Alan Mackenzie
2019-03-30 13:51 ` Alan Mackenzie
2019-03-30 16:39 ` Stefan Monnier
2019-03-30 19:42 ` Alan Mackenzie
2019-03-30 20:17 ` Stefan Monnier
2019-03-30 21:53 ` Ergus
2018-03-12 20:16 ` Jostein Kjønigsen
2018-03-12 22:40 ` Stefan Monnier
2018-03-12 23:29 ` Clément Pit-Claudel
2018-03-13 1:00 ` Stefan Monnier
2018-03-13 20:08 ` Jostein Kjønigsen [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=1520971684.2873032.1301975008.24C87686@webmail.messagingengine.com \
--to=jostein@secure.kjonigsen.net \
--cc=emacs-devel@gnu.org \
--cc=jostein@kjonigsen.net \
--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).