On 29 November 2013 20:23, Stefan Monnier wrote: > > + (string= string "")) > > I think `equal' is preferable since it avoids signaling an error if > STRING is not a string. > Not sure about that. After all, this function is meant to be used with a STRING argument. On the other hand using `equal' will make it play better with nil. > > > +(defsubst string-blank-p (string) > > + "Check whether STRING is either empty or only whitespace." > > + (string-empty-p (string-trim string))) > > Better use (string-match-p "\\`...\\'" string) to avoid allocating a new > string. > You're right. I'll change this. > > > Stefan >