diff lisp/subr.el @ 5473:ac37a5f7e5be

Merge with trunk.
author Mats Lidell <matsl@xemacs.org>
date Thu, 17 Mar 2011 23:42:59 +0100
parents a9094f28f9a9 f00192e1cd49
children 1e544fd7be12
line wrap: on
line diff
--- a/lisp/subr.el	Tue Feb 22 22:56:02 2011 +0100
+++ b/lisp/subr.el	Thu Mar 17 23:42:59 2011 +0100
@@ -1748,8 +1748,9 @@
 Ranges and carets are not treated specially.  This implementation is
 in Lisp; do not use it in performance-critical code."
   (let ((list (delete-duplicates (string-to-list string) :test #'=)))
-    (when (/= 1 (length list)) ;; No quoting needed in a string of length 1.
-      (when (eq ?^ (car list))
+    (when (not (eql 1 (length list))) ;; No quoting needed in a string of
+				      ;; length 1.
+      (when (eql ?^ (car list))
         (setq list (nconc (cdr list) '(?^))))
       (when (memq ?\\ list)
         (setq list (delq ?\\ list)