emacs-devel
[Top][All Lists]
Advanced

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

Re: Rationale for split-string?


From: Richard Stallman
Subject: Re: Rationale for split-string?
Date: Sat, 19 Apr 2003 09:35:44 -0400

    (defun split-string-sanely-too (string &optional separators)
      (let ((result (xemacs-split-string string separators)))
        (cond ((stringp separators)        result)
              ((eq separators 'omit-nulls) (delete "" result))
              (t (error 'invalid-argument
                        "SEPARATORS must be a string or 'omit-nulls"
                        separators)))))

This seems like a good approach, but I would rather use t instead
of `omit-nulls'.




reply via email to

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