changeset 4294:644e33e3ab38

(font-menu-add-default): New function.
author Richard M. Stallman <rms@gnu.org>
date Mon, 26 Jul 1993 20:04:19 +0000
parents 99e31e531877
children 04801cc935e6
files lisp/mouse.el
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"