[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.
- Re: Include modern-cpp-font-lock into GNU Emacs, (continued)
- Re: Include modern-cpp-font-lock into GNU Emacs, Alan Mackenzie, 2018/08/11
- Re: Include modern-cpp-font-lock into GNU Emacs, Stefan Monnier, 2018/08/11
- Re: Include modern-cpp-font-lock into GNU Emacs, Ludwig PACIFICI, 2018/08/19
- Re: Include modern-cpp-font-lock into GNU Emacs, Stefan Monnier, 2018/08/19
- Re: Include modern-cpp-font-lock into GNU Emacs, Richard Stallman, 2018/08/19
- Re: Include modern-cpp-font-lock into GNU Emacs, Andy Moreton, 2018/08/20
- Re: Include modern-cpp-font-lock into GNU Emacs, Jostein Kjønigsen, 2018/08/20
- Re: Include modern-cpp-font-lock into GNU Emacs, Noam Postavsky, 2018/08/20
- Re: Include modern-cpp-font-lock into GNU Emacs, Andy Moreton, 2018/08/20
- Re: Include modern-cpp-font-lock into GNU Emacs, Jostein Kjønigsen, 2018/08/20
- Re: Include modern-cpp-font-lock into GNU Emacs,
Michael Albinus <=
- Re: Include modern-cpp-font-lock into GNU Emacs, Noam Postavsky, 2018/08/22