# HG changeset patch # User Richard M. Stallman # Date 743717059 0 # Node ID 644e33e3ab38b99bd8d3fafcb785f135ad9a626a # Parent 99e31e531877074bf0e964d026c2acb35b95f8bf (font-menu-add-default): New function. diff -r 99e31e531877 -r 644e33e3ab38 lisp/mouse.el --- a/lisp/mouse.el Mon Jul 26 20:03:00 1993 +0000 +++ b/lisp/mouse.el Mon Jul 26 20:04:19 1993 +0000 @@ -865,6 +865,17 @@ ;; Font selection. +(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))) + (if (assoc "Default" elt) + (delete (assoc "Default" elt) elt)) + (setcdr elt + (cons (cons "Default" + (cdr (assq 'font (frame-parameters (selected-frame))))) + (cdr elt))))) + (defvar x-fixed-font-alist '("Font menu" ("Misc"