all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "Jostein Kjønigsen" <jostein@secure.kjonigsen.net>
Cc: jostein@kjonigsen.net, Andy Moreton <andrewjmoreton@gmail.com>,
	emacs-devel@gnu.org
Subject: Re: Include modern-cpp-font-lock into GNU Emacs
Date: Mon, 20 Aug 2018 21:45:48 +0200	[thread overview]
Message-ID: <87k1okddoz.fsf@gmx.de> (raw)
In-Reply-To: <1534787656.2221947.1480287024.78B80C56@webmail.messagingengine.com> ("Jostein \=\?utf-8\?Q\?Kj\=C3\=B8nigsen\=22's\?\= message of "Mon, 20 Aug 2018 19:54:16 +0200")

Jostein Kjønigsen <jostein@secure.kjonigsen.net> writes:

> Agreed, but (to my knowledge) Emacs lacks proper introspection
> capacities, and there's no way up front to know if  a function
> requires 3 or 5 parameters until you've called it and your code has
> crashed.

--8<---------------cut here---------------start------------->8---
(defun my-executable-find (command &optional remote)
  "Run `executable-find', and ignore optional REMOTE on older Emacsen."
  (condition-case err
      (executable-find command remote)
    (wrong-number-of-arguments (executable-find command))
    (error (signal (car err) (cdr err)))))
--8<---------------cut here---------------end--------------->8---

> Regards
> Jostein Kjønigsen

Best regards, Michael.



  reply	other threads:[~2018-08-20 19:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-06 20:24 Include modern-cpp-font-lock into GNU Emacs Ludwig PACIFICI
2018-08-11 14:51 ` Alan Mackenzie
2018-08-12  0:22   ` Stefan Monnier
2018-08-19 11:16   ` Ludwig PACIFICI
2018-08-19 12:31     ` Stefan Monnier
2018-08-20  3:03       ` Richard Stallman
2018-08-20  8:38         ` Andy Moreton
2018-08-20  9:28           ` Jostein Kjønigsen
2018-08-20 10:51             ` Noam Postavsky
2018-08-20 11:28             ` Andy Moreton
2018-08-20 17:54               ` Jostein Kjønigsen
2018-08-20 19:45                 ` Michael Albinus [this message]
2018-08-22 12:46                   ` Noam Postavsky

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k1okddoz.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=andrewjmoreton@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jostein@kjonigsen.net \
    --cc=jostein@secure.kjonigsen.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.