Mercurial > emacs
annotate src/epaths.in @ 106085:cd4cbab8bb21
Handle system default font and changing font parameters.
* xterm.h (struct x_display_info): Add atoms and Window for xsettings.
* xterm.c (handle_one_xevent): Call xft_settings_event for
ClientMessage, PropertyNotify and DestroyNotify.
(x_term_init): If we have XFT, get DPI from Xft.dpi.
Call xsettings_initialize.
* xftfont.c (xftfont_fix_match): New function.
(xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
Call xftfont_fix_match after XftFontMatch.
* xfont.c (xfont_driver): Initialize all members.
* xfns.c (x_default_font_parameter): Try font from Ffont_get_system_font.
Do not get font from x_default_parameter if we got one from
Ffont_get_system_font.
(Fx_select_font): Get the defaut font name from :name of FRAME_FONT (f).
* w32font.c (w32font_driver): Initialize all members.
* termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
* lisp.h: Declare syms_of_xsettings.
* keyboard.c (kbd_buffer_get_event, make_lispy_event): Handle
CONFIG_CHANGED_EVENT.
* ftfont.c (ftfont_filter_properties): New function.
* frame.c (x_set_font): Remove unused variable lval.
* font.h (struct font_driver): filter_properties is new.
* font.c (font_put_extra): Don't return if val is nil, it means
boolean option is off.
(font_parse_fcname): Collect all extra properties in extra_props
and call filter_properties for all drivers with extra_props and
font as parameter.
(font_open_entity): Do not use cache, it does not pick up new fontconfig
settings like hinting.
(font_load_for_lface): If spec had a name in it, store it in entity.
* emacs.c (main): Call syms_of_xsettings
* config.in: HAVE_GCONF is new.
* Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
xsettings.o is new.
* menu-bar.el: Put "Use system font" in Option-menu.
* loadup.el: If feature system-font-setting or font-render-setting is
there, load font-setting.
* Makefile.in (ELCFILES): font-settings.el is new.
* font-setting.el: New file.
* NEWS: Mention dynamic font changes (font-use-system-font).
* configure.in: New option: --with(out)-gconf.
Set HAVE_GCONF if we find gconf.
| author | Jan Dj?rv <jan.h.d@swipnet.se> |
|---|---|
| date | Tue, 17 Nov 2009 08:21:23 +0000 |
| parents | e038c1a8307c |
| children | 1d1d5d9bd884 |
| rev | line source |
|---|---|
| 616 | 1 /* Hey Emacs, this is -*- C -*- code! */ |
|
64770
a0d1312ede66
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64084
diff
changeset
|
2 /* Copyright (C) 1993, 1995, 1997, 1999, 2001, 2002, 2003, 2004, |
| 100951 | 3 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
| 36281 | 4 |
| 5 This file is part of GNU Emacs. | |
| 6 | |
|
94995
a46a8a839596
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79759
diff
changeset
|
7 GNU Emacs is free software: you can redistribute it and/or modify |
| 36281 | 8 it under the terms of the GNU General Public License as published by |
|
94995
a46a8a839596
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79759
diff
changeset
|
9 the Free Software Foundation, either version 3 of the License, or |
|
a46a8a839596
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79759
diff
changeset
|
10 (at your option) any later version. |
| 36281 | 11 |
| 12 GNU Emacs is distributed in the hope that it will be useful, | |
| 13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 GNU General Public License for more details. | |
| 16 | |
| 17 You should have received a copy of the GNU General Public License | |
|
94995
a46a8a839596
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79759
diff
changeset
|
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
|
a46a8a839596
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79759
diff
changeset
|
19 |
| 616 | 20 |
| 21 /* The default search path for Lisp function "load". | |
| 22 This sets load-path. */ | |
| 23 #define PATH_LOADSEARCH "/usr/local/lib/emacs/lisp" | |
| 24 | |
| 25 /* Like PATH_LOADSEARCH, but used only when Emacs is dumping. This | |
| 26 path is usually identical to PATH_LOADSEARCH except that the entry | |
| 27 for the directory containing the installed lisp files has been | |
| 28 replaced with ../lisp. */ | |
| 29 #define PATH_DUMPLOADSEARCH "../lisp" | |
| 30 | |
| 31 /* The extra search path for programs to invoke. This is appended to | |
| 32 whatever the PATH environment variable says to set the Lisp | |
| 33 variable exec-path and the first file name in it sets the Lisp | |
| 34 variable exec-directory. exec-directory is used for finding | |
| 35 executables and other architecture-dependent files. */ | |
| 36 #define PATH_EXEC "/usr/local/lib/emacs/etc" | |
| 37 | |
| 38 /* Where Emacs should look for its architecture-independent data | |
|
6032
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
39 files, like the NEWS file. The lisp variable data-directory |
| 616 | 40 is set to this value. */ |
| 41 #define PATH_DATA "/usr/local/lib/emacs/data" | |
| 42 | |
|
9555
0fac2c0a026d
(PATH_BITMAPS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
6032
diff
changeset
|
43 /* Where Emacs should look for X bitmap files. |
|
0fac2c0a026d
(PATH_BITMAPS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
6032
diff
changeset
|
44 The lisp variable x-bitmap-file-path is set based on this value. */ |
|
0fac2c0a026d
(PATH_BITMAPS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
6032
diff
changeset
|
45 #define PATH_BITMAPS "/usr/include/X11/bitmaps" |
|
0fac2c0a026d
(PATH_BITMAPS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
6032
diff
changeset
|
46 |
|
6032
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
47 /* Where Emacs should look for its docstring file. The lisp variable |
|
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
48 doc-directory is set to this value. */ |
|
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
49 #define PATH_DOC "/usr/local/lib/emacs/data" |
|
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
50 |
|
3064
fa5466904709
* paths.h (PATH_INFO): New path, to edited by the configuration
Jim Blandy <jimb@redhat.com>
parents:
625
diff
changeset
|
51 /* Where the configuration process believes the info tree lives. The |
|
fa5466904709
* paths.h (PATH_INFO): New path, to edited by the configuration
Jim Blandy <jimb@redhat.com>
parents:
625
diff
changeset
|
52 lisp variable configure-info-directory gets its value from this |
|
fa5466904709
* paths.h (PATH_INFO): New path, to edited by the configuration
Jim Blandy <jimb@redhat.com>
parents:
625
diff
changeset
|
53 macro, and is then used to set the Info-default-directory-list. */ |
|
75266
f0bdf116bcc0
Move PATH_DOC from local/info to local/share/info.
Chong Yidong <cyd@stupidchicken.com>
parents:
68651
diff
changeset
|
54 #define PATH_INFO "/usr/local/share/info" |
|
19389
ef499d854610
(PATH_X_DEFAULTS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
19217
diff
changeset
|
55 |
|
46601
64a36687ae30
(PATH_GAME): New macro, edited by ../Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
36283
diff
changeset
|
56 /* Where Emacs should store game score files. */ |
|
64a36687ae30
(PATH_GAME): New macro, edited by ../Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
36283
diff
changeset
|
57 #define PATH_GAME "/usr/local/var/games/emacs" |
|
64a36687ae30
(PATH_GAME): New macro, edited by ../Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
36283
diff
changeset
|
58 |
|
19389
ef499d854610
(PATH_X_DEFAULTS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
19217
diff
changeset
|
59 /* Where Emacs should look for the application default file. */ |
|
ef499d854610
(PATH_X_DEFAULTS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
19217
diff
changeset
|
60 #define PATH_X_DEFAULTS "/usr/lib/X11/%L/%T/%N%C%S:/usr/lib/X11/%l/%T/%N%C%S:/usr/lib/X11/%T/%N%C%S:/usr/lib/X11/%L/%T/%N%S:/usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S" |
| 52401 | 61 |
| 62 /* arch-tag: d30686c4-629c-4666-9499-beaa69f1641e | |
| 63 (do not change this comment) */ |
