(facemenu-active-faces): Change condition of inner `while' loop to
authorLuc Teirlinck <teirllm@auburn.edu>
Sat, 4 Sep 2004 19:13:40 +0000 (19:13 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Sat, 4 Sep 2004 19:13:40 +0000 (19:13 +0000)
also check the first two elements of `face-atts' and `mask-atts'.

lisp/ChangeLog
lisp/facemenu.el

index e5ba5f2..f3ccc6f 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-04  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * facemenu.el (facemenu-active-faces): Change condition of inner
+       `while' loop to also check the first two elements of `face-atts'
+       and `mask-atts'.
+
 2004-09-04  John Paul Wallington  <jpw@gnu.org>
 
        * thumbs.el (thumbs-view-image-mode-map): Fix command name typo.
index e9af58f..c6cce45 100644 (file)
@@ -617,7 +617,7 @@ use the selected frame.  If t, then the global, non-frame faces are used."
                       (check-face (car face-list)))))
                (i mask-len)
                (useful nil))
-           (while (> (setq i (1- i)) 1)
+           (while (>= (setq i (1- i)) 0)
              (and (not (memq (aref face-atts i) '(nil unspecified)))
                   (memq (aref mask-atts i) '(nil unspecified))
                   (aset mask-atts i (setq useful t))))