changeset 33978:9aa3fd6779f7

(member-ignore-case): Return the tail of the list who's car matches, like `member', not the matching element itself.
author Miles Bader <miles@gnu.org>
date Wed, 29 Nov 2000 04:35:50 +0000
parents fd338013d333
children a9ff8037579d
files lisp/subr.el
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Wed Nov 29 00:38:36 2000 +0000
+++ b/lisp/subr.el	Wed Nov 29 04:35:50 2000 +0000
@@ -195,12 +195,9 @@
   "Like `member', but ignores differences in case and text representation.
 ELT must be a string.  Upper-case and lower-case letters are treated as equal.
 Unibyte strings are converted to multibyte for comparison."
-  (let (element)
-    (while (and list (not element))
-      (if (eq t (compare-strings elt 0 nil (car list) 0 nil t))
-	  (setq element (car list)))
-      (setq list (cdr list)))
-      element))
+  (while (and list (not (eq t (compare-strings elt 0 nil (car list) 0 nil t))))
+    (setq list (cdr list)))
+  list)
 
 
 ;;;; Keymap support.