completing-read-multiple: Ignore empty strings in the list of return values
authorRoland Winkler <winkler@gnu.org>
Sun, 17 Mar 2013 10:33:57 +0000 (05:33 -0500)
committerRoland Winkler <winkler@gnu.org>
Sun, 17 Mar 2013 10:33:57 +0000 (05:33 -0500)
lisp/ChangeLog
lisp/emacs-lisp/crm.el

index 6c0de85..1f9724e 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-17  Roland Winkler  <winkler@gnu.org>
+
+       * emacs-lisp/crm.el (completing-read-multiple): Ignore empty
+       strings in the list of return values.
+
 2013-03-17  Jay Belanger  <jay.p.belanger@gmail.com>
 
        * calc/calc-ext.el (math-read-number-fancy): Check for an explicit
index f88cb0e..e1e1847 100644 (file)
@@ -287,7 +287,8 @@ INHERIT-INPUT-METHOD."
                       prompt initial-input map
                       nil hist def inherit-input-method)))
          (and def (string-equal input "") (setq input def))
-         (split-string input crm-separator)))
+          ;; Ignore empty strings in the list of return values.
+         (split-string input crm-separator t)))
     (remove-hook 'choose-completion-string-functions
                 'crm--choose-completion-string)))