diff options
| author | Jan D | 2010-06-30 13:16:01 +0200 |
|---|---|---|
| committer | Jan D | 2010-06-30 13:16:01 +0200 |
| commit | bf93533944382aec92b21cd4bfed01a263fbabd0 (patch) | |
| tree | 4fc1bbc83f266c103f09f126460b6e47d269ed71 /src/xsettings.c | |
| parent | 769e9d470d674ba60fcf085bccd29824657dc776 (diff) | |
| download | emacs-bf93533944382aec92b21cd4bfed01a263fbabd0.tar.gz emacs-bf93533944382aec92b21cd4bfed01a263fbabd0.zip | |
Improve doc for system font things. Return font regardless of use_system_font.
* xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
Improve documentation. Return font regardless of use_system_font.
(syms_of_xsettings): Improve documentation for font-use-system-font.
Diffstat (limited to 'src/xsettings.c')
| -rw-r--r-- | src/xsettings.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xsettings.c b/src/xsettings.c index 8cfcafe126d..2760e48fe05 100644 --- a/src/xsettings.c +++ b/src/xsettings.c | |||
| @@ -719,20 +719,20 @@ xsettings_get_system_normal_font () | |||
| 719 | DEFUN ("font-get-system-normal-font", Ffont_get_system_normal_font, | 719 | DEFUN ("font-get-system-normal-font", Ffont_get_system_normal_font, |
| 720 | Sfont_get_system_normal_font, | 720 | Sfont_get_system_normal_font, |
| 721 | 0, 0, 0, | 721 | 0, 0, 0, |
| 722 | doc: /* Get the system default font. */) | 722 | doc: /* Get the system default application font. */) |
| 723 | () | 723 | () |
| 724 | { | 724 | { |
| 725 | return current_font && use_system_font | 725 | return current_font |
| 726 | ? make_string (current_font, strlen (current_font)) | 726 | ? make_string (current_font, strlen (current_font)) |
| 727 | : Qnil; | 727 | : Qnil; |
| 728 | } | 728 | } |
| 729 | 729 | ||
| 730 | DEFUN ("font-get-system-font", Ffont_get_system_font, Sfont_get_system_font, | 730 | DEFUN ("font-get-system-font", Ffont_get_system_font, Sfont_get_system_font, |
| 731 | 0, 0, 0, | 731 | 0, 0, 0, |
| 732 | doc: /* Get the system default monospaced font. */) | 732 | doc: /* Get the system default fixed width font. */) |
| 733 | () | 733 | () |
| 734 | { | 734 | { |
| 735 | return current_mono_font && use_system_font | 735 | return current_mono_font |
| 736 | ? make_string (current_mono_font, strlen (current_mono_font)) | 736 | ? make_string (current_mono_font, strlen (current_mono_font)) |
| 737 | : Qnil; | 737 | : Qnil; |
| 738 | } | 738 | } |
| @@ -774,7 +774,10 @@ syms_of_xsettings () | |||
| 774 | defsubr (&Sfont_get_system_normal_font); | 774 | defsubr (&Sfont_get_system_normal_font); |
| 775 | 775 | ||
| 776 | DEFVAR_BOOL ("font-use-system-font", &use_system_font, | 776 | DEFVAR_BOOL ("font-use-system-font", &use_system_font, |
| 777 | doc: /* *Non-nil means to use the system defined font. */); | 777 | doc: /* *Non-nil means to apply the system defined font dynamically. |
| 778 | When this is non-nil and the system defined fixed width font changes, we | ||
| 779 | update frames dynamically. | ||
| 780 | If this variable is nil, Emacs ignores system font changes. */); | ||
| 778 | use_system_font = 0; | 781 | use_system_font = 0; |
| 779 | 782 | ||
| 780 | DEFVAR_LISP ("xft-settings", &Vxft_settings, | 783 | DEFVAR_LISP ("xft-settings", &Vxft_settings, |