diff options
| author | Richard M. Stallman | 1993-07-26 20:04:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-26 20:04:19 +0000 |
| commit | 0eb9fef35324149c8bb30b5efae425292e0f842a (patch) | |
| tree | 5a45c5680598bc824daed44945e16feaaaeb0ab0 | |
| parent | efd19407f250d540d1319e89a23559a63dfa4286 (diff) | |
| download | emacs-0eb9fef35324149c8bb30b5efae425292e0f842a.tar.gz emacs-0eb9fef35324149c8bb30b5efae425292e0f842a.zip | |
(font-menu-add-default): New function.
| -rw-r--r-- | lisp/mouse.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 3fb7c173621..b3ce6da6688 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -865,6 +865,17 @@ and selects that window." | |||
| 865 | 865 | ||
| 866 | ;; Font selection. | 866 | ;; Font selection. |
| 867 | 867 | ||
| 868 | (defun font-menu-add-default () | ||
| 869 | (let* ((default (cdr (assq 'font (frame-parameters (selected-frame))))) | ||
| 870 | (font-alist x-fixed-font-alist) | ||
| 871 | (elt (assoc "Misc" font-alist))) | ||
| 872 | (if (assoc "Default" elt) | ||
| 873 | (delete (assoc "Default" elt) elt)) | ||
| 874 | (setcdr elt | ||
| 875 | (cons (cons "Default" | ||
| 876 | (cdr (assq 'font (frame-parameters (selected-frame))))) | ||
| 877 | (cdr elt))))) | ||
| 878 | |||
| 868 | (defvar x-fixed-font-alist | 879 | (defvar x-fixed-font-alist |
| 869 | '("Font menu" | 880 | '("Font menu" |
| 870 | ("Misc" | 881 | ("Misc" |