Mercurial > hg > xemacs-beta
comparison man/xemacs/custom.texi @ 1137:c6facab13185
[xemacs-hg @ 2002-12-03 10:35:06 by didierv]
new function `set-face-background-pixmap-file'
author | didierv |
---|---|
date | Tue, 03 Dec 2002 10:35:17 +0000 |
parents | 732270854293 |
children | 55834f418dfb |
comparison
equal
deleted
inserted
replaced
1136:14f3ffacd8be | 1137:c6facab13185 |
---|---|
490 [ ] Italic: [Toggle] off (nil) | 490 [ ] Italic: [Toggle] off (nil) |
491 [ ] Underline: [Toggle] off (nil) | 491 [ ] Underline: [Toggle] off (nil) |
492 [ ] Foreground: white (sample) | 492 [ ] Foreground: white (sample) |
493 [ ] Background: blue (sample) | 493 [ ] Background: blue (sample) |
494 [ ] Inverse: [Toggle] off (nil) | 494 [ ] Inverse: [Toggle] off (nil) |
495 [ ] Stipple: | 495 [ ] Stipple: |
496 [ ] Font Family: | 496 [ ] Font Family: |
497 [ ] Size: | 497 [ ] Size: |
498 [ ] Strikethru: off | 498 [ ] Strikethru: off |
499 @end smallexample | 499 @end smallexample |
500 | 500 |
501 Each face attribute has its own line. The @samp{[@var{x}]} field | 501 Each face attribute has its own line. The @samp{[@var{x}]} field |
502 before the attribute name indicates whether the attribute is | 502 before the attribute name indicates whether the attribute is |
507 @c Is this true for XEmacs? | 507 @c Is this true for XEmacs? |
508 @c On a black-and-white display, the colors you can use for the | 508 @c On a black-and-white display, the colors you can use for the |
509 @c background are @samp{black}, @samp{white}, @samp{gray}, @samp{gray1}, | 509 @c background are @samp{black}, @samp{white}, @samp{gray}, @samp{gray1}, |
510 @c and @samp{gray3}. Emacs supports these shades of gray by using | 510 @c and @samp{gray3}. Emacs supports these shades of gray by using |
511 @c background stipple patterns instead of a color. | 511 @c background stipple patterns instead of a color. |
512 @c | 512 @c |
513 Setting, saving and resetting a face work like the same operations for | 513 Setting, saving and resetting a face work like the same operations for |
514 options (@pxref{Changing an Option}). | 514 options (@pxref{Changing an Option}). |
515 | 515 |
516 A face can specify different appearances for different types of | 516 A face can specify different appearances for different types of |
517 display. For example, a face can make text red on a color display, but | 517 display. For example, a face can make text red on a color display, but |
543 @item M-x customize-group @key{RET} @var{group} @key{RET} | 543 @item M-x customize-group @key{RET} @var{group} @key{RET} |
544 Set up a customization buffer with just one group, @var{group}. | 544 Set up a customization buffer with just one group, @var{group}. |
545 @item M-x customize-apropos @key{RET} @var{regexp} @key{RET} | 545 @item M-x customize-apropos @key{RET} @var{regexp} @key{RET} |
546 Set up a customization buffer with all the options, faces and groups | 546 Set up a customization buffer with all the options, faces and groups |
547 that match @var{regexp}. | 547 that match @var{regexp}. |
548 @item M-x customize-saved | 548 @item M-x customize-saved |
549 Set up a customization buffer containing all options and faces that you | 549 Set up a customization buffer containing all options and faces that you |
550 have saved with customization buffers. | 550 have saved with customization buffers. |
551 @item M-x customize-customized | 551 @item M-x customize-customized |
552 Set up a customization buffer containing all options and faces that you | 552 Set up a customization buffer containing all options and faces that you |
553 have customized but not saved. | 553 have customized but not saved. |
774 Note also that comments in the file begin with and end with the same | 774 Note also that comments in the file begin with and end with the same |
775 strings. Presumably the file contains code in a language which is | 775 strings. Presumably the file contains code in a language which is |
776 enough like Lisp for Lisp mode to be useful but in which comments | 776 enough like Lisp for Lisp mode to be useful but in which comments |
777 start and end differently. The prefix and suffix are used in the local | 777 start and end differently. The prefix and suffix are used in the local |
778 variables list to make the list look like several lines of comments when | 778 variables list to make the list look like several lines of comments when |
779 the compiler or interpreter for that language reads the file. | 779 the compiler or interpreter for that language reads the file. |
780 | 780 |
781 The start of the local variables list must be no more than 3000 | 781 The start of the local variables list must be no more than 3000 |
782 characters from the end of the file, and must be in the last page if the | 782 characters from the end of the file, and must be in the last page if the |
783 file is divided into pages. Otherwise, Emacs will not notice it is | 783 file is divided into pages. Otherwise, Emacs will not notice it is |
784 there. The purpose is twofold: a stray @samp{Local Variables:}@: not in | 784 there. The purpose is twofold: a stray @samp{Local Variables:}@: not in |
886 To start defining a keyboard macro, type @kbd{C-x (} | 886 To start defining a keyboard macro, type @kbd{C-x (} |
887 (@code{start-kbd-macro}). From then on, anything you type continues to be | 887 (@code{start-kbd-macro}). From then on, anything you type continues to be |
888 executed, but also becomes part of the definition of the macro. @samp{Def} | 888 executed, but also becomes part of the definition of the macro. @samp{Def} |
889 appears in the mode line to remind you of what is going on. When you are | 889 appears in the mode line to remind you of what is going on. When you are |
890 finished, the @kbd{C-x )} command (@code{end-kbd-macro}) terminates the | 890 finished, the @kbd{C-x )} command (@code{end-kbd-macro}) terminates the |
891 definition, without becoming part of it. | 891 definition, without becoming part of it. |
892 | 892 |
893 For example, | 893 For example, |
894 | 894 |
895 @example | 895 @example |
896 C-x ( M-f foo C-x ) | 896 C-x ( M-f foo C-x ) |
1132 all major modes except those that have their own overriding local | 1132 all major modes except those that have their own overriding local |
1133 definitions for the same key. Or you can change the current buffer's | 1133 definitions for the same key. Or you can change the current buffer's |
1134 local map, which affects all buffers using the same major mode. | 1134 local map, which affects all buffers using the same major mode. |
1135 | 1135 |
1136 @menu | 1136 @menu |
1137 * Interactive Rebinding:: Changing Key Bindings Interactively | 1137 * Interactive Rebinding:: Changing Key Bindings Interactively |
1138 * Programmatic Rebinding:: Changing Key Bindings Programmatically | 1138 * Programmatic Rebinding:: Changing Key Bindings Programmatically |
1139 * Key Bindings Using Strings:: Using Strings for Changing Key Bindings | 1139 * Key Bindings Using Strings:: Using Strings for Changing Key Bindings |
1140 @end menu | 1140 @end menu |
1141 | 1141 |
1142 @node Interactive Rebinding | 1142 @node Interactive Rebinding |
1143 @subsubsection Changing Key Bindings Interactively | 1143 @subsubsection Changing Key Bindings Interactively |
1144 @findex global-set-key | 1144 @findex global-set-key |
1146 @findex local-unset-key | 1146 @findex local-unset-key |
1147 | 1147 |
1148 @table @kbd | 1148 @table @kbd |
1149 @item M-x global-set-key @key{RET} @var{key} @var{cmd} @key{RET} | 1149 @item M-x global-set-key @key{RET} @var{key} @var{cmd} @key{RET} |
1150 Defines @var{key} globally to run @var{cmd}. | 1150 Defines @var{key} globally to run @var{cmd}. |
1151 @item M-x local-set-key @key{RET} @var{keys} @var{cmd} @key{RET} | 1151 @item M-x local-set-key @key{RET} @var{keys} @var{cmd} @key{RET} |
1152 Defines @var{key} locally (in the major mode now in effect) to run | 1152 Defines @var{key} locally (in the major mode now in effect) to run |
1153 @var{cmd}. | 1153 @var{cmd}. |
1154 @item M-x local-unset-key @key{RET} @var{keys} @key{RET} | 1154 @item M-x local-unset-key @key{RET} @var{keys} @key{RET} |
1155 Removes the local binding of @var{key}. | 1155 Removes the local binding of @var{key}. |
1156 @end table | 1156 @end table |
1215 @item @code{(global-set-key @var{keys} @var{cmd})} | 1215 @item @code{(global-set-key @var{keys} @var{cmd})} |
1216 Defines @var{keys} globally to run @var{cmd}. | 1216 Defines @var{keys} globally to run @var{cmd}. |
1217 @item @code{(define-key @var{keymap} @var{keys} @var{def})} | 1217 @item @code{(define-key @var{keymap} @var{keys} @var{def})} |
1218 Defines @var{keys} to run @var{def} in the keymap @var{keymap}. | 1218 Defines @var{keys} to run @var{def} in the keymap @var{keymap}. |
1219 @end table | 1219 @end table |
1220 | 1220 |
1221 @var{keymap} is a keymap object. | 1221 @var{keymap} is a keymap object. |
1222 | 1222 |
1223 @var{keys} is the sequence of keystrokes to bind. | 1223 @var{keys} is the sequence of keystrokes to bind. |
1224 | 1224 |
1225 @var{def} is anything that can be a key's definition: | 1225 @var{def} is anything that can be a key's definition: |
1249 sequences as strings. However, the preferred method is to use the | 1249 sequences as strings. However, the preferred method is to use the |
1250 representations of key sequences as vectors of keystrokes. | 1250 representations of key sequences as vectors of keystrokes. |
1251 @xref{Keystrokes}, for more information about the rules for constructing | 1251 @xref{Keystrokes}, for more information about the rules for constructing |
1252 key sequences. | 1252 key sequences. |
1253 | 1253 |
1254 Emacs allows you to abbreviate representations for key sequences in | 1254 Emacs allows you to abbreviate representations for key sequences in |
1255 most places where there is no ambiguity. | 1255 most places where there is no ambiguity. |
1256 Here are some rules for abbreviation: | 1256 Here are some rules for abbreviation: |
1257 | 1257 |
1258 @itemize @bullet | 1258 @itemize @bullet |
1259 @item | 1259 @item |
1271 Here are some examples of programmatically binding keys: | 1271 Here are some examples of programmatically binding keys: |
1272 | 1272 |
1273 @example | 1273 @example |
1274 | 1274 |
1275 ;;; Bind @code{my-command} to @key{f1} | 1275 ;;; Bind @code{my-command} to @key{f1} |
1276 (global-set-key 'f1 'my-command) | 1276 (global-set-key 'f1 'my-command) |
1277 | 1277 |
1278 ;;; Bind @code{my-command} to @kbd{Shift-f1} | 1278 ;;; Bind @code{my-command} to @kbd{Shift-f1} |
1279 (global-set-key '(shift f1) 'my-command) | 1279 (global-set-key '(shift f1) 'my-command) |
1280 | 1280 |
1281 ;;; Bind @code{my-command} to @kbd{C-c Shift-f1} | 1281 ;;; Bind @code{my-command} to @kbd{C-c Shift-f1} |
1282 (global-set-key '[(control c) (shift f1)] 'my-command) | 1282 (global-set-key '[(control c) (shift f1)] 'my-command) |
1283 | 1283 |
1284 ;;; Bind @code{my-command} to the middle mouse button. | 1284 ;;; Bind @code{my-command} to the middle mouse button. |
1285 (global-set-key 'button2 'my-command) | 1285 (global-set-key 'button2 'my-command) |
1286 | 1286 |
1287 ;;; Bind @code{my-command} to @kbd{@key{META} @key{CTL} @key{Right Mouse Button}} | 1287 ;;; Bind @code{my-command} to @kbd{@key{META} @key{CTL} @key{Right Mouse Button}} |
1294 @comment ;; | 1294 @comment ;; |
1295 @comment (global-set-key '(meta control delete) 'my-command) | 1295 @comment (global-set-key '(meta control delete) 'my-command) |
1296 @comment (global-set-key '(meta control backspace) 'my-command) | 1296 @comment (global-set-key '(meta control backspace) 'my-command) |
1297 @comment (global-set-key '(meta control h) 'my-command) | 1297 @comment (global-set-key '(meta control h) 'my-command) |
1298 @comment (global-set-key '(meta control H) 'my-command) | 1298 @comment (global-set-key '(meta control H) 'my-command) |
1299 @comment | 1299 @comment |
1300 @comment ;; note that this binds two key sequences: ``control-j'' and ``linefeed''. | 1300 @comment ;; note that this binds two key sequences: ``control-j'' and ``linefeed''. |
1301 @comment ;; | 1301 @comment ;; |
1302 @comment (global-set-key "\^J" 'my-command) | 1302 @comment (global-set-key "\^J" 'my-command) |
1303 | 1303 |
1304 @node Key Bindings Using Strings | 1304 @node Key Bindings Using Strings |
1305 @subsubsection Using Strings for Changing Key Bindings | 1305 @subsubsection Using Strings for Changing Key Bindings |
1306 | 1306 |
1307 For backward compatibility, you can still use strings to represent | 1307 For backward compatibility, you can still use strings to represent |
1308 key sequences. Thus you can use commands like the following: | 1308 key sequences. Thus you can use commands like the following: |
1309 | 1309 |
1310 @example | 1310 @example |
1311 ;;; Bind @code{end-of-line} to @kbd{C-f} | 1311 ;;; Bind @code{end-of-line} to @kbd{C-f} |
1312 (global-set-key "\C-f" 'end-of-line) | 1312 (global-set-key "\C-f" 'end-of-line) |
1313 @end example | 1313 @end example |
1314 | 1314 |
1315 Note, however, that in some cases you may be binding more than one | 1315 Note, however, that in some cases you may be binding more than one |
1316 key sequence by using a single command. This situation can | 1316 key sequence by using a single command. This situation can |
1317 arise because in ASCII, @kbd{C-i} and @key{TAB} have | 1317 arise because in ASCII, @kbd{C-i} and @key{TAB} have |
1318 the same representation. Therefore, when Emacs sees: | 1318 the same representation. Therefore, when Emacs sees: |
1319 | 1319 |
1320 @example | 1320 @example |
1321 (global-set-key "\C-i" 'end-of-line) | 1321 (global-set-key "\C-i" 'end-of-line) |
1345 | 1345 |
1346 Here is a table of pairs of key sequences that behave in a | 1346 Here is a table of pairs of key sequences that behave in a |
1347 similar fashion: | 1347 similar fashion: |
1348 | 1348 |
1349 @example | 1349 @example |
1350 control h backspace | 1350 control h backspace |
1351 control l clear | 1351 control l clear |
1352 control i tab | 1352 control i tab |
1353 control m return | 1353 control m return |
1354 control j linefeed | 1354 control j linefeed |
1355 control [ escape | 1355 control [ escape |
1356 control @@ control space | 1356 control @@ control space |
1357 @end example | 1357 @end example |
1358 | 1358 |
1359 @node Disabling | 1359 @node Disabling |
1881 other things, strings of audio-data. When @code{ding} is called with | 1881 other things, strings of audio-data. When @code{ding} is called with |
1882 one of the symbols, the associated sound data is played instead of the | 1882 one of the symbols, the associated sound data is played instead of the |
1883 standard beep. This only works if you are logged in on the console of a | 1883 standard beep. This only works if you are logged in on the console of a |
1884 machine with audio hardware. To listen to a sound of the provided type, | 1884 machine with audio hardware. To listen to a sound of the provided type, |
1885 call the function @code{play-sound} with the argument @var{sound}. You | 1885 call the function @code{play-sound} with the argument @var{sound}. You |
1886 can also set the volume of the sound with the optional argument | 1886 can also set the volume of the sound with the optional argument |
1887 @var{volume}.@refill | 1887 @var{volume}.@refill |
1888 @cindex ding | 1888 @cindex ding |
1889 | 1889 |
1890 Each element of @code{sound-alist} is a list describing a sound. | 1890 Each element of @code{sound-alist} is a list describing a sound. |
1891 The first element of the list is the name of the sound being defined. | 1891 The first element of the list is the name of the sound being defined. |
1892 Subsequent elements of the list are alternating keyword/value pairs: | 1892 Subsequent elements of the list are alternating keyword/value pairs: |
1893 | 1893 |
1894 @table @code | 1894 @table @code |
1895 @item sound | 1895 @item sound |
1896 A string of raw sound data, or the name of another sound to play. | 1896 A string of raw sound data, or the name of another sound to play. |
1897 The symbol @code{t} here means use the default X beep. | 1897 The symbol @code{t} here means use the default X beep. |
1898 | 1898 |
1899 @item volume | 1899 @item volume |
1900 An integer from 0-100, defaulting to @code{bell-volume}. | 1900 An integer from 0-100, defaulting to @code{bell-volume}. |
1901 | 1901 |
1928 with 100 being loudest, which controls how loud the sounds emacs makes | 1928 with 100 being loudest, which controls how loud the sounds emacs makes |
1929 should be. Elements of the @code{sound-alist} may override this value. | 1929 should be. Elements of the @code{sound-alist} may override this value. |
1930 This variable applies to the standard X bell sound as well as sound files. | 1930 This variable applies to the standard X bell sound as well as sound files. |
1931 | 1931 |
1932 If the symbol @code{t} is in place of a sound-string, Emacs uses the | 1932 If the symbol @code{t} is in place of a sound-string, Emacs uses the |
1933 default X beep. This allows you to define beep-types of | 1933 default X beep. This allows you to define beep-types of |
1934 different volumes even when not running on the console. | 1934 different volumes even when not running on the console. |
1935 | 1935 |
1936 @findex load-sound-file | 1936 @findex load-sound-file |
1937 You can add things to this list by calling the function | 1937 You can add things to this list by calling the function |
1938 @code{load-sound-file}, which reads in an audio-file and adds its data to | 1938 @code{load-sound-file}, which reads in an audio-file and adds its data to |
1968 Completion was not possible | 1968 Completion was not possible |
1969 | 1969 |
1970 @item y-or-n-p | 1970 @item y-or-n-p |
1971 You type something other than the required @code{y} or @code{n} | 1971 You type something other than the required @code{y} or @code{n} |
1972 | 1972 |
1973 @item yes-or-no-p | 1973 @item yes-or-no-p |
1974 You type something other than @code{yes} or @code{no} | 1974 You type something other than @code{yes} or @code{no} |
1975 @end table | 1975 @end table |
1976 | 1976 |
1977 @comment node-name, next, previous, up | 1977 @comment node-name, next, previous, up |
1978 @node Faces | 1978 @node Faces |
2000 Swap the foreground and background colors of the given @var{face}. | 2000 Swap the foreground and background colors of the given @var{face}. |
2001 @item M-x make-face-bold | 2001 @item M-x make-face-bold |
2002 Make the font of the given @var{face} bold. When called from a | 2002 Make the font of the given @var{face} bold. When called from a |
2003 program, returns @code{nil} if this is not possible. | 2003 program, returns @code{nil} if this is not possible. |
2004 @item M-x make-face-bold-italic | 2004 @item M-x make-face-bold-italic |
2005 Make the font of the given @var{face} bold italic. | 2005 Make the font of the given @var{face} bold italic. |
2006 When called from a program, returns @code{nil} if not possible. | 2006 When called from a program, returns @code{nil} if not possible. |
2007 @item M-x make-face-italic | 2007 @item M-x make-face-italic |
2008 Make the font of the given @var{face} italic. | 2008 Make the font of the given @var{face} italic. |
2009 When called from a program, returns @code{nil} if not possible. | 2009 When called from a program, returns @code{nil} if not possible. |
2010 @item M-x make-face-unbold | 2010 @item M-x make-face-unbold |
2011 Make the font of the given @var{face} non-bold. | 2011 Make the font of the given @var{face} non-bold. |
2012 When called from a program, returns @code{nil} if not possible. | 2012 When called from a program, returns @code{nil} if not possible. |
2013 @item M-x make-face-unitalic | 2013 @item M-x make-face-unitalic |
2014 Make the font of the given @var{face} non-italic. | 2014 Make the font of the given @var{face} non-italic. |
2015 When called from a program, returns @code{nil} if not possible. | 2015 When called from a program, returns @code{nil} if not possible. |
2016 @item M-x make-face-larger | 2016 @item M-x make-face-larger |
2017 Make the font of the given @var{face} a little larger. | 2017 Make the font of the given @var{face} a little larger. |
2018 When called from a program, returns @code{nil} if not possible. | 2018 When called from a program, returns @code{nil} if not possible. |
2019 @item M-x make-face-smaller | 2019 @item M-x make-face-smaller |
2020 Make the font of the given @var{face} a little smaller. | 2020 Make the font of the given @var{face} a little smaller. |
2021 When called from a program, returns @code{nil} if not possible. | 2021 When called from a program, returns @code{nil} if not possible. |
2022 @item M-x set-face-background | 2022 @item M-x set-face-background |
2023 Change the background color of the given @var{face}. | 2023 Change the background color of the given @var{face}. |
2024 @item M-x set-face-background-pixmap | 2024 @item M-x set-face-background-pixmap |
2025 Change the background pixmap of the given @var{face}. | 2025 Change the background pixmap of the given @var{face}. |
2026 @item M-x set-face-font | 2026 @item M-x set-face-background-pixmap-file |
2027 A simpler version but with filename completion. | |
2028 @item M-x set-face-font | |
2027 Change the font of the given @var{face}. | 2029 Change the font of the given @var{face}. |
2028 @item M-x set-face-foreground | 2030 @item M-x set-face-foreground |
2029 Change the foreground color of the given @var{face}. | 2031 Change the foreground color of the given @var{face}. |
2030 @item M-x set-face-underline-p | 2032 @item M-x set-face-underline-p |
2031 Change whether the given @var{face} is underlined. | 2033 Change whether the given @var{face} is underlined. |
2042 @findex invert-face | 2044 @findex invert-face |
2043 You can exchange the foreground and background color of the selected | 2045 You can exchange the foreground and background color of the selected |
2044 @var{face} with the function @code{invert-face}. If the face does not | 2046 @var{face} with the function @code{invert-face}. If the face does not |
2045 specify both foreground and background, then its foreground and | 2047 specify both foreground and background, then its foreground and |
2046 background are set to the background and foreground of the default face. | 2048 background are set to the background and foreground of the default face. |
2047 When calling this from a program, you can supply the optional argument | 2049 When calling this from a program, you can supply the optional argument |
2048 @var{frame} to specify which frame is affected; otherwise, all frames | 2050 @var{frame} to specify which frame is affected; otherwise, all frames |
2049 are affected. | 2051 are affected. |
2050 | 2052 |
2051 @findex set-face-background | 2053 @findex set-face-background |
2052 You can set the background color of the specified @var{face} with the | 2054 You can set the background color of the specified @var{face} with the |
2053 function @code{set-face-background}. The argument @code{color} should | 2055 function @code{set-face-background}. The argument @code{color} should |
2054 be a string, the name of a color. When called from a program, if the | 2056 be a string, the name of a color. When called from a program, if the |
2055 optional @var{frame} argument is provided, the face is changed only | 2057 optional @var{frame} argument is provided, the face is changed only |
2056 in that frame; otherwise, it is changed in all frames. | 2058 in that frame; otherwise, it is changed in all frames. |
2057 | 2059 |
2058 @findex set-face-background-pixmap | 2060 @findex set-face-background-pixmap |
2059 You can set the background pixmap of the specified @var{face} with the | 2061 You can set the background pixmap of the specified @var{face} with the |
2060 function @code{set-face-background-pixmap}. The pixmap argument | 2062 function @code{set-face-background-pixmap}. The pixmap argument |
2072 resource. | 2074 resource. |
2073 | 2075 |
2074 If the environment variable @b{XBMLANGPATH} is set, then it is consulted | 2076 If the environment variable @b{XBMLANGPATH} is set, then it is consulted |
2075 before the @code{x-bitmap-file-path} variable. | 2077 before the @code{x-bitmap-file-path} variable. |
2076 | 2078 |
2079 @findex set-face-background-pixmap | |
2080 Alternately, you can use a simpler version of | |
2081 @code{set-face-background-pixmap} called | |
2082 @code{set-face-background-pixmap-file}. This function does not give you | |
2083 as much control on the pixmap instanciator, but provides filename | |
2084 completion. | |
2085 | |
2077 @findex set-face-font | 2086 @findex set-face-font |
2078 You can set the font of the specified @var{face} with the function | 2087 You can set the font of the specified @var{face} with the function |
2079 @code{set-face-font}. The @var{font} argument should be a string, the | 2088 @code{set-face-font}. The @var{font} argument should be a string, the |
2080 name of a font. When called from a program, if the | 2089 name of a font. When called from a program, if the |
2081 optional @var{frame} argument is provided, the face is changed only | 2090 optional @var{frame} argument is provided, the face is changed only |
2082 in that frame; otherwise, it is changed in all frames. | 2091 in that frame; otherwise, it is changed in all frames. |
2083 | 2092 |
2084 @findex set-face-foreground | 2093 @findex set-face-foreground |
2085 You can set the foreground color of the specified @var{face} with the | 2094 You can set the foreground color of the specified @var{face} with the |
2086 function @code{set-face-foreground}. The argument @var{color} should be | 2095 function @code{set-face-foreground}. The argument @var{color} should be |
2087 a string, the name of a color. If the optional @var{frame} argument is | 2096 a string, the name of a color. If the optional @var{frame} argument is |
2088 provided, the face is changed only in that frame; otherwise, it is | 2097 provided, the face is changed only in that frame; otherwise, it is |
2089 changed in all frames. | 2098 changed in all frames. |
2122 backwards compatibility. The variable @var{x-emacs-application-class} | 2131 backwards compatibility. The variable @var{x-emacs-application-class} |
2123 may be consulted to determine the application class being used. | 2132 may be consulted to determine the application class being used. |
2124 | 2133 |
2125 The examples in this section assume the application class is @samp{Emacs}. | 2134 The examples in this section assume the application class is @samp{Emacs}. |
2126 | 2135 |
2127 The Emacs resources are generally set per-frame. Each Emacs frame can have | 2136 The Emacs resources are generally set per-frame. Each Emacs frame can have |
2128 its own name or the same name as another, depending on the name passed to the | 2137 its own name or the same name as another, depending on the name passed to the |
2129 @code{make-frame} function. | 2138 @code{make-frame} function. |
2130 | 2139 |
2131 You can specify resources for all frames with the syntax: | 2140 You can specify resources for all frames with the syntax: |
2132 | 2141 |
2133 @example | 2142 @example |
2228 For the first frame created, the position of the frame is taken from the | 2237 For the first frame created, the position of the frame is taken from the |
2229 ApplicationShell (@code{Emacs.geometry}) if it is specified, otherwise | 2238 ApplicationShell (@code{Emacs.geometry}) if it is specified, otherwise |
2230 from the geometry of the frame. | 2239 from the geometry of the frame. |
2231 | 2240 |
2232 @item | 2241 @item |
2233 For subsequent frames, the position is taken only from the frame, and | 2242 For subsequent frames, the position is taken only from the frame, and |
2234 never from the ApplicationShell. | 2243 never from the ApplicationShell. |
2235 @end itemize | 2244 @end itemize |
2236 | 2245 |
2237 This is rather complicated, but it does seem to provide the most | 2246 This is rather complicated, but it does seem to provide the most |
2238 intuitive behavior with respect to the default sizes and positions of | 2247 intuitive behavior with respect to the default sizes and positions of |
2259 | 2268 |
2260 @item @code{iconic} (class @code{Iconic}): boolean | 2269 @item @code{iconic} (class @code{Iconic}): boolean |
2261 Whether this frame should appear in the iconified state. | 2270 Whether this frame should appear in the iconified state. |
2262 | 2271 |
2263 @item @code{internalBorderWidth} (class @code{InternalBorderWidth}): int | 2272 @item @code{internalBorderWidth} (class @code{InternalBorderWidth}): int |
2264 How many blank pixels to leave between the text and the edge of the | 2273 How many blank pixels to leave between the text and the edge of the |
2265 window. | 2274 window. |
2266 | 2275 |
2267 @item @code{interline} (class @code{Interline}): int | 2276 @item @code{interline} (class @code{Interline}): int |
2268 How many pixels to leave between each line (may not be implemented). | 2277 How many pixels to leave between each line (may not be implemented). |
2269 | 2278 |
2457 These are the faces that the left and right annotation margins are | 2466 These are the faces that the left and right annotation margins are |
2458 displayed in. | 2467 displayed in. |
2459 | 2468 |
2460 @item zmacs-region | 2469 @item zmacs-region |
2461 This is the face that mouse selections are displayed in. | 2470 This is the face that mouse selections are displayed in. |
2462 | 2471 |
2463 @item isearch | 2472 @item isearch |
2464 This is the face that the matched text being searched for is displayed | 2473 This is the face that the matched text being searched for is displayed |
2465 in. | 2474 in. |
2466 | 2475 |
2467 @item info-node | 2476 @item info-node |
2539 | 2548 |
2540 @example | 2549 @example |
2541 Emacs*menubar*font: *-courier-medium-r-*-*-*-120-*-*-*-*-*-* | 2550 Emacs*menubar*font: *-courier-medium-r-*-*-*-120-*-*-*-*-*-* |
2542 @end example | 2551 @end example |
2543 | 2552 |
2544 If both the Lucid Motif-lookalike menu widgets and X Font Sets are | 2553 If both the Lucid Motif-lookalike menu widgets and X Font Sets are |
2545 configured to allow multilingual menubars, then one uses | 2554 configured to allow multilingual menubars, then one uses |
2546 | 2555 |
2547 @example | 2556 @example |
2548 *menubar*FontSet: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, \ | 2557 *menubar*FontSet: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, \ |
2549 -*-*-*-*-*-*-*-120-*-jisx0208.1983-0 | 2558 -*-*-*-*-*-*-*-120-*-jisx0208.1983-0 |
2553 XLFD is acceptable; specifying more than one for a given registry | 2562 XLFD is acceptable; specifying more than one for a given registry |
2554 (language) is also allowed. When X Font Sets are configured, some .font | 2563 (language) is also allowed. When X Font Sets are configured, some .font |
2555 resources (eg, menubars) are ignored in favor of the corresponding | 2564 resources (eg, menubars) are ignored in favor of the corresponding |
2556 .fontSet resources. | 2565 .fontSet resources. |
2557 | 2566 |
2558 If the Motif library is being used, then one would have to use | 2567 If the Motif library is being used, then one would have to use |
2559 | 2568 |
2560 @example | 2569 @example |
2561 Emacs*menubar*fontList: *-courier-medium-r-*-*-*-120-*-*-*-*-*-* | 2570 Emacs*menubar*fontList: *-courier-medium-r-*-*-*-120-*-*-*-*-*-* |
2562 @end example | 2571 @end example |
2563 | 2572 |
2564 because the Motif library uses the @code{fontList} resource name instead | 2573 because the Motif library uses the @code{fontList} resource name instead |
2565 of @code{font}, which has subtly different semantics. | 2574 of @code{font}, which has subtly different semantics. |
2566 | 2575 |
2567 The same is true of the scrollbars: They accept whichever resources are | 2576 The same is true of the scrollbars: They accept whichever resources are |
2568 appropriate for the toolkit in use. | 2577 appropriate for the toolkit in use. |