annotate msdos/sedleim.inp @ 107805:bcbdb43a80e2

Lucid menus can now use Xft for fonts. * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New. (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that in current_font. (init_gconf): Read value of SYSTEM_FONT and save it in current_font. (Ffont_get_system_normal_font, xsettings_get_system_normal_font): New functions. (syms_of_xsettings): Initialize current_font. defsubr Sfont_get_system_normal_font. * xsettings.h (Ffont_get_system_normal_font, xsettings_get_system_normal_font): Declare. * xfns.c (extern xlwmenu_default_font): Remove. (Fx_create_frame): Remove setting of xlwmenu_default_font, moved to xlwmenu.c. * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode menu items in UTF-8. * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID. (apply_systemfont_to_menu): New function. (set_frame_menubar, create_and_show_popup_menu): Call apply_systemfont_to_menu. * xlwmenu.c (xlwmenu_default_font): Make static. (xlwMenuResources): Add XtNfaceName and XtNdefaultFace. (string_width): Use XftTextExtentsUtf8 if HAVE_XFT. (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Add versions for HAVE_XFT. (size_menu): Set max_rest_width in window_state structure. (display_menu_item): If HAVE_XFT and xft_draw is set, use XftDrawRect and XftDrawStringUtf8 to draw text. (make_windows_if_needed): Set max_rest_width and xft_draw in windows[i]. (openXftFont): New. (XlwMenuInitialize): Call openXftFont if HAVE_XFT. If mw->menu.font is not set, load font fixed and save it in xlwmenu_default_font. (XlwMenuInitialize): Set max_rest_width and xft_draw in windows[0]. (XlwMenuClassInitialize): Initialize xlwmenu_default_font. (XlwMenuRealize): Set xft_fg, xft_bg, xft_disabled_fg and windows[0].xft_draw if xft_font is set. (XlwMenuDestroy): Destroy all xft_draw and close xft_font. (facename_changed): New. (XlwMenuSetValues): Call facename_changed. If face name did change, close old fonts and destroy xft_draw:s. Then create new ones. * xlwmenu.h (XtNfaceName, XtCFaceName, XtNdefaultFace, XtCDefaultFace): New. * xlwmenuP.h (_window_state): Add max_rest_width and xft_draw. (_XlwMenu_part): Add faceName,xft_fg, xft_bg, xft_disabled_fg and xft_font. * xresources.texi (Lucid Resources): Mention faceName to set Xft fonts.
author Jan D. <jan.h.d@swipnet.se>
date Thu, 08 Apr 2010 18:21:25 +0200
parents 1d1d5d9bd884
children ce960720ed3f 376148b31b5e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24020
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
1 # -sedleim.inp-----------------------------------------------------------
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
2 # Configuration script for leim/Makefile under DJGPP v2.x
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
3 # ----------------------------------------------------------------------
36461
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
4 #
75249
4ad431d8e164 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 68648
diff changeset
5 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
106815
1d1d5d9bd884 Add 2010 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 100956
diff changeset
6 # 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
36461
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
7 #
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
8 # This file is part of GNU Emacs.
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
9 #
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
10 # This file is free software; as a special exception, the author gives
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
11 # unlimited permission to copy and/or distribute it, with or without
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
12 # modifications, as long as this notice is preserved.
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
13 #
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
14 # This program is distributed in the hope that it will be useful,
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
17 #
a4fb0c9be609 Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents: 32252
diff changeset
18 # ----------------------------------------------------------------------
24020
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
19 /^SHELL *=/c\
25099
00af2bda43f0 (SHELL, MAKESHELL): Use /xyzzy/command as the shell.
Eli Zaretskii <eliz@gnu.org>
parents: 24020
diff changeset
20 SHELL=/xyzzy/command\
00af2bda43f0 (SHELL, MAKESHELL): Use /xyzzy/command as the shell.
Eli Zaretskii <eliz@gnu.org>
parents: 24020
diff changeset
21 MAKESHELL=/xyzzy/command
24020
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
22
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
23 /^version=/d
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
24 /^prefix=/d
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
25 /^datadir=/s|@datadir@|../..|
37145
e0b7a9135b1d (srcdir=): Edit @srcdir@ into an absolute file name
Eli Zaretskii <eliz@gnu.org>
parents: 37073
diff changeset
26 /^srcdir=/s|srcdir=@srcdir@|srcdir := $(subst \\,/,$(shell cd))|
24020
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
27
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
28 /^INSTALLDIR=/c\
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
29 INSTALLDIR=.
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
30
55523
03f22f05755c (distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
31 /touch stamp-subdir/s|touch|djecho "stamp-subdir" >|
03f22f05755c (distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
32 s|\([ ]\)echo|\1djecho|g
56661
2e46f6ed4228 Remove the lines which say "<TAB>@true", to avoid
Eli Zaretskii <eliz@gnu.org>
parents: 55523
diff changeset
33 /^ @true *$/d
55523
03f22f05755c (distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
34
32252
62100be6ca6d Don't remove the Unix shell invocations.
Eli Zaretskii <eliz@gnu.org>
parents: 25099
diff changeset
35 /RUN-EMACS *=/,/^$/c\
62100be6ca6d Don't remove the Unix shell invocations.
Eli Zaretskii <eliz@gnu.org>
parents: 25099
diff changeset
36 export EMACSLOADPATH=${buildlisppath}\
62100be6ca6d Don't remove the Unix shell invocations.
Eli Zaretskii <eliz@gnu.org>
parents: 25099
diff changeset
37 RUN-EMACS = ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte
62100be6ca6d Don't remove the Unix shell invocations.
Eli Zaretskii <eliz@gnu.org>
parents: 25099
diff changeset
38
24020
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
39 /^ cd ../c\
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
40 ${MAKE} -C ../src ${MFLAGS} emacs
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
41
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
42 /else make quail/c\
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
43 if not exist quail\\nul make quail
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
44
37073
678672a4c40e Adapt to changes in leim/Makefile.in's $(TIT) target.
Eli Zaretskii <eliz@gnu.org>
parents: 36461
diff changeset
45 /if \[ -f $@ \]\; then true/d
678672a4c40e Adapt to changes in leim/Makefile.in's $(TIT) target.
Eli Zaretskii <eliz@gnu.org>
parents: 36461
diff changeset
46 /fi$/s/; fi$//
678672a4c40e Adapt to changes in leim/Makefile.in's $(TIT) target.
Eli Zaretskii <eliz@gnu.org>
parents: 36461
diff changeset
47
24020
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
48 /^leim-list.el:/,/^$/ {
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
49 /^ if/d
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
50 /^ else/,/^ fi/d
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
51 s| *| |
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
52 /^ --eval/,/; \\$/s|\; \\||
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
53 }
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
54
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
55 /^install:/,/^$/c\
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
56 install: all\
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
57
cd4343d3cd01 Initial revision
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
58 /^ if test -f/d
55523
03f22f05755c (distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
59 /^distclean:/,/^$/ {
03f22f05755c (distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
60 s|\(rm -f Makefile\)|\1 stamp-subdir|
03f22f05755c (distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
61 }
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 37145
diff changeset
62
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 37145
diff changeset
63 # arch-tag: 33c5eed1-78bc-4a6e-9d11-cbc7c541b763