[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defaulting optional numeric and string arguments
From: |
Heime |
Subject: |
Re: Defaulting optional numeric and string arguments |
Date: |
Thu, 12 Sep 2024 20:29:35 +0000 |
On Friday, September 13th, 2024 at 8:18 AM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
> > If user does not pass anything to `read-string`, would the value not be
> > nothing.
>
> Not if you provide a sane `default-value` argument.
>
> Stefan
There is the additional problem when using
(interactive "nNumber of Context Lines: \ns Buffer Name: " )
Which does not apply any defaults