[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Passing optional arguments for use with internal functions
From: |
Emanuel Berg |
Subject: |
Re: Passing optional arguments for use with internal functions |
Date: |
Fri, 28 Jul 2023 12:51:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
uzibalqa wrote:
> Is this the way to allow optional arguments for 'lexif', or
> would I have additional tests [...]
Optional arguments defaults to nil, if that is an acceptable
value you can use it as you do, if not you can check if it is
nil first thing in the function and if it is, set it to
something that works, e.g.
(or arg (setq arg 0))
--
underground experts united
https://dataswamp.org/~incal