(menu-bar-update-buffers): Don't use string-match.
authorKarl Heuer <kwzh@gnu.org>
Thu, 12 May 1994 17:02:15 +0000 (17:02 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 12 May 1994 17:02:15 +0000 (17:02 +0000)
lisp/menu-bar.el

index d198381..8b33d7d 100644 (file)
@@ -293,8 +293,7 @@ A large number or nil slows down menu responsiveness.")
                    (setq tail buffers)
                    (while tail
                      (let ((elt (car tail)))
-                       (if (not (string-match "^ "
-                                              (buffer-name elt)))
+                       (or (eq ?\ (aref (buffer-name elt) 0))
                            (setq alist (cons
                                         (cons
                                          (format