help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Elisp string function question


From: Eli Zaretskii
Subject: Re: Elisp string function question
Date: Fri, 18 Jun 2021 15:36:25 +0300

> Date: Fri, 18 Jun 2021 14:18:07 +0200
> From: Ergus <spacibba@aol.com>
> 
> I just tried and this:
> 
> (string-empty-p nil) 
> 
> returns nil. But nil is not an non-empty string. This forces to add some
> extra checks when using this function.
> 
> Is this intended? 

Not clear.  string-empty-p follows the examples of string=, which
allows symbols as arguments (and uses their name).

I suggest to report a bug about this, because at the very least the
doc string should mention this.



reply via email to

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