Commit graph

25702 commits

Author SHA1 Message Date
Miles Bader
ffe832ea68 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1081
2008-02-25 00:21:57 +00:00
Jason Rumney
59c6b61cda (enum_font_cb2): Don't use raster fonts for Unicode. 2008-02-24 22:04:07 +00:00
Dan Nicolaescu
9d2818d676 * configure.in: Remove references to obsolete variables and
systems.
* configure: Regenerate.

* Makefile.in (NO_SHORTNAMES):
* emacsclient.c (NO_SHORTNAMES):
* fakemail.c (NO_SHORTNAMES):
* make-docfile.c (NO_SHORTNAMES):
* movemail.c (NO_SHORTNAMES):
* pop.c (NO_SHORTNAMES): Remove references to obsolete variable.

* config.nt (SHORTNAMES): Remove reference to obsolete variable.

* s/vms4-0.h:
* s/vms4-2.h:
* s/vms4-4.h:
* s/vms5-5.h: Remove, unused.

* s/irix5-2.h:
* s/irix6-0.h:
* s/riscos5.h:
* s/mach-bsd4-3.h:
* m/mips4.h: Remove files for obsolete systems

* Makefile.in:
* filelock.c:
* unexmips.c:
* m/hp9000s300.h:
* m/iris4d.h:
* s/aix3-1.h:
* s/hpux.h:
* s/msdos.h:
* s/usg5-0.h:
* s/usg5-2-2.h:
* s/usg5-2.h:
* s/usg5-3.h: Remove references to obsolete variables.

* s/irix5-0.h: Remove, move all the contents ...
* s/irix6-5.h: ... here.  Simplify.
* config.in: Regenerate.
2008-02-24 18:53:07 +00:00
Jason Rumney
2face66975 (x_draw_glyph_string_background): Clear the background
manually when cleartype is in use.
(x_draw_glyph_string_foreground): Draw text transparently when
cleartype is in use.
2008-02-24 15:45:28 +00:00
Jason Rumney
2a36efcfc2 (w32font_text_extents): Avoid getting HDC and selecting
a font into it unless we have to.
2008-02-24 15:08:06 +00:00
Stefan Monnier
a2bc5bdd7d Allow fine-grained image-cache flushing.
* dispextern.h (struct image): Add `dependencies' field.
(clear_image_caches): Change arg to Lisp_Object.
* image.c (make_image): Initialize `dependencies' field.
(clear_image_cache): Change arg to allow fine-grained flushing.
Perform the flush even if image-cache-eviction-delay is nil.
(clear_image_caches): Change arg to Lisp_Object.
(Fclear_image_cache): Expand meaning of the argument.
(mark_image): Mark `dependencies' field.
* xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
(lface_hash): Use XHASH rather than XFASTINT.
(face_at_buffer_position): Fix int -> EMACS_INT position.
* xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
(select_frame_for_redisplay): Remove code duplication.
(redisplay_internal): Adapt arg to call to clear_image_caches.
2008-02-24 13:36:39 +00:00
Miles Bader
b03f96dc5a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
2008-02-24 10:09:07 +00:00
Juanma Barranquero
978bef9a86 *** empty log message *** 2008-02-24 02:48:47 +00:00
Juanma Barranquero
608c3307ff *** empty log message *** 2008-02-24 02:37:13 +00:00
Chong Yidong
f93a616bee (x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1. 2008-02-24 01:05:27 +00:00
Chong Yidong
d59581635f * xterm.c (x_set_offset): Don't change the gravity if
CHANGE_GRAVITY is -1.
2008-02-24 01:05:20 +00:00
Chong Yidong
57b8e96ad5 (x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1. 2008-02-24 01:04:51 +00:00
Chong Yidong
41cac0d7e8 * xterm.c (x_set_offset): Don't change the gravity if
CHANGE_GRAVITY is -1.
2008-02-24 01:04:34 +00:00
Chong Yidong
ca730bf009 (auto_save_error_occurred): New var.
(auto_save_error): Set it.
(Fdo_auto_save): Don't overwrite the error message if an auto-save
error occurred.
2008-02-23 23:12:52 +00:00
Chong Yidong
9997701e25 * fileio.c (auto_save_error_occurred): New var.
(auto_save_error): Set it.
(Fdo_auto_save): Don't overwrite the error message if an auto-save
error occurred.
2008-02-23 23:12:42 +00:00
Eli Zaretskii
9d95a29182 (globals_of_w32): Add initializations for g_b_init_get_sid_sub_authority and
g_b_init_get_sid_sub_authority_count.
2008-02-23 13:38:12 +00:00
Stefan Monnier
77100b2aca *** empty log message *** 2008-02-22 19:04:20 +00:00
Stefan Monnier
43a1d19b39 (font_match_xlfd, font_check_xlfd_parse): New funs.
(font_parse_xlfd): Use them for sanity check.
(Finternal_set_font_style_table): Make sure the table is bijiective.
2008-02-22 19:04:03 +00:00
Stefan Monnier
6087292e62 Include termhooks.h to find the image_cache slot in terminal objects. 2008-02-22 17:45:11 +00:00
Stefan Monnier
354884c46e Consolidate the image_cache to the terminal struct.
* termhooks.h (P_): Remove redundant def.
(struct terminal): New field `image_cache'.
* frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
of FRAME_X_IMAGE_CACHE.
* xterm.h (struct x_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
* w32term.h (struct w32_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
* macterm.h (struct mac_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
* xterm.c (x_term_init):
* w32term.c (w32_term_init):
* macterm.c (mac_term_init): Set the image_cache in the terminal.
* dispextern.h (clear_image_cache, forall_images_in_image_cache):
Remove declarations.
(clear_image_caches, mark_image_cache): New declarations.
* xfaces.c (clear_face_cache):
* xdisp.c (redisplay_internal): Use clear_image_caches.
* image.c (clear_image_cache): Don't check that a frame is on
a window-system before checking if it shares the same cache.
(clear_image_caches): New function.
(Fclear_image_cache): Use it.
(mark_image): Move from allo.c.
(mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
* alloc.c (mark_image, mark_image_cache): Move to image.c.
(mark_object): Don't call mark_image_cache for frames.
(mark_terminals): Call mark_image_cache.
2008-02-22 17:42:09 +00:00
Stefan Monnier
c2e426903c (Fdelete_terminal): Declare. 2008-02-22 17:27:17 +00:00
Stefan Monnier
43d1af2331 (CHECK_CHARSET, CHECK_CHARSET_GET_ID, CHECK_CHARSET_GET_ATTR):
Don't use the inexistent return value of wrong_type_argument.
2008-02-22 17:24:05 +00:00
Juanma Barranquero
4a4bdfc7a6 *** empty log message *** 2008-02-22 02:56:58 +00:00
Kenichi Handa
cc8d131137 (lisp): Remove devanagari.el, kannada.el,
malayalam.el, and tamil.el.   Add sinhala.el.
2008-02-22 01:41:58 +00:00
Stefan Monnier
6bd9264021 (x_connection_closed): Consolidate identical tests.
(x_delete_terminal): Don't crash if called via x_connection_closed.
2008-02-21 16:51:07 +00:00
Glenn Morris
424c157fc5 Fix typos. 2008-02-21 07:57:06 +00:00
Glenn Morris
b3af4b2893 Fix comment typo. 2008-02-21 07:56:06 +00:00
Glenn Morris
51bb97e85e Fix typos. 2008-02-21 07:55:42 +00:00
Glenn Morris
ca101cff6c Fix comment typo. 2008-02-21 07:55:04 +00:00
Kenichi Handa
c67174d397 (display_mode_element): Fix previous change. 2008-02-21 07:42:52 +00:00
Kenichi Handa
a73b562753 (decode_mode_spec): New arg string.
(display_mode_element): Adjusted for the above change.
2008-02-21 07:06:33 +00:00
Stefan Monnier
837584c702 (INT_LISPLIKE): Remove. It may misfire.
(NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
2008-02-19 21:58:09 +00:00
Stefan Monnier
1b51154227 (Fcall_interactively): Use AREF. 2008-02-19 04:03:01 +00:00
Stefan Monnier
81aefea466 (font_unparse_xlfd): Don't ignore integer pixel size specs. 2008-02-18 18:38:49 +00:00
Jason Rumney
3bc143ebde (Fw32_shell_execute): Encode parameters. 2008-02-18 11:34:29 +00:00
Jason Rumney
6a146d317d *** empty log message *** 2008-02-18 11:32:37 +00:00
Jan Djärv
2d7117fe05 (Fx_show_tip): Set string to " " if empty. 2008-02-18 08:08:32 +00:00
Juanma Barranquero
5b09339783 *** empty log message *** 2008-02-17 21:56:39 +00:00
Juanma Barranquero
407c97dd38 *** empty log message *** 2008-02-17 21:54:41 +00:00
Dan Nicolaescu
a2b84f35b3 * simple.el (transient-mark-mode): Add an :init-value.
* startup.el (command-line): Use custom-reevaluate-setting for
transient-mark-mode.

* callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
with Qt.
2008-02-17 16:57:44 +00:00
Kenichi Handa
43c0454d44 Include xterm.h.
[HAVE_NTGUI]: Include w32term.h.
[MAC_OS]: Include macterm.ch.
(font_otf_ValueRecord): Use make_number.
(font_finish_cache): Fix handling of reference count.
(font_clear_cache): Update num_fonts.
(font_open_entity): Update smallest_char_width and
smallest_font_height of the frame.
(font_close_object): Update num_fonts.
(Fclear_font_cache): Fix finding the target cache data.
2008-02-17 02:05:08 +00:00
Kenichi Handa
9459b1e901 (FONTSET_OBJLIST): New macro.
(fontset_find_font): Update font-object list of the fontset.
(free_realized_fontset): New function.
(free_face_fontset): Call free_realized_fontset.
(Ffont_info): Call font_close_object only when enable_font_backend
is set.
2008-02-17 02:03:44 +00:00
Kenichi Handa
3370d9f5b3 (xftfont_default_fid): Delete it.
(xftfont_open): Set xfont->fid to 0.
2008-02-17 02:03:32 +00:00
Kenichi Handa
559474f12d (ftxfont_default_fid): Delete it.
(ftxfont_open): Set xfont->fid to 0.
(ftxfont_end_for_frame): Clear data specifi to the frame and the
font-driver.
2008-02-17 02:03:19 +00:00
Kenichi Handa
d45fefc73c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT. 2008-02-17 02:03:07 +00:00
Kenichi Handa
1c5c216ba9 (x_set_cursor_gc): Use display_info->font->fid for GCs.
(x_set_mouse_face_gc, x_new_font): Likewise.
(x_term_init): Setup display_info->font.
(x_delete_terminal): Free display_info->font.
2008-02-17 02:02:54 +00:00
Kenichi Handa
08c447f96e * xterm.h (struct x_display_info): New member font. 2008-02-17 02:02:33 +00:00
Kenichi Handa
74170e3879 (x_make_gc): Use the default font id of the frame for
GCs.
2008-02-17 02:01:59 +00:00
Kenichi Handa
9c9f2e85eb (handle_composition_prop): Set it->c to the fist
characte of the composed region.
(fill_composite_glyph_string): Set base_face->font_info to
s->font_info.  Get a face for ascii from base_face->ascii_face.
(BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
with a face already decided.
(x_produce_glyphs): Be sure to set it->ascent and it->descent to
non-negative.
(x_produce_glyphs): If the composition method is
..._WITH_GLYPH_STRING, call font_prepare_composition
unconditionally.
2008-02-17 02:01:43 +00:00
Kenichi Handa
19d4ac9360 (prepare_face_for_display): Use display_info->font->fid
for GCs.
(Finternal_set_font_selection_order): Call font_update_sort_order
only when enable_font_backend is set.
(realize_x_face): Set face->font_info to that of default face only
when enable_font_backend is set.
2008-02-17 02:01:26 +00:00