]> code.delx.au - gnu-emacs/commitdiff
(font-menu-add-default): Use list, not cons, for new elt.
authorRichard M. Stallman <rms@gnu.org>
Wed, 11 Aug 1993 19:22:35 +0000 (19:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 11 Aug 1993 19:22:35 +0000 (19:22 +0000)
Don't get confused if no Misc entry.

lisp/mouse.el

index f5a264d2a4b604805d5a77f61252be7c577fa663..49e78c4f1b6df99cef1ca672904b5c3e44843686 100644 (file)
@@ -888,7 +888,7 @@ and selects that window."
 (defun font-menu-add-default ()
   (let* ((default (cdr (assq 'font (frame-parameters (selected-frame)))))
         (font-alist x-fixed-font-alist)
-        (elt (assoc "Misc" font-alist)))
+        (elt (or (assoc "Misc" font-alist) (nth 1 font-alist))))
     (if (assoc "Default" elt)
        (delete (assoc "Default" elt) elt))
     (setcdr elt