From 0d94f5ca296f68fe52c4a9cafc7400fa9ef27fc7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 11 Aug 1993 19:22:35 +0000 Subject: [PATCH] (font-menu-add-default): Use list, not cons, for new elt. Don't get confused if no Misc entry. --- lisp/mouse.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mouse.el b/lisp/mouse.el index f5a264d2a4b..49e78c4f1b6 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -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 -- 2.39.5