Mercurial > hg > xemacs-beta
diff lisp/wid-edit.el @ 5473:ac37a5f7e5be
Merge with trunk.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Thu, 17 Mar 2011 23:42:59 +0100 |
parents | 308d34e9f07d f00192e1cd49 |
children | 7a81b4d98d2d |
line wrap: on
line diff
--- a/lisp/wid-edit.el Tue Feb 22 22:56:02 2011 +0100 +++ b/lisp/wid-edit.el Thu Mar 17 23:42:59 2011 +0100 @@ -2485,12 +2485,12 @@ (widget-put old :value internal))) ;; Find new choice. (setq current - (cond ((= (length args) 0) + (cond ((eql (length args) 0) nil) - ((= (length args) 1) + ((eql (length args) 1) (nth 0 args)) ((and widget-choice-toggle - (= (length args) 2) + (eql (length args) 2) (memq old args)) (if (eq old (nth 0 args)) (nth 1 args) @@ -3637,7 +3637,7 @@ (widget-get widget :prompt-match) nil initial history))) (if (and (stringp answer) - (not (zerop (length answer)))) + (not (eql (length answer) 0))) answer (error "No value")))) @@ -4029,7 +4029,7 @@ "Prompt for a color." (let* ((tag (widget-apply widget :menu-tag-get)) (answer (read-color (concat tag ": ")))) - (unless (zerop (length answer)) + (unless (eql (length answer) 0) (widget-value-set widget answer) (widget-setup) (widget-apply widget :notify widget event))))