Mercurial > hg > xemacs-beta
comparison man/xemacs-faq.texi @ 1389:6355bae896e3
[xemacs-hg @ 2003-03-27 12:57:36 by stephent]
use .Xresources not .Xdefaults <87adfhezt5.fsf@tleepslib.sk.tsukuba.ac.jp>
regexp-tests fix
author | stephent |
---|---|
date | Thu, 27 Mar 2003 12:57:53 +0000 |
parents | fea518919305 |
children | 049c7092a496 |
comparison
equal
deleted
inserted
replaced
1388:aa75c11622fc | 1389:6355bae896e3 |
---|---|
5 @setchapternewpage off | 5 @setchapternewpage off |
6 @c %**end of header | 6 @c %**end of header |
7 @finalout | 7 @finalout |
8 @titlepage | 8 @titlepage |
9 @title XEmacs FAQ | 9 @title XEmacs FAQ |
10 @subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2003/03/26 06:10:47 $ | 10 @subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2003/03/27 12:57:48 $ |
11 @sp 1 | 11 @sp 1 |
12 @author Tony Rossini <rossini@@biostat.washington.edu> | 12 @author Tony Rossini <rossini@@biostat.washington.edu> |
13 @author Ben Wing <ben@@xemacs.org> | 13 @author Ben Wing <ben@@xemacs.org> |
14 @author Chuck Thompson <cthomp@@xemacs.org> | 14 @author Chuck Thompson <cthomp@@xemacs.org> |
15 @author Steve Baur <steve@@xemacs.org> | 15 @author Steve Baur <steve@@xemacs.org> |
2825 @unnumberedsubsec Q3.1.1: Where is a list of X resources? | 2825 @unnumberedsubsec Q3.1.1: Where is a list of X resources? |
2826 | 2826 |
2827 Search through the @file{NEWS} file for @samp{X Resources}. A fairly | 2827 Search through the @file{NEWS} file for @samp{X Resources}. A fairly |
2828 comprehensive list is given after it. | 2828 comprehensive list is given after it. |
2829 | 2829 |
2830 In addition, an @file{app-defaults} file is supplied, | 2830 In addition, an @file{app-defaults} file @file{etc/Emacs.ad} is |
2831 @file{etc/Emacs.ad} listing the defaults. The file | 2831 supplied, listing the defaults. The file @file{etc/sample.Xresources} |
2832 @file{etc/sample.Xresources} gives a set of defaults that you might | 2832 gives a different set of defaults that you might consider for |
2833 consider. It is essentially the same as @file{etc/Emacs.ad} but some | 2833 installation in your @file{~/.Xresources} file. It is nearly the same |
2834 entries are slightly altered. Be careful about installing the contents | 2834 as @file{etc/Emacs.ad}, but a few entries are altered. Be careful about |
2835 of this file into your @file{.Xresources} or @file{.Xresources} file if | 2835 installing the contents of this file into your @file{.Xresources} (or |
2836 you use GNU Emacs under X11 as well. | 2836 legacy @file{.Xdefaults}) file if you use GNU Emacs under X11 as well. |
2837 | 2837 |
2838 @node Q3.1.2, Q3.1.3, Q3.1.1, Customization | 2838 @node Q3.1.2, Q3.1.3, Q3.1.1, Customization |
2839 @unnumberedsubsec Q3.1.2: How can I detect a color display? | 2839 @unnumberedsubsec Q3.1.2: How can I detect a color display? |
2840 | 2840 |
2841 You can test the return value of the function @code{(device-class)}, as | 2841 You can test the return value of the function @code{(device-class)}, as |
3000 Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-* | 3000 Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-* |
3001 Emacs*menubar*font: fixed | 3001 Emacs*menubar*font: fixed |
3002 Emacs.modeline.attributeFont: fixed | 3002 Emacs.modeline.attributeFont: fixed |
3003 @end example | 3003 @end example |
3004 | 3004 |
3005 This is confusing because @samp{default} and @samp{modeline} faces, and | 3005 This is confusing because @samp{default} and @samp{modeline} are face |
3006 can be found listed with all faces in the current mode by using | 3006 names, and can be found listed with all faces in the current mode by |
3007 @kbd{M-x set-face-font (enter) ?}. They use the face-specific resource | 3007 using @kbd{M-x set-face-font (enter) ?}. They use the face-specific |
3008 @samp{attributeFont}, while menubar is a normal X thing that uses the | 3008 resource @samp{attributeFont} |
3009 specification @samp{font}. With Motif it @emph{may be} necessary to use | 3009 |
3010 @samp{fontList} instead of @samp{font}. With Mule in non-Motif | 3010 On the other hand, @samp{menubar} is a normal X thing that uses the |
3011 configurations it @emph{is} necessary to use @samp{fontSet} instead of | 3011 resource @samp{font}. With Motif it @emph{may be} necessary to use |
3012 @samp{font}. | 3012 @samp{fontList} @emph{instead of} @samp{font}. In @emph{non-Motif} |
3013 configurations with Mule it @emph{is} necessary to use @samp{fontSet} | |
3014 instead of @samp{font}. (Sorry, there just is no simple recipe here.) | |
3013 | 3015 |
3014 @node Q3.2.3, Q3.2.4, Q3.2.2, Customization | 3016 @node Q3.2.3, Q3.2.4, Q3.2.2, Customization |
3015 @unnumberedsubsec Q3.2.3: How can I set the colors when highlighting a region? | 3017 @unnumberedsubsec Q3.2.3: How can I set the colors when highlighting a region? |
3016 | 3018 |
3017 How can I set the background/foreground colors when highlighting a | 3019 How can I set the background/foreground colors when highlighting a |
3778 | 3780 |
3779 @example | 3781 @example |
3780 Emacs*menubar*fontList: FONT | 3782 Emacs*menubar*fontList: FONT |
3781 @end example | 3783 @end example |
3782 | 3784 |
3783 If you are using the Lucid menubar, for backward compatibility of user | 3785 If you are using the Lucid menubar, for backward compatibility with |
3784 configurations, the @samp{font} resource is recognized. Since this is | 3786 existing user configurations, the @samp{font} resource is recognized. |
3785 not supported by Motif itself, the code is a kludge and the @samp{font} | 3787 Since this is not supported by Motif itself, the code is a kludge and |
3786 resource will be recognized only if the @samp{fontList} resource | 3788 the @samp{font} resource will be recognized only if the @samp{fontList} |
3787 resource is unset. This means that the resource | 3789 resource resource is unset. This means that the resource |
3788 | 3790 |
3789 @example | 3791 @example |
3790 *fontList: FONT | 3792 *fontList: FONT |
3791 @end example | 3793 @end example |
3792 | 3794 |
3796 Emacs*menubar*font: FONT | 3798 Emacs*menubar*font: FONT |
3797 @end example | 3799 @end example |
3798 | 3800 |
3799 even though the latter is more specific. | 3801 even though the latter is more specific. |
3800 | 3802 |
3801 With Mule in non-Motif configurations it @emph{is} necessary to use | 3803 In non-Motif configurations using @samp{--with-mule} and |
3802 @code{fontSet} @emph{instead of} @code{font}; the backward compatibility | 3804 @samp{--with-xfs} it @emph{is} necessary to use the @code{fontSet} |
3803 kludge was never implemented for non-Motif builds. Example: | 3805 resource @emph{instead of} the @code{font} resource. The backward |
3806 compatibility kludge was never implemented for non-Motif builds. | |
3807 Example: | |
3804 | 3808 |
3805 @example | 3809 @example |
3806 *fontSet: FONT | 3810 *fontSet: FONT |
3807 @end example | 3811 @end example |
3808 | 3812 |