]> git.eshelyaron.com Git - emacs.git/commitdiff
(iswitchb-entryfn-p): Use memq, not member.
authorRichard M. Stallman <rms@gnu.org>
Fri, 2 May 1997 00:28:21 +0000 (00:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 2 May 1997 00:28:21 +0000 (00:28 +0000)
lisp/iswitchb.el

index 7ac80b5642a12850de0ed2220a1e355114cfce04..ddd14e0188d5d448a918e5557ae4078c810f60a0 100644 (file)
@@ -1162,11 +1162,11 @@ Copied from `icomplete-tidy'."
 (defun iswitchb-entryfn-p ()
   "Return non-nil if `this-command' shows we are using `iswitchb-buffer'."
   (and (symbolp this-command)          ; ignore lambda functions
-       (member (symbol-name this-command)
-              '("iswitchb-buffer"
-                "iswitchb-buffer-other-frame"
-                "iswitchb-display-buffer"
-                "iswitchb-buffer-other-window"))))
+       (memq this-command
+            '(iswitchb-buffer
+              iswitchb-buffer-other-frame
+              iswitchb-display-buffer
+              iswitchb-buffer-other-window))))
 
 (defun iswitchb-summaries-to-end ()
   "Move the summaries to the end of the list.