emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Include modern-cpp-font-lock into GNU Emacs


From: Michael Albinus
Subject: Re: Include modern-cpp-font-lock into GNU Emacs
Date: Mon, 20 Aug 2018 21:45:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Jostein Kjønigsen <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]