Commit graph

6764 commits

Author SHA1 Message Date
Juanma Barranquero
43db14bbd8 Remove unneeded -Defines in the compiler command line (MinGW and MSVC).
* nt/nmake.defs:
* nt/gmake.defs (FONT_CFLAGS): Remove.
(EMACS_EXTRA_C_FLAGS): Don't include FONT_CFLAGS.
(CFLAGS): Don't include WIN32_LEAN_AND_MEAN, _WIN32_WINNT, -D$(ARCH)
and _CRTAPI1.
(ARCH_FLAGS): Don't include _X86_.

* nt/config.nt (_WIN32_WINNT, WIN32_LEAN_AND_MEAN): Define.

* src/makefile.w32-in (LOCAL_FLAGS):
Don't include WINDOWSNT, DOS_NT and _UCHAR_T.

* src/sysdep.c (_spawnlp, _getpid):
Declare with explicit _cdecl instead of _CRTAPI1.

* src/editfns.c (Fget_internal_run_time):
Check for WINDOWSNT with #ifdef, not #if.
2008-06-26 22:33:33 +00:00
Jason Rumney
c35f9821de * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
* w32term.c (x_draw_glyph_string_foreground):
(x_draw_composite_glyph_string_foreground): Sync with xterm.c.
Use FONT_HANDLE macro.
(x_draw_glyph_string): Use FONT_TEXTMETRIC macro.

* w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape):
(uniscribe_encode_char): Use FONT_HANDLE macro.

* w32font.c (Fx_select_font): Use FONT_HANDLE macro.
(w32font_text_extents): Use precast w32_font.
(w32font_close): Free cached metrics.
(w32font_open_internal): Allocate space for name on stack.
2008-06-26 22:11:25 +00:00
Chong Yidong
1f8ad7194a * xdisp.c (extend_face_to_end_of_line): Fix last change. 2008-06-26 21:37:32 +00:00
Jason Rumney
97e716559d (FONT_AVG_WIDTH): Remove obsolete macro.
(CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
2008-06-26 16:20:49 +00:00
Juanma Barranquero
c9fc02c727 * src/Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
* lib-src/makefile.w32-in (obj): Remove w32bdf.o.
2008-06-26 11:57:58 +00:00
Jason Rumney
1b5defe658 * w32bdf.c, w32bdf.h: Remove obsolete files.
* makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.

* w32gui.h: Don't include w32bdf.h.
(XCharStruct, enum w32_char_font_type, W32FontStruct):
Remove obsolete font support.

* w32font.h (struct w32font_info): Remove compat_w32_font.
Add hfont member.
(FONT_COMPAT): Remove obsolete macro.

* w32font.c (w32font_close): Remove compat code. Delete hfont member.
(w32font_encode_char, w32font_text_extents): Use new hfont member.
(w32font_open_internal): Remove compat code. Set new hfont member.
(Fx_select_font): Use new hfont member.

* w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape):
(uniscribe_encode_char): Use new hfont member.

* w32term.c (x_draw_glyph_string_foreground):
(x_draw_composite_glyph_string_foreground): Use new hfont member.
(x_draw_glyph_string): Use metrics in w32font_info.
2008-06-26 10:48:28 +00:00
Kenichi Handa
1fc66bcae5 (handle_auto_composed_prop): Fix for the terminal case. 2008-06-26 07:25:25 +00:00
Dan Nicolaescu
f2a77c3a41 * unexnext.c:
* m/ews4800.h:
* m/hp9000s300.h:
* m/ibm370aix.h:
* m/mips-siemens.h:
* m/ncr386.h:
* m/next.h:
* m/pmax.h:
* m/powerpcle.h:
* m/tandem-s2.h:
* s/386bsd.h:
* s/bsd386.h:
* s/bsd4-1.h:
* s/bsd4-2.h:
* s/bsdos2-1.h:
* s/bsdos2.h:
* s/bsdos3.h:
* s/bsdos4.h:
* s/nextstep.h:
* s/ultrix4-3.h:
* s/usg5-0.h:
* s/usg5-2-2.h:
* s/usg5-2.h:
* s/usg5-4-3.h:
* s/ux4800.h:
* s/uxpds.h:
* s/uxpv.h: Remove support for obsolete systems.
* s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
Remove, insert contents in s/hpux-10.20.h
* s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
Remove, insert contents in s/aix-4.2.h
* s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
* s/bsd4-3.h: Rename to ..
* s/bsd-common.h: ... this.
* src/data.c:
* src/doc.c:
* src/ecrt0.c:
* src/emacs.c:
* src/fileio.c:
* src/floatfns.c:
* src/keyboard.c:
* src/mem-limits.h:
* src/print.c:
* src/process.c:
* src/sysdep.c:
* src/syssignal.h:
* src/systty.h:
* src/syswait.h:
* src/term.c:
* src/unexec.c:
* src/unexelf.c:
* src/unexhp9k800.c:
* src/m/hp800.h:
* src/m/ibmrs6000.h:
* src/m/mips.h:
* src/m/vax.h:
* src/s/darwin.h:
* src/s/freebsd.h:
* src/s/gnu.h:
* src/s/ms-w32.h:
* src/s/msdos.h:
* src/s/netbsd.h:
* src/s/template.h: Remove references to obsolete variables.

* Makefile.in: Add dependencies for all unexec files.
(admindir): Remove unused variable.
(UNEXEC_SRC): Remove references.

* config.nt: Remove reference to UNEXEC_SRC.

* lwlib.c: Remove references to obsolete variables.

* fakemail.c: Remove references to obsolete variables.

* os.texi: Remove references to obsolete systems.

* configure.in:
* configure: Remove references to obsolete systems.
2008-06-26 04:24:54 +00:00
Chong Yidong
bd02793aba * xfns.c (x_default_font_parameter): If Xft is available, first
try Monospace-12 for the default font.
2008-06-25 22:29:11 +00:00
Jason Rumney
ccedd25934 (get_glyph_face_and_encoding): Encode invalid glyphs as 0. 2008-06-25 21:46:49 +00:00
Stefan Monnier
603a09371b (Fbyte_code): Disable debugging code that doesn't compile. 2008-06-25 20:57:16 +00:00
Stefan Monnier
fbe062b7fb (syms_of_buffer): Remove default-word-wrap. 2008-06-25 20:55:53 +00:00
Juanma Barranquero
69785ad0fa * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
<scroll-conservatively>: Fix typo in docstring.

* xselect.c (Fx_send_client_event): Doc fix.
2008-06-25 11:51:46 +00:00
Kenichi Handa
34e9727275 (Fx_list_fonts): Call Flist_fonts with the arg PREFER. 2008-06-25 07:35:49 +00:00
Kenichi Handa
249e6f764a *** empty log message *** 2008-06-25 04:58:14 +00:00
Kenichi Handa
65c108e456 *** empty log message *** 2008-06-25 00:35:02 +00:00
Andreas Schwab
56f6f7604b Fix thinko. 2008-06-24 23:58:00 +00:00
Andreas Schwab
fd13748d94 (bootstrap-clean): Do what distclean does but don't remove
Makefile.
(distclean): Depend on bootstrap-clean and remove Makefile.
2008-06-24 23:44:12 +00:00
Andreas Schwab
4c3f18fe70 (${lispsource}/loaddefs.el): Renamed from
../lisp/loaddefs.el.
2008-06-24 23:00:25 +00:00
Chong Yidong
faa6190fe7 * buffer.h (struct buffer): New member word_wrap.
* buffer.c (syms_of_buffer): New variables default-word-wrap and
word-wrap.
(init_buffer_once): Initialize them.

* dispextern.h (struct it): Replace bool truncate_lines_p with a
line_wrap enum possessing three possible values.

* termopts.h: Replace truncate_partial_width_windows with
Vtruncate_partial_width_windows.

* dispnew.c (direct_output_for_insert): Avoid direct output when
inserting a space with word wrap on.

* indent.c (compute_motion): Obey integer values of
truncate-partial-width-windows.

* xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
replacing truncate_partial_width_windows.
(init_iterator): If Vtruncate_partial_width_windows is an integer,
truncate only if the window width is below that integer.
(start_display. resize_mini_window, produce_stretch_glyph)
(display_string, move_it_in_display_line_to): Use line_wrap.
(back_to_previous_visible_line_start, reseat_1): Reset
string_from_display_prop_p.
(display_line): Extend default face to end of line when wrapping.
(display_line, move_it_in_display_line_to): Add ability
to wrap continued lines at word boundaries.
2008-06-24 17:54:59 +00:00
Jason Rumney
c3bb54651c (Ffont_face_attributes): Multiply pixel size before point
conversion to avoid multiplying rounding error.
2008-06-24 10:32:03 +00:00
Juanma Barranquero
f245f2c610 Fix typos. 2008-06-24 01:07:34 +00:00
Jason Rumney
0b07ad98c5 * w32term.c (x_draw_glyph_string_background)
(x_draw_glyph_string): Remove old bdf font code.

* w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
2008-06-23 12:41:50 +00:00
Kenichi Handa
2245966833 (font_find_for_lface): Try the adstyle specified in the property of
LFACE_FONT of LFACE (if any).
2008-06-22 15:07:56 +00:00
Stefan Monnier
d925a42659 (x_set_frame_alpha): Add x_catch_errors for bug#437. 2008-06-22 14:02:07 +00:00
Stefan Monnier
b4945b9599 * Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
* Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
Use $(BOOTSTRAPEMACS) rather than witness-emacs.
(bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
(witness-emacs): Remove.
(lisp, shortlisp): Move loaddefs.el earlier.
(mostlyclean): Forget about witness-emacs.
* Makefile.in (COMPILE_FIRST): Trim down and add autoload.el.
2008-06-22 13:57:28 +00:00
Glenn Morris
3656581540 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes. 2008-06-22 02:29:32 +00:00
Glenn Morris
6412427914 (witness-emacs): Depend on temacs${EXEEXT}. 2008-06-22 02:02:18 +00:00
Stefan Monnier
768efd8421 * src/Makefile.in (PRECOMP): Remove.
(${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
(witness-emacs): Run `compile-first'.
(.el.elc): Use the new compile-onefile target.
* lisp/Makefile.in (update-elclist): Don't exclude COMPILE_FIRST.
(all): Run compile-last.
(compile-onefile): New target.
(compile-first): Simplify.
(compile-last): Don't treat COMPILE_FIRST specially.
(COMPILE_FIRST): List the elc files rather than the el files.
(ELCFILES): Update.
2008-06-21 19:20:40 +00:00
Kenichi Handa
808dd567ef (xftfont_open): Handle QCembolden only when FC_EMBOLDEN is defined. 2008-06-21 11:15:04 +00:00
Andreas Schwab
58e8833b26 (.el.elc): Use ../lisp, not $(lispsource). 2008-06-21 08:48:38 +00:00
Andreas Schwab
0de59eae3a (witness-emacs): Use ../lisp, not $(lispsource). 2008-06-21 08:18:06 +00:00
Miles Bader
fb38e9c96e Fix autoload building command in src Makefile
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1268
2008-06-21 02:37:02 +00:00
Stefan Monnier
fc46d21936 Make "make" do a bootstrap if needed.
* src/Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
(bootstrapclean): Remove.
(.el.elc): New rule.
(PRECOMP): New var.
(../lisp/subdirs.el): Remove.
(bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
(witness-emacs): New target.
(mostlyclean): Remove witness-emacs as well.
(../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
Add witness-emacs dependency.
* lisp/loadup.el: Don't add emacs-<VERS> name when bootstrapping.
* lisp/Makefile.in (emacs-deps): Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el): Re-add.
(all): Use them.
(autogen-clean): Remove.
* Makefile.in (maybe_bootstrap, src/bootstrap-emacs${EXEEXT})
(bootstrap-build): Remove.
(top_bootclean): New var.
(top_distclean, bootstrap-clean): Use it.
(bootstrap): Don't recheck config.  Make normally.
2008-06-21 01:38:39 +00:00
Chong Yidong
eaf1f6e7fe * font.c (Ffont_face_attributes): Omit key-attribute pairs not
defined by the font.
2008-06-20 23:27:00 +00:00
Stefan Monnier
49f6eb95b2 * src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
(bootstrap-clean): New target that keeps TAGS around.
(../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
(bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
* lisp/Makefile.in (all): New target.
(bootstrap-prepare): Remove.
* Makefile.in (SUBDIR): Include `lisp'.
(lisp): Depend on `src'.
(top_distclean): Don't remove config.status.
(bootstrap-clean): New target.
(maintainer-clean): Use it.
(bootstrap): Use bootstrap-clean.  Re-run config.status.
(src/bootstrap-emacs${EXEEXT}): New target.
(bootstrap-build): Use it.  Don't use bootstrap-prepare because
src/Makefile now takes care of it.
(bootfast, bootstrap-clean-before, bootstrap-clean-before-fast): Remove.
2008-06-20 21:48:17 +00:00
Jason Rumney
db61a7f817 [OLD_FONT]: Remove obsolete font code. 2008-06-20 21:46:05 +00:00
Jason Rumney
4c100a015c (font_matches_spec): Use csb bitfield from font signature to determine
language support.
2008-06-20 15:28:26 +00:00
Stefan Monnier
759d3f3238 (cfsetspeed): New fun extracted from the code.
(cfmakeraw): Move before first use.
2008-06-20 14:59:37 +00:00
Stefan Monnier
25241b4d5a * configure.in: Check for presence of cfmakeraw and cfsetspeed.
* sysdep.c (cfmakeraw): Provide fallback implementation.
(serial_configure): Provide fallback implementation of cfsetspeed.
2008-06-20 14:50:20 +00:00
Kenichi Handa
dc2226d0dc (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to the pattern. 2008-06-20 12:28:22 +00:00
Kenichi Handa
9b9cd864a8 (fontset_from_font): Copy font_spec before changing
the elements.
2008-06-20 06:12:33 +00:00
Kenichi Handa
d7afccca70 (x_default_font_parameter): Try "monospace-12" too. 2008-06-20 02:15:52 +00:00
Stefan Monnier
770e2e6ed8 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
for explicit `font' parameters.
* frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
2008-06-20 01:53:32 +00:00
Kenichi Handa
22e64f7c64 Include <ctype.h>
(x_set_font_backend): Allow spacing characters in the X resource
for FontBackend.
2008-06-19 10:37:11 +00:00
Stefan Monnier
27129af9d7 * w32fns.c, xfns.c (Qfont_param): New var.
(syms_of_w32fns): Initialize it.
(x_default_font_parameter): Record explicit `font' into `font-parameter'.
* faces.el (face-set-after-frame-default): Re-apply explicit `font'
frame parameters after setting up the `default' face.
2008-06-19 01:57:19 +00:00
Kenichi Handa
d26424c5eb (font_parse_xlfd): Fix previous change.
(font_parse_fcname): Don't use :fc-unknown-spec.
(FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
(Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
(font_add_log): Prepend the driver name to the resulting fonts.
2008-06-19 00:43:34 +00:00
Andreas Schwab
51cf11be08 (Ffont_face_attributes): Only define if
HAVE_WINDOW_SYSTEM.
(syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
2008-06-18 14:45:11 +00:00
Jason Rumney
07d9ba9bd8 Add font logging to list and match functions. 2008-06-18 08:33:16 +00:00
Chong Yidong
1578da3196 * font.c (font_parse_fcname): For known key symbols, intern using
correct symbol name.
2008-06-17 16:03:29 +00:00