diff lisp/mouse.el @ 4563:b9118969ce28

(font-menu-add-default): Use list, not cons, for new elt. Don't get confused if no Misc entry.
author Richard M. Stallman <rms@gnu.org>
date Wed, 11 Aug 1993 19:22:35 +0000
parents 477fbf60722b
children c071de572565
line wrap: on
line diff
--- a/lisp/mouse.el	Wed Aug 11 19:20:22 1993 +0000
+++ b/lisp/mouse.el	Wed Aug 11 19:22:35 1993 +0000
@@ -888,7 +888,7 @@
 (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