Commit 0d94f5ca authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(font-menu-add-default): Use list, not cons, for new elt.

Don't get confused if no Misc entry.
parent 3d64d15b
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment