1 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
3 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped
6 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
23 * src/s/vms.h: Remove references to unused variables.
25 2008-07-10 Andreas Schwab <schwab@suse.de>
27 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
28 pattern before matching the generic family.
30 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
37 * s/darwin.h: Remove dead code.
50 * m/amdx86-64.h: Remove dead code and references to unused
51 and compiler defined symbols.
54 * unexelf.c: Remove references to desupported systems.
56 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
58 * m/powermac.h: Remove boilerplate comments.
59 (NO_REMAP): Remove unused definition.
61 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
64 2008-07-10 Kenichi Handa <handa@m17n.org>
66 * xfont.c (xfont_open): Log the reason of failure.
68 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
70 * fontset.c (fontset_get_font_group):
71 * font.c (font_check_otf): Specify argument types.
73 2008-07-09 Kenichi Handa <handa@m17n.org>
75 * coding.c (detect_coding_utf_8): Set detect_info->found only when
76 non-ASCII char is found.
78 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
79 (reorder_font_vector): Change the arg preferred_family to font.
80 Prefer the spec matching with font.
81 (fontset_get_font_group): New function.
82 (fontset_find_font): Change the format of an element of a realized
83 fontset. Use fontset_get_font_group.
84 (fontset_font): Try the current fontset, the default fontset, the
85 fallbacks of the current fonset, and the fallbacks of the default
86 fontset in this order.
87 (face_for_char): Delete the shortcut to use the current font.
88 (fontset_from_font): Don't set fonts for Latin in the fontset.
90 * font.h (font_make_object, font_match_p): Adjust prototypes.
92 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
94 * font.c (font_make_object): New arg entity and pixelsize.
95 (font_check_otf_features, font_check_otf): New functions.
96 (font_match_p): Check :lang, :script, and :otf properties.
98 * xfont.c (xfont_open): Adjust it for the change of
100 (xfont_text_extents): Fix initial setting of metrics.
102 * ftfont.c (struct ftfont_info): New member index, delete member
103 fc_charset_idx. Make the member order compatible with struct
105 (fc_charset_table): Change charset names to registry names.
106 (ftfont_pattern_entity): Delete the args registry and
107 fc_charset_idx. Change the value of :font-entity property
108 to (FONTNAME . INDEX). Always set :registry property to
110 (struct ftfont_cache_data): New struct.
111 (ftfont_lookup_cache): New arg for_face.
112 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
113 (ftfont_driver): Set the member otf_capability.
114 (ftfont_get_charset): Adjust it for the change of
116 (OTF_TAG_SYM): New macro.
117 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
118 for the change of fc_charset_table.
119 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
120 ftfont_pattern_entity. Add FC_INDEX to objset.
121 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
122 and ftfont_pattern_entity.
123 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
124 font_make_object, struct ftfont_info.
125 (ftfont_has_char): Use ftfont_get_fc_charset.
126 (ftfont_otf_features, ftfont_otf_capability): New functions.
127 (ftfont_shape): Use ftfont_get_otf.
128 (ftfont_text_extents): Fix initial setting of metrics.
130 * xftfont.c (struct xftfont_info): New member ft_size. Make the
131 member order compatible with struct ftfont_info.
132 (xftfont_open): Add FC_CHARSET to the pattern. Set
133 xftfont_info->ft_size. Don't unlock the face. Check BDF
134 properties if appropriate.
135 (xftfont_close): Unlock the face.
136 (xftfont_anchor_point, xftfont_shape): Deleted.
137 (syms_of_xftfont): Don't set members anchor_point and shape of
140 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
143 * w32font.c (w32font_open): Adjust it for the change of
145 (w32font_open_internal): Don't set properties of font_object here.
147 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
149 * macfns.c (x_create_tip_frame):
150 * w32fns.c (x_create_tip_frame):
151 * xfns.c (x_create_tip_frame): Pass parameter argument to
152 face-set-after-frame-default.
154 * xfaces.c (Finternal_merge_in_global_face): Save merged
155 attributes for the default face back into the face vector.
157 2008-07-08 Andreas Schwab <schwab@suse.de>
159 * fontset.h: Declare fontset_from_font. Don't declare
160 new_fontset_from_font and fontset_from_font_name.
161 * xterm.c: Include "fontset.h".
162 * Makefile.in (xterm.o): Update dependencies.
164 2008-07-08 Glenn Morris <rgm@gnu.org>
166 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
167 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
169 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
171 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
172 (x_set_frame_parameters): Don't bind it.
174 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
176 * w32fns.c (map_w32_filename): Declare extern.
178 2008-07-07 Jason Rumney <jasonr@gnu.org>
180 * w32term.c (WS_EX_LAYERED): Define if not already.
182 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
184 * xfaces.c (set_font_frame_param): Don't try to set the font
185 parameter if it is still unspecified in the lface.
187 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
189 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
190 face if it didn't already exist.
192 * xdisp.c (try_window_id): Give up if word-wrapping is on.
194 2008-07-05 Andreas Schwab <schwab@suse.de>
196 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
198 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
200 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
202 (IT_DISPLAYING_WHITESPACE): New macro.
203 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
204 when word-wrapping. Simplify word-wrapping logic. Use correct
205 pixel positions when saving copies of the iterator.
206 (display_line): Use proper wrap point if the last character on a
207 line was preceded by whitespace.
209 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
211 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
213 2008-07-04 Kenichi Handa <handa@m17n.org>
215 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
217 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
219 2008-07-02 Jason Rumney <jasonr@gnu.org>
221 * xfns.c (syms_of_xfns): Only define x-select-font when both
222 HAVE_FREETYPE and USE_GTK
224 * xdisp.c (next_element_from_display_vector): Move assignment out
227 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
229 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
231 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
232 (syms_of_fileio): Initialize and export them.
233 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
235 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
236 (Fsystem_move_file_to_trash): New function.
237 (syms_of_w32fns): Export it to lisp.
239 2008-07-01 Jason Rumney <jasonr@gnu.org>
241 * w32font.c (w32font_text_extents): Don't count overhang as part
244 2008-06-30 Miles Bader <miles@gnu.org>
246 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
247 Add `avoid_cursor_p' field.
249 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
250 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
251 (append_glyph, append_composite_glyph, produce_image_glyph)
252 (append_stretch_glyph): Initialize avoid_cursor_p.
253 (get_it_property): Rename from `get_line_height_property'.
254 (x_produce_glyphs): Use get_it_property.
255 (handle_line_prefix, push_display_prop): New functions.
256 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
257 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
259 (syms_of_xdisp): Initialize them.
261 2008-06-30 Kenichi Handa <handa@m17n.org>
263 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
264 XftDefaultSubstitute (they are called in XftFontMatch).
265 (xftfont_open): Fix args to ftfont_font_format.
267 * ftfont.c (fc_charset_table): New member lang.
268 (ftfont_resolve_generic_family): New arg pattern.
269 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
270 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
271 (ftfont_open): Fix args to ftfont_font_format.
272 (ftfont_font_format): New arg filename.
274 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
276 * xfaces.c (Finternal_merge_in_global_face): If default face was
277 modified, realize it again. Update the font face attribute.
279 2008-06-29 Jason Rumney <jasonr@gnu.org>
281 * w32term.c (x_set_frame_alpha): Fix logic.
283 2008-06-29 Kenichi Handa <handa@m17n.org>
285 * fontset.c (Finternal_char_font): Return font-object instead of
288 * composite.c (get_composition_id): Fix the width calculation for TAB.
290 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
292 * indent.c (Fvertical_motion): Properly handle float column arg.
294 2008-06-28 Jason Rumney <jasonr@gnu.org>
296 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
297 (pfnSetLayeredWindowAttributes): New function pointer.
298 (w32_initialize): Initialize it when supported.
299 (x_set_frame_alpha): New function.
301 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
302 (w32_frame_parm_handlers): Set alpha handler.
304 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
306 2008-06-27 Jason Rumney <jasonr@gnu.org>
308 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
309 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
310 (w32_to_x_charset, x_to_w32_charset)
311 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
312 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
313 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
314 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
315 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
316 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
317 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
318 (Qw32_charset_unicode): Remove.
319 (syms_of_w32fns): Update for above changes.
321 * w32font.c (w32_to_x_charset, x_to_w32_charset)
322 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
323 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
324 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
325 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
326 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
327 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
328 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
329 (syms_of_w32font): Update for above changes.
331 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
333 * s/usg5-4.h: Fix previous change: keep the correct branch of a
335 (USG_SHARED_LIBRARIES): Remove duplicate definition.
337 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
338 Eli Zaretskii <eliz@gnu.org>
340 * makefile.w32-in (LOCAL_FLAGS):
341 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
343 * sysdep.c (_spawnlp, _getpid):
344 Declare with explicit _cdecl instead of _CRTAPI1.
346 * editfns.c (Fget_internal_run_time):
347 Check for WINDOWSNT with #ifdef, not #if.
349 2008-06-26 Jason Rumney <jasonr@gnu.org>
351 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
353 * w32term.c (x_draw_glyph_string_foreground)
354 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
355 Use FONT_HANDLE macro.
356 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
358 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
359 (uniscribe_encode_char): Use FONT_HANDLE macro.
361 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
362 (w32font_text_extents): Use precast w32_font.
363 (w32font_close): Free cached metrics.
364 (w32font_open_internal): Allocate space for name on stack.
366 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
368 * xdisp.c (extend_face_to_end_of_line): Fix last change.
370 2008-06-26 Jason Rumney <jasonr@gnu.org>
372 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
373 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
375 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
377 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
379 2008-06-26 Jason Rumney <jasonr@gnu.org>
381 * w32bdf.c, w32bdf.h: Remove obsolete files.
383 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
385 * w32gui.h: Don't include w32bdf.h.
386 (XCharStruct, enum w32_char_font_type, W32FontStruct):
387 Remove obsolete font support.
389 * w32font.h (struct w32font_info): Remove compat_w32_font.
391 (FONT_COMPAT): Remove obsolete macro.
393 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
394 (w32font_encode_char, w32font_text_extents): Use new hfont member.
395 (w32font_open_internal): Remove compat code. Set new hfont member.
396 (Fx_select_font): Use new hfont member.
398 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
399 (uniscribe_encode_char): Use new hfont member.
401 * w32term.c (x_draw_glyph_string_foreground)
402 (x_draw_composite_glyph_string_foreground): Use new hfont member.
403 (x_draw_glyph_string): Use metrics in w32font_info.
405 2008-06-26 Kenichi Handa <handa@m17n.org>
407 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
409 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
437 * s/uxpv.h: Remove support for obsolete systems.
438 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
439 Remove, insert contents in s/hpux-10.20.h
440 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
441 Remove, insert contents in s/aix-4.2.h
442 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
443 * s/bsd4-3.h: Rename to ..
444 * s/bsd-common.h: ... this.
473 * src/s/template.h: Remove references to obsolete variables.
475 * Makefile.in: Add dependencies for all unexec files.
476 (admindir): Remove unused variable.
477 (UNEXEC_SRC): Remove references.
479 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
481 * xfns.c (x_default_font_parameter): If Xft is available, first
482 try Monospace-12 for the default font.
484 2008-06-25 Jason Rumney <jasonr@gnu.org>
486 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
488 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
490 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
492 * buffer.c (syms_of_buffer): Remove default-word-wrap.
494 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
496 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
497 <scroll-conservatively>: Fix typo in docstring.
499 * xselect.c (Fx_send_client_event): Doc fix.
501 2008-06-25 Kenichi Handa <handa@m17n.org>
503 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
505 * font.c (font_parse_fcname): Remove unused variables.
506 (font_sort_entites): Delete the arg SPEC. Caller changed.
507 Fix for the case of ! best_only.
508 (font_delete_unmatched): Check DPI and AVGWIDTH too.
510 * lisp.h (Fstring_to_unibyte): EXFUN it.
512 * character.h (str_to_unibyte): Extern it.
514 * character.c (str_to_unibyte): New function.
516 * fns.c (Fstring_to_unibyte): New function.
517 (syms_of_fns): Defsubr it.
519 2008-06-24 Kenichi Handa <handa@m17n.org>
521 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
523 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
525 2008-06-24 Andreas Schwab <schwab@suse.de>
527 * Makefile.in (${lispsource}loaddefs.el): Rename from
529 (bootstrap-clean): Do what distclean does but don't remove
531 (distclean): Depend on bootstrap-clean and remove Makefile.
533 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
535 * buffer.h (struct buffer): New member word_wrap.
537 * buffer.c (syms_of_buffer): New variables default-word-wrap and
539 (init_buffer_once): Initialize them.
541 * dispextern.h (struct it): Replace bool truncate_lines_p with a
542 line_wrap enum possessing three possible values.
544 * termopts.h: Replace truncate_partial_width_windows with
545 Vtruncate_partial_width_windows.
547 * dispnew.c (direct_output_for_insert): Avoid direct output when
548 inserting a space with word wrap on.
550 * indent.c (compute_motion): Obey integer values of
551 truncate-partial-width-windows.
553 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
554 replacing truncate_partial_width_windows.
555 (init_iterator): If Vtruncate_partial_width_windows is an integer,
556 truncate only if the window width is below that integer.
557 (start_display. resize_mini_window, produce_stretch_glyph)
558 (display_string, move_it_in_display_line_to): Use line_wrap.
559 (back_to_previous_visible_line_start, reseat_1): Reset
560 string_from_display_prop_p.
561 (display_line): Extend default face to end of line when wrapping.
563 2008-06-24 Kim F. Storm <storm@cua.dk>
565 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
566 to wrap continued lines at word boundaries.
568 2008-06-24 Jason Rumney <jasonr@gnu.org>
570 * font.c (Ffont_face_attributes): Multiply pixel size before point
571 conversion to avoid multiplying rounding error.
573 2008-06-23 Jason Rumney <jasonr@gnu.org>
575 * w32term.c (x_draw_glyph_string_background)
576 (x_draw_glyph_string): Remove old bdf font code.
578 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
580 2008-06-22 Kenichi Handa <handa@m17n.org>
582 * font.c (font_find_for_lface): Try the adstyle specified in
583 the property of LFACE_FONT of LFACE (if any).
585 2008-06-21 Seiji Zenitani <zenitani@mac.com>
586 Ryo Yoshitake <ryo@shiftmode.net>
588 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
590 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
592 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
593 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
594 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
595 (witness-emacs): Remove.
596 (lisp, shortlisp): Move loaddefs.el earlier.
597 (mostlyclean): Forget about witness-emacs.
599 2008-06-22 Glenn Morris <rgm@gnu.org>
601 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
602 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
604 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
606 * Makefile.in (PRECOMP): Remove.
607 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
608 (witness-emacs): Run `compile-first'.
609 (.el.elc): Use the new compile-onefile target.
611 2008-06-21 Kenichi Handa <handa@m17n.org>
613 * xftfont.c (xftfont_open): Handle QCembolden only when
614 FC_EMBOLDEN is defined.
616 2008-06-21 Andreas Schwab <schwab@suse.de>
618 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
621 2008-06-21 Miles Bader <miles@gnu.org>
623 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
624 build dir, not the lisp source dir.
626 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
628 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
629 (bootstrapclean): Remove.
632 (../lisp/subdirs.el): Remove.
633 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
634 (witness-emacs): New target.
635 (mostlyclean): Remove witness-emacs as well.
636 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
637 Add witness-emacs dependency.
639 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
641 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
644 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
646 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
647 (bootstrap-clean): New target that keeps TAGS around.
648 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
649 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
651 2008-06-20 Jason Rumney <jasonr@gnu.org>
653 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
654 Remove obsolete font code.
656 * w32font.c (font_matches_spec): Use csb bitfield from font signature
657 to determine language support.
659 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
661 * sysdep.c (cfsetspeed): New fun extracted from the code.
662 (cfmakeraw): Move before first use.
664 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
666 * sysdep.c (cfmakeraw): Provide fallback implementation.
667 (serial_configure): Provide fallback implementation of cfsetspeed.
669 2008-06-20 Kenichi Handa <handa@m17n.org>
671 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
674 * fontset.c (fontset_from_font): Copy font_spec before changing
677 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
679 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
681 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
682 for explicit `font' parameters.
684 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
686 2008-06-19 Kenichi Handa <handa@m17n.org>
688 * frame.c: Include <ctype.h>.
689 (x_set_font_backend): Allow spacing characters in the X resource
692 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
694 * w32fns.c, xfns.c (Qfont_param): New var.
695 (syms_of_w32fns): Initialize it.
696 (x_default_font_parameter): Record explicit `font' into
699 2008-06-18 Kenichi Handa <handa@m17n.org>
701 * font.c (font_parse_xlfd): Fix previous change.
702 (font_parse_fcname): Don't use :fc-unknown-spec.
703 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
704 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
705 (font_add_log): Prepend the driver name to the resulting fonts.
707 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
708 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
709 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
711 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
712 (QCembolden): New variables.
713 (syms_of_xftfont): DEFSYM them.
714 (xftfont_open): Call XftFontMatch. Don't trust the result of
715 XftTextExtents8 if the pixel_size is less than 5.
717 2008-06-18 Andreas Schwab <schwab@suse.de>
719 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
720 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
722 2008-06-18 Jason Rumney <jasonr@gnu.org>
724 * w32font.c (w32font_list, w32font_match): Add logging.
726 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
728 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
730 * font.c (font_parse_fcname): Store divider characters for
731 unknown-spec list. For known key symbols, intern using correct
734 2008-06-17 Kenichi Handa <handa@m17n.org>
736 * xfaces.c (realize_default_face): If the frame is not on window
737 system, set the fontset of face to nil.
739 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
741 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
743 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
745 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
746 (build_font_name_from_vector): Delete externs.
748 * xfaces.c (struct font_name): Don't declare.
750 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
752 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
754 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
756 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
758 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
760 * font.c (Ffont_spec): Fix usage in docstring.
761 (Ffont_face_attributes): Doc fix.
763 2008-06-16 Andreas Schwab <schwab@suse.de>
765 * font.c (Ffont_face_attributes): Fix definition.
767 2008-06-16 Jason Rumney <jasonr@gnu.org>
769 * font.h (font_style_symbolic_from_value): Remove.
771 * font.c (font_style_symbolic_from_value): Remove.
772 (font_style_symbolic): Revert to pre 2008-06-13 version.
774 * w32font.c (w32_to_fc_weight): New function.
775 (w32font_full_name, logfont_to_fcname): Use it.
777 2008-06-16 Kenichi Handa <handa@m17n.org>
779 * font.c (font_check_object): Delete it.
780 (font_clear_cache): Check if a font-object is alive.
781 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
783 (font_close_object): Don't check FONT_CLOSE_OBJECT.
784 (font_at): Don't call font_check_object.
785 (Ffont_get): Return a symbol for :weight, :slant, and :width.
787 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
789 * puresize.h (BASE_PURESIZE): Increase to 1230000.
791 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
793 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
795 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
797 * font.c (font_parse_fcname): Only one decimal point.
798 (font_unparse_fcname): Handle data in family and foundry indices
799 as symbols, not strings.
800 (font_unparse_gtkname, Ffont_face_attributes): New functions.
802 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
804 * font.h (font_unparse_gtkname): Add prototype.
806 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
808 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
810 2008-06-15 Andreas Schwab <schwab@suse.de>
812 * font.c (font_update_drivers): Fix crash when no drivers match.
814 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
816 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
817 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
819 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
821 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
823 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
825 * process.c (Fserial_process_configure, Fprocess_send_eof):
826 Use EQ to compare Lisp_Objects.
828 2008-06-13 Jason Rumney <jasonr@gnu.org>
830 * w32fns.c (Fw32_select_font): Remove old font API function.
832 * w32font.c (logfont_to_fcname): New function.
833 (Fx_select_font): New font dialog function compatible with
834 GTK/fontconfig version.
836 * font.c (font_style_symbolic_from_value): New function.
837 (font_style_symbolic): Use it.
839 * font.h (font_style_symbolic_from_value): Declare new function.
841 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
843 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
844 <font-width-table>: Fix typos in docstrings.
846 2008-06-13 Daniel Engeler <engeler@gmail.com>
848 These changes add serial port access.
849 * process.c: Add HAVE_SERIAL.
850 (Fdelete_process, Fprocess_status, Fset_process_buffer)
851 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
852 (list_processes_1, select_wrapper, Fstop_process)
853 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
854 (status_notify): Modify to handle serial processes.
855 [HAVE_SERIAL] (Fserial_process_configure)
856 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
858 * process.h (struct Lisp_Process): Add `type'.
859 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
861 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
863 (serial_open, serial_configure) New functions.
864 * w32.h: Add FILE_SERIAL.
865 (struct _child_process): Add ovl_read, ovl_write.
867 2008-06-13 Kenichi Handa <handa@m17n.org>
869 * dispextern.h (enum lface_attribute_index): New member
872 * font.c (font_score): Delete arg alternate_families. Check only
873 weight, slant, width, and size. Ignore the difference of alias
875 (font_sort_entites): Adjust for the above change. Reflect the
876 order of font-driver to scores.
877 (font_list_entities): Don't check alternate_familes here.
878 (font_clear_prop): Handle foundry.
879 (font_update_lface): Don't parse "foundry-family" form here.
880 Handle FONT_FOUNDRY_INDEX.
881 (font_find_for_lface): Likewise. Handle alternate families here.
882 If registry is nil, try iso8859-1 and ascii-0.
883 (font_open_for_lface): Pay attention to size in ENTITY.
884 (font_open_by_name): Simplify by calling font_load_for_lface.
885 (free_font_driver_list): Delete it.
886 (font_update_drivers): Preserve the order of backends.
887 (syms_of_font): Setting of sort_shift_bits adjusted for the change
888 of font_score and font_sort_entites.
889 (font_update_sort_order): Likewise.
891 * xfaces.c (LFACE_FOUNDRY): New macro.
892 (check_lface_attrs): Check foundry.
893 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
894 (merge_face_vectors): Check foundry.
895 (merge_face_ref): Likewise.
896 (Finternal_set_lisp_face_attribute): Likewise.
897 (x_update_menu_appearance): Likewise.
898 (Finternal_get_lisp_face_attribute): Likewise.
899 (lface_hash): Likewise.
900 (lface_same_font_attributes_p): Likewise.
901 (x_supports_face_attributes_p): Likewise.
902 (tty_supports_face_attributes_p): Likewise.
903 (Finternal_set_alternative_font_family_alist): Intern strings.
904 (Finternal_set_alternative_font_registry_alist): Downcase strings.
905 (realize_default_face): Set LFACE_FOUNDRY (lface).
907 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
908 font-driver at first.
910 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
912 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
914 * lread.c (Fload): Use xfree, not free on saved_doc_string.
916 2008-06-12 Jim Meyering <meyering@redhat.com>
918 Make unexec_free handle NULL the same way free does.
919 * unexmacosx.c (unexec_free): Ignore a NULL argument.
921 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
923 * character.h (CHAR_TO_BYTE_SAFE): New macro.
924 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
925 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
926 (WEAK_ALIAS): Simplify.
927 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
928 when searching a unibyte buffer.
930 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
932 * xfns.c (Fx_select_font): Rename from x-font-dialog.
934 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
936 * w32font.c: Include ctype.h.
938 2008-06-11 Jason Rumney <jasonr@gnu.org>
940 * w32font.c (w32font_encode_char): Detect missing glyphs that are
941 misreported as space.
942 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
943 as aliases for registry iso10646-1.
945 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
947 * buffer.c (clone_per_buffer_values): Skip `name'.
949 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
951 * font.c (font_parse_fcname): Fix last change; accept decimal
954 2008-06-10 Jason Rumney <jasonr@gnu.org>
956 * w32uniscribe.c (add_opentype_font_name_to_list):
957 Skip non unicode fonts.
959 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
961 * xfns.c (Fx_font_dialog): New function.
963 * gtkutil.c (xg_dialog_response_cb): Rename from
964 xg_file_response_callback.
965 (pop_down_dialog): Rename from pop_down_file_dialog.
966 (xg_get_file_name): Callers changed.
967 (xg_get_font_name): New function.
969 * gtkutil.h (xg_get_font_name): Insert prototype.
971 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
973 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
974 x_underline_minimum_display_offset.
975 (syms_of_xdisp): Declare it here rather than in xterm.c.
976 * dispextern.h (underline_minimum_offset): Declare it.
977 * w32term.c (x_draw_glyph_string): Use it.
978 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
979 (syms_of_xterm): Don't declare it any more.
980 (x_draw_glyph_string): Adjust to the new name.
982 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
984 * xterm.c (x_underline_minimum_display_offset): New var.
985 (x_draw_glyph_string): Use it.
986 (syms_of_xterm): Declare it.
988 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
990 * font.c (font_parse_fcname): Accept GTK-style font names too.
992 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
994 * dired.c (file_name_completion): Don't return t if the match is exact
995 but with different capitalization.
996 * minibuf.c (Ftry_completion): Simplify.
998 * window.c (Vwindow_point_insertion_type): New var.
999 (set_window_buffer): Use it.
1000 (syms_of_window): Init and export it to Lisp.
1002 2008-06-10 Kenichi Handa <handa@m17n.org>
1004 * font.h (font_intern_prop): Prototype adjusted.
1006 * font.c (font_intern_prop): New arg force_symbol.
1007 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
1008 Adjust for the change of font_intern_prop.
1010 * ftfont.c (ftfont_pattern_entity):
1011 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
1013 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
1014 the change of font_intern_prop.
1016 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
1018 * w32menu.c (digest_single_submenu): Declare extern.
1020 2008-06-09 Jason Rumney <jasonr@gnu.org>
1022 * w32term.c (x_make_frame_visible): Use alternate restore flags.
1024 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
1025 (parse_single_submenu): Remove.
1026 (digest_single_submenu): Remove.
1027 (syms_of_w32menu): Don't initialise variables that have moved
1029 (set_frame_menubar): Sync with version in xmenu.c.
1030 (w32_menu_show): Sync with xmenu_show in xmenu.c.
1032 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
1035 2008-06-09 Jason Rumney <jasonr@gnu.org>
1037 Changes to w32 files related to the move of common menu code
1038 to menu.c on 2008-06-08 by Chong Yidong.
1040 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
1042 (single_keymap_panes, push_menu_item, push_menu_pane):
1043 Make globally visible.
1045 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
1046 (local_free, malloc_widget_value, free_widget_value)
1047 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
1048 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
1049 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
1050 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
1051 (menu_items, menu_items_allocated, menu_items_used)
1052 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
1053 (init_menu_items, finish_menu_items, discard_menu_items)
1054 (grow_menu_items, push_submenu_start, push_submenu_end)
1055 (push_left_right_boundary, push_menu_pane, push_menu_item)
1056 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
1057 (free_menubar_widget_tree_value, parse_single_submenu)
1058 (update_submenu_strings): Remove functions.
1059 (xmalloc_widget_value): Remove and declare extern.
1061 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
1064 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
1065 (local_heap, local_alloc, local_free, malloc_widget_value)
1066 (free_widget_value): Define here.
1068 2008-06-09 Kenichi Handa <handa@m17n.org>
1070 * font.h (Qascii_0): Extern it.
1072 * font.c (Qascii_0): New variable.
1073 (syms_of_font): DEFSYM it.
1074 (font_open_by_name): If the registry "iso8859-1" fails, try also
1077 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
1079 2008-06-08 Kenichi Handa <handa@m17n.org>
1081 * .gdbinit (xfont): New command.
1083 2008-06-08 Andreas Schwab <schwab@suse.de>
1085 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
1086 * Makefile.in (menu.o): Update dependencies.
1088 * Makefile.in (obj): Always add menu.o.
1089 * emacs.c (main): Always call syms_of_menu.
1090 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
1092 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
1094 * Makefile.in: Compile menu.c.
1096 * lisp.h: Declare syms_of_menu.
1098 * emacs.c (main): Call syms_of_menu.
1100 * keyboard.h: Relocate platform-independent menu definitions from
1103 * menu.c: New file. Relocate platform-independent menu
1104 definitions from xmenu.c. Suggested by Adrian Robert.
1106 * xmenu.c: Remove platform-independent menu definitions.
1107 (menu_items menu_items_inuse, menu_items_allocated)
1108 (menu_items_used, menu_items_n_panes)
1109 (menu_items_submenu_depth): Move to keyboard.h.
1110 (init_menu_items, finish_menu_items, unuse_menu_items)
1111 (discard_menu_items, restore_menu_items, save_menu_items)
1112 (grow_menu_items, push_submenu_start, push_submenu_end)
1113 (push_left_right_boundary, push_menu_pane, push_menu_item)
1114 (keymap_panes, single_keymap_panes, single_menu_item)
1115 (list_of_panes, list_of_items, find_and_call_menu_selection)
1116 (xmalloc_widget_value, free_menubar_widget_value_tree)
1117 (parse_single_submenu, digest_single_submenu)
1118 (update_submenu_strings): Move to menu.c.
1120 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
1122 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
1124 2008-06-06 Miles Bader <miles@gnu.org>
1126 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
1127 face, not frame default.
1129 2008-06-05 Martin Rudalics <rudalics@gmx.at>
1131 * window.c (pop_up_windows, pop_up_frames)
1132 (display_buffer_reuse_frames, Vpop_up_frame_function)
1133 (Vdisplay_buffer_function, Veven_window_heights)
1134 (Vspecial_display_buffer_names, Vspecial_display_regexps)
1135 (Vspecial_display_function, Vsame_window_buffer_names)
1136 (Vsame_window_regexps, split_height_threshold)
1137 (Vsplit_window_preferred_function): Move those vars to window.el.
1138 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
1139 (Fdisplay_buffer): Move those functions to window.el.
1140 (syms_of_window): Remove corresponding declarations.
1141 (display_buffer): New function.
1142 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
1143 * dispnew.c (Flast_nonminibuf_frame): New function.
1144 * buffer.c (Fpop_to_buffer): Move to window.el.
1146 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1148 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
1150 2008-06-05 Kenichi Handa <handa@m17n.org>
1152 * coding.c (detect_coding): Fix previous change.
1153 (detect_coding_system): Likewise.
1155 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1157 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
1159 * keymap.c (Vminibuffer_local_filename_must_match_map):
1160 Rename from Vminibuffer_local_must_match_filename_map.
1162 * minibuf.c (Fcompleting_read): Adjust accordingly.
1163 * commands.h: Rename declaration as well.
1165 2008-06-05 Kenichi Handa <handa@m17n.org>
1167 * font.c (Ffont_spec): Don't use font_parse_family_registry for
1169 (Ffont_put): Likewise.
1171 * fontset.c (fontset_find_font): Call font_open_for_lface with the
1174 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
1177 * xfaces.c (realize_x_face): If the font-related face attributes
1178 are the same as those of default face, realize a new fontset from
1180 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
1182 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1184 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
1185 (move_it_in_display_line): New wrapper.
1187 * window.c (window_scroll_pixel_based_preserve_x)
1188 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
1189 (window_scroll_pixel_based, window_scroll_line_based):
1190 Use them to preserve column positions.
1191 (syms_of_window): Initialize them.
1193 * indent.c (Fvertical_motion): Extend first arg to allow passing an
1196 * dispextern.h (move_it_in_display_line): Declare.
1198 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
1200 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
1201 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
1202 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
1204 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
1206 * window.c (Fset_window_parameter): Doc fix.
1207 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
1209 2008-06-04 Joakim Verona <joakim@verona.se>
1211 * window.h (struct window): Add new member window_parameters.
1213 * window.c (Fwindow_parameters, Fwindow_parameter)
1214 (Fset_window_parameter): New defuns.
1215 (syms_of_window): Defsubr the new defuns.
1216 (make_window): Initialize window_parameters to nil.
1218 2008-06-04 John Paul Wallington <jpw@pobox.com>
1220 * eval.c (Fdefmacro): Doc fix.
1222 2008-06-04 Kenichi Handa <handa@m17n.org>
1224 * coding.c (detect_coding): Fix handling of coding->head_ascii.
1225 Be sure to call setup_coding_system when we find a proper coding system.
1226 (detect_coding_system): Fix handling of coding->head_ascii.
1228 2008-06-03 Andreas Schwab <schwab@suse.de>
1230 * font.c (font_prop_validate_spacing): Fix last change.
1232 2008-06-03 Kenichi Handa <handa@m17n.org>
1234 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
1235 (font_parse_fcname): Fix handling of unknown key.
1237 * xfont.c (xfont_list): Try an alias.
1239 * charset.c (char_charset): Return NULL if the arg charset_list is
1240 specified and C doesn't belong to any of them.
1242 2008-06-02 Chip Coldwell <coldwell@redhat.com>
1244 * font.c (font_pixel_size): Don't take cdr of an integer.
1246 2008-06-02 Jim Meyering <meyering@redhat.com>
1248 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
1249 * alloc.c (xfree): Return right away for a NULL arg.
1250 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
1251 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
1252 * mac.c (create_apple_event_from_event_ref): Likewise.
1253 (create_apple_event_from_drag_ref, cfstring_create_normalized):
1255 * doprnt.c (doprnt1): Likewise.
1256 * frame.c (frame): Likewise.
1257 * keyboard.c (wipe_kboard): Likewise.
1258 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
1259 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
1260 * term.c (tty_default_color_capabilities, maybe_fatal)
1261 (delete_tty): Likewise.
1262 * w16select.c (string): Likewise.
1263 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
1264 * w32bdf.c (w32_free_bdf_font): Likewise.
1265 * w32fns.c (w32_unload_font): Likewise.
1266 * w32font.c (w32font_close): Likewise.
1267 * window.c (size_window): Likewise.
1268 * xselect.c (receive_incremental_selection): Likewise.
1269 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
1270 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
1271 * w32.c (stat): Likewise.
1273 Remove useless if-before-free tests.
1274 * editfns.c (Fset_time_zone_rule): Likewise.
1275 * lread.c (nosuffix): Likewise.
1276 * ralloc.c (get_bloc): Likewise.
1277 * regex.c (reg_free): Likewise.
1278 * xftfont.c (xftfont_open, xftfont_close): Likewise.
1279 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
1280 * xsmfns.c (smc_save_yourself_CB): Likewise.
1282 2008-06-02 Kenichi Handa <handa@m17n.org>
1284 * font.c (font_find_for_lface): Handle float font size.
1285 (font_open_for_lface): Likewise.
1287 * xfaces.c (x_supports_face_attributes_p): Check face->font before
1288 comparing the properties.
1290 2008-06-01 Jason Rumney <jasonr@gnu.org>
1292 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
1293 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
1294 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
1295 Don't add empty script list.
1296 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
1298 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1300 * Makefile.in (dot, dotdot): Remove, update users.
1301 ".." has been used elsewhere in the file for a long time.
1302 (LIBXT_STATIC): Remove conditional based on unused variable.
1304 2008-06-01 Miles Bader <miles@gnu.org>
1306 * xfaces.c (Vface_remapping_alist): New variable.
1307 (syms_of_xfaces): Initialize it.
1308 (enum named_merge_point_kind): New type.
1309 (struct named_merge_point): Add `named_merge_point_kind' field.
1310 (push_named_merge_point): Make cycle detection respect different
1311 named-merge-point kinds.
1312 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
1313 Remove face-name alias resolution.
1314 (lface_from_face_name): New definition using
1315 `lface_from_face_name_no_resolve'.
1316 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
1317 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
1318 (get_lface_attributes): New definition that layers face-remapping on
1319 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
1320 (lookup_basic_face): New function.
1321 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
1322 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
1323 `get_lface_attributes'.
1324 (face_at_buffer_position): Use `lookup_basic_face' to lookup
1325 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
1326 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
1328 * xdisp.c (init_iterator): Pass base_face_id through
1329 `lookup_basic_face' when we actually use it as a face-id.
1330 (handle_single_display_prop): Use `lookup_basic_face' to lookup
1333 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
1334 lookup the initial face-id.
1336 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
1338 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
1340 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
1341 (Fremove_text_properties): Fix typos in docstrings.
1343 2008-05-31 Kenichi Handa <handa@m17n.org>
1345 * font.c (font_list_entities): Fix the car part of data to be
1346 stored in the cache.
1348 * ftfont.c (ftfont_font_format): Don't use strcasestr.
1350 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1352 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
1353 Add a `test' argument so another predicate than `equal' can be used.
1354 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
1355 (map_char_table): Remove unused vars `c' and `i'.
1356 * lisp.h (Foptimize_char_table): Adjust declaration.
1357 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
1359 2008-05-30 Kenichi Handa <handa@m17n.org>
1361 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
1362 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
1365 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1367 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
1368 (Fmake_variable_frame_local): Disallow mixing buffer-local and
1369 frame-local settings for the same variable.
1371 2008-05-30 Kenichi Handa <handa@m17n.org>
1373 * fontset.c (Ffont_info): Move to font.c.
1374 (syms_of_fontset): Delete defsubr of Sfont_info.
1376 * font.c (font_style_to_value, font_score): Delete casting of the
1378 (register_font_driver): Increment num_font_drivers only when
1379 registering the driver globally.
1380 (Ffont_info): Move from fontset.c. Handle a font object too.
1381 (syms_of_font): Defsubr Sfont_info.
1383 2008-05-29 Kenichi Handa <handa@m17n.org>
1385 * coding.h (enum define_coding_utf8_arg_index): New enum.
1386 (enum coding_attr_index): Change coding_attr_utf_16_bom to
1387 coding_attr_utf_bom.
1388 (enum utf_bom_type): Rename from utf_16_bom_type.
1389 (struct utf_16_spec): Adjust for the above change.
1390 (struct coding_system): Add utf_8_bom in `spec' union.
1392 * coding.c (CODING_UTF_8_BOM): New macro.
1393 (enum coding_category): Delete coding_category_utf_8, add
1394 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
1395 coding_category_utf_8_sig.
1396 (CATEGORY_MASK_UTF_8): Delete it.
1397 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
1398 (CATEGORY_MASK_UTF_8_SIG): New macros.
1399 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
1400 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
1401 CATEGORY_MASK_UTF_8_SIG.
1402 (CATEGORY_MASK_UTF_8): New macro.
1403 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
1404 (detect_coding_utf_8): Check BOM.
1405 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
1406 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
1407 (encode_coding_utf_16): Likewise.
1408 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
1409 (detect_coding, detect_coding_system): Handle utf-8-auto.
1410 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
1411 (syms_of_coding): Fix setting up of Vcoding_category_table.
1413 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
1415 * process.c (Faccept_process_output): If `millisec' is non-nil,
1416 `seconds' default to 0.
1417 (wait_reading_process_output): Also return non-nil if we read output
1418 from a non-running process.
1420 2008-05-29 Jason Rumney <jasonr@gnu.org>
1422 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
1424 (add_font_entity_to_list): Allow non-opentype truetype fonts back
1425 in the uniscribe backend, but disallow any font that has no
1426 unicode subrange support.
1428 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
1430 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
1431 Fix typos in docstrings.
1433 2008-05-29 Kenichi Handa <handa@m17n.org>
1435 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
1436 (Fx_family_fonts): Set frame correctly.
1438 2008-05-28 Jason Rumney <jasonr@gnu.org>
1440 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
1442 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1444 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
1445 calling build_annotations.
1447 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
1449 * coding.c (Fdecode_coding_region, Fencode_coding_region)
1450 (Fencode_coding_string):
1451 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
1452 <latin-extra-code-table>: Fix typos in docstrings.
1453 (syms_of_coding) <coding-system-alist>: Doc fix.
1454 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
1456 2008-05-28 Kenichi Handa <handa@m17n.org>
1458 * fontset.c (Ffont_info): Don't call font_close_object.
1460 * font.c (font_parse_family_registry): Use Ffont_put to validate
1462 (font_delete_unmatched): Don't check spacing.
1463 (font_list_entities): Add spacing to the spec to list fonts.
1465 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
1466 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
1468 * coding.c (encode_coding_raw_text): Fix previous change.
1469 (encode_coding_object): When the dst_object is a buffer and is
1470 different from src_object, move gap to PT.
1472 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1474 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
1476 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1478 * coding.c (encode_coding_raw_text): Set coding->produced_char for
1479 all branches. Compute it differently.
1481 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
1483 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
1485 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
1486 into "else if () ... else ...".
1488 2008-05-27 Jason Rumney <jasonr@gnu.org>
1490 * w32font.c (w32font_open_internal): Determine if glyph indices
1491 are likely to work here.
1493 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1495 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
1496 draw overlap glyphs with appropriate highlighting.
1498 2008-05-27 Kenichi Handa <handa@m17n.org>
1500 * xfont.c (xfont_open): Fix calculation of font->average_width.
1502 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1504 * casefiddle.c (casify_object): Try to guess better whether the
1505 argument is a byte or a char.
1507 2008-05-26 Andreas Schwab <schwab@suse.de>
1509 * xselect.c (x_reply_selection_request): Properly handle format == 32.
1510 Always send multiples of format size.
1512 * xterm.c (x_set_frame_alpha): Fix type mismatch.
1514 2008-05-26 Jason Rumney <jasonr@gnu.org>
1516 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
1517 (compute_metrics): Don't set failure if we just cleared the cache.
1518 (w32_weight_table): Remove unused variable.
1519 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
1520 backwards compatibility.
1522 2008-05-25 Kenichi Handa <handa@m17n.org>
1524 * w32term.c (x_draw_glyph_string):
1525 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
1527 * xfaces.c: Delete unused function prototypes.
1528 (xstrlwr, font_frame): Delete them.
1529 (clear_face_cache): Delete unused variable.
1531 * xftfont.c (xftfont_open): Delete unused variable.
1532 If underline_thickness is not 1, adjust underline_position.
1534 * ftxfont.c (ftxfont_open): Delete unused variable.
1536 * fontset.c (face_for_char): Optimize for the case of no charset
1539 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
1540 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
1541 (otf_open, font_otf_capability, generate_otf_features)
1542 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1543 Comment out by surrounding "#if 0" and "#endif" for the moment.
1544 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
1545 (syms_of_font): Codes for accessing above commented out.
1547 2008-05-24 Eli Zaretskii <eliz@gnu.org>
1549 * w32proc.c: Include dispextern.h.
1551 * w32.c: Include dispextern.h.
1553 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
1555 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
1556 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
1557 Fix typos in docstrings.
1559 2008-05-23 Jason Rumney <jasonr@gnu.org>
1561 * xsmfns.c: Remove includes that are already included by config.h.
1563 2008-05-23 Kenichi Handa <handa@m17n.org>
1565 * charset.c (Qemacs, charset_emacs): New variables.
1566 (char_charset): Fix for non-Unicode characters.
1567 (syms_of_charset): Define charset_emacs.
1569 * w32term.c (x_draw_glyph_string): Be sure to update
1570 s->underline_thickness and s->underline_position. Be sure to draw
1571 underline within the current line area.
1573 * xterm.c (x_draw_glyph_string): Be sure to update
1574 s->underline_thickness and s->underline_position. Be sure to draw
1575 underline within the current line area.
1577 * fontset.c: Delete unused variables and add casting for char *
1578 throughout the file.
1579 (fontset_font): Try the fallback fonts of the current fontset
1580 before consulting the default fontset.
1582 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
1584 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
1586 2008-05-22 Jason Rumney <jasonr@gnu.org>
1588 * font.c: Don't include strings.h.
1590 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
1592 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
1593 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
1594 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
1595 to call xstrcasecmp.
1597 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
1599 * fontset.c (fs_query_fontset): Use xstrcasecmp.
1601 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
1603 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
1605 2008-05-22 Kenichi Handa <handa@m17n.org>
1607 * puresize.h (BASE_PURESIZE): Increase to 1220000.
1609 * font.c (font_prop_validate_style): Adjust for the format
1610 change of font_style_table.
1612 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
1615 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
1618 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
1620 * minibuf.c (keys_of_minibuf): Delete.
1621 * lisp.h (keys_of_minibuf): Delete.
1622 * emacs.c (main): Don't call keys_of_minibuf.
1624 2008-05-22 Kenichi Handa <handa@m17n.org>
1626 * ftfont.c (ftfont_resolve_generic_family): Rename from
1627 ftfont_list_generic_family. Return a single family for each
1629 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
1630 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
1632 (ftfont_match): Call font_add_log.
1634 * font.h (Ffont_xlfd_name): EXFUN adjusted.
1635 (FONT_DEBUG): Define it.
1636 (font_add_log): Extern it.
1637 (font_assert): Rename from xassert.
1639 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
1640 (xfont_list_family): Call font_add_log.
1641 (xfont_match): Likewise.
1642 (memq_no_quit): Delete.
1644 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
1645 call of Ffont_xlfd_name.
1647 * xfaces.c (struct table_entry, slant_table, weight_table)
1648 (swidth_table): Move to font.c.
1650 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
1651 xassert are changed to font_assert. Delete many unused variables.
1652 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
1654 (struct table_entry): Move from xfaces.c and modified.
1655 (weight_table, slant_table, width_table): Move from xfaces.c and
1656 contents adjusted for the change of struct table_entry.
1657 (font_style_to_value, font_style_symbolic): Adjust for the
1658 format change of font_style_table.
1659 (font_parse_family_registry): Don't overwrite existing foundry and
1660 family of font_spec.
1661 (font_score): Fix calculation of diff for sizes.
1662 (font_sort_entites): Call font_add_log.
1663 (font_delete_unmatched): Return a newly created list.
1664 (font_list_entities): Fix previous change. Call font_add_log.
1665 (font_matching_entity, font_open_entity, font_close_entity):
1667 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
1668 (Finternal_set_font_style_table): Delete.
1669 (BUILD_STYLE_TABLE): New macro.
1670 (build_style_table): New function.
1671 (Vfont_log, font_log_env_checked): New variables.
1672 (font_add_log): New function.
1673 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
1674 Declare Lisp variables "font-weight-table", "font-slant-table",
1675 "font-width-table", and "font-log". Initialize font_style_table.
1677 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
1679 * xterm.c (x_set_frame_alpha): Move declarations before statements.
1681 2008-05-21 Seiji Zenitani <zenitani@mac.com>
1682 Ryo Yoshitake <ryo@shiftmode.net>
1684 * frame.c (Qalpha): Add a new frame parameter `alpha'.
1685 (Vframe_alpha_lower_limit): New variable.
1686 (x_set_alpha): New function.
1688 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
1690 * xfns.c (x-create-frame, Qalpha):
1691 Initialize the frame parameter `alpha'.
1692 * xterm.c (OPAQUE, OPACITY): New.
1693 (x_set_frame_alpha): New function.
1694 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
1696 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
1697 * w32fns.c (w32_frame_parm_handlers): Likewise.
1699 2008-05-20 Jason Rumney <jasonr@gnu.org>
1701 * w32font.c (add_font_entity_to_list): Don't add non-opentype
1702 truetype fonts to opentype list.
1704 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
1706 * fontset.c (Ffontset_info): Doc fix.
1707 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
1708 <ignore-relative-composition>: Fix typos in docstrings.
1710 * font.c (syms-of-font) <font-encoding-alist>:
1711 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
1712 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
1713 (Ffont_otf_alternates): Doc fixes.
1715 2008-05-20 Kenichi Handa <handa@m17n.org>
1717 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
1718 font.h through out the file.
1719 (FONT_DRIVERS): Rename from FONTOBJ.
1720 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
1721 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
1723 * emacs.c (main): Call syms_of_font unconditionally.
1725 * font.h (find_font_encoding): Extern it.
1727 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
1729 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
1730 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
1731 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
1732 only when HAVE_WINDOW_SYSTEM is defined.
1733 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
1734 when HAVE_WINDOW_SYSTEM is defined.
1736 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
1737 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
1739 * xfaces.c: Include font.h unconditionally.
1740 (merge_face_ref, merge_face_vectors)
1741 (Finternal_set_lisp_face_attribute): Cancel the previous change.
1743 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
1745 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
1747 * eval.c (lisp_indirect_variable): New fun.
1748 (Fuser_variable_p): Use it.
1750 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1752 * lisp.h (indirect_variable):
1753 * data.c (indirect_variable, let_shadows_buffer_binding_p):
1754 Use Lisp_Symbol pointers rather than Lisp_Object.
1756 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
1757 To this end, change calling-convention.
1759 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
1760 if some non-hidden buffers are selected by string&pred.
1762 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
1764 * process.c (wait_reading_process_output): Always check status
1767 2008-05-19 Kenichi Handa <handa@m17n.org>
1769 * font.c (font_list_entities): Fix handling of cache.
1770 (font_matching_entity): Likewise.
1772 * ftfont.c (cs_iso8859_1): Delete.
1773 (ft_face_cache): New variable.
1774 (struct ftfont_info): New member fc_charset_idx.
1775 (ftfont_build_basic_charsets): Delete.
1776 (fc_charset_table): New variable.
1777 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
1778 . FC_CHARSET_IDX) as :font-entity property in the font entity.
1780 (ftfont_lookup_cache, ftfont_get_charset): New functions.
1781 (ftfont_spec_pattern): New argument fc_charset_idx.
1782 Check registry more rigidly. Change callers.
1783 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
1784 change of :font-entity property of the font.
1786 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
1787 property of the font.
1789 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
1791 * coding.c (Fcoding_system_p): Rename argument to match docstring.
1792 (Funencodable_char_position, Fcheck_coding_systems_region)
1793 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
1794 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
1795 (Ffind_operation_coding_system, Fset_coding_system_priority)
1796 (Fcoding_system_eol_type): Doc fixes.
1798 2008-05-17 Glenn Morris <rgm@gnu.org>
1800 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
1802 2008-05-16 Eli Zaretskii <eliz@gnu.org>
1804 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
1807 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1808 HAVE_WINDOW_SYSTEM is not defined.
1810 * xfaces.c (merge_face_ref, merge_face_vectors)
1811 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
1812 HAVE_WINDOW_SYSTEM is defined.
1813 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
1815 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
1817 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
1819 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1821 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
1823 2008-05-15 Kenichi Handa <handa@m17n.org>
1825 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
1828 2008-05-15 Glenn Morris <rgm@gnu.org>
1830 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
1832 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
1834 * fns.c (init_fns): Don't initialize weak_hash_tables here.
1835 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
1837 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
1839 2008-05-15 Kenichi Handa <handa@m17n.org>
1841 * ftfont.c (ftfont_list): Downcase family name to check generic
1844 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
1845 font-spec for QCfont value.
1847 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
1848 buffer. Check the return value of it.
1850 2008-05-14 Jason Rumney <jasonr@gnu.org>
1852 * w32term.c (w32_get_glyph_overhangs): Remove.
1853 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
1855 2008-05-14 Kenichi Handa <handa@m17n.org>
1857 * font.c (font_prop_validate): Make nil a valid value.
1858 (font_clear_cache): Check if the cached vector of entities is nil
1861 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1863 * emacs.c (main_thread): Conditionalize on
1864 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1865 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
1867 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
1868 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
1869 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1871 2008-05-14 Kenichi Handa <handa@m17n.org>
1873 * coding.c (detect_coding_iso_2022): Ignore a coding category that
1874 has no corresponding coding system.
1876 2008-05-14 Jason Rumney <jasonr@gnu.org>
1878 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
1880 * w32font.h (w32font_open_internal): Update declaration.
1882 * w32font.c (w32font_open_internal): Change last argument from
1883 w32font_info struct to font object. Fill in font object from
1884 font_entity. Get Outline metrics if possible. Use them to
1885 calculate underline position and thickness. Use xlfd name as name
1886 property. Don't set codepage.
1887 (w32font_open): Pass font_object to w32font_open_internal. Don't
1888 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
1889 (w32font_draw): Use s->font.
1890 (clear_cached_metrics): Don't clear non-existent blocks.
1892 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
1894 (x_draw_glyph_string): Use underline position and thickness from font.
1896 * w32uniscribe.c (uniscribe_open): Pass font_object to
1897 w32font_open_internal.
1899 2008-05-14 Kenichi Handa <handa@m17n.org>
1901 These changes are to delete all legacy font-handling codes, and
1902 make Emacs use only font-backends.
1904 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
1905 (frame.o, image.o, print.o): Depend on $(FONTSRC).
1907 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
1909 * charset.h (Vcharset_non_preferred_head)
1910 (Vcurrent_iso639_language): Extern them.
1912 * charset.c (Vcharset_non_preferred_head): New variable.
1913 (Vcurrent_iso639_language): New variable.
1914 (syms_of_charset): Declare it as a Lisp variable.
1915 (char_charset): Don't check non preferred charsets. As a last
1916 resort, return charset_unicode.
1917 (Fset_charset_priority): Update Vcharset_non_preferred_head.
1919 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
1920 conditionals. Don't check enable_font_backend. Delete all codes
1921 used only when USE_FONT_BACKEND is not defined.
1923 * dispextern.h (struct glyph_string): Change type of `font' to
1925 (struct glyph_string): New member underline_position and
1926 underline_thickness.
1927 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
1928 (struct face): Change type of `font' to `struct font *'. Remove
1929 members `font_name', `font_info_id'.
1930 (per_char_metric, encode_char): Delete externs.
1931 (calc_pixel_width_or_height): Adjust the prototype.
1933 * emacs.c (enable_font_backend): Delete extern.
1934 (main): Don't set enable_font_backend. Don't check the command
1935 line argument "-disable-font-backend".
1937 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
1938 (enum font_property_index): New members FONT_DPI_INDEX,
1939 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
1940 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
1941 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
1942 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
1943 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
1944 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
1945 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1946 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1947 (struct font_spec, struct font_entity): New structs.
1948 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1949 (struct font): Many members from old "struct font_info" moved to
1950 here. Members font and entity deleted.
1951 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1952 the new font-related objects.
1953 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1954 (CHECK_FONT_GET_OBJECT): Likewise.
1955 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1956 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1957 (struct font_driver): New members case_sensitive anc check. Type
1958 of the member list and open changed.
1959 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1960 (font_symbolic_width, font_find_object, font_get_spec)
1961 (font_set_lface_from_name): Delete extern.
1962 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
1964 * font.c: Include <strings.h>.
1965 (enable_font_backend): Delete it.
1966 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1967 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1968 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1969 (null_string): Delete it.
1970 (null_vector): Make it static.
1971 (font_family_alist): Delete it.
1972 (Qnormal): Extern it.
1973 (QCextra, QClanguage): Delete it.
1974 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
1975 (font_make_spec, font_make_entity, font_make_object)
1976 (font_intern_prop): Renamed from intern_downcase. Don't downcase
1977 the string. Callers changed.
1978 (font_pixel_size): Adjusted for the format change of font-related
1980 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
1981 (font_style_to_value, font_style_symbolic): New function.
1982 (build_font_family_alist): Delete it.
1983 (font_registry_charsets): Use Fassoc_string instead of
1985 (font_prop_validate_symbol): Don't return null_string.
1986 (font_prop_validate_style): Adjusted for the change of
1987 style-related values in a font vector.
1988 (font_property_table): Delete entries for QClanguage and
1989 QCantialias, add entries for QCavgwidth.
1990 (get_font_prop_index): Delete the 2nd argument FROM.
1991 (font_prop_validate): Arguments changed.
1992 (font_put_extra): Adjusted for the change of font-related objects.
1993 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
1994 (font_parse_fcname, font_unparse_fcname)
1995 (font_prepare_composition): Likewise.
1996 (font_parse_family_registry): Renamed from font_merge_old_spec.
1997 (otf_open): Delete the 1st arg entity.
1998 (font_otf_capability): Adjusted for the above change.
1999 (font_score): New arg alternate_families. Adjusted for the change
2000 of font-related objects.
2001 (font_sort_entites): New arg best_only.
2002 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
2004 (font_match_p): Check alternate families.
2005 (font_find_object): Delete it.
2006 (font_check_object): New function.
2007 (font_clear_cache): Adjusted for the change of font-related objects.
2008 (font_delete_unmatched): New arg.
2009 (font_list_entities): Call font_driver->list with a spec that
2010 doesn't specify style-related properties.
2011 (font_matching_entity): Arguments changed. Caller changed.
2012 (font_open_entity): Adjusted for the change of font-related objects.
2013 (font_close_object, font_has_char, font_encode_char)
2014 (font_get_name, font_get_spec): Likewise.
2015 (font_spec_from_name, font_clear_prop, font_update_lface):
2017 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
2018 (font_prepare_for_face, font_done_for_face, font_open_by_name)
2019 (font_at): Adjusted for the change of font-related objects.
2020 (font_range): New function.
2021 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
2022 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
2023 (Fcopy_font_spec, Fmerge_font_spec): New function.
2024 (Ffont_family_list): Renamed from list-families.
2025 (Finternal_set_font_style_table): Arguments changed.
2026 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
2027 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
2028 change of font-related objects.
2029 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
2031 * fontset.h (struct font_info): Delete it. Most members go to
2033 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
2034 (enum FONT_SPEC_INDEX): Delete it.
2035 (font_info, list_fonts_func, load_font_func, query_font_func)
2036 (set_frame_fontset_func, find_ccl_program_func)
2037 (get_font_repertory_func, new_fontset_from_font_name): Delete
2039 (fontset_from_font_name): Extern it.
2040 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
2041 (FONT_INFO_FROM_FACE): Deleted.
2042 (face_for_font): Adjust prototype.
2044 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
2045 conditionals. Don't check enable_font_backend. Delete all codes
2046 used only when USE_FONT_BACKEND is not defined.
2047 (get_font_info_func, list_font_func, load_font_func)
2048 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
2049 (get_font_repertory_func): Delete them.
2050 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
2051 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
2052 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
2053 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
2054 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
2055 (fontset_compare_rfontdef): New function.
2056 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
2057 ront-defs by qsort. Adjusted for the change of font-group vector.
2058 (load_font_get_repertory): Deleted.
2059 (fontset_find_font): Use new macros to ref/set elements of
2060 font-def and rfont-def.
2061 (fontset_font): Fix the timing of remembering that no font for C.
2062 (free_face_fontset): Do nothing if the face has no fontset.
2063 (face_suitable_for_char_p): Use new macros to ref/set elements of
2065 (face_for_char): Likewise. Call face_for_char with font_object.
2066 (fs_load_font): Delete. Delete #pragma surrounding it.
2067 (fs_query_fontset): Use strcasecmp instead of strcmp.
2068 (generate_ascii_font_name): Adjusted for the format change of
2070 (Fset_fontset_font): Likewise. Use new macros to set elements of
2072 (Fnew_fontset): Use font_unparse_xlfd to generate
2073 FONTSET_ASCII (fontset).
2074 (new_fontset_from_font_name): Deleted.
2075 (fontset_from_font): Renamed from new_fontset_from_font. Check if
2076 a fontset is already created for the font. FIx updating of
2077 Vfontset_alias_alist.
2078 (fontset_ascii_font): Deleted.
2079 (Ffont_info): Adjusted for the format change of font-spec.
2080 (Finternal_char_font): Likewise.
2081 (Ffontset_info): Likewise.
2082 (syms_of_fontset): Don't check load_font_func.
2084 * fns.c (internal_equal): Handle PREV_FONT.
2086 * frame.h: Delete USE_FONT_BACKEND conditional.
2088 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
2089 conditionals. Don't check enable_font_backend. Delete all codes
2090 used only when USE_FONT_BACKEND is not defined.
2091 (x_set_font): Call x_new_font, not x_new_fontset2.
2092 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
2093 already set for the frame.
2095 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
2096 a font-entity by font_make_entity. Use font_intern_prop instead
2097 of intern_downcase. Use FONT_SET_STYLE to set a style-related
2098 font property. If a font is scalable, set avgwidth property to 0.
2099 Set font-entity property by font_put_extra.
2100 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
2101 (ffont_driver): Adjusted for the change of struct font_driver.
2102 (ftfont_spec_pattern): New function.
2103 (ftfont_list): Return a list, not vector.
2104 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
2105 (ftfont_list_family): Don't downcase names.
2106 (ftfont_free_entity): Deleted.
2107 (ftfont_open): Return a font-ojbect. Adjusted for the change of
2108 struct font. Get underline_thickness and underline_position from
2109 font property. Don't update dpyinfo->smallest_font_height and
2110 dpyinfo->smallest_char_width.
2111 (ftfont_close): Don't free `struct font'.
2112 (ftfont_has_char): Adjusted for the format change of font-entity.
2113 (ftfont_encode_char, ftfont_text_extents): Likewise.
2115 * ftxfont.c (ftxfont_list): Return a list, not vector.
2116 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
2117 struct font. Get underline_thickness and underline_position from
2118 font property. Don't update dpyinfo->smallest_font_height and
2119 dpyinfo->smallest_char_width.
2120 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
2121 (ftxfont_draw): Adjusted for the change of struct font.
2123 * image.c (image_ascent): Don't include "charset.h". Include
2124 "character.h" and "font.h".
2126 * lisp.h (enum pvec_type): New member PREV_FONT.
2127 (Fassoc_string): EXFUN it.
2129 * print.c: Include font.h.
2130 (print_object): Handle font-related objects.
2132 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
2133 conditionals. Don't check enable_font_backend. Delete all codes
2134 used only when USE_FONT_BACKEND is not defined.
2135 (handle_auto_composed_prop): Do nothing if it->f is not on a
2136 window system. Check how many following characters can be
2137 displayed by the same font.
2138 (calc_pixel_width_or_height): Type of the 4th arg is changed to
2140 (get_char_face_and_encoding): Assign the whole encoding task to
2141 the `encode-char' method of a font driver.
2142 (fill_composite_glyph_string): Adjusted for the change of `struct
2143 face' and `struct glyph_string'.
2144 (fill_glyph_string): Likewise.
2145 (get_per_char_metric): Arguments changed.
2146 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
2147 and `struct glyph_string'.
2148 (produce_stretch_glyph, calc_line_height_property)
2149 (x_produce_glyphs): Likewise.
2151 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
2152 conditionals. Don't check enable_font_backend. Delete all codes
2153 used only when USE_FONT_BACKEND is not defined. Use
2154 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
2155 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
2157 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
2159 (struct font_name): Deleted.
2160 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
2161 (compare_fonts_by_sort_order): New function.
2162 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
2163 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
2165 (Fx_family_fonts): Use font_list_entities, and sort fonts by
2166 compare_fonts_by_sort_order.
2167 (Fx_font_family_list): Call Ffont_family_list.
2168 (face_numeric_value, face_numeric_weight, face_numeric_slant)
2169 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
2170 (face_symbolic_slant, face_symbolic_swidth)
2171 (split_font_name_into_vector, build_font_name_from_vector)
2172 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
2173 (font_rescale_ratio, split_font_name, build_font_name)
2174 (free_font_names, sort_fonts, x_face_list_fonts)
2175 (face_font_available_p, sorted_font_list, cmp_font_names)
2176 (font_list_1, concat_font_list, font_list, remove_duplicates):
2178 (Fx_list_fonts): Use Ffont_list.
2179 (LFACE_AVGWIDTH): Deleted.
2180 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
2182 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2183 (set_lface_from_font_name): Delete it.
2184 (set_lface_from_font): Renamed from
2185 set_lface_from_font_and_fontset. Caller changed. Don't set
2186 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
2188 (merge_face_vectors): Copy font-spec if necessary.
2189 Clear properties of the font-spec if necessary.
2190 (merge_face_ref): Clear properties of the font-spec if necessary.
2191 (Finternal_set_lisp_face_attribute): Likewise.
2192 (set_font_frame_param): Use font_load_for_lface to load a
2193 font-object, and call Fmodify_frame_parameters with it.
2194 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
2195 font name by Ffont_xlfd_name.
2196 (Finternal_lisp_face_attribute_values): Don't check QCweight,
2197 QCslant, and QCwidth.
2198 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
2199 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
2200 Compare fonts by EQ.
2201 (lookup_non_ascii_face): Deleted.
2202 (face_for_font): The 2nd argument changed.
2203 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
2204 Check atomic font properties by case insensitive.
2205 (realize_non_ascii_face): Set face->overstrike correctly.
2206 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
2207 (dump_realized_face): Get font name from
2208 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
2210 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
2211 conditionals. Don't check enable_font_backend. Delete all codes
2212 used only when USE_FONT_BACKEND is not defined.
2213 (xic_create_xfontset): Original code deleted and renamed from
2214 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
2215 (x_make_gc): Don't set GCFont in GCs.
2216 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
2218 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
2219 find_ccl_program_func, query_font_func, set_frame_fontset_func,
2220 get_font_repertory_func.
2222 * xfont.c: Include <stdlib.h> and "ccl.h".
2223 (struct xfont_info): New structure.
2224 (xfont_query_font): Deleted.
2225 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
2227 (xfont_driver): Adjusted for the change of struct font_driver.
2228 (compare_font_names): New function.
2229 (xfont_list_pattern): Sort font names case insensitively. Make
2230 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
2231 (xfont_list): Return a list, not vector.
2232 (xfont_match): If the font doesn't have QCname property, generate
2233 a name from the other font properties.
2234 (xfont_open): Return a font-ojbect. Adjusted for the change of
2235 struct font. Get underline_thickness and underline_position from
2236 font property. Don't update dpyinfo->smallest_font_height and
2237 dpyinfo->smallest_char_width.
2238 (xfont_close): Don't free struct font.
2239 (xfont_prepare_face): Adjusted for the change of struct font.
2240 (xfont_done_face): Deleted.
2241 (xfont_has_char): Adjusted for the change of struct font.
2242 (xfont_encode_char, xfont_draw): Likewise.
2243 (xfont_check): New function.
2245 * xftfont.c (xftfont_list): Adjusted for the change of `list'
2247 (xftfont_match): Adjusted for the fontmat change of font-entity.
2248 (xftfont_open): Adjusted for the format change of font-entity and
2249 font-object. Adjusted for the change of struct font. Return a
2250 font-object. Don't update dpyinfo->smallest_font_height and
2251 dpyinfo->smallest_char_width.
2252 (xftfont_close): Block input while calling XftFontClose.
2253 (xftfont_prepare_face): Don't block input while calling
2254 xftfont_get_colors. Adjusted for the change of struct font.
2255 (xftfont_shape): Return value of error case fixed.
2257 * xrdb.c (x_load_resources): Don't setup a fontset resource.
2259 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
2261 (FONT_WIDTH): Return (f)->max_width.
2262 (struct x_display_info): Delete member `font'.
2263 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
2264 (x_find_ccl_program, x_get_font_repertory): Delete externs.
2265 (struct x_output): Change type of `font' to `struct font *'.
2267 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
2268 conditionals. Don't check enable_font_backend. Delete all codes
2269 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
2270 (x_per_char_metric, x_encode_char): Deleted.
2271 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
2272 (x_compute_glyph_string_overhangs): Adjusted for the change of
2274 (x_draw_glyph_string_foreground)
2275 (x_draw_composite_glyph_string_foreground): Likewise.
2276 (x_draw_glyph_string): Likewise. Use font->underline_position and
2277 font->underline_thickness.
2278 (x_new_font): Renamed from x_new_fontset2.
2279 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
2280 (x_check_font): Call `check' method of a font driver.
2281 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
2282 (x_query_font, x_get_font_repertory): Deleted.
2283 (x_find_ccl_program): Renamed and moved to xfont.c.
2284 (x_redisplay_interface): Adjusted for the change of `struct
2285 redisplay_interface'.
2287 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
2288 conditionals. Don't check enable_font_backend. Delete all codes
2289 used only when USE_FONT_BACKEND is not defined. Surround non-used
2290 code by "#ifdef OLD_FONT" and "endif".
2291 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
2293 * w32font.h (struct w32font_info): New member.
2294 (FONT_COMPAT): New macro.
2295 (w32font_open_internal): Prototype adjusted.
2297 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
2298 OLD_FONT" and "endif".
2300 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
2301 conditionals. Don't check enable_font_backend. Delete all codes
2302 used only when USE_FONT_BACKEND is not defined.
2303 (w32font_open): Return a font-object. Make a font-object by
2304 font_make_object. Adjusted for the change of struct w32font_info.
2305 (w32font_close): Don't free struct font. Adjusted for the change
2306 of struct w32font_info.
2307 (w32font_encode_char, w32font_text_extents, w32font_draw):
2308 Adjusted for the change of struct w32font_info.
2309 (w32font_draw): Likewise.
2310 (w32font_list_internal): Return a list, not vector.
2311 (w32font_open_internal): Change the 4th arg to font-object.
2312 Adjusted for the change of struct w32font_info and font-object format.
2313 (add_font_name_to_list): Don't downcase names.
2314 (w32_enumfont_pattern_entity): Make a font-entity by
2315 font_make_entity. Adjusted for the format change of font-entity.
2316 Use FONT_SET_STYLE to set a style-related font property. If a
2317 font is scalable, set avgwidth property to 0. Set font-entity
2318 property by font_put_extra.
2319 (font_matches_spec): Adjusted for the format change of font-entity.
2320 (w32_weight_table, w32_decode_weight): New variables.
2321 (w32_encode_weight): New function.
2322 (fill_in_logfont): Adjusted for the format change of font-spec.
2323 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
2325 (w32font_driver): Adjusted for the change of struct font_driver.
2327 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
2328 conditionals. Don't check enable_font_backend. Surround non-used
2329 code by "#ifdef OLD_FONT" and "endif".
2330 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
2331 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
2333 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
2334 conditionals. Don't check enable_font_backend. Delete all codes
2335 used only when USE_FONT_BACKEND is not defined. Surround non-used
2336 code by "#ifdef OLD_FONT" and "endif".
2338 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
2339 (uniscribe_open): Return value changed to font-object.
2340 Adjusted for the format change of font-object.
2341 (uniscribe_otf_capability): Adjusted for the change of struct font.
2342 (add_opentype_font_name_to_list): Don't downcase names.
2343 (uniscribe_font_driver): Adjusted for the change of struct
2346 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
2348 * dispnew.c (update_frame_1): Check if tty output is still valid
2351 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
2353 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
2356 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2358 * dired.c (file_name_completion): Tweak the code so as to always do it
2359 in a single pass. Tighten the scope of some variables.
2361 * dired.c (Qdefault_directory): New var.
2362 (file_name_completion): Use it instead of Fexpand_file_name.
2363 (syms_of_dired): Initialize it.
2365 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
2367 * fileio.c (double_dollars): Remove dead code.
2369 2008-05-10 Eli Zaretskii <eliz@gnu.org>
2371 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
2372 Mention w32-get-true-file-attributes in doc string.
2374 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2376 2008-05-09 Glenn Morris <rgm@gnu.org>
2378 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
2381 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2383 Support for reporting owner and group of each file on MS-Windows:
2384 * dired.c (stat_uname, stat_gname): New functions, with special
2385 implementation for w32.
2386 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
2388 * w32.c: Rename the_passwd_* to dflt_passwd_*.
2389 (dflt_group_name): New static variable.
2390 (dflt_group): Rename from the_group.
2391 (init_user_info): Init dflt_group fields. Get user's group name
2392 from LookupAccountSid.
2393 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
2394 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
2395 New initialization states.
2396 (globals_of_w32): Initialize them to zero. Initialize the default
2397 group name to "None".
2398 (GetFileSecurity_Name): New global var, the name of the function
2399 to call for GetFileSecurity.
2400 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
2401 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
2402 (get_file_security, get_security_descriptor_owner)
2403 (get_security_descriptor_group, is_valid_sid)
2404 (get_file_security_desc, get_rid, get_name_and_id)
2405 (get_file_owner_and_group): New functions.
2406 (stat): Use get_file_security_desc and get_file_owner_and_group to
2407 report the owner and primary group of each file. Don't ignore the
2408 high 32 bits of file's size, now that st_size is 64-bit wide.
2409 Fix test when to get true file attributes.
2410 (init_user_info): Use get_rid instead of equivalent inline code.
2411 (fstat): Don't ignore the high 32 bits of file's size.
2413 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
2415 * image.c (png_load): Use correct bit-depth for setting background
2418 2008-05-08 Eli Zaretskii <eliz@gnu.org>
2420 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
2423 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
2425 * font.c (Ffont_match_p): Don't use `iff' in docstring.
2427 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2429 * macfns.c (Fx_create_frame): Make a copy of frame parameters
2430 because the original parameters are in pure storage now.
2431 (mac_window): Remove unused params. Update callers.
2433 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2435 * lread.c (substitute_object_recurse): Use lower-level primitives.
2436 Don't signal errors when traversing sub-char-tables.
2437 Don't loop over all the possible characters when traversing char-tables.
2439 * print.c (print_preprocess): Add sub-char-tables to the print-table,
2440 just like we do in print.c.
2442 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2444 * minibuf.c (Ftry_completion): Remove code left over from when we used
2445 scmp instead of Fcompare_strings.
2447 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
2449 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
2451 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2453 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
2454 Create bitmap context in native byte order.
2456 * macterm.c (XDrawLine)
2457 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
2458 context in native byte order.
2460 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2462 * config.in: Regenerate.
2464 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
2465 New definitions for Image I/O support.
2466 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2467 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
2468 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2469 (mac_data_provider_release_data, image_load_image_io)
2470 [USE_MAC_IMAGE_IO]: New functions.
2471 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
2472 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
2473 (init_image_func_pointer) [MAC_OSX]: Remove function.
2474 (image_load_quartz2d) [MAC_OSX]: Check availability of
2475 CGImageCreateWithPNGDataProvider at compile time.
2476 Use lowercase `false' for boolean constant.
2477 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
2478 Use image_load_image_io.
2479 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
2480 Don't check MyCGImageCreateWithPNGDataProvider.
2481 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
2482 Don't call init_image_func_pointer.
2484 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
2486 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
2487 Make variable non-static.
2488 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2489 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2491 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
2492 (RED_FROM_ULONG): Mask off higher bits.
2493 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
2495 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
2496 Include AvailabilityMacros.h.
2497 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
2498 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
2500 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
2502 * chartab.c (Fset_char_table_range): If range is t, really set all
2503 chars to that value.
2505 2008-05-03 Eli Zaretskii <eliz@gnu.org>
2507 * dired.c (Ffile_attributes): Don't allow the device number become
2510 2008-05-02 Daiki Ueno <ueno@unixuser.org>
2512 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
2514 2008-05-02 Juri Linkov <juri@jurta.org>
2516 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
2517 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
2518 DEFAULT argument as a list of default values in docstrings.
2520 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
2522 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2524 2008-05-01 Martin Rudalics <rudalics@gmx.at>
2526 * dispnew.c (change_frame_size_1): Preserve small windows when
2527 shrinking frames by calling set_window_height|width with third
2530 * window.h (struct window): Replace field too_small_ok by field
2531 resize_proportionally.
2533 * window.c (make_window): Initialize resize_proportionally.
2534 (enlarge_window): Temporarily set resize_proportionally to make
2535 sure that shrink_windows does scale the window proportionally.
2536 (shrink_windows): When window has resize_proportionally set try
2537 to shrink it proportionally by stealing from other windows.
2538 (struct saved_window, Fset_window_configuration)
2539 (compare_window_configurations): Handle resize_proportionally.
2540 (WINDOW_TOTAL_SIZE): New macro.
2541 (window_min_size, shrink_windows, size_window): Use it.
2542 (check_min_window_sizes): Remove. Invalid values of
2543 window-min-height|width are handled by window_min_size_2 now.
2544 (size_window, Fsplit_window, enlarge_window)
2545 (adjust_window_trailing_edge, grow_mini_window): Don't call
2546 check_min_window_sizes.
2547 (window_min_size_2, window_min_size_1, window_min_size):
2548 New argument safe_p for retrieving "safe" minimum sizes.
2549 (Fdisplay_buffer, Fsplit_window, enlarge_window)
2550 (adjust_window_trailing_edge, grow_mini_window):
2551 Adjust arguments of window_min_size... functions.
2552 (shrink_windows): Argument min_size removed. New argument
2553 safe_p allows shrinking windows to their safe minimum sizes.
2554 Calculate minimum size and decide whether a window shall be
2555 deleted for each window individually.
2556 (size_window): When nodelete_p equals 2, tell shrink_windows to
2557 delete windows only if their new minimum size is no more safe.
2558 (shrink_window_lowest_first): Call window_min_size_1 to make
2559 sure to preserve modeline of bottom-most window when resizing
2561 (Fset_window_configuration, Fcurrent_window_configuration)
2562 (compare_window_configurations): Do not handle
2563 window-min-height|width any more.
2564 (syms_of_window): Clarify window-min-height|width doc-strings.
2566 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
2568 * dired.c (file_name_completion): Fix up the encoding/decoding issue
2569 some more. Copy some of the code from Ftry_completions.
2570 Remove special case code that dates back to initial revision when the
2571 slash was only added when necessary and that can't trigger nowadays.
2573 2008-04-27 Kenichi Handa <handa@m17n.org>
2575 * font.c (font_prop_validate): Signal `error' instead of `font'.
2577 2008-04-29 Jason Rumney <jasonr@gnu.org>
2579 * w32fns.c (Fw32_battery_status): New defun.
2580 (syms_of_w32fns): Defsubr it.
2582 2008-04-28 Andreas Schwab <schwab@suse.de>
2584 * dired.c (file_name_completion): Fix another mixing of encoded
2587 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
2589 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
2591 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
2593 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2595 2008-04-27 Andreas Schwab <schwab@suse.de>
2597 * dired.c (file_name_completion): Fix inappropriate mixing of
2598 encoded and decoded names.
2600 * xterm.c (XTread_socket): Fix use of uninitialized variable.
2602 * puresize.h (BASE_PURESIZE): Increase to 1200000.
2604 2008-04-26 Eli Zaretskii <eliz@gnu.org>
2606 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
2607 2008-03-31, it's not needed anymore with `struct stat' definition
2608 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
2609 for the same reasons.
2611 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
2613 * m/sparc.h: Additional redefinitions for GNU/Linux.
2615 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2617 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
2618 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2619 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
2620 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
2621 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2622 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
2623 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2626 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
2627 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
2628 (mac_ax_number_of_characters): Add externs.
2629 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2630 [USE_MAC_TSM]: Likewise.
2631 (mac_handle_text_input_event) [MAC_OSX]:
2632 Handle kEventTextInputOffsetToPos for no active input area case.
2633 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2634 (mac_handle_document_access_event)
2635 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
2636 (install_application_handler) [MAC_OSX]: Register handlers for
2637 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2638 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2639 Register mac_handle_document_access_event.
2641 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
2642 Make functions non-static.
2644 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2646 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
2647 (read_file_name_completion_ignore_case, insert_default_directory)
2648 (Qdefault_directory): Move to minibuffer.el.
2649 (Fread_file_name): Call the new `read-file-name' instead.
2651 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2653 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
2654 Make function non-static.
2655 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
2657 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2658 Move to mactoolbox.c.
2659 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
2661 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
2662 (mac_rect_make): New macro.
2664 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
2666 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2667 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
2668 (XSetBackground) [USE_CG_DRAWING]: Likewise.
2669 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
2671 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2672 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
2673 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
2674 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2675 instead of WindowRef in argument type.
2676 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
2677 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
2678 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
2679 instead of DISPLAY. All uses changed.
2680 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
2681 (x_calc_absolute_position): Simplify so as not to use
2682 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
2684 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2685 instead of WindowRef in argument type.
2686 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
2687 [TARGET_API_MAC_CARBON]: Remove externs.
2688 (create_apple_event, mac_event_parameters_to_lisp)
2689 [TARGET_API_MAC_CARBON]: Add externs.
2691 * mactoolbox.c (Vmac_ts_script_language_on_focus)
2692 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
2693 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
2695 (x_activate_menubar): Remove extern for saved_menu_event_location.
2696 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2699 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2701 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
2702 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
2704 2008-04-23 Jason Rumney <jasonr@gnu.org>
2706 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
2707 attributes only for local files.
2709 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
2712 2008-04-22 Juri Linkov <juri@jurta.org>
2714 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
2715 read-buffer-to-switch instead of using the letter "B".
2717 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2719 * fileio.c (Qdefault_directory): New variable.
2720 (Fread_file_name): Use it to pass `dir' to the completion functions.
2722 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
2724 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
2726 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2728 * keyboard.c (Vpre_help_message): Remove.
2729 (show_help_echo): Remove default C code.
2731 * dired.c (directory_files_internal, file_name_completion):
2732 Only call ENCODE_FILE if the string is indeed decoded.
2734 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2736 * Makefile.in (TOOLKIT_DEFINES): Remove.
2737 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
2739 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2741 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
2742 (mactoolbox.o): New target.
2744 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
2745 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
2747 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
2748 Use mac_set_frame_window_background instead of XSetWindowBackground.
2749 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
2750 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
2751 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
2752 instead of SetWindowTitleWithCFString.
2753 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
2754 Move function to mactoolbox.c.
2755 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2756 Use mac_set_window_modified instead of SetWindowModified.
2757 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
2758 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
2759 (Fx_focus_frame): Use mac_front_non_floating_window instead of
2760 FrontNonFloatingWindow. Use mac_activate_window instead of
2761 ActivateWindow. Use mac_active_non_floating_window instead of
2762 ActiveNonFloatingWindow.
2763 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
2764 Use mac_show_hourglass and mac_hide_hourglass.
2765 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
2766 instead of GetGlobalMouse.
2767 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
2768 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
2769 Use mac_bring_window_to_front instead of BringToFront.
2770 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
2772 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
2773 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
2774 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
2777 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
2778 (XtPointer): Move typedef from macmenu.c.
2779 (enum button_type): Move enum from macmenu.c.
2780 (widget_value): Move typedef from macmenu.c.
2781 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
2782 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2783 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2784 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2785 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2786 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2787 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2788 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
2789 (Selection): Move typedef from macselect.c.
2790 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
2792 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
2793 (mac_is_window_collapsed, mac_bring_window_to_front)
2794 (mac_send_window_behind, mac_hide_window, mac_show_window)
2795 (mac_collapse_window, mac_front_non_floating_window)
2796 (mac_active_non_floating_window, mac_activate_window)
2797 (mac_move_window_structure, mac_move_window, mac_size_window)
2798 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
2800 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
2801 (enum mac_menu_kind): Move enum to mactoolbox.c.
2802 (min_menu_id): Move variable to mactoolbox.c.
2803 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
2804 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
2805 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2806 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2807 [TARGET_API_MAC_CARBON]: Likewise.
2808 (XtPointer): Move typedef to macgui.h.
2809 (enum button_type): Move enum to macgui.h.
2810 (widget_value): Move typedef to macgui.h.
2811 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2812 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2813 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2814 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2815 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2816 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2817 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
2818 (popup_activated_flag): Make variable non-static.
2819 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
2820 (add_menu_item, fill_menu, dispose_menus):
2821 Move functions to mactoolbox.c.
2822 (restore_show_help_function, menu_target_item_handler)
2823 (install_menu_target_item_handler, mac_handle_dialog_event)
2824 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
2825 [TARGET_API_MAC_CARBON]: Likewise.
2826 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
2827 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2828 (find_and_call_menu_selection, name_is_separator): Make function
2830 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
2832 (set_frame_menubar): Don't call install_menu_quit_handler.
2833 (menu_item_selection): New variable.
2834 (mac_menu_show): Use create_and_show_popup_menu.
2835 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
2836 selection but set variable menu_item_selection. All uses changed.
2837 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
2838 Call install_menu_quit_handler. Move to mactoolbox.c.
2840 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
2841 (Selection): Move typedef to macgui.h.
2842 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
2843 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
2844 Make variables non-static.
2845 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2846 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
2847 Make functions non-static.
2848 (Vmac_service_selection) [MAC_OSX]: Likewise.
2849 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
2850 (mac_valid_selection_target_p, mac_clear_selection)
2851 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2852 (mac_put_selection_value, mac_selection_has_target_p)
2853 (mac_get_selection_value, mac_get_selection_target_list)
2854 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
2855 Move functions to mactoolbox.c.
2856 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
2858 (copy_scrap_flavor_data, mac_handle_service_event)
2859 (install_service_handler) [MAC_OSX]: Likewise.
2860 (syms_of_macselect) <Vmac_dnd_known_types>:
2861 Use mac_dnd_default_known_types.
2863 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
2864 Move to mactoolbox.c.
2865 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
2866 (Fx_selection_owner_p): Add EXFUN.
2867 (install_window_handler, remove_window_handler, XSetWindowBackground):
2869 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
2870 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
2871 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
2872 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
2873 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
2874 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
2875 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
2876 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
2877 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
2878 (create_and_show_popup_menu, mac_get_selection_from_symbol)
2879 (mac_valid_selection_target_p, mac_clear_selection)
2880 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2881 (mac_put_selection_value, mac_selection_has_target_p)
2882 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
2883 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
2884 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
2885 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2886 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
2887 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2888 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
2889 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2890 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2892 * mactoolbox.c: New file.
2894 2008-04-18 Jason Rumney <jasonr@gnu.org>
2896 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
2898 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2900 * character.c (Fmultibyte_char_to_unibyte):
2901 Return latin1 chars unchanged.
2903 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
2904 relocated if it points to `name'.
2906 2008-04-17 Kenichi Handa <handa@m17n.org>
2908 * data.c (Faset): Allow setting a multibyte character in an
2909 ASCII-only unibyte string.
2911 * lisp.h (STRING_SET_MULTIBYTE): New macro.
2913 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2915 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
2918 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
2920 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
2921 (Fchar_direction): Add usage in the docstring.
2923 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
2925 * keyboard.c (read_key_sequence): Remove always-true checks.
2927 2008-04-14 Jason Rumney <jasonr@gnu.org>
2929 * w32font.c (w32font_open_internal): Set max_bounds.descent in
2930 compatibility struct, for better underline positioning.
2932 2008-04-13 David Hansen <david.hansen@gmx.net>
2934 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
2937 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2939 * m/hp800.h (XUINT, XSET): Remove.
2941 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
2943 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
2946 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2948 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2949 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2951 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2953 * keymap.h (map_keymap_canonical): Declare.
2954 * xmenu.c (single_keymap_panes): Use it.
2956 2008-04-11 Glenn Morris <rgm@gnu.org>
2958 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2959 set the target's value to that of the alias.
2961 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2963 * term.c (set_tty_color_mode): Left over typo.
2965 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
2967 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
2968 only after check for file name handler functions. Signal, when
2969 native functionality is not supported.
2970 (syms_of_fileio): Declare it unconditionally.
2972 2008-04-10 Jason Rumney <jasonr@gnu.org>
2974 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
2975 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2977 * w32.c (logon_network_drive): Also logon to remote drives that
2978 are mapped to drive letters.
2980 2008-04-10 Glenn Morris <rgm@gnu.org>
2982 * xdisp.c (truncate-partial-width-windows): Doc fix.
2984 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
2986 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
2987 Move functions to minibuffer.el.
2988 (syms_of_fileio): Don't declare them.
2990 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2992 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
2993 (syms_of_minibuf): Remove its initialization.
2995 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
2997 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
2999 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
3001 2008-04-09 Jason Rumney <jasonr@gnu.org>
3003 * makefile.w32-in (distclean): Delete makefile too.
3004 (maintainer-clean): New target.
3006 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
3008 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
3009 for new font backend and composite cases.
3011 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
3013 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
3014 Most of the code moved to run_timers.
3015 (do_pending_atimers): Call run_timers.
3016 (run_timers): New function.
3018 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
3021 * process.c (wait_reading_process_output): The same as above.
3023 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3025 * minibuf.c (last_exact_completion): Remove variable.
3026 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
3027 (complete_and_exit_1, complete_and_exit_2)
3028 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3029 (Fdisplay_completion_list, display_completion_list_1)
3030 (Fminibuffer_completion_help, Fself_insert_and_exit)
3031 (Fexit_minibuffer, Fminibuffer_message): Move functions to
3033 (syms_of_minibuf): Remove corresponding initializations.
3035 * keyboard.c (Qdeactivate_mark): New var.
3036 (command_loop_1): Use it to call `deactivate-mark'.
3037 (syms_of_keyboard): Initialize it.
3039 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
3041 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
3042 Don't call set_tty_color_mode.
3043 (store_frame_param): Reset previous_frame rather than call
3045 * term.c (set_tty_color_mode): Rewrite.
3046 * dispextern.h (set_tty_color_mode): New type.
3047 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
3049 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
3051 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
3052 for generic chars, which do not exist any more in emacs-unicode.
3054 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
3056 * coding.c (detect_coding_emacs_mule)
3057 (Ffind_operation_coding_system): Fix typo.
3059 2008-04-08 Jason Rumney <jasonr@gnu.org>
3061 * w32uniscribe.c (SNAME): Extract only symbol name.
3063 * w32font.h (struct w32_metric_cache): New struct.
3064 (w32font_info): Use it.
3065 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
3066 (CACHE_BLOCKSIZE): New constants.
3068 * w32font.c (Qja, Qko, Qzh): New symbols.
3069 (syms_of_w32font): Initialise them.
3070 (font_matches_spec): Use them to filter by language.
3071 (recompute_cached_metrics): Remove function.
3072 (compute_metrics, clear_cached_metrics): New functions.
3073 (w32font_encode_char): Use them to manage metric cache.
3074 (w32font_text_extents): Cache metrics for all glyphs on demand.
3075 Delay converting glyph indices to WORD until needed.
3076 (w32font_open_internal): Initialize metric cache to empty.
3077 (registry_to_w32_charset): Charset should always be a symbol.
3078 (fill_in_logfont, list_all_matching_fonts): Family should
3081 2008-04-06 Jason Rumney <jasonr@gnu.org>
3083 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
3084 Give up if glyph indices not supported. Use uniscribe obtained
3085 ABC widths for individual metrics. Map glyph clusters back to
3086 characters using fClusterStart flag. Return number of glyphs
3087 produced, not chars processed.
3088 (uniscribe_shape): Map char at FROM to current glyph.
3090 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3092 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
3093 Use SetMenuItemHierarchicalMenu.
3095 2008-04-05 Jason Rumney <jasonr@gnu.org>
3097 * image.c (pbm_load): Allow color values up to 65535.
3098 Throw an error if max_color_idx is outside the supported range.
3099 Report an error when image size is invalid.
3100 Read two bytes at a time when raw images have max_color_idx above 255.
3102 2008-04-05 Eli Zaretskii <eliz@gnu.org>
3104 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3105 cFileName a file name that includes `?' characters, use the 8+3
3106 alias in cAlternateFileName instead.
3108 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
3110 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
3111 append "CCL: Quitted" when the CCL program is quitted.
3112 (setup_ccl_program): Initialize ccl->quit_silently to zero.
3114 * ccl.h (struct ccl_program): New member quit_silently.
3116 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
3118 * search.c (compile_pattern_1): Treat non-nil and non-string of
3119 search-spaces-regexp as nil.
3121 * minibuf.c (Fassoc_string): Tweak docstring.
3123 2008-04-05 Eli Zaretskii <eliz@gnu.org>
3125 * dired.c (Ffile_attributes): Support inode numbers wider than 32
3126 bits. Remove ugly WINDOWSNT-specific kludge introduced on
3127 2008-03-14 to force inode be positive.
3129 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
3130 _S_* ones, since we now use our own sys/stat.h.
3131 (stat, fstat): Don't mangle the inode number.
3132 (init_user_info): Don't restrict UID and GID to 0-60000 range.
3134 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
3136 * frame.h (struct frame): Give one more bit to `visible' since we use
3137 values larger than 1 to indicate obscured frames on ttys.
3139 * keymap.c (Qkeymap_canonicalize): New var.
3140 (Fmap_keymap_internal): New fun.
3141 (describe_map): Use keymap-canonicalize.
3143 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
3144 (Fundo_boundary): Set them.
3145 (syms_of_undo): Initialize them.
3146 (record_point): Use them instead of last_point_position*.
3147 (last_undo_buffer): Change type.
3149 2008-04-04 Jason Rumney <jasonr@gnu.org>
3151 * w32font.c (w32font_text_extents): Use font's ascent and descent.
3152 (recompute_cached_metrics): Don't set ascent and descent per char.
3154 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
3155 (uniscribe_check_otf): Add GC protection before consing.
3156 Rearrange loop for counting features.
3158 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3160 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
3161 buffer with byte-size of source buffer.
3163 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
3165 * callint.c (Fcall_interactively): Handle temporary region even
3166 when shift-select-mode is off.
3168 2008-04-03 Jason Rumney <jasonr@gnu.org>
3170 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
3172 2008-04-03 Kenichi Handa <handa@m17n.org>
3174 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
3175 (CATEGORY_MASK_UTF_16): Likewise.
3176 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
3178 (detect_coding): Add null-byte detection for a binary file.
3179 (detect_coding_system): Likewise.
3181 2008-04-03 Jason Rumney <jasonr@gnu.org>
3183 * w32uniscribe.c: New file.
3185 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
3187 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
3189 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
3190 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
3191 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
3192 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
3193 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
3194 (Qphonetic): New symbols.
3195 (syms_of_w32font): Initialize them.
3196 (font_supported_scripts): Use them.
3197 (w32font_list_family): List all charsets.
3198 (w32font_text_extents, recompute_cached_metrics): Fix metric
3200 (w32_enumfont_pattern_entity): Make full_type a DWORD.
3201 Give opentype fonts their own format.
3202 (font_matches_spec): New arguments backend and logfont.
3203 Handle :otf spec for uniscribe backend.
3204 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
3205 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
3207 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
3209 (globals_of_w32fns): Initialize uniscribe font backend.
3211 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
3213 (w32uniscribe.$(O)): New file to build.
3214 (FONT_OBJ): Include w32uniscribe.$(O).
3215 (LIBS): Add uniscribe libraries.
3217 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
3219 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
3221 * callint.c (Vshift_select_mode): New var.
3222 (Finteractive): Document new ^ spec.
3223 (Fcall_interactively): Call handle-shift-selection if the ^ spec
3226 * keyboard.c (Vthis_command_keys_shift_translated): New var.
3227 (command_loop_1): Avoid running the direct display versions of
3228 forward-char and backward-char if shift-selection may occur.
3229 (read_key_sequence): Set Vthis_command_keys_shift_translated if
3230 shift-translation takes place.
3232 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
3233 avoid clobbering by define-minor-mode.
3235 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
3236 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
3238 * syntax.c (Fforward_word): Add ^ interactive spec.
3240 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
3241 (Fscroll_right): Add ^ interactive spec.
3243 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
3245 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
3247 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
3249 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
3251 2008-03-31 Juri Linkov <juri@jurta.org>
3253 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
3255 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
3257 * gtkutil.c (xg_set_geometry): Fix indentation.
3258 (xg_resize_outer_widget): Remove.
3259 (x_wm_size_hint_off): Fix indentation.
3260 (xg_frame_set_char_size): Call flush_and_sync after
3262 (x_wm_set_size_hint): Pass NULL as geometry window to
3263 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
3264 Add menu bar and tool bar height to base height.
3265 (xg_update_frame_menubar, free_frame_menubar)
3266 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3267 (update_frame_tool_bar, free_frame_tool_bar):
3268 Change xg_resize_outer_widget to xg_frame_set_char_size.
3270 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
3272 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
3273 (Fdbus_call_method): New parameter TIMEOUT.
3274 (dbus-send-signal): Optimize UNGCPRO call.
3276 2008-03-29 Juri Linkov <juri@jurta.org>
3278 * window.c (Fdisplay_buffer): Move call to
3279 Vsplit_window_preferred_function out of conditions that check
3280 if window is eligible for vertical splitting.
3281 When Vsplit_window_preferred_function is non-nil, call it and use
3282 its non-nil return value as window. Otherwise, continue doing
3283 vertical splitting using Fsplit_window with arg horflag=nil.
3284 (syms_of_window) <Vsplit_window_preferred_function>: Change the
3285 default value from `split-window' to nil.
3287 2008-03-29 Juri Linkov <juri@jurta.org>
3289 * callint.c (Fcall_interactively): Revert 2008-03-16 change
3290 for interactive code letters 'b' and 'B'.
3292 2008-03-29 Eli Zaretskii <eliz@gnu.org>
3294 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
3297 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3299 * keyboard.c (pending_funcalls): New var.
3300 (timer_check): Run it.
3301 (syms_of_keyboard): Initialize it.
3302 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
3303 (Vdelete_terminal_functions): New vars.
3304 (syms_of_terminal): Initialize them.
3305 (Fdelete_terminal): Run delete-terminal-functions.
3306 * xdisp.c (safe_eval): Rewrite.
3307 (safe_call2): New fun.
3308 * frame.c (Qdelete_frame_functions): New var.
3309 (syms_of_frame): Initialize it.
3310 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
3311 * lisp.h (safe_call2, pending_funcalls): Declare.
3313 2008-03-28 Andreas Schwab <schwab@suse.de>
3315 * indent.c (Fmove_to_column): Move declaration before statements.
3317 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
3319 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
3320 (struct frame): Use bit fields for boolean vars.
3322 * process.c (server_accept_connection): Simplify naming.
3323 (emacs_get_tty_pgrp): Use SDATA.
3325 * coding.c (decode_coding_object): Fix last change.
3327 2008-03-27 Jason Rumney <jasonr@gnu.org>
3329 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
3331 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
3333 * charset.c (Fdefine_charset_internal): Change the way of
3334 registering charsets in Vcharset_order_list.
3335 (syms_of_charset): Make the charset `eight-bit' supplementary.
3337 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
3339 * regex.c (EXTEND_BUFFER): Change order of pointer addition
3340 operations, to avoid having the difference between pointers
3343 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3345 * indent.c (check_display_width): New fun.
3346 (scan_for_column): Use it.
3348 * data.c (syms_of_data): Mark most-positive-fixnum and
3349 most-negative-fixnum as constants.
3351 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
3353 * indent.c (scan_for_column): Extract from current_column_1.
3354 Merge with the same code from Fmove_to_column.
3355 (current_column_1, Fmove_to_column): Use it.
3357 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3359 * keymap.c (map_keymap_internal): New fun.
3360 (map_keymap): Use it.
3361 (Fmap_keymap_internal): New fun.
3362 (Fmap_keymap): Remove left-out test from before make_save_value.
3364 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
3366 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
3369 * process.h (struct Lisp_Process): Remove filter_multibyte.
3370 * process.c (QCfilter_multibyte): Remove.
3371 (setup_process_coding_systems): Don't use filter_multibyte.
3372 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
3373 (read_process_output): Don't adjust multibyteness to filter_multibyte.
3374 (Fset_process_filter_multibyte): Change the coding-system to
3375 approximate the previous behavior.
3376 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
3379 * coding.c (decode_coding_object): When not decoding into a buffer,
3380 obey the coding system's preference of (uni|multi)byte.
3382 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3384 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
3385 every char is changed and has a different byte-length.
3386 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
3387 Fix int -> EMACS_INT.
3389 2008-03-23 David Hansen <david.hansen@gmx.net>
3391 * dbusbind.c (xd_read_message): Remove extra copying of message
3392 strings. Check for NULL `interface' or `member'.
3394 2008-03-22 Eli Zaretskii <eliz@gnu.org>
3396 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3397 cFileName a file name that includes `?' characters, use the 8+3
3398 alias in cAlternateFileName instead.
3400 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
3402 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
3404 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3406 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
3407 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
3408 work on current_buffer only instead (that was already the case
3409 for some of the code anyway).
3410 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
3411 (temp_set_point, temp_set_point_both): Use EMACS_INT.
3412 (SET_PT, SET_PT_BOTH): Adjust.
3413 * intervals.h (set_point, temp_set_point, set_point_both)
3414 (temp_set_point_both): Remove redundant declarations.
3416 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3418 * fileio.c (Finsert_file_contents):
3419 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
3420 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
3421 when buffer != current_buffer anyway.
3423 2008-03-20 Andreas Schwab <schwab@suse.de>
3425 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
3428 2008-03-19 Jason Rumney <jasonr@gnu.org>
3430 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
3431 (syms_of_w32fns): Initialize them.
3432 (HOURGLASS_ID): New constant.
3433 (x_window_to_frame): Don't check hourglass_window.
3434 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
3435 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
3436 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
3437 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
3438 Only change the cursor if hourglass is not active.
3439 (Fx_create_frame): Initialize frame's current_cursor.
3440 (hourglass_atimer): Remove.
3441 (hourglass_started): New function.
3442 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
3443 (show_hourglass): Adapt to w32, changing argument to frame.
3445 * w32term.h (struct w32_output): Remove hourglass_window.
3448 * eval.c (call_debugger, Fsignal):
3449 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
3450 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
3451 (Fexecute_extended_command, cancel_hourglass_unwind):
3452 * minibuf.c (read_minibuf):
3453 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
3455 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3457 * window.c (run_funs): New fun.
3458 (run_window_configuration_change_hook): Use it to run the buffer-local
3459 and the global part of the hook.
3461 * xdisp.c (format_mode_line_unwind_data): Add window argument.
3462 (unwind_format_mode_line): Restore selected window.
3463 (x_consider_frame_title, Fformat_mode_line): Set selected window.
3465 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3467 * editfns.c (Fchar_equal): Check they are valid characters.
3469 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
3471 2008-03-17 Andreas Schwab <schwab@suse.de>
3473 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
3476 * lisp.h (Fbuffer_list): Declare.
3478 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
3480 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
3481 handlebox_widget is != 0.
3483 2008-03-16 Juri Linkov <juri@jurta.org>
3485 * callint.c (Fcall_interactively): For interactive code letters
3486 'b' and 'B' put the buffer list into the list of default "future"
3487 values of the minibuffer.
3489 2008-03-16 Andreas Schwab <schwab@suse.de>
3491 * keyboard.c (read_key_sequence): Fix downcasing of letters with
3494 * regex.c (re_match_2_internal): Correct matching of a charset
3495 against latin-1 characters.
3497 2008-03-16 Kenichi Handa <handa@m17n.org>
3499 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
3500 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
3501 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
3502 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
3503 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
3504 CHAR_STRING_ADVANCE.
3505 (produce_chars): Fix for the case that the source and the
3506 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
3507 instead of CHAR_STRING_ADVANCE.
3508 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
3509 STRING_CHAR_ADVANCE.
3511 2008-03-15 Andreas Schwab <schwab@suse.de>
3513 * regex.c (re_match_2_internal): Correct matching of eight bit
3514 characters in unibyte strings.
3516 2008-03-15 Martin Rudalics <rudalics@gmx.at>
3518 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
3519 at end of range when it coincides with the end of the buffer.
3521 2008-03-14 Eli Zaretskii <eliz@gnu.org>
3523 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
3525 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
3527 2008-03-14 Jason Rumney <jasonr@gnu.org>
3529 * editfns.c (initial_tz): New variable.
3530 (syms_of_editfns): Initialize it.
3531 (Fset_time_zone_rule): Set it when first called.
3532 Use it when TZSTRING is nil.
3534 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
3535 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
3536 (monitor_from_point_fn, get_monitor_info_fn): New globals.
3537 (globals_of_w32fns): Initialize them.
3538 (compute_tip_xy): Use them to position tooltips.
3540 2008-03-14 Glenn Morris <rgm@gnu.org>
3542 * emacs.c (main): Revert previous change.
3543 (standard_args): Revert -internal-script back to -scriptload,
3544 and remove the long-option form.
3546 2008-03-13 Glenn Morris <rgm@gnu.org>
3548 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
3549 Remove option -enable-font-backend.
3551 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3553 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
3555 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
3557 * xterm.c (x_connection_closed): For GTK: If this is the last
3558 terminal just exit without closing the display.
3560 2008-03-11 Jason Rumney <jasonr@gnu.org>
3562 * w32font.c (w32font_full_name): Use floor to round.
3564 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
3566 * sound.c (alsa_configure): Declare vol at beginning of block.
3568 * fontset.c (Ffontset_info): Remove extra semicolon.
3570 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3572 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
3573 size of resulting string.
3575 2008-03-10 Jason Rumney <jasonr@gnu.org>
3577 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
3579 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3581 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
3582 Don't pretend as if characters with display property haven't been
3583 consumed for string-replacing-string case.
3585 2008-03-08 Kim F. Storm <storm@cua.dk>
3587 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
3588 (get_next_display_element, next_element_from_string)
3589 (next_element_from_ellipsis, next_element_from_buffer): Use it.
3591 2008-03-08 Andreas Schwab <schwab@suse.de>
3593 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
3595 2008-03-06 Jason Rumney <jasonr@gnu.org>
3597 * w32font.c (w32_registry): Take font_type argument. Use ANSI
3598 when charset not specified. Only translate ANSI to unicode when
3599 font_type is truetype.
3600 (w32font_coverage_ok): New function.
3601 (add_font_entity_to_list): Use it to filter unsuitable fonts.
3603 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
3605 * lread.c (Fread_char): Resolve modifiers.
3606 (Fread_char_exclusive): Likewise.
3608 * character.c (char_resolve_modifier_mask): New function.
3609 (char_string): Use char_resolve_modifier_mask.
3610 (Fchar_resolve_modifiers): New function.
3611 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
3614 2008-03-04 Jason Rumney <jasonr@gnu.org>
3616 * makefile.w32-in: Always include w32font.c in the build.
3617 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
3619 2008-03-04 Andreas Schwab <schwab@suse.de>
3621 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
3622 (versionclean): Likewise.
3624 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
3626 * .cvsignore: Add oo.
3628 2008-03-03 Andreas Schwab <schwab@suse.de>
3630 * coding.c (decode_coding_object): Inhibit gap shrinking while
3633 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
3635 * w32term.c: Remove unused include "gnu.h".
3636 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
3638 * gnu.h: Rename to ...
3639 * emacs-icon.h: ... this.
3640 * xterm.c: Use emacs-icon.h instead of gnu.h.
3641 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
3643 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
3645 * w32font.c: Include math.h.
3647 2008-03-03 Jason Rumney <jasonr@gnu.org>
3649 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
3650 Compute options separately.
3651 (w32font_open_internal): Set glyph_idx before caching metrics.
3653 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
3654 Define if system headers don't.
3655 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
3656 (w32font_encode_char): Don't declare here.
3658 * w32font.c (Quniscribe, QCformat): New symbols.
3659 (syms_of_w32font): Define them.
3660 (w32font_has_char): Indicate uncertainty.
3661 (w32font_encode_char): Encode as glyph point. Make static.
3662 (recompute_cached_metrics): New function.
3663 (w32font_open_internal): Use it. Set font to use glyph points
3664 initially. Set format based on type of font.
3665 (w32font_text_extents, w32font_draw): Optionally use glyph points.
3666 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
3667 on it. Set format based on information available here.
3668 (add_font_entity_to_list): Identify backend based on opentype_only.
3670 2008-03-02 Andreas Schwab <schwab@suse.de>
3672 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
3674 * coding.c (decode_coding_big5, produce_chars):
3675 Fix typos in last change.
3677 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
3681 2008-03-02 Kenichi Handa <handa@m17n.org>
3683 * coding.c (decode_coding_utf_8): When eol-type of CODING is
3684 `dos', don't decode '\r' if that is the last in the source.
3685 (decode_coding_utf_16, decode_coding_emacs_mule)
3686 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3687 (decode_coding_raw_text, decode_coding_charset): Likewise.
3688 (produce_chars): Don't decode EOL here. Use EMACS_INT.
3690 2008-03-01 Jason Rumney <jasonr@gnu.org>
3692 * w32font.c (w32font_full_name): Report point size for scalable fonts.
3694 2008-03-01 Kim F. Storm <storm@cua.dk>
3696 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
3698 2008-03-01 Jason Rumney <jasonr@gnu.org>
3700 * w32font.c (w32font_full_name): New function.
3701 (w32font_open_internal): Use it.
3703 2008-03-01 Kim F. Storm <storm@cua.dk>
3705 * dispnew.c (line_draw_cost): Fix invalid glyph check.
3707 2008-03-01 Jason Rumney <jasonr@gnu.org>
3709 * font.c (font_unparse_fcname): Increase len when style is a symbol.
3711 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
3713 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
3714 xg_frame_resized when the event is for the edit widget.
3716 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
3718 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
3720 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
3721 operations on widgets here. Just set frame size if needed.
3722 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
3723 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
3724 (x_wm_set_size_hint): Set size hints on the edit widget only, not
3726 (xg_create_tool_bar): Move attachement of the tool bar to
3727 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
3728 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
3730 2008-03-01 Jason Rumney <jasonr@gnu.org>
3732 * w32fns.c (w32_msg_pump): Disable debug code.
3734 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3736 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
3738 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
3740 * xdisp.c (next_overlay_string): Don't set
3741 overlay_strings_at_end_processed_p if we're currently reading from
3744 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
3746 * xdisp.c (get_overlay_strings_1): Fix typo.
3748 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
3750 * xdisp.c (get_overlay_strings_1): Add missing argument type.
3752 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
3754 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
3756 * xdisp.c (display_mode_element): Cancel the previous change.
3757 (decode_mode_spec): Likewise.
3758 (handle_auto_composed_prop): Don't make composition if it->string
3761 2008-02-27 Kim F. Storm <storm@cua.dk>
3763 * lisp.h (GLYPH): Change type from int to struct with separate char
3764 and face_id members.
3765 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
3766 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
3767 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
3768 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
3769 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
3770 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
3771 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
3772 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
3773 handle new Lisp glyph code encoding, either an integer or a cons.
3775 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
3776 (GLYPH_ALIAS): Delete.
3777 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
3778 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
3779 (GLYPH_FROM_CHAR): Replace macro by ...
3780 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
3782 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
3783 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
3784 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
3785 (GLYPH_INVALID_P): New macro.
3786 (spec_glyph_lookup_face): Update prototype.
3788 * dispnew.c (line_draw_cost): Adapt to new glyph type.
3789 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
3790 new glyph code encoding.
3791 (spec_glyph_lookup_face): No return value; update passed glyph instead.
3792 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
3794 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3795 Adapt to new glyph type and new glyph code encoding.
3797 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
3799 * indent.c (current_column, current_column_1, Fmove_to_column)
3800 (compute_motion): Adapt to new glyph code encoding.
3802 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
3804 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
3806 * process.c (wait_reading_process_output): Check for window
3807 changes caused by timers.
3808 Suggested by Johan Bockgård.
3810 2008-02-27 Glenn Morris <rgm@gnu.org>
3812 * emacs.c (USAGE1): Add `--disable-font-backend'.
3814 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
3816 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
3817 is made to the buffer.
3819 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3821 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
3822 (face_at_string_position):
3823 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3824 (face_at_string_position):
3825 * xdisp.c (display_string, next_overlay_change):
3826 * buffer.h (overlays_at):
3827 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
3830 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
3832 * editfns.c (Fformat): Doc fix.
3834 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
3836 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
3837 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
3838 (Ffont_otf_alternates, Fquery_font): Doc fixes.
3840 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3842 * buffer.c (Fbuffer_swap_text): New function.
3843 (syms_of_buffer): Defsubr it.
3845 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
3847 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
3849 2008-02-25 Jason Rumney <jasonr@gnu.org>
3851 * w32font.c (w32font_draw): Draw one character at a time when padding.
3853 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3855 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
3856 Handle a nil arg. Use run_window_configuration_change_hook.
3857 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
3858 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
3859 Use run_window_configuration_change_hook.
3861 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3863 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
3866 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3868 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
3869 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
3870 if the glyph in the font is zero pixel with.
3872 * dispextern.h (struct glyph_string): New member padding_p.
3874 * w32font.c (w32font_draw): Pay attention to s->padding_p.
3876 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
3878 * xfont.c (xfont_draw): Pay attention to s->padding_p.
3880 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
3882 * font.c: If the font driver doesn't have `shape' function, return Qnil.
3884 2008-02-25 Jason Rumney <jasonr@gnu.org>
3886 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
3888 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
3890 Allow fine-grained image-cache flushing.
3891 * dispextern.h (struct image): Add `dependencies' field.
3892 (clear_image_caches): Change arg to Lisp_Object.
3893 * image.c (make_image): Initialize `dependencies' field.
3894 (clear_image_cache): Change arg to allow fine-grained flushing.
3895 Perform the flush even if image-cache-eviction-delay is nil.
3896 (clear_image_caches): Change arg to Lisp_Object.
3897 (Fclear_image_cache): Expand meaning of the argument.
3898 (mark_image): Mark `dependencies' field.
3899 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
3900 (lface_hash): Use XHASH rather than XFASTINT.
3901 (face_at_buffer_position): Fix int -> EMACS_INT position.
3902 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
3903 (select_frame_for_redisplay): Remove code duplication.
3904 (redisplay_internal): Adapt arg to call to clear_image_caches.
3906 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
3911 * s/vms5-5.h: Remove, unused.
3917 * m/mips4.h: Remove files for obsolete systems.
3930 * s/usg5-3.h: Remove references to obsolete variables.
3932 * s/irix5-0.h: Remove, move all the contents ...
3933 * s/irix6-5.h: ... here. Simplify.
3934 * config.in: Regenerate.
3936 2008-02-24 Jason Rumney <jasonr@gnu.org>
3938 * w32term.c (x_draw_glyph_string_background): Clear the background
3939 manually when cleartype is in use.
3940 (x_draw_glyph_string_foreground): Draw text transparently when
3941 cleartype is in use.
3943 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
3944 a font into it unless we have to.
3946 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3948 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3949 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
3951 2008-02-18 Jason Rumney <jasonr@gnu.org>
3953 * w32fns.c (Fw32_shell_execute): Encode parameters.
3955 2008-02-09 Eli Zaretskii <eliz@gnu.org>
3957 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
3959 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
3961 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
3963 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3965 * xterm.c (x_set_offset): Don't change the gravity if
3966 CHANGE_GRAVITY is -1.
3968 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
3970 * fileio.c (auto_save_error_occurred): New var.
3971 (auto_save_error): Set it.
3972 (Fdo_auto_save): Don't overwrite the error message if an auto-save
3975 2008-02-23 Eli Zaretskii <eliz@gnu.org>
3977 * w32.c (globals_of_w32): Add initializations for
3978 g_b_init_get_sid_sub_authority and
3979 g_b_init_get_sid_sub_authority_count.
3981 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3983 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
3984 (font_parse_xlfd): Use them for sanity check.
3985 (Finternal_set_font_style_table): Make sure the table is bijective.
3987 Consolidate the image_cache to the terminal struct.
3988 * termhooks.h (P_): Remove redundant def.
3989 (struct terminal): New field `image_cache'.
3990 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
3991 of FRAME_X_IMAGE_CACHE.
3992 * xterm.h (struct x_display_info): Remove image_cache field.
3993 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3994 * w32term.h (struct w32_display_info): Remove image_cache field.
3995 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3996 * macterm.h (struct mac_display_info): Remove image_cache field.
3997 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3998 * xterm.c (x_term_init):
3999 * w32term.c (w32_term_init):
4000 * macterm.c (mac_term_init): Set the image_cache in the terminal.
4001 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
4002 Remove declarations.
4003 (clear_image_caches, mark_image_cache): New declarations.
4004 * xfaces.c (clear_face_cache):
4005 * xdisp.c (redisplay_internal): Use clear_image_caches.
4006 * image.c (clear_image_cache): Don't check that a frame is on
4007 a window-system before checking if it shares the same cache.
4008 (clear_image_caches): New function.
4009 (Fclear_image_cache): Use it.
4010 (mark_image): Move from allo.c.
4011 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
4012 * alloc.c (mark_image, mark_image_cache): Move to image.c.
4013 (mark_object): Don't call mark_image_cache for frames.
4014 (mark_terminals): Call mark_image_cache.
4016 * lisp.h (Fdelete_terminal): Declare.
4018 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
4019 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
4020 wrong_type_argument.
4022 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
4024 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4025 malayalam.el, and tamil.el. Add sinhala.el.
4027 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
4029 * xterm.c (x_connection_closed): Consolidate identical tests.
4030 (x_delete_terminal): Don't crash if called via x_connection_closed.
4032 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
4034 * xdisp.c (decode_mode_spec): New arg string.
4035 (display_mode_element): Adjust for the above change.
4037 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4039 * callint.c (Fcall_interactively): Use AREF.
4041 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4043 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
4045 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
4047 * xfns.c (Fx_show_tip): Set string to " " if empty.
4049 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
4051 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
4054 2008-02-17 Kenichi Handa <handa@m17n.org>
4056 * ftfont.c (ftfont_shape): Return Lispy number.
4058 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
4060 (Finternal_set_font_selection_order): Call font_update_sort_order
4061 only when enable_font_backend is set.
4062 (realize_x_face): Set face->font_info to that of default face only
4063 when enable_font_backend is set.
4065 * xdisp.c (handle_composition_prop): Set it->c to the fist
4066 characte of the composed region.
4067 (fill_composite_glyph_string): Set base_face->font_info to
4068 s->font_info. Get a face for ascii from base_face->ascii_face.
4069 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
4070 with a face already decided.
4071 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
4073 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
4074 call font_prepare_composition unconditionally.
4076 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
4078 * xterm.h (struct x_display_info): New member font.
4080 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
4081 (x_set_mouse_face_gc, x_new_font): Likewise.
4082 (x_term_init): Setup display_info->font.
4083 (x_delete_terminal): Free display_info->font.
4085 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
4087 * ftxfont.c (ftxfont_default_fid): Delete it.
4088 (ftxfont_open): Set xfont->fid to 0.
4089 (ftxfont_end_for_frame): Clear data specific to the frame and the
4092 * xftfont.c (xftfont_default_fid): Delete it.
4093 (xftfont_open): Set xfont->fid to 0.
4095 * fontset.c (FONTSET_OBJLIST): New macro.
4096 (fontset_find_font): Update font-object list of the fontset.
4097 (free_realized_fontset): New function.
4098 (free_face_fontset): Call free_realized_fontset.
4099 (Ffont_info): Call font_close_object only when enable_font_backend
4102 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
4103 [HAVE_NTGUI]: Include w32term.h.
4104 [MAC_OS]: Include macterm.ch.
4105 (font_otf_ValueRecord): Use make_number.
4106 (font_finish_cache): Fix handling of reference count.
4107 (font_clear_cache): Update num_fonts.
4108 (font_open_entity): Update smallest_char_width and
4109 smallest_font_height of the frame.
4110 (font_close_object): Update num_fonts.
4111 (Fclear_font_cache): Fix finding the target cache data.
4113 2008-02-16 Glenn Morris <rgm@gnu.org>
4115 * fontset.c (Finternal_char_font): Fix compilation warning.
4117 2008-02-16 Eli Zaretskii <eliz@gnu.org>
4119 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
4120 instead of char arrays. Enlarge the size of array passed to
4121 get_token_information.
4123 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
4126 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
4128 * .gdbinit: Don't set `args', it breaks gdb --args.
4130 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
4132 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
4133 within a narrowed buffer.
4135 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
4137 * coding.c (decode_coding_object, encode_coding_object):
4138 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
4140 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4142 * coding.c (coding_set_destination): Use BEG_BYTE rather than
4144 (detect_coding_system):
4145 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
4146 (string_char_to_byte, string_byte_to_char, insert_from_gap):
4147 * insdel.c (insert_from_gap):
4148 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
4149 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
4150 (string_to_multibyte):
4151 * character.c (chars_in_text, multibyte_chars_in_text):
4152 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
4154 * character.h (FETCH_STRING_CHAR_ADVANCE)
4155 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
4156 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
4157 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
4159 * casefiddle.c (casify_region): Only call after-change and composition
4160 functions on the part of the region that was changed.
4162 * keyboard.c (read_avail_input):
4163 * frame.c (Fdelete_frame): Call Fdelete_terminal.
4165 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4167 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
4168 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
4170 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
4172 * w32menu.c (push_submenu_start, push_submenu_end)
4173 (push_left_right_boundary, push_menu_pane, push_menu_item):
4174 * keyboard.c (read_key_sequence): Don't pass args with side effects
4175 to AREF, it fails when compiling with -DENABLE_CHECKING.
4177 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
4179 * Makefile.in (${lispsource}international/charprop.el):
4182 * search.c (boyer_moore): Fix incorrect synching of the trunk and
4185 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4187 * terminal.c (Fdelete_terminal): Clean up the `force' path.
4189 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4191 * frame.c (Qnoelisp): New symbol.
4192 (syms_of_frame): Initialize it.
4193 (Fdelete_frame): Use it to distinguish a mere `force' passed from
4194 someharmles Elisp code, from a strong `force' from x_connection_closed.
4195 * frame.h (Qnoelisp): Declare.
4196 * xterm.c (x_connection_closed): Pass `noelisp'.
4198 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
4199 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
4200 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
4201 rather than `int' for the type of `type'.
4203 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
4205 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
4207 * Makefile.in (GNUC): Remove support for gcc-1.x.
4209 2008-02-10 Richard Stallman <rms@gnu.org>
4211 * lisp.h (ASET): Use AREF, not ASLOT.
4213 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4215 * lisp.h (ASET): Check bounds.
4217 2008-02-10 Glenn Morris <rgm@gnu.org>
4219 * buffer.c (mode-name): Doc fix.
4221 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4238 * xterm.c: Remove code that deals with obsolete variables.
4240 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
4242 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
4243 nothing else needs it anymore.
4245 2008-02-09 Eli Zaretskii <eliz@gnu.org>
4247 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
4248 instead of unibyte_char_to_multibyte.
4250 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4252 * s/gnu-linux.h: Remove commented out code.
4254 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
4256 * Makefile.in: Update what RMS says about using autoconf.
4257 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
4258 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
4259 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
4260 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
4262 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4264 * keymap.c (Fkey_description): Move side effect outside of macro call.
4266 * xfaces.c (Finternal_make_lisp_face):
4267 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
4269 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
4270 (syms_of_fontset): Use ASET.
4272 * fns.c (concat): Move side effect outside of macro call.
4273 (hash_clear): Use ASET.
4275 2008-02-08 Richard Stallman <rms@gnu.org>
4277 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
4278 If FORCE, and frame has a surrogate minibuffer for another frame,
4279 delete the other frame first.
4281 2008-02-07 Timo Savola <timo.savola@iki.fi>
4283 * xterm.c (x_detect_focus_change): Handle embed client message.
4284 (handle_one_xevent): Ditto.
4285 (handle_one_xevent): If embedded and we get a button press/release,
4287 (xembed_set_info, xembed_send_message): New functions.
4288 (x_make_frame_visible): Call xembed_set_info if embedded.
4289 (x_make_frame_invisible): Call xembed_set_info if embedded.
4290 (x_term_init): Initialize Xatom_XEMBED.
4291 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
4292 (x_iconify_frame): Ditto.
4294 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
4295 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
4296 (enum xembed_modifier, enum xembed_accelerator): New.
4297 (xembed_set_info, xembed_send_message): Declare.
4298 (FRAME_X_EMBEDDED_P): New.
4300 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
4303 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
4304 window ID of a frame.
4305 (x_window): Reparent frame if embedded.
4306 (Fx_create_frame): Don't set border width if embedded.
4308 * emacs.c (USAGE3): Add --parent-id.
4309 (standard_args): Ditto.
4311 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
4313 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
4315 2008-02-07 Jim Meyering <meyering@redhat.com>
4317 Use "do...while (0)", not "if (1)...else" in macro definitions.
4318 The latter provokes a warning from gcc about the empty else, when
4319 followed by ";". Also, without that trailing semicolon, it would
4320 silently swallow up any following statement.
4321 * syntax.h (SETUP_SYNTAX_TABLE)
4322 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
4323 * buffer.h (DECODE_POSITION): Likewise.
4324 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
4325 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
4326 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
4327 (FETCH_CHAR_ADVANCE): Likewise.
4328 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
4330 2008-02-07 Jim Meyering <meyering@redhat.com>
4332 * lread.c [lint]: Don't include <sys/inode.h>.
4334 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
4336 * xselect.c (x_handle_dnd_message):
4337 * xmenu.c (digest_single_submenu, xmenu_show):
4338 * xdisp.c (with_echo_area_buffer_unwind_data)
4339 (format_mode_line_unwind_data, unwind_format_mode_line)
4341 * eval.c (Ffetch_bytecode):
4342 * doc.c (store_function_docstring):
4343 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
4344 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
4345 * buffer.c (add_overlay_mod_hooklist): Use ASET.
4347 2008-02-07 Kenichi Handa <handa@m17n.org>
4349 * ftxfont.c (ftxfont_open): Don't set
4350 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
4352 * ftfont.c (ftfont_open): Fix previous change.
4354 2008-02-06 Jason Rumney <jasonr@gnu.org>
4356 * w32font.c (w32font_text_extents): Fill in lbearing metric.
4357 Use cached metrics for ASCII characters.
4358 (w32font_open_internal): Don't set font's owning_frame.
4359 Cache metrics for ASCII characters.
4361 * w32font.h (struct w32font_info): Add ascii_metrics.
4362 Remove owning_frame.
4364 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
4366 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
4369 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
4371 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
4373 * charset.c (syms_of_charset): Set QCtest and Qeq.
4375 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
4377 * process.c (Fstart_process):
4378 * callproc.c (Fcall_process): Handle the case where
4379 Funhandled_file_name_directory returns nil.
4381 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
4382 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
4383 * font.c (check_gstring): Use them and AREF to access the vector before
4384 we know it's really a gstring.
4385 (Ffont_shape_text): Fix typo.
4386 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
4388 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
4391 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
4393 2008-02-05 Jason Rumney <jasonr@gnu.org>
4395 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
4396 Set smallest_font_height and smallest_char_width in display info.
4398 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
4400 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
4402 2008-02-05 Miles Bader <miles@gnu.org>
4404 * xfaces.c (get_lface_attributes, merge_named_face)
4405 (lookup_named_face, lookup_derived_face, realize_named_face):
4406 Revert 2008-02-01 change by cyd@stupidchicken.com.
4408 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
4410 * fontset.c (Ffontset_info): Handle the case of inhibitting the
4412 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
4414 2008-02-04 Jason Rumney <jasonr@gnu.org>
4416 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
4418 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
4420 2008-02-03 Jason Rumney <jasonr@gnu.org>
4422 * makefile.w32-in (OBJ1): Include font.o here.
4423 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
4425 2008-02-02 Jason Rumney <jasonr@gnu.org>
4427 * makefile.w32-in (temacs): Bump EMHEAP to 21.
4429 2008-02-01 Jason Rumney <jasonr@gnu.org>
4431 * s/cygwin.h: Define VIRT_ADDR_VARIES.
4433 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
4435 2008-02-01 Andreas Schwab <schwab@suse.de>
4437 * Makefile.in (shortlisp, lisp): Update for rename of
4438 ../lisp/language/myanmar.el.
4440 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
4442 * xfaces.c (get_lface_attributes): Delete function.
4443 (merge_named_face, lookup_named_face, lookup_derived_face)
4444 (realize_named_face): Call lface_from_face_name directly, and use
4445 the fact that merge_face_vectors does not alter its FROM argument.
4447 2008-02-01 Jason Rumney <jasonr@gnu.org>
4449 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
4450 input in the default locale. Handle non-Unicode multibyte input.
4452 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4454 * fontset.c (reorder_font_vector): Exclude nil elements from the
4455 font group. Don't try multiple fonts.
4456 (fontset_font): Adjust for the above change.
4457 (Finternal_char_font): Return nil if the found font doesn't
4458 contain the character ch.
4460 * Makefile.in (lisp, shortlisp): Add cham.el.
4462 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4464 * font.h (FONTP): Make it return 1 also for a font-object.
4466 * .gdbinit (xfontset): New function.
4468 * font.c (font_find_for_lface): Check if the character C is
4469 supported or not only for the first font.
4471 * fontset.c (reorder_font_vector): Fix typo.
4472 (fontset_find_font): Don't add a font-spec specifying a script.
4473 Use 0 (not Qt) for the indication of empty font-group. Change the
4474 format of RFONT-DEF. Return Qt if no font in the font-group
4475 support the character.
4476 (fontset_font): Adjust for the above change. If no font was
4477 found the character, remember that.
4478 (face_for_char): Adjust for the change of RFONT-DEF.
4479 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
4480 no font for the target.
4481 (Finternal_char_font): Adjust for the change of RFONT-DEF.
4483 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4485 * font.c (font_load_for_face): Handle the case that the font in
4486 face->lface is a string.
4488 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4490 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
4492 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4494 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
4495 Fix previous change. If the frame is not on a window system,
4498 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4500 * coding.c (decode_coding_object, encode_coding_object): Adjust
4501 marker positions after conversion.
4503 * lisp.h (struct Lisp_Marker): New member need_adjustment.
4505 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4507 * font.c (font_find_for_lface): Fix the handling of the return
4508 value of font_has_char.
4509 (Ffont_shape_text): Fix previous change.
4511 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
4512 (fontset_ref_and_range): Delete it.
4513 (fontset_find_font): Call char_table_ref_and_range instead of
4514 FONTSET_REF_AND_RANGE.
4515 (make_fontset): Don't setup font groups of Latin here.
4516 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
4517 (new_fontset_from_font): Make the specified font the default for
4518 all Latin characters.
4520 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4522 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
4523 is on a window system before accessing the fontset of the frame.
4525 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4527 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
4529 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
4530 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
4532 * font.c (Ffont_shape_text): If the font driver doesn't have a
4533 shaper function, make zero-width glyphs to have at least one-pixel
4534 width. Fix setting of `to' field of glyphs.
4536 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4538 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
4541 * font.h (struct font_driver): Improve docstring of member `shape'.
4543 2008-02-01 Kenichi Handa <handa@m17n.org>
4545 * composite.c (syms_of_composite): Fix docstring of
4546 auto-composition-function.
4548 * font.h (LGLYPH_SIZE): New macro.
4550 * font.c (Ffont_fill_gstring): Stop filling when a character not
4551 supported by the font is found.
4552 (Ffont_shape_text): When a shape callback function returns nil,
4553 try at most two more times with larger gstring.
4554 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
4556 * xdisp.c (handle_auto_composed_prop): Change the argument to
4557 auto-composition-function.
4559 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
4560 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
4561 Lispy glyph and store it in the lgstring.
4563 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
4565 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
4567 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4569 * font.c (Ffont_shape_text): Avoid unnecessary composition.
4571 * fontset.c (Vfont_encoding_charset_alist): New variable.
4572 (syms_of_fontset): DEFVAR it.
4573 (reorder_font_vector, fontset_find_font): Optimize for the case of
4574 no need of reordering.
4575 (face_for_char): Map the charset property by
4576 Vfont_encoding_charset_alist.
4578 2008-02-01 Jason Rumney <jasonr@gnu.org>
4580 * w32font.c (logfonts_match): Don't check adstyle here.
4581 (font_matches_spec): Check here against physical font instead.
4582 (add_font_entity_to_list): Avoid some substitutions.
4584 * font.c (font_parse_fcname): Default weight and slant to normal.
4585 (font_score): Prefer normal fonts if weight or slant unspecified.
4586 (font_score) [WINDOWSNT]: Scale weight difference down to closer
4587 match freetype scores.
4589 2008-02-01 Jason Rumney <jasonr@gnu.org>
4591 * w32font.c (w32font_text_extents): Don't use the frame stored in the
4592 font, as it may have been deleted.
4593 (w32_enumfont_pattern_entity): Map generic family to adstyle using
4594 most common hyphenless variation.
4595 (logfonts_match): Check generic family.
4596 (font_matches_spec): Don't check generic family here.
4597 (fill_in_logfont): Set generic family based on adstyle.
4599 * w32font.h (w32font_get_cache): Update declaration.
4601 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4603 * ftfont.c (ftfont_get_cache): Adjust the argument type.
4605 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
4606 If none of the new drivers are available, call font_update_drivers
4607 with the old drivers.
4609 * w32font.c (w32font_get_cache): Adjust the argument type.
4611 * xfont.c (xfont_get_cache): Adjust the argument type.
4613 * font.h (struct font_driver): Change argument type of get_cache.
4615 * xftfont.c (xftfont_start_for_frame): Delete prototype.
4617 * font.c (Ffont_get): Fix arguments to Fassoc.
4618 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
4619 (font_clear_cache): New function.
4620 (font_list_entities, font_matching_entity): Use font_get_cache.
4621 (font_update_drivers): Call font_clear_cache when finishing a driver.
4623 * fontset.c (fontset_find_font): Fix previous change.
4625 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4627 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
4628 dpyinfo->font_table.
4629 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
4630 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
4632 * font.c (font_at): Handle the case that the arg C is negative.
4633 Handle the unibyte case.
4634 (Ffont_at): Call font_at with the arg C -1.
4636 * xdisp.c (handle_auto_composed_prop): Don't get a character at
4637 the position here, and call font_at with the arg C -1.
4638 Don't check the range of the existing composition at the point.
4640 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4642 * fontset.c (fontset_add): New args charset_id and family.
4644 (load_font_get_repertory, fontset_find_font): Assume that
4645 font_spec is always a font-spec object.
4646 (Fset_fontset_font): Always store a font-spec object in a fontset.
4648 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
4649 instead of get_property_and_range.
4651 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4653 * xftfont.c (struct xftfont_info): Delete the member ft_face.
4654 (xftfont_open): Don't keep locking face.
4655 (xftfont_close): Don't unlock face.
4656 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
4658 * fontset.c (fontset_find_font): Don't prefer a font of
4659 supplementary charset.
4661 2008-02-01 Kenichi Handa <handa@m17n.org>
4663 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
4664 script, langsys_tag to langsys, new member script.
4665 (OTF_TAG_STR): Terminate by '\0'.
4666 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
4667 listing to the script specified in that property. Fix arg to
4670 2008-02-01 Jason Rumney <jasonr@gnu.org>
4672 * w32font.h: New file.
4674 * w32font.c: Include it.
4675 (struct w32font_info): Add owning_frame field. Move to w32font.h.
4676 (w32font_open): Set owning_frame.
4677 (w32font_text_extents): Use owning_frame.
4678 (struct font_callback_data): Add opentype_only field.
4679 (add_font_entity_to_list): Use it to filter fonts.
4680 Don't check against full name.
4681 (w32font_list_internal): New function.
4682 (w32font_list): Use it.
4683 (w32font_match_internal): New function.
4684 (w32font_match): Use it.
4685 (w32font_open_internal): New function.
4686 (w32font_open): Use it.
4687 (w32font_get_cache, w32font_close, w32font_has_char)
4688 (w32font_encode_char, w32font_text_extents, w32font_draw):
4691 * makefile.w32-in (w32font.o): Depend on w32font.h.
4693 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4695 * charset.c (Fdefine_charset_internal): Record a supplementary
4696 charset at the tail of Vcharset_order_list.
4698 * font.c (Ffont_shape_text): Fix the return value.
4700 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
4702 * xdisp.c (handle_auto_composed_prop): Fix previous change.
4704 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4706 * ftfont.c (struct OpenTypeSpec): New struct.
4707 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
4708 (ftfont_get_open_type_spec): New function.
4709 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
4711 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
4713 2008-02-01 Jason Rumney <jasonr@gnu.org>
4715 * w32font.c (add_font_entity_to_list): Compare only the beginning
4718 2008-02-01 Kenichi Handa <handa@m17n.org>
4720 * xdisp.c (handle_auto_composed_prop): Simplify the code.
4721 Never return HANDLED_RECOMPUTE_PROPS.
4723 2008-02-01 Kenichi Handa <handa@m17n.org>
4725 * font.c (font_gstring_produce): Delete it.
4727 * composite.h (COMPOSITION_METHOD):
4728 Handle COMPOSITION_WITH_GLYPH_STRING.
4730 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4732 * xfont.c (Qx): Delete.
4733 (syms_of_xfont): Don't initialize Qx.
4735 * composite.h (enum composition_method):
4736 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
4738 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4740 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
4741 (choose_face_font): Accept new form of font-spec.
4743 * frame.h (font_driver_list): Declare it unconditionally.
4744 (struct frame): Define members font_driver_list and font_data_list
4747 * fontset.c: Include "font.h" unconditionally.
4748 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
4749 (Fset_fontset_font): Accept a font-spec object.
4751 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
4752 PIXEL_SIZE part a wild card.
4754 * dispextern.h (struct glyph_string): Define members clip and
4755 num_clips unconditionally.
4756 (struct face): Define members font_info and extra unconditionally.
4758 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
4759 ftfont_info only when HAVE_LIBOTF is defined.
4761 2008-02-01 Andreas Schwab <schwab@suse.de>
4763 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
4766 2008-02-01 Jason Rumney <jasonr@gnu.org>
4768 * w32font.c (w32font_driver): Add new fields.
4770 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4772 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
4773 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
4774 (LIBES): Add @M17N_FLT_CFLAGS@.
4776 * composite.c (compose_text): Don't treat the new style
4777 composition specially.
4779 * emacs.c (main): Call syms_of_font unconditionally.
4781 * font.h (FONT_ENTITY_NOT_LOADABLE)
4782 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
4783 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
4784 (struct font_driver): New member shape.
4785 (font_registry_charsets): Extern it.
4786 (font_find_for_lface, font_prepare_composition): Adjust prototype.
4787 (font_otf_capability, font_drive_otf): Delete their externs.
4789 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4790 (font_charset_alist, font_registry_charsets): Move from xfont.c
4792 (font_prop_validate_otf): New function.
4793 (font_property_table): Register it for QCotf.
4794 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
4795 (font_drive_otf): Delete.
4796 (font_prepare_composition): New arg F. Adjust for the change of
4798 (font_find_for_lface): New arg C.
4799 (font_load_for_face): Adjust for the change of font_find_for_lface.
4800 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
4802 (Ffont_shape_text): New function.
4803 (Fopen_font): If the font size is not given, use 12-pixel.
4804 (Ffont_at): New arg STRING.
4805 (syms_of_font): Initalize font_charset_alist.
4806 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
4809 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
4810 fonts of the same font-spec. Change the format of RFONT-DEF.
4811 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
4812 Adjust for the change of RFONT-DEF.
4813 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
4815 * ftfont.h: New file.
4817 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
4818 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4819 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4820 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
4821 font_otf_capability and font_drive_otf, set ftfont_shape.
4822 (ftfont_list): Adjust for the change of :otf property value.
4823 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
4824 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
4825 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
4826 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
4827 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
4828 (otf_gstring, gstring, m17n_flt_initialized): New variables.
4830 * w32term.c (x_draw_composite_glyph_string_foreground):
4831 Adjust for the change of lispy gstring.
4833 * xdisp.c (handle_composition_prop): Adjust for the change of
4834 lispy gstring. Call a function for auto-composition with the
4835 third arg it->window.
4836 (fill_composite_glyph_string): Adjust for the change of lispy string.
4837 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
4839 * xfaces.c (set_font_frame_param): Adjust for the change of
4840 font_find_for_lface.
4842 * xfont.c (x_font_charset_alist): Move to font.c and rename.
4843 (xfont_registry_charsets): Likewise. Change caller.
4844 (syms_of_xfont): Don't handle x_font_charset_alist.
4846 * xftfont.c: Include "ftfont.h".
4847 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4848 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4849 (xftfont_close) [HAVE_LIBOTF]: Close otf.
4850 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
4851 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
4852 Set xftfont_driver.shape to xftfont_shape.
4854 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
4855 the change of lispy gstring.
4857 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4859 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
4861 2008-02-01 Jason Rumney <jasonr@gnu.org>
4863 * w32font.c (w32font_draw): Fill background manually.
4865 2008-02-01 Jason Rumney <jasonr@gnu.org>
4867 * font.c (Qfontp): Remove unused symbol.
4868 (QCantialias): New symbol.
4869 (syms_of_font): Define it.
4870 (font_property_table): Set a validator for QCantialias.
4872 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
4873 Define if not already.
4874 (QCfamily): Share with xfaces.c.
4875 (Qstandard, Qsubpixel, Qnatural): New symbols.
4876 (syms_of_w32font): Define them. Don't define QCfamily here.
4877 (w32_antialias_type, lispy_antialias_type): New functions.
4878 (w32_enumfont_pattern_entity): New arg requested_font.
4879 Set antialias parameter if non-default was requested.
4880 (fill_in_logfont): Fill in lfQuality if :antialias specified.
4882 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4884 * lread.c (read1): Undo the previous change.
4886 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
4888 * frame.c (Fdelete_frame): Call font_update_drivers only when
4889 USE_FONT_BACKEND is defined.
4891 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4893 * font.h (struct font_bitmap): New member bits_per_pixel.
4894 (struct font_driver): New members start_for_frame and end_for_frame.
4895 (struct font_data_list): New struct.
4896 (font_put_frame_data, font_get_frame_data): Extern them.
4898 * frame.h (struct frame): New member font_data_list.
4900 * font.c (font_update_drivers): Call driver->start_for_frame and
4901 driver->end_for_frame at proper timings.
4902 (font_put_frame_data, font_get_frame_data): New functions.
4903 (Ffont_spec): Add usage in the docstring.
4905 * frame.c (make_frame): Initialize f->font_data_list to NULL.
4906 (Fdelete_frame): Call font_update_drivers.
4908 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4909 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
4910 (xftfont_get_xft_draw): New function.
4911 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
4912 (xftfont_end_for_frame): New function.
4913 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
4915 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
4916 Change argument. Cache GCs in the per-frame data.
4917 (struct ftxfont_frame_data): New struct.
4918 (ftxfont_draw_bitmap): New arg gc_fore and flush.
4919 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
4920 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
4921 (ftxfont_end_for_frame): New function.
4922 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
4924 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
4926 2008-02-01 Kenichi Handa <handa@m17n.org>
4928 * xselect.c (Vselection_coding_system)
4929 (Vnext_selection_coding_system): Delete them.
4930 (syms_of_xselect): Don't declare selection-coding-system and
4931 next-selection-coding-system. They are declared in select.el.
4933 2008-02-01 Jason Rumney <jasonr@gnu.org>
4935 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
4937 * w32fns.c: Include imm.h.
4938 (get_composition_string_fn, get_ime_context_fn): New optional
4940 (globals_of_w32fns): Load them from imm32.dll.
4941 (ignore_ime_char): New flag.
4942 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
4943 WM_IME_ENDCOMPOSITION messages.
4945 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4946 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4948 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4950 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4951 (READCHAR_REPORT_MULTIBYTE): New macro.
4952 (readchar): New 2nd arg MULTIBYTE.
4953 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4954 Make symbol's name multibyte according to the multibyteness of the
4957 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4959 * xfaces.c (face_for_overlay_string): Call lookup_face with
4960 correct arguments (fix of synching with the trunk).
4962 2008-02-01 Kenichi Handa <handa@m17n.org>
4964 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4965 (font_prop_validate_non_neg, font_prop_validate_spacing):
4966 Delete argument prop_index.
4967 (font_property_table): Change arguments to validater. Change Callers.
4968 (font_lispy_object): Delete.
4969 (font_at): Use font_find_object instead fo font_lispy_object.
4971 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4973 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
4976 2008-02-01 Jason Rumney <jasonr@gnu.org>
4978 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
4979 (font_matches_spec): Remove debug output.
4980 (add_font_entity_to_list): Avoid using substituted fonts.
4982 2008-02-01 Jason Rumney <jasonr@gnu.org>
4984 * doc.c (Fsnarf_documentation):
4985 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
4987 2008-02-01 Miles Bader <miles@gnu.org>
4989 * dispextern.h (struct glyph_row): Only define "clip" field if
4990 HAVE_WINDOW_SYSTEM is defined.
4992 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
4994 Fix up multi-tty merge.
4996 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
4999 * xfaces.c (free_realized_face, clear_face_gcs):
5000 Include font_done_for_face in the input_blocked section, just in case.
5002 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
5003 (get_char_face_and_encoding): Undo last change and remove the *other*
5004 duplicate definition (i.e. keep the one that's better scoped and that
5005 includes code for the font-backend).
5007 * terminal.c (create_terminal): Default keyboard_coding to
5008 `no-conversion' and terminal_coding to `undecided'.
5010 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
5012 * fontset.c (free_realized_fontsets): Check that the table entry does
5013 contain a fontset before trying to compare it to `base'.
5015 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
5016 syms_of_charset, and syms_of_coding earlier because init_window_once
5017 now needs Vcoding_system_hash_table to be setup.
5019 * coding.h (default_buffer_file_coding): Remove.
5021 * coding.c (default_buffer_file_coding): Remove.
5022 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
5023 than ->symbol, and use the terminal-local coding system.
5024 (syms_of_coding): Don't setup the coding-systems that are not
5026 (Fdefine_coding_system_internal): Use XCAR/XCDR.
5028 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
5029 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
5031 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
5032 in chartab.c and were re-added here by mistake.
5033 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
5035 * doc.c (Fsnarf_documentation):
5036 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
5039 * ChangeLog.10: Add mistakenly removed entry.
5041 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
5043 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
5045 2008-02-01 Miles Bader <miles@gnu.org>
5047 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
5048 Add extra args to FACE_FOR_CHAR.
5050 2008-02-01 Kenichi Handa <handa@m17n.org>
5052 * keymap.c (where_is_internal_1): If key is a cons, store the copy
5055 * chartab.c (map_sub_char_table, map_char_table): If the range
5056 contains just one character, call the function with that character
5057 even if the depth is not 3.
5059 2008-02-01 Jason Rumney <jasonr@gnu.org>
5061 * w32font.c (w32font_text_extents): Calculate metrics for the
5064 2008-02-01 Jason Rumney <jasonr@gnu.org>
5066 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
5068 2008-02-01 Jason Rumney <jasonr@gnu.org>
5070 * w32term.c (x_set_glyph_string_clipping): Use
5071 get_glyph_string_clip_rects.
5072 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5073 Adjust for the change of struct glyph_string.
5075 * w32font.c (w32font_draw): Do clipping here.
5077 2008-02-01 Kenichi Handa <handa@m17n.org>
5079 * xftfont.c (xftfont_draw): Adjust for the change of struct
5082 * xterm.c (x_set_glyph_string_clipping): Use
5083 get_glyph_string_clip_rects.
5084 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5085 Adjust for the change of struct glyph_string.
5087 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
5088 the resulting clip(s}.
5089 (expose_overlaps): Add arg r. Change callers. Set it to
5090 row->clip temporarily.
5091 (expose_window): Redraw rows overlapping the exposed area.
5093 * dispextern.h (struct glyph_row): New member clip.
5094 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
5095 clip_height, new member clip, and num_clips.
5097 2008-02-01 Kenichi Handa <handa@m17n.org>
5099 * data.c (Fchar_or_string_p): Fix docstring.
5101 2008-02-01 Kenichi Handa <handa@m17n.org>
5103 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
5104 create a temporal XftDraw object.
5106 2008-02-01 Kenichi Handa <handa@m17n.org>
5108 * font.c (Ffontp): Fix docstring.
5110 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
5111 strong evidence of ISO-2022.
5113 2008-02-01 Kenichi Handa <handa@m17n.org>
5115 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
5116 SYNTAX_ENTRY_FOLLOW_PARENT.
5118 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
5120 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
5122 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
5123 Update to the new type of weak_hash_tables and next_weak.
5125 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
5126 a plain C pointer to Lisp_Hash_Table.
5128 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
5129 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
5130 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
5131 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
5132 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
5133 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
5134 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
5135 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
5136 (GC_EQ): Remove since they've been identical to their non-GC_
5137 alter-egos ever since the markbit was eradicated.
5156 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
5158 2008-02-01 Kenichi Handa <handa@m17n.org>
5160 * chartab.c (map_sub_char_table): Make it work for the top-level
5161 char-table. Fix handling of parent char-table.
5162 (map_char_table): Adjust for the above change.
5164 2008-02-01 Jason Rumney <jasonr@gnu.org>
5166 * w32font.c (Qgdi): Rename from Qw32.
5168 2008-02-01 Jason Rumney <jasonr@gnu.org>
5170 * w32bdf.c (get_quoted_string): Make function static.
5172 2008-02-01 Kenichi Handa <handa@m17n.org>
5174 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
5175 bigger ascent and descent than those of the font, use them as
5176 font's ascent and descent.
5178 2008-02-01 Kenichi Handa <handa@m17n.org>
5180 * Makefile.in (${lispsource}international/charprop.el): Move this
5181 target within "#ifdef HAVE_UNIDATA" and "#endif".
5183 2008-02-01 Kenichi Handa <handa@m17n.org>
5185 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
5186 (shortlisp): Add ../lisp/language/tai-viet.el.
5188 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
5190 * Makefile.in (${lispsource}international/charprop.el): Depend on
5193 2008-02-01 Jason Rumney <jasonr@gnu.org>
5195 * w32font.c (w32font_close): Delete the GDI font object.
5197 * w32menu.c: Include character.h.
5199 * w32proc.c: Likewise.
5201 * w32select.c: Likewise.
5203 * makefile.w32-in (w32proc.o): Depend on character.h.
5205 2008-02-01 Jason Rumney <jasonr@gnu.org>
5207 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
5209 * w32menu.c (syms_of_w32menu): Likewise.
5211 * w32proc.c (syms_of_ntproc): Likewise.
5213 * w32select.c (syms_of_w32select): Likewise.
5215 * w32term.c (syms_of_w32term): Likewise.
5217 2008-02-01 Jason Rumney <jasonr@gnu.org>
5219 * w32font.c (w32font_draw): Delete brush after using it.
5221 2008-02-01 Jason Rumney <jasonr@gnu.org>
5223 * w32font.c (w32font_open): Don't set font_idx.
5224 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
5226 (w32font_draw): Fill background explicitly.
5228 2008-02-01 Jason Rumney <jasonr@gnu.org>
5230 * w32term.c (w32_initialize): Don't call w32font_initialize.
5232 * w32font.c (w32font_info): Remove subranges.
5233 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
5234 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
5235 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
5236 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
5237 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
5238 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
5239 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
5240 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
5241 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
5242 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
5244 (font_callback_data): New struct.
5245 (w32font_list, w32font_match): Use it.
5246 (w32font_open): Don't populate subranges.
5247 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
5248 (w32font_encode_char): Always return unicode code-point as-is.
5249 (w32font_text_extents): Supply a tranformation matrix to
5250 GetGlyphOutline. Never look up by glyph index. Avoid looping
5251 twice. Use unicode version of GetTexExtentPoint32 instead of
5252 glyph index version.
5253 (set_fonts_frame): Remove.
5254 (w32_enumfont_pattern_entity): Add frame parameter, use it to
5255 set frame parameter. Use backward compatible fake foundries.
5256 Save generic family in extra slot under QCfamily. Make width slot
5257 constant. Save QCspacing value. Save list of scripts instead of
5259 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
5260 (add_font_entity_to_list): Use font_callback_data struct. Filter
5262 (add_one_font_entity_to_list): Use font_callback_data struct.
5263 (w32_registry): Default to iso10646_1.
5264 (fill_in_logfont): Use dpi from extra slot. Don't bother with
5265 string font registries. Don't fill in font name if it is a generic
5266 family name, fill family instead. Use spacing, family and script
5267 extra info to fill pitch, family and charset fields.
5268 (list_all_matching_fonts): Use font_callback_data struct.
5269 (unicode_range_for_char): Remove.
5270 (font_supported_scripts): New function.
5271 (w32font_initialize): Remove.
5272 (syms_of_w32font): Update which symbols are defined.
5274 2008-02-01 Jason Rumney <jasonr@gnu.org>
5276 * font.c (font_pixel_size): Reverse assq_no_quit args.
5278 * w32term.h (FONT_WIDTH): Report max width, not average.
5279 (FONT_MAX_WIDTH): Remove.
5280 (FONT_AVG_WIDTH): New macro.
5282 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
5283 redefinition of FONT_WIDTH.
5285 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
5286 (w32_cache_char_metrics): Use FONT_WIDTH.
5288 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
5290 2008-02-01 Jason Rumney <jasonr@gnu.org>
5292 * w32font.c (w32font_open): Make lfHeight negative.
5294 * w32fns.c (x_default_font_parameter): Use new style font name.
5295 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
5297 2008-02-01 Jason Rumney <jasonr@gnu.org>
5299 * w32font.c (QCsubranges): New symbol.
5300 (w32font_open, w32font_has_char): Get subranges from subproperty
5302 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
5303 (syms_of_w32font): Define :subranges symbol.
5305 * font.c (font_put_extra): Expose externally.
5307 * font.h (font_put_extra): Move declaration from font.c.
5309 * font.c (Ffont_get): Use font driver to determine otf capability.
5310 (adjust_anchor): Check if driver defines anchor_point before using.
5312 * w32font.c (w32font_open): Handle size, height and pixel_size better.
5313 (w32font_draw): Use options.
5314 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
5315 Fix detection of truetype fonts.
5316 (registry_to_w32_charset): Handle charsets other than iso8859-1
5317 expressed as lisp symbols.
5318 (w32_registry): Express charset as lisp symbol.
5319 (fill_in_logfont): Reverse pixel and point height logic.
5320 Don't set width here. Set quality to default.
5322 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
5323 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
5325 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5326 Remove redundant loop and allocation.
5328 * makefile.w32-in (font.o, w32font.o): New objects.
5329 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
5330 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
5332 * xdisp.c (fill_composite_glyph_string): Make the first arg to
5333 STORE_XCHARB a valid l-value.
5335 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
5336 calculations for non-Truetype fonts.
5337 (x_draw_glyph_string): Sync with xterm.c.
5338 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5339 Remove redundant code.
5340 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
5342 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
5343 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
5345 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
5346 (x_to_w32_charset, w32_to_x_charset): Expose externally.
5348 * w32font.c: New file for w32 font backend.
5350 2008-02-01 Kenichi Handa <handa@m17n.org>
5352 * term.c: Don't include "buffer.h" twice.
5354 2008-02-01 Kenichi Handa <handa@m17n.org>
5356 * character.c (Funibyte_string): New function.
5357 (syms_of_character): Defsubr it.
5359 2008-02-01 Jason Rumney <jasonr@gnu.org>
5361 * w32term.c [USE_FONT_BACKEND]:
5362 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
5363 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
5364 (x_draw_glyph_string, x_draw_glyph_string_foreground)
5365 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
5366 (x_free_frame_resources): Sync with xterm.c.
5368 2008-02-01 Andreas Schwab <schwab@suse.de>
5370 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
5373 2008-02-01 Kenichi Handa <handa@m17n.org>
5375 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
5377 2008-02-01 Kenichi Handa <handa@m17n.org>
5379 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
5380 font_otf_gpos, add font_drive_otf.
5382 * fontset.c (fontset_find_font): Pay attention to font size
5383 specified for a font.
5384 (reorder_font_vector): Check contents of font_def.
5386 * font.c (struct otf_list): Delete it.
5387 (otf_list): Make it a lisp variable.
5388 (otf_open): Use lispy otf_list.
5389 (generate_otf_features): Rename from parse_gsub_gpos_spec.
5390 (check_otf_features): New function.
5391 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5393 (font_drive_otf): New function merging font_otf_gsub and
5395 (font_open_for_lface): New arg spec. Change argument order.
5396 (font_load_for_face): Adjust for the change of font_open_for_lface.
5397 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
5399 (syms_of_font): Staticpro otf_list. Delete defsubr of
5400 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
5402 * xfaces.c (set_font_frame_param): Adjust for the change of
5403 font_open_for_lface.
5405 * font.h (font_open_for_lface): Adjust prototype.
5406 (struct font_driver): Delete members otf_gsub and otf_gpos, add
5408 (font_otf_gsub, font_otf_gpos): Delete externs.
5409 (font_drive_otf): Extern it.
5411 2008-02-01 Kenichi Handa <handa@m17n.org>
5413 * font.c (font_at): If the window W is not on a window system,
5416 * coding.c (produce_chars, encode_coding): Don't call
5417 insert_from_gap if no characters to produce.
5419 2008-02-01 Kenichi Handa <handa@m17n.org>
5421 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
5424 * xfaces.c (face_for_font): Check also face->font==font->font.font.
5426 2008-02-01 Miles Bader <miles@gnu.org>
5428 * emacs.c (main): Change default value of `enable_font_backend' to 1.
5429 Parse "--disable-font-backend" option.
5430 (standard_args): Add "--disable-font-backend" option.
5432 2008-02-01 Kenichi Handa <handa@m17n.org>
5434 * fontset.c (fontset_find_font): New function.
5435 (fontset_font): Use fontset_find_font.
5436 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
5437 Register the specified font for all Latin characters.
5438 (new_fontset_from_font): Register the specified font for all Latin
5440 (dump_fontset): For a realized fontset, include the base fontset
5441 name in the returned vector.
5443 2008-02-01 Kenichi Handa <handa@m17n.org>
5445 * character.h (CHAR_STRING): Cast C to unsigned on calling
5448 * character.c (char_string): Type of arg C changed to unsigned.
5449 Signal an error if C is an invalid character code.
5451 * editfns.c (general_insert_function, Fchar_to_string):
5452 Use CHARACTERP, not INTEGERP.
5454 2008-02-01 Kenichi Handa <handa@m17n.org>
5456 * character.h (MIN_MULTIBYTE_LEADING_CODE)
5457 (MAX_MULTIBYTE_LEADING_CODE): New macros.
5459 * regex.c (analyse_first): Fix for multibyte characters in "case
5460 charset:" and "case categoryspec:".
5462 2008-02-01 Andreas Schwab <schwab@suse.de>
5464 * Makefile.in (LIBES): Move standard libraries to the end.
5466 2008-02-01 Kenichi Handa <handa@m17n.org>
5468 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
5469 nonzero, don't shrink the buffer nextb.
5471 * buffer.h (struct buffer_text): New member inhibit_shrinking.
5473 * coding.c (coding_alloc_by_making_gap): New arg offset.
5474 (alloc_destination): Call coding_alloc_by_making_gap with the arg
5476 (decode_coding_iso_2022): Update coding->safe_charsets.
5477 (decode_coding_gap): Temporarily set
5478 current_buffer->text->inhibit_shrinking to 1.
5480 2008-02-01 Kenichi Handa <handa@m17n.org>
5482 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
5483 indexing into elements of s->cmp and s->char2b.
5485 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
5487 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
5489 2008-02-01 Kenichi Handa <handa@m17n.org>
5491 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
5492 target_multibyte instead of multibyte.
5493 (re_match_2_internal): Call bcmp_translate with target_multibyte.
5494 (bcmp_translate): Change the argument name from multibyte to
5497 2008-02-01 Kenichi Handa <handa@m17n.org>
5499 These changes are to compile a regexp into a pattern that can be
5500 used both for multibyte and unibyte targets.
5502 * Makefile.in (search.o): Depend on charset.h.
5504 * character.c (multibyte_char_to_unibyte_safe): New function.
5506 * search.c: Include "charset.h".
5507 (compile_pattern_1): Delete argument multibyte. Don't set
5508 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
5509 (compile_pattern): Don't compare cp->buf.target_multibyte.
5510 Compare cp->buf.charset_unibyte.
5511 (compile_pattern): Set cp->buf.target_multibyte.
5513 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
5515 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
5517 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
5518 multibyte. Change callers.
5519 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
5520 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
5521 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
5522 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
5523 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
5524 (regex_compile): Make the compiled pattern usable both for
5525 multibyte and unibyte targets.
5526 (analyse_first): Make the fastmap usable both for multibyte and
5528 (TRANSLATE_VIA_MULTIBYTE): Delete.
5529 (re_match_2_internal): Pay attention to the case that the
5530 multibyteness of bufp and target may be different.
5532 2008-02-01 Kenichi Handa <handa@m17n.org>
5534 * xdisp.c (x_produce_glyphs): When a font is not found, make the
5535 empty box occupy at least one column width.
5537 2008-02-01 Miles Bader <miles@gnu.org>
5539 * Makefile.in: Remove redundant HAVE_XFT clause.
5541 2008-02-01 Kenichi Handa <handa@m17n.org>
5543 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
5545 2008-02-01 Kenichi Handa <handa@m17n.org>
5547 * fontset.c (Finternal_char_font): Fix for the case of POSITION
5550 2008-02-01 Kenichi Handa <handa@m17n.org>
5552 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
5554 2008-02-01 Kenichi Handa <handa@m17n.org>
5556 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
5558 2008-02-01 Kenichi Handa <handa@m17n.org>
5560 * search.c (simple_search): Fix previous change.
5562 2008-02-01 Kenichi Handa <handa@m17n.org>
5564 * xftfont.c (ftfont_font_format): Extern declaration.
5566 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
5568 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
5569 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
5571 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
5572 (ftfont_font_format): Fix previous change.
5574 * font.h (Ffont_xlfd_name): EXFUN it.
5576 * font.c (font_parse_xlfd): Fix the array size of `f'.
5577 (register_font_driver): Use EQ to compare driver->type.
5579 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
5580 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
5581 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
5583 2008-02-01 Kenichi Handa <handa@m17n.org>
5585 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
5586 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
5588 2008-02-01 Kenichi Handa <handa@m17n.org>
5590 * xfont.c (xfont_open): Set font->format.
5592 * xftfont.c (xftfont_open): Set font->format.
5594 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
5595 (ftfont_list): Include FC_FONTFORMAT in FcObject.
5596 (ftfont_open): Set font->format.
5597 (ftfont_font_format): New function.
5599 * font.h (struct font): New memeber format.
5601 * font.c (Qopentype): New variable.
5602 (syms_of_font): Defsym it.
5603 (Fquery_font): Change the format of the last element of the return
5606 2008-02-01 Kenichi Handa <handa@m17n.org>
5608 * xfns.c (xic_create_xfontset): Try the default fontset name as a
5611 2008-02-01 Kenichi Handa <handa@m17n.org>
5613 * coding.c (detect_coding_charset): Fix detection of multi-byte
5616 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
5618 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
5620 2008-02-01 Kenichi Handa <handa@m17n.org>
5622 * xdisp.c (get_next_display_element): Set it->face_id for the
5623 first component of a composition.
5624 (x_produce_glyphs): Check if the font is changed or not for composition.
5626 2008-02-01 Kenichi Handa <handa@m17n.org>
5628 * fontset.c (Qlatin): New variable.
5629 (syms_of_fontset): Define it as a lisp symbol.
5630 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
5632 2008-02-01 Kenichi Handa <handa@m17n.org>
5634 * font.c (font_unparse_fcname): Pay attention to the case that
5635 some of font property is a null string.
5637 2008-02-01 Kenichi Handa <handa@m17n.org>
5639 * term.c: Include "composite.h".
5640 (encode_terminal_code): Output all components of composition.
5641 Check the size of encode_terminal_src.
5642 (produce_glyphs): For composition, call produce_composite_glyph.
5643 (append_composite_glyph, produce_composite_glyph): New functions.
5645 * xdisp.c (x_produce_glyphs): In handling composition, if a font
5646 is not found, get font_info from the current ascii face.
5648 2008-02-01 Kenichi Handa <handa@m17n.org>
5650 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
5651 buffer-file-name to Qnil before calling insert_from_buffer.
5653 * font.c (font_unparse_fcname): Pay attention to the case that
5654 foundry is a null string.
5656 2008-02-01 Kenichi Handa <handa@m17n.org>
5658 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
5660 * font.c (Qunicode_sip): New variable.
5661 (syms_of_font): Declare it as a Lisp symbol.
5663 * font.h (Qunicode_sip): Extern it.
5665 2008-02-01 Kenichi Handa <handa@m17n.org>
5667 * composite.c (get_composition_id): Pay attention to TAB component.
5669 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
5670 TAB. Adjust for the change of s->char2b which always points to
5671 the first elememnt of allocated memory.
5673 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
5675 * xdisp.c (handle_composition_prop): Set it->c to the first
5677 (fill_composite_glyph_string): Change argument.
5678 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
5679 (x_produce_glyphs): Fix handling of left/right padding.
5681 2008-02-01 Kenichi Handa <handa@m17n.org>
5683 * coding.c (detect_coding_system): Fix for handling off
5684 inhibit_iso_escape_detection. Fix for the case that no coding
5685 system is defined for a specific coding category.
5687 2008-02-01 Kenichi Handa <handa@m17n.org>
5689 * font.c (font_matching_entity): Delete unused local var.
5691 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
5694 * fileio.c (Finsert_file_contents): On recovering a file, assume
5696 (choose_write_coding_system): On auto-saving a file, force
5699 * coding.c (setup_coding_system): Fix setting of
5700 coding->common_flags based on eol_type.
5701 (coding_inherit_eol_type): If PARENT is not nil, be sure to
5704 2008-02-01 Kenichi Handa <handa@m17n.org>
5706 * alloc.c (NSTATICS): Increas to 0x600.
5708 2008-02-01 Kenichi Handa <handa@m17n.org>
5710 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
5711 (ftfont_list): Don't check :name property.
5712 (ftfont_match): New function.
5713 (ftfont_pattern_entity): If the pattern doesn't contain
5714 FC_SPACING, don't assuce FC_MONO.
5716 * font.h (struct font_driver): New member `match'.
5717 (font_update_drivers): Adjust prototype.
5719 * font.c (font_parse_fcname, font_parse_name): Don't change :name
5721 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
5722 them unconditionally.
5723 (font_matching_entity): New function.
5724 (font_open_by_name): Try font_matching_entity if exact match is
5726 (font_update_drivers): Delete the arg FONT. Return a list of
5727 actually used backends. Don't free faces, font caches here.
5728 Don't store data in frame parameters. Don't call x_set_font.
5729 (Ffont_spec): Store :name property as is.
5730 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
5731 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
5732 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
5733 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
5734 Call font->driver->otf_gsub instead of font_otf_gsub.
5736 * frame.c (x_set_font_backend): Do more works that were done in
5737 font_update_drivers before.
5739 * xfont.c (xfont_match): New function.
5740 (xfont_driver): Set xfont_driver.match to xfont_match.
5741 (xfont_draw): Set font in GC if necessary.
5743 * ftxfont.c (ftxfont_match): New function.
5744 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
5746 * xftfont.c (xftfont_match): New function.
5747 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
5749 2008-02-01 Kenichi Handa <handa@m17n.org>
5751 * font.h (struct font): New member scalable.
5752 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
5753 (font_otf_gsub): Adjust prototype.
5755 * font.c (font_otf_capability): Fix handling of the default langsys.
5756 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
5757 Check the contents of SPEC.
5758 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
5759 (check_gstring): New function.
5760 (REPLACEMENT_CHARACTER): New macro.
5761 (font_otf_gsub): New arg alternate_subst. Be sure to set all
5762 glyph codes of GSTRING.
5763 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
5764 (font_prepare_composition): Set cmp->glyph_len.
5765 (font_open_entity): Set font->scalable.
5766 (Ffont_get): Handle :otf property.
5767 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
5769 (Fquery_font): Use font->font.full_name.
5770 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
5771 Sfont_otf_alternates.
5773 * ftfont.c (ftfont_open): Set font->font.full_name and
5774 font->font.name properly. Fix calculation of font->font.height
5775 and font->min_width.
5777 * ftxfont.c (ftxfont_create_gcs): New function.
5778 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
5779 (ftxfont_draw_backgrond): Fix filling region.
5780 (ftxfont_default_fid): New function.
5781 (ftxfont_open): Set xfotn->fid to the return value of
5782 ftxfont_default_fid.
5783 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
5784 (ftxfont_done_face): Free only GCs that are created by
5786 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
5788 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
5789 Clip to src->width, etc (not src->clip_XXX).
5791 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
5792 FontBackend frame parameter.
5794 2008-02-01 Kenichi Handa <handa@m17n.org>
5796 * font.h (struct font_driver_list): New member `on'.
5797 (Fclear_font_cache): EXFUN it.
5798 (font_update_drivers): Extern it.
5800 * font.c (font_unparse_fcname): Fix typo (swidth->width).
5801 (font_list_entities): Check driver_list->on.
5802 (register_font_driver): Initalize `on' member to 0.
5803 (font_update_drivers): New function.
5804 (Fclear_font_cache): Check driver_list->on.
5806 * frame.h (Qfont_backend): Extern it.
5807 (x_set_font_backend): Extern it.
5809 * frame.c (Qfont_backend): New variable.
5810 (frame_parms): New element for font-backend.
5811 (x_set_font_backend): New function.
5813 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
5814 FontBackend frame parameter.
5815 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
5818 * xfont.c (xfont_list): Don't try listing by :name property if the
5819 name is not for XLFD.
5821 2008-02-01 Kenichi Handa <handa@m17n.org>
5823 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
5824 (LGLYPH_SET_TO): New macros.
5825 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
5826 element of G is vector or not.
5827 (font_at): Extern it.
5829 * font.c: Include window.h.
5830 (font_lispy_object): New function.
5831 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
5833 (font_close_object): Fix getting (struct font *).
5834 (font_at): New function.
5835 (Ffont_get): If FONT is a font-object, get entity from it.
5836 (Ffont_make_gstring): Initialize elements of glyphs with nil.
5837 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
5839 (Ffont_at): New function.
5840 (syms_of_font): Defsubr Sfont_at.
5842 * xdisp.c (it_props): Move the entry for Qauto_composed to just
5843 before the entry for Qcomposition.
5844 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
5845 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
5846 the font in gstring.
5847 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
5848 LGLYPH_FORM (g) to detect the end of valid glyph.
5849 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
5850 we are composing with gstring.
5852 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
5853 Check if adjustment is vector or not.
5855 * Makefile.in (font.o): Make it depends on window.h.
5857 2008-02-01 Kenichi Handa <handa@m17n.org>
5859 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
5860 adjustment is vector or not.
5862 2008-02-01 Miles Bader <miles@gnu.org>
5864 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
5866 2008-02-01 Kenichi Handa <handa@m17n.org>
5868 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
5869 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
5870 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
5872 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
5873 (DEVICE_DELTA): Fix typo.
5874 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
5877 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5878 the change of LGLYPH format.
5880 2008-02-01 Kenichi Handa <handa@m17n.org>
5882 * ftfont.c (ftfont_list): Fix typo.
5883 (ftfont_build_basic_charsets): Don't include letters with diacritics.
5885 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5887 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
5889 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
5890 xftface_info is non-NULL.
5892 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5894 * ftfont.c (ftfont_list): Move misplaced #endif.
5896 2008-02-01 Kenichi Handa <handa@m17n.org>
5898 * ftfont.c (ftfont_list): Pay attention to the case that
5899 FC_CAPABILITY is not defined.
5901 2008-02-01 Kenichi Handa <handa@m17n.org>
5903 * xftfont.c (xftfont_open): Set charset related members to -1.
5905 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
5907 (ftfont_open): Set charset related members to -1.
5909 * fontset.c (Votf_script_alist): New variable.
5910 (syms_of_fontset): Initialize it.
5911 (fontset_font): Delete unused variable.
5913 * fontset.h (Votf_script_alist): Extern it.
5915 * font.c (font_find_for_lface): Optimize code.
5917 * font.h (font_close_object, font_merge_old_spec): Extern them.
5919 2008-02-01 Kenichi Handa <handa@m17n.org>
5921 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
5922 (syms_of_font): Initialize them.
5923 (font_pixel_size): Allow float value in dpi.
5924 (font_prop_validate_type): Delete.
5925 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
5927 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
5928 (font_prop_validate_extra): Delete.
5929 (font_prop_validate_spacing): New function.
5930 (font_property_table): Add elements for all known properties.
5931 (get_font_prop_index): Rename from check_font_prop_name. New
5932 argument FROM. Change caller.
5933 (font_prop_validate): Validate all known properties.
5934 (font_put_extra): Delete argument force. Change caller.
5935 (font_expand_wildcards): Make it static. Fix the way of shrinking
5937 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
5938 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
5940 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
5941 (font_parse_fcname): Delete argument merge. Fix parsing of point
5942 size. Don't validate properties values here. Change caller.
5943 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
5944 (font_open_by_name): Delete unused variable.
5945 (Ffont_spec): Likewise. Validate property values.
5946 (Ffont_match_p): New function.
5948 * font.h (QCscalable): Extern it.
5949 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
5951 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
5953 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
5954 (xfont_list_pattern): New function.
5955 (xfont_list): Use xfont_list_pattern.
5957 2008-02-01 Kenichi Handa <handa@m17n.org>
5959 * font.h (Flist_fonts): EXFUN it.
5961 2008-02-01 Jason Rumney <jasonr@gnu.org>
5963 * w32term.c (w32_initialize): Add back smoothing_type and
5964 smoothing_enabled definitions.
5966 2008-02-01 Kenichi Handa <handa@m17n.org>
5968 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5969 s->face->font on determining underline position.
5971 2008-02-01 Kenichi Handa <handa@m17n.org>
5973 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
5974 (font_has_char): Accept font-object too.
5975 (font_find_for_lface): Try at first with a size specified in face.
5977 2008-02-01 Kenichi Handa <handa@m17n.org>
5979 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
5982 2008-02-01 Kenichi Handa <handa@m17n.org>
5984 * font.h (QCspacing, QCdpi): Extern them.
5985 (enum font_spacing): New enum.
5986 (FONT_PIXEL_SIZE_QUANTUM): New macro.
5988 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
5989 (QCspacing, QCdpi): New variables.
5990 (syms_of_font): Initialize them.
5991 (font_pixel_size): New function.
5992 (font_put_extra): New function.
5993 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
5995 (font_parse_fcname): Handle enumenrated values (e.g. bold).
5996 Fix handling font size. Add QCname property that contains only
5998 (font_score): Change argument. Change caller. Pay attention to
5999 FONT_PIXEL_SIZE_QUANTUM.
6000 (font_sort_entites, font_list_entities, font_find_for_lface)
6001 (font_open_for_lface, font_open_by_name): Fix handling of font size.
6002 (Ffont_spec): Add QCname property that contains only unknown properties.
6004 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
6005 include weight in listing pattern, instead check weight of each
6006 listed font. Don't include scalable in pattern. Pay attention to
6007 FONT_PIXEL_SIZE_QUANTUM.
6009 2008-02-01 Kenichi Handa <handa@m17n.org>
6011 * font.c (font_parse_fcname): Fix parsing of point-size.
6012 (font_unparse_fcname): Produce symbolic names for style properties.
6013 (font_list_entities): Handle float size correctly.
6014 (font_open_by_name): Prefer `normal' property values if the name
6015 doesn't specify them.
6017 * fontset.c (Finternal_char_font): Use font_get_name, not
6020 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
6021 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
6022 pattern. Don't force scalable.
6024 * xftfont.c (xftfont_open): For generating a name, start from
6027 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6029 * frame.h (x_new_fontset2): Fix prototype.
6031 2008-02-01 Kenichi Handa <handa@m17n.org>
6033 * font.h (struct font_driver): Delete member parse_name.
6034 (font_match_p, font_get_spec, font_parse_fcname)
6035 (font_unparse_fcname): Extern them.
6036 (font_get_name): Adjust prototype.
6038 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
6039 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
6040 (font_expand_wildcards): Fix handling ENCODING field. Avoid
6041 unnecessary checks for weight, slant, and swidth.
6042 (font_parse_fcname): New function.
6043 (font_unparse_fcname): New function.
6044 (font_parse_name): New function.
6045 (font_match_p): New function.
6046 (font_get_name): Change return value to Lisp string.
6047 (font_get_spec): New function.
6048 (Qunspecified, Qignore_defface): Don't extern them.
6049 (font_find_for_lface): Assume that LFACE is fully specified.
6050 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
6051 object, use it for FACE.
6052 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
6054 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
6056 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
6059 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
6060 argument F. Don't call Fnew_fontset. Instead, directly call
6063 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
6065 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
6068 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
6069 (Qsans__serif): New variables.
6070 (ftfont_generic_family_list): New variable.
6071 (syms_of_ftfont): Initialize the above variables.
6072 (ftfont_pattern_entity): Delete argument NAME.
6073 (ftfont_list_generic_family): New function.
6074 (ftfont_parse_name): Delete this function.
6075 (ftfont_list): Try generic family only when FcFontList found no font.
6076 (ftfont_list_family): Fix args to FcObjectSetBuild.
6078 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
6079 object in attrs[LFACE_FONT_INDEX].
6080 (set_lface_from_font_name): Cancel all changes for font-backend.
6081 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
6083 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
6084 font object in QCfont attribute.
6085 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
6086 (realize_default_face) [USE_FONT_BACKEND]: Call
6087 set_lface_from_font_and_fontset.
6089 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
6090 "fixed", and signal error here if no suitable font was found.
6092 * xfont.c (xfont_parse_name): Delete this function.
6094 * xftfont.c (xftfont_open): Change coding style of error
6095 handling. Generate fontconfig's fontname pattern.
6097 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
6098 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
6100 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
6101 Both args FONTSET and FONT_OBJECT must be existing ones.
6103 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6105 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
6107 2008-02-01 Kenichi Handa <handa@m17n.org>
6109 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
6111 * font.h (struct font): Fix typo.
6113 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
6115 (enum xlfd_field_mask): New enum.
6116 (intern_font_field): Changed argument. Change caller. If digits
6117 are followed by non-digits, return a symbol.
6118 (font_expand_wildcards): New function.
6119 (font_parse_xlfd): Fix wildcard handling.
6120 (Ffont_spec): If :name is specified, reflect the info in the other
6123 * ftfont.c (ftfont_pattern_entity): Fix typo.
6124 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
6127 2008-02-01 Kenichi Handa <handa@m17n.org>
6129 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
6131 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
6132 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
6133 registry doesn't specify encoding part.
6134 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
6135 (font_open_by_name): At first try parsing the name.
6136 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
6139 * fontset.c (reorder_font_vector): Pay attention to the case that
6140 the 3rd element of font_def is nil.
6141 (fontset_font): For the default fontset, append one more fontset
6142 elements for a script-based font specification. Don't add script
6143 attribute on finding a font.
6144 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
6146 (fontset_ascii_font): If a font can't be opened, return nil.
6148 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
6149 (ftfont_pattern_entity): New function.
6150 (ftfont_get_cache): Assume that freetype_font_cache is already
6152 (ftfont_list): Handle the case that a file is specified in font
6153 name. Use ftfont_pattern_entity to generate entities.
6154 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
6155 (syms_of_ftfont): Initialize freetype_font_cache.
6157 * xftfont.c (xftfont_open): Make the font name fontconfig's
6158 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
6159 (xftfont_close): Free font->font.name if not NULL.
6161 * xfont.c (xfont_list): If script is specified for a font, return
6163 (xfont_list_family): Declare argument type.
6165 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
6166 name, set LFACE_FONT (lface) to nil.
6168 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
6171 2008-02-01 Kenichi Handa <handa@m17n.org>
6173 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
6174 (standard_args): Add "-enable-font-backend".
6176 2008-02-01 Kenichi Handa <handa@m17n.org>
6178 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
6179 (struct xftdraw_list, xftdraw_list): Delete them.
6180 (register_xftdraw, check_xftdraw): Delete them.
6181 (xftfont_prepare_face): Don't call register_xftdraw.
6182 (xftfont_done_face): Don't call check_xftdraw.
6183 (xftfont_draw): Get backroudn color only when with_background is
6186 * xfont.c (xfont_encode_char): Fix calculation of char2b.
6188 2008-02-01 Kenichi Handa <handa@m17n.org>
6190 These changes are for the new font handling codes.
6192 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
6193 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
6194 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
6195 (FONTSRC, FONTOBJ): New variables.
6196 (obj): Add $(FONTOBJ).
6197 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
6198 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
6200 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
6201 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
6203 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
6205 * character.h (Vscript_representative_chars): Extern it.
6207 * character.c (Vscript_representative_chars): New variable.
6208 (syms_of_character): Declare it as a Lisp variable.
6210 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
6211 enable_font_backend is nonzero, accept the composition method
6212 COMPOSITION_WITH_GLYPH_STRING.
6214 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
6215 enumeration COMPOSITION_WITH_GLYPH_STRING.
6217 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
6218 members clip_x, clip_y, clip_width, and clip_height.
6219 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
6221 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
6222 --enable-font-backend. Call syms_of_font.
6224 * fns.c (assoc_no_quit): New function.
6226 * fontset.h (FONT_INFO_FROM_FACE): New macro.
6227 (face_for_font, new_fontset_from_font)
6228 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
6230 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
6231 (fontset_font, fontset_ascii, face_for_char)
6232 (make_fontset_for_ascii_face, Ffont_info)
6233 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
6234 is nonzero, use font-backend mechanism.
6235 (find_font_encoding): Make it non-static.
6236 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
6239 * frame.h (struct frame): New members resx and resy.
6240 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
6241 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
6243 * frame.c [USE_FONT_BACKEND]: Include "font.h".
6244 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
6246 * lisp.h (assoc_no_quit): Extern it.
6248 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
6249 Through out the file, use FONT_INFO_FROM_FACE instead of
6250 FONT_INFO_FROM_ID, use get_per_char_metric instead of
6251 rif->per_char_metric.
6252 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
6253 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
6254 (get_glyph_face_and_encoding, fill_composite_glyph_string)
6255 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6256 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
6257 nonzero, use font-backend mechanism.
6258 (get_per_char_metric): New function.
6260 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
6261 (set_lface_from_font_name)
6262 (set_font_frame_param, free_realized_face)
6263 (prepare_face_for_display, clear_face_gcs)
6264 (Finternal_set_font_selection_order, realize_x_face)
6265 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
6266 font-backend mechanism.
6267 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
6268 (load_face_font) [USE_FONT_BACKEND]: Abort.
6269 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
6270 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
6272 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
6273 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
6274 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
6275 nonzero, register all available font drivers. Call
6276 x_default_font_parameter for deciding a font.
6277 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
6279 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
6280 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
6281 (x_set_glyph_string_clipping_exactly)
6282 (x_compute_glyph_string_overhangs)
6283 (x_draw_glyph_string_foreground)
6284 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
6285 (x_free_frame_resources) [USE_FONT_BACKEND]: If
6286 enable_font_backend is nonzero, use font-backend mechanism.
6287 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
6289 2008-02-01 Kenichi Handa <handa@m17n.org>
6291 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
6293 (syms_of_coding): Initialize system_eol_type.
6295 * process.c (Fset_process_coding_system): Inherit system's eol
6296 format if necessary.
6298 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6300 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
6302 2008-02-01 Kenichi Handa <handa@m17n.org>
6304 * coding.c (decode_eol): Pay attention to buffer relocation in
6306 (decode_coding): Call decode_eol before restoring undo_list.
6308 2008-02-01 Kenichi Handa <handa@m17n.org>
6310 * charset.c (Fdefine_charset_internal): Fix setting of
6313 2008-02-01 Kenichi Handa <handa@m17n.org>
6315 * keyboard.c (read_char): Check if C is a character or not before
6316 looking up Vkeyboard_translate_table.
6318 2008-02-01 Kenichi Handa <handa@m17n.org>
6320 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
6321 condition to terminate the loop.
6323 2008-02-01 Kenichi Handa <handa@m17n.org>
6325 * coding.c (produce_composition): Compare charbuf[i] instead of
6327 (Fterminal_coding_system): Use EQ to compare Lisp objects.
6329 2008-02-01 Kenichi Handa <handa@m17n.org>
6331 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
6332 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
6333 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
6335 (emacs_mule_char): Handle old style (Emacs 20) component character
6337 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
6338 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
6340 (decode_coding_emacs_mule): Handle invalid bytes correctly.
6342 2008-02-01 Kenichi Handa <handa@m17n.org>
6344 * coding.c (encode_coding_ccl): Allocate destination dynamically
6347 2008-02-01 Kenichi Handa <handa@m17n.org>
6349 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
6350 the loop. When quitted, show a proper error message.
6352 2008-02-01 Kenichi Handa <handa@m17n.org>
6354 * xterm.c (x_set_glyph_string_clipping_exactly): Set
6355 src->clip_head and src->clip_tail temporarily instead of src->hl.
6357 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
6359 (Fccl_execute_on_string): Use ASET, not XSET.
6361 2008-02-01 Kenichi Handa <handa@m17n.org>
6363 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
6365 2008-02-01 Kenichi Handa <handa@m17n.org>
6367 * coding.c (decode_coding): Fix the condition of terminating the
6370 2008-02-01 Kenichi Handa <handa@m17n.org>
6372 * data.c (Faset): On setting a character bigger than 255 in a
6373 unibyte string, signal an error instead of make the string multibyte.
6375 2008-02-01 Kenichi Handa <handa@m17n.org>
6377 * charset.c (map_charset_chars): Fix for ascii-compatible charset
6378 made by a mapping table.
6380 2008-02-01 Kenichi Handa <handa@m17n.org>
6382 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
6384 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
6385 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
6387 * xterm.c (x_draw_composite_glyph_string_foreground): Check
6388 s->face is NULL or not.
6390 2008-02-01 Kenichi Handa <handa@m17n.org>
6392 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
6393 (x_draw_glyph_string): Fix drawing of right_overhang and
6394 left_overhang around/on cursor.
6396 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
6398 2008-02-01 Kenichi Handa <handa@m17n.org>
6400 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
6402 2008-02-01 Kenichi Handa <handa@m17n.org>
6404 * coding.c (Fdefine_coding_system_internal)
6405 (Fdefine_coding_system_alias): Avoid a duplicated element in
6406 Vcoding_system_alist.
6408 2008-02-01 Kenichi Handa <handa@m17n.org>
6410 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6412 * coding.c (Qcoding_system_define_form): New variable.
6413 (syms_of_coding): Intern and staticpro it.
6414 (Fcoding_system_p): Check Qcoding_system_define_form.
6415 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
6417 * coding.h (CODING_SYSTEM_P): If ID is not available, call
6419 (CHECK_CODING_SYSTEM): If ID is not available, call
6420 Fcheck_coding_system.
6421 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
6422 Try also Fcheck_coding_system.
6424 2008-02-01 Kenichi Handa <handa@m17n.org>
6426 * coding.c (code_conversion_restore): GCPRO arg.
6428 2008-02-01 Kenichi Handa <handa@m17n.org>
6430 * character.c (lisp_string_width): Check multibyteness of STRING.
6432 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6434 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
6435 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
6436 (decode_mac_font_name): Use decode_coding_c_string instead of
6438 (x_load_font): Initialize fontp->fontset to -1. Set
6439 fontp->encoding_type.
6441 2008-02-01 Kenichi Handa <handa@m17n.org>
6443 * search.c (search_buffer): Give up BM search on case-fold-search
6444 if one of a target character has a case-equivalence of different
6445 byte length even if that target charcter is an ASCII.
6446 (simple_search): Fix calculation of byte length of matched text.
6447 (boyer_moore): Fix handling of case-equivalent multibyte characters.
6449 2008-02-01 Kenichi Handa <handa@m17n.org>
6451 * coding.c (decode_coding): Fix handling of invalid bytes.
6453 2008-02-01 Kenichi Handa <handa@m17n.org>
6455 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6458 2008-02-01 Kenichi Handa <handa@m17n.org>
6460 * coding.c (encode_coding_object): If a pre-write-conversion
6461 function makes a new buffer, kill it.
6463 2008-02-01 Kenichi Handa <handa@m17n.org>
6465 * coding.c (QCascii_compatible_p): New variable.
6466 (syms_of_coding): Initialize it.
6467 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
6468 calling string_char.
6469 (record_conversion_result): Add `default:' case.
6470 (coding_charset_list): Delete unused variable `coding_type'.
6471 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
6472 property in the plist of the coding system.
6473 (Fcoding_system_put): Check QCascii_compatible_p.
6475 2008-02-01 Miles Bader <miles@gnu.org>
6477 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
6478 removed calculation of frame `f', as it's now used.
6480 2008-02-01 Kenichi Handa <handa@m17n.org>
6482 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
6483 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
6484 (UNIDATA): New variable.
6485 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
6486 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
6487 $(RUN_TEMACS) unconditionally.
6489 2008-02-01 Kenichi Handa <handa@m17n.org>
6491 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
6492 (admindir): New variable.
6493 ($(lispsource)international/charprop.el): New target.
6495 2008-02-01 Miles Bader <miles@gnu.org>
6497 * character.c (chars-in-region): Remove obsolete function.
6498 (syms_of_character): Remove its initialization.
6500 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
6502 * w32select.c (validate_coding_system)
6503 (setup_windows_coding_system): New functions.
6504 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
6505 setup_windows_coding_system.
6506 (setup_config, Fw32_get_clipboard_data): Use
6507 validate_coding_system.
6508 (Fx_selection_exists): Move call to setup_config to a place
6509 where signals are allowed.
6511 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
6512 (Fcheck_coding_system): Add declarations.
6514 2008-02-01 Kenichi Handa <handa@m17n.org>
6516 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
6518 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6520 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
6521 string as the second argument for x_new_fontset.
6523 2008-02-01 Kenichi Handa <handa@m17n.org>
6525 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
6526 (encode_coding_object): Use safe_call instead of call2.
6528 2008-02-01 Kenichi Handa <handa@m17n.org>
6530 * fontset.c (Fset_fontset_font): Check family element of a given vector.
6532 * Makefile.in (lisp): Include charprop.el.
6534 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6536 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
6537 Not sure if it's unnecessary.
6539 2008-02-01 Steven Tamm <steventamm@mac.com>
6541 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
6542 some possibly unnecessary fontset checking code that crashed
6543 when creating a new frame.
6545 2008-02-01 Kenichi Handa <handa@m17n.org>
6547 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
6550 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
6552 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
6554 2008-02-01 Kenichi Handa <handa@m17n.org>
6556 * coding.c: Cancel the change done in HEAD on 2008-02-01.
6557 (coding_charset_list): New function.
6559 * coding.h (coding_charset_list): Extern it.
6561 2008-02-01 Kenichi Handa <handa@m17n.org>
6563 * fontset.c (Fset_fontset_font): Call find_font_encoding with
6564 concatenation of family and registry.
6566 2008-02-01 Kenichi Handa <handa@m17n.org>
6568 * character.h (BYTE8_STRING): Fix typo.
6570 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
6571 string to multibyte (sync to HEAD).
6573 * casefiddle.c (casify_region): Handle changes in byte-length
6574 using replace_range_2 (sync to HEAD).
6576 2008-02-01 Andreas Schwab <schwab@suse.de>
6578 * chartab.c (map_char_table): GCPRO table and arg.
6580 2008-02-01 Kenichi Handa <handa@m17n.org>
6582 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
6585 2008-02-01 Kenichi Handa <handa@m17n.org>
6587 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
6588 instead of fast_c_string_match_ignore_case.
6589 (find_font_encoding): Change argument to Lisp_Object. Use
6590 fast_string_match_ignore_case instead of
6591 fast_c_string_match_ignore_case. Change caller.
6593 2008-02-01 Kenichi Handa <handa@m17n.org>
6595 * xdisp.c (get_next_display_element): In unibyte case, decide to
6596 display in octal form by checking a chacter by
6597 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
6599 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
6601 * character.c (unibyte_has_multibyte_table): New variable.
6603 * character.h (unibyte_has_multibyte_table): Extern it.
6604 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
6606 2008-02-01 Kenichi Handa <handa@m17n.org>
6608 * coding.c (encode_coding_iso_2022): Fix handling of charset
6611 2008-02-01 Kenichi Handa <handa@m17n.org>
6613 * coding.c (setup_coding_system): If coding_system is nil, use
6615 (Fterminal_coding_system): Return nil if terminal coding system is
6617 (syms_of_coding): Define coding-system `undecided' here. Setup
6618 terminal_coding as `undecided'.
6620 2008-02-01 Kenichi Handa <handa@m17n.org>
6622 * xdisp.c (message_dolog, set_message_1): Call
6623 unibyte_char_to_multibyte with arg type int.
6625 * lread.c (read1): Fix reading of a char-table.
6627 * print.c (print_object): Include sub char-table in cicularities
6630 2008-02-01 Kenichi Handa <handa@m17n.org>
6632 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
6633 cons. Append the found sequences in car of ARGS instead of prepending.
6635 2008-02-01 Kenichi Handa <handa@m17n.org>
6637 * fileio.c (report_file_error): Make a unibyte string from
6639 (Fsubstitute_in_file_name): Fix the arg to
6640 unibyte_char_to_multibyte. It is evaluated twice.
6642 2008-02-01 Kenichi Handa <handa@m17n.org>
6644 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
6646 2008-02-01 Kenichi Handa <handa@m17n.org>
6648 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
6650 (detect_coding, detect_coding_system): Optimization for ISO-2022
6651 when no 8-bit data is found.
6653 2008-02-01 Jason Rumney <jasonr@gnu.org>
6655 * w32fns.c (x_to_w32_font): Update to use new coding struct.
6657 2008-02-01 Kenichi Handa <handa@m17n.org>
6659 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
6662 2008-02-01 Steven Tamm <steventamm@mac.com>
6664 * macterm.c (mac_encode_char): Add charset argument and update
6665 to use encoding_type.
6666 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
6667 switch to pure fontset.
6668 (decode_mac_font_name): Temporarily remove decoding.
6669 (x_font_name_to_mac_font_name): Temporarily remove encoding.
6670 (x_load_font): Temporarily remove encoding.
6672 2008-02-01 Kenichi Handa <handa@m17n.org>
6674 * xfaces.c (Fface_font): If frame is not on a window system,
6675 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
6676 refer to face->font.
6677 (split_font_name_into_vector, build_font_name_from_vector)
6678 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
6679 whne HAVE_WINDOW_SYSTEM is defined.
6681 2008-02-01 Kenichi Handa <handa@m17n.org>
6683 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
6684 (x_produce_glyphs): Fix setting of members of cmp in case
6685 cmp->glyph_len is zero.
6687 * fontset.c (Fset_fontset_font): Fix docstring.
6688 (Ffontset_info): Make it backward compatible. New arg ALL.
6690 2008-02-01 Kim F. Storm <storm@cua.dk>
6692 * process.c (read_process_output): Grow decoding_buf when needed;
6693 this could cause a crash in allocate_string and compact_small_strings.
6695 2008-02-01 Kenichi Handa <handa@m17n.org>
6697 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
6699 2008-02-01 Kenichi Handa <handa@m17n.org>
6701 * coding.c (setup_coding_system): Set coding->common_flags
6702 correctly for raw-text.
6703 (consume_chars): On encoding unibyte text by raw-text, don't check
6705 (encode_coding): On encoding by raw-text, never use translation tables.
6707 * fileio.c (e_write): Short cut for the case of no encoding.
6709 2008-02-01 Kenichi Handa <handa@m17n.org>
6711 * coding.c (detect_coding, detect_coding_system): Delete unused
6714 2008-02-01 Kenichi Handa <handa@m17n.org>
6716 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
6717 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
6719 2008-02-01 Kenichi Handa <handa@m17n.org>
6721 * coding.c (Ffind_coding_systems_region_internal): Include
6722 raw-text and no-conversion in the result.
6724 2008-02-01 Kenichi Handa <handa@m17n.org>
6726 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
6727 (load_font_get_repertory): Delete unnecessary check of ENCODING of
6729 (font_def_arg, add_arg, from_arg, to_arg): New args.
6730 (set_fontset_font): Change argument.
6731 (Fset_fontset_font): Fix for the case that TARGET is a script
6732 name and charset name.
6733 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
6735 2008-02-01 Kenichi Handa <handa@m17n.org>
6737 * fontset.c (fontset_font): Rename from fontset_face. Change return
6739 (face_suitable_for_char_p, face_for_char): Adjust for the change
6741 (make_fontset_for_ascii_face): Fix setting of the fontset element
6743 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
6745 (Ffontset_info): Adjust for the change of fontset_font.
6747 * coding.c (emacs_mule_char): Check invalid code more regidly.
6749 * character.h (LEADING_CODE_LATIN_1_MIN)
6750 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
6752 2008-02-01 Kenichi Handa <handa@m17n.org>
6754 * editfns.c (check_translation): New function.
6755 (Ftranslate_region_internal): Handle M:N mapping.
6757 2008-02-01 Kenichi Handa <handa@m17n.org>
6759 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
6761 2008-02-01 Kenichi Handa <handa@m17n.org>
6763 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
6765 (decode_coding_iso_2022): Fix handling of invalid designation.
6767 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
6768 after calling code_conversion_save.
6770 2008-02-01 Kenichi Handa <handa@m17n.org>
6772 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
6774 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
6776 * fontset.c: Include "intervals.h".
6777 (fontset_face): Fix comparing of Lisp_Objects.
6778 (free_face_fontset, new_fontset_from_font_name): Fix
6779 Lisp_Object/int mixup.
6781 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
6783 * coding.c: Add many prototypes for static functions.
6784 (get_translation_table): Allow max_lookup to be NULL.
6785 (decode_coding, Ffind_coding_systems_region_internal)
6786 (Funencodable_char_position, Fcheck_coding_systems_region): Call
6787 get_translation_table with max_lookup NULL.
6789 2008-02-01 Kenichi Handa <handa@m17n.org>
6791 * coding.c (get_translation_table): Declare it as Lisp_Object.
6792 (LOOKUP_TRANSLATION_TABLE): New macro.
6793 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
6794 instead of CHAR_TABLE_REF.
6796 2008-02-01 Kenichi Handa <handa@m17n.org>
6798 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
6799 annotation data format.
6800 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
6801 Change arguments FROM and TO to single argument NCHARS. Change caller.
6802 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
6803 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6804 (decode_coding_ccl, decode_coding_charset): Pay attention to
6805 coding->charbuf_used.
6806 (get_translation): New function.
6807 (produce_chars): New arguments translation_table and last_block.
6808 Translate characters here. Return number of carryover chars.
6810 (produce_composition): New argument pos. Change caller.
6811 Adjust for the change of annotation data format.
6812 (produce_charset, produce_annotation): Likewise.
6813 (decode_coding, encode_coding): Don't call translate_chars.
6814 (consume_chars): New arg translation_table. Change caller.
6815 (translate_chars): Delete.
6816 (syms_of_coding): Make translation-table's number of extra slots 2.
6818 2008-02-01 Kenichi Handa <handa@m17n.org>
6820 * search.c (simple_search): Fix setting this_pos_byte in backward
6823 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
6825 (detect_coding_ccl): Fix setting of the variable valids.
6827 2008-02-01 Kenichi Handa <handa@m17n.org>
6829 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
6831 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
6833 * editfns.c (Ftranslate_region_internal): Rename from
6834 Ftranslate_region. Accept a char-table in TABLE.
6835 (syms_of_editfns): Defsubr Stranslate_region_internal.
6837 * xfaces.c (set_lface_from_font_name): If a font is specified for
6838 a frame, generate a fontset from the font.
6839 (build_scalable_font_name): If the scalable font is requested for
6840 a specific size, don't change that size.
6841 (try_font_list): Try a scalable font also in the case that a
6842 pattern string is specified.
6844 2008-02-01 Kenichi Handa <handa@m17n.org>
6846 * xfaces.c (Fface_font): New optional arg CHARACTER.
6848 2008-02-01 Kenichi Handa <handa@m17n.org>
6850 * charset.h (CHARSET_OFFSET): New macro.
6852 2008-02-01 Kenichi Handa <handa@m17n.org>
6854 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
6856 * fontset.c (fontset_face): Handle the case that repertory is a
6858 (find_font_encoding): Return nil for unknown encoding.
6859 (Fset_fontset_font): Ignore a font of unknown encoding.
6861 2008-02-01 Kenichi Handa <handa@m17n.org>
6863 * keymap.c (describe_vector): Handle default value of a char table.
6865 * fontset.c (fontset_face): Handle fallback fonts correctly.
6866 (Ffontset_info): Return infomation about fallback fonts.
6868 2008-02-01 Kenichi Handa <handa@m17n.org>
6870 * fontset.c (FONTSET_DEFAULT): New macro.
6871 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
6872 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
6873 the case that it is nil.
6874 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
6875 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
6877 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
6880 2008-02-01 Kenichi Handa <handa@m17n.org>
6882 * emacs.c (main): Call init_charset after syms_of_XXX.
6884 * charset.c (Vcharset_map_directory): Delete.
6885 (Vcharset_map_path): New variable.
6886 (load_charset_map_from_file): Use Vcharset_map_path instead.
6887 (init_charset): Initialize Vcharset_map_path.
6888 (syms_of_charset): Delete declaration of "charset-map-directory",
6889 add declaration of "charset-map-path".
6891 2008-02-01 Kenichi Handa <handa@m17n.org>
6893 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
6896 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
6898 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6899 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
6901 2008-02-01 Kenichi Handa <handa@m17n.org>
6903 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
6905 * coding.c (QCmnemonic, QCdefalut_char)
6906 (QCdecode_translation_table, QCencode_translation_table)
6907 (QCpost_read_conversion, QCpre_write_conversion): New variables.
6908 (get_translation_table): Return a list of translation tables if
6910 (decode_coding): Call get_translation_table with ENCODEP 0.
6911 (char_encodable_p): If translation_table is non-nil, always call
6913 (Fdefine_coding_system_internal): Accept list of translation
6914 tables as :encode-translation-table and :decode-translation-table.
6915 (Fcoding_system_put): New function.
6916 (syms_of_coding): Declare new symbols. Defsubr
6918 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
6921 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
6922 when the charset is superset type.
6924 * character.c (translate_char): Accept list of translation tables.
6926 2008-02-01 Kenichi Handa <handa@m17n.org>
6928 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
6929 (CODING_ATTR_TRANS_TBL): New macro.
6931 * coding.c (get_translation_table): New function.
6932 (translate_chars): Fix the bug of skipping annotation data.
6933 (decode_coding, encode_coding): Utilize get_translation_table.
6934 (char_encodable_p, Funencodable_char_position): Translate char if
6936 (Ffind_coding_systems_region_internal)
6937 (Fcheck_coding_systems_region): Setup translation table for encode
6938 in a coding system attribute vector in advance.
6939 (Fdefine_coding_system_internal): Allow a symbol as translation
6940 table. For shift-jis type coding system, allow 4th charset.
6942 2008-02-01 Kenichi Handa <handa@m17n.org>
6944 * coding.c (decode_coding_sjis): Check the first byte rigidly.
6946 * xdisp.c (get_next_display_element): Pass -1 as POS to
6947 FACE_FOR_CHAR if displaying a C-string.
6949 2008-02-01 Kenichi Handa <handa@m17n.org>
6951 * composite.c (get_composition_id): Handle xoff and yoff in a
6954 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6955 (struct composition): New member lbearing and rbearing.
6957 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6958 (x_get_glyph_overhangs): Handle a composition glyph.
6959 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
6961 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6964 2008-02-01 Kenichi Handa <handa@m17n.org>
6966 * print.c: Include charset.h.
6967 (Vprint_charset_text_property): New variable.
6968 (Qdefault): Extern it.
6969 (PRINT_STRING_NON_CHARSET_FOUND)
6970 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6971 (print_check_string_result): New variable.
6972 (print_check_string_charset_prop): New function.
6973 (print_prune_charset_plist): New variable.
6974 (print_prune_string_charset): New function.
6975 (print_object): Call print_prune_string_charset if
6976 Vprint_charset_text_property is not t.
6977 (print_interval): Print nothing if itnerval->plist is nil.
6978 (syms_of_print): Declare Vprint_charset_text_property as a lisp
6979 variable. Init and staticpro print_prune_charset_plist.
6981 2008-02-01 Kenichi Handa <handa@m17n.org>
6983 * fontset.c (new_fontset_from_font_name): Use the specified font
6984 for all characters in the new fontset.
6986 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6989 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
6990 OBJECT args for composition too.
6992 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6995 2008-02-01 Kenichi Handa <handa@m17n.org>
6997 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
6999 * fontset.c (reorder_font_vector): Adjust for the change of
7001 (fontset_face): New arg id. Change caller.
7002 (face_for_char): New args pos and object.
7003 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
7004 (fs_query_fontset): Check NAME by Fassoc too.
7005 (Fset_fontset_font): Allow non-XLFD font name.
7006 (Ffontset_info): Adjust for the change of FONT_DEF format.
7008 * fontset.h (face_for_char): Adjust prototype.
7010 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
7011 (append_space, extend_face_to_end_of_line)
7012 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7013 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
7015 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
7016 POS and OBJECT args.
7018 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
7019 POS and OBJECT args.
7021 2008-02-01 Jason Rumney <jasonr@gnu.org>
7023 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
7024 of GlobalAlloc'ed memory.
7026 2008-02-01 Kenichi Handa <handa@m17n.org>
7028 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
7030 * charset.h (charset_table_used): Delete extern.
7032 * charset.c (charset_table_used): Make it static.
7033 (map_charset_chars): Fix args to c_function with.
7035 * chartab.c (map_sub_char_table_for_charset): Fix args to
7038 * coding.h (enum coding_result_code): Delete
7039 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
7041 * coding.c (Qinsufficient_source, Qinconsistent_eol)
7042 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
7043 (Vlast_code_conversion_error): New variables.
7044 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
7045 (ONE_MORE_BYTE): Record error if any instead of signaling an
7046 error. If non-ASCII multibyte char is found, return the negative
7047 value of the code. All callers changed to check it.
7048 (ONE_MORE_BYTE_NO_CHECK): Likewise.
7049 (record_conversion_result): New function. Change all codes setting
7050 coding->result to call this function.
7051 (detect_coding_utf_8, decode_coding_utf_8)
7052 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
7053 Don't use the local variable incomplete.
7054 (emacs_mule_char): Change the second arg to `const'.
7055 (decode_coding): Fix of flushing out unprocessed data.
7056 (make_conversion_work_buffer): Fix making of a work buffer.
7057 (decode_coding_object): Return coding->dst_object.
7059 * fontset.c (set_fontset_font): Fix args.
7061 * lisp.h (CHARACTERBITS): Define as 22.
7063 * process.c (send_process): Be sure to set coding->src_multibyte.
7065 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
7067 2008-02-01 Kenichi Handa <handa@m17n.org>
7069 * xdisp.c (handle_auto_composed_prop): Give limit to
7070 Fnext_single_char_property_change.
7072 2008-02-01 Kenichi Handa <handa@m17n.org>
7074 * composite.c (syms_of_composite): Don't make the composition hash
7077 * fontset.c (Fset_fontset_font): Fix docstring.
7079 * lisp.h (detect_coding_system): Adjust prototype.
7081 * fileio.c (kill_workbuf_unwind): Delete this function.
7082 (Finsert_file_contents): Adjust the call of detect_coding_system.
7083 Get conversion_buffer by code_conversion_save. Use the macor
7084 CODING_MAY_REQUIRE_DECODING. After decoding, update
7087 * coding.h (make_conversion_work_buffer): Delete extern.
7088 (code_conversion_save): Extern it.
7090 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
7091 (CODING_GET_INFO): Delete argument eol_type. Change callers.
7092 (decode_coding_utf_8): Don't do eol converion.
7093 (detect_coding_utf_16): Check coding->src_chars, not
7094 coding->src_bytes. Add heuristics for those that have no signature.
7095 (decode_coding_emacs_mule, decode_coding_iso_2022)
7096 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7097 Don't do eol converion.
7098 (adjust_coding_eol_type): Return a new coding system.
7099 (detect_coding): Don't detect eol. Fix for utf-16 detection.
7100 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
7102 (decode_coding): Pay attention to undo_list. Do eol convesion for
7103 all types of coding-systems (if necessary).
7104 (Vcode_conversion_work_buf_list): Delete it.
7105 (Vcode_conversion_reused_workbuf): Rename from
7106 Vcode_conversion_reused_work_buf.
7107 (Vcode_conversion_workbuf_name): New variable.
7108 (reused_workbuf_in_use): New variable.
7109 (make_conversion_work_buffer): Delete the arg DEPTH.
7110 (code_conversion_restore): Change argument to cons.
7111 (code_conversion_save): Delete the argument BUFFER. Change callers.
7112 (detect_coding_system): New argument src_chars. Change callers.
7113 Fix for utf-16 detection.
7114 (init_coding_once): Don't use ISO_carriage_return.
7115 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
7116 reused_workbuf_in_use.
7118 2008-02-01 Kenichi Handa <handa@m17n.org>
7120 * keymap.c (store_in_keymap): Pay attention to the case that idx
7121 is a cons specifying a character range.
7123 2008-02-01 Kenichi Handa <handa@m17n.org>
7125 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
7126 HANDLED_RECOMPUTE_PROPS.
7128 * coding.c (Fdefine_coding_system_internal): Fix checking of
7129 ascii compatibility.
7131 2008-02-01 Kenichi Handa <handa@m17n.org>
7133 * charset.c (find_charsets_in_text): Delete unused locale variable.
7134 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
7136 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
7137 Resync charset_list to Vemacs_mule_charset_list.
7139 * keymap.c (store_in_keymap): Pay attention to the case that idx
7140 is a cons specifying a character range.
7142 2008-02-01 Kenichi Handa <handa@m17n.org>
7144 * composite.c (update_compositions): Bind inhibit-read-only, etc
7145 to t before calling remove-list-of-text-properties.
7147 * print.c (print_object): Always print ASCII chars as is.
7149 2008-02-01 Kenichi Handa <handa@m17n.org>
7151 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
7153 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
7156 2008-02-01 Kenichi Handa <handa@m17n.org>
7158 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
7160 2008-02-01 Kenichi Handa <handa@m17n.org>
7162 * xfaces.c (set_lface_from_font_name): Fix for the case that
7163 FONTNAME is not fontset name.
7165 2008-02-01 Kenichi Handa <handa@m17n.org>
7167 * fns.c (base64_encode_1): Fix previous change.
7169 2008-02-01 Kenichi Handa <handa@m17n.org>
7171 * fontset.c (set_fontset_font): New function.
7172 (Fset_fontset_font): If a font is specified for a charset, use
7173 map_charset_chars to store the font spec in a fontset.
7175 2008-02-01 Kenichi Handa <handa@m17n.org>
7177 * fontset.c (fontset_face): Create a fallback fontset on demand.
7178 (make_fontset): Don't create a fallback fontset here.
7179 (free_face_fontset): Free a fallback fontset (if any) too.
7180 (n_auto_fontsets): Delete this variable.
7181 (auto_fontset_alist): New variable.
7182 (new_fontset_from_font_name): Check auto_fontset_alist.
7183 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
7184 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
7185 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
7186 Defsubr Sfontset_list_all.
7188 2008-02-01 Kenichi Handa <handa@m17n.org>
7190 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7192 2008-02-01 Kenichi Handa <handa@m17n.org>
7194 * fontset.c (Fnew_fontset): Check NAME more rigidly.
7196 2008-02-01 Kenichi Handa <handa@m17n.org>
7198 * editfns.c (Fgoto_char): Fix docstring.
7200 2008-02-01 Kenichi Handa <handa@m17n.org>
7202 * insdel.c (insert_from_gap): Adjust intervals correctly.
7204 2008-02-01 Jason Rumney <jasonr@gnu.org>
7206 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
7207 (pfnGetFontUnicodeRanges): New dynamically loaded function.
7208 (w32_initialize): Try to load it.
7209 (x_get_font_repertory): Use it if available.
7210 (w32_encode_char): Add shortcut for unicode output.
7212 * w32fns.c (w32_load_system_font): Default charset to -1.
7213 (x_to_w32_charset): Match all fonts for unicode.
7214 (w32_to_x_charset): New parameter matching. Don't return partial
7215 or wildcard charsets.
7216 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
7217 (w32_codepage_for_font): Return CP_UNICODE for unicode.
7218 (w32_to_x_font): Match charset to real charset.
7219 (enum_font_cb2): Always list unicode versions.
7221 * makefile.w32-in (temacs): Increase EMHEAP.
7223 2008-02-01 Jason Rumney <jasonr@gnu.org>
7225 * w32term.c (w32_encode_char): New charset parameter.
7226 font_info.encoding becomes encoding_type.
7227 (x_get_font_repertory): New function. Warning: stub only!
7228 (x_new_font): Return quickly if font already set.
7229 (x_new_fontset): fontsetname parameter is Lisp_Object.
7230 Use new fs_query_fontset. Try new_fontset_from_font_name.
7231 Use fontset_name for return value.
7233 * w32term.h: Declare x_get_font_repertory.
7235 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
7236 place of find_charset_in_text. Use encode_coding_object in place
7238 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
7241 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
7243 (w32_load_system_font): Initialize charset as unicode.
7244 font_info.encoding becomes encoding_type.
7245 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
7246 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
7247 (syms_of_w32fns): Set get_font_repertory_func.
7249 * w32console.c: Include character.h. Use terminal_encode_buffer
7251 (write_glyphs): Use new version of encode_terminal_code. Use
7252 encode_coding_object in place of encode_coding.
7254 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
7255 encoding becomes encoding_type.
7257 * term.c (terminal_encode_buffer): Make externally visible.
7259 * makefile.w32-in: Add character.h dependancies.
7260 (character.o, chartab.o): New targets.
7262 2008-02-01 Kenichi Handa <handa@m17n.org>
7264 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
7267 2008-02-01 Andreas Schwab <schwab@suse.de>
7269 * coding.c (produce_chars): Revert last change.
7271 2008-02-01 Kenichi Handa <handa@m17n.org>
7273 * charset.h (charset_unicode): Extern it.
7275 * charset.c (string_xstring_p): Check by (C >= 0x100).
7276 (find_charsets_in_text): Change format of the arc CHARSETS. New
7278 (Ffind_charset_region, Ffind_charset_string): Adjust for the
7279 change of find_charsets_in_text.
7280 (Fsplit_char): Fix doc. Never return unknown.
7282 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
7284 * coding.c (Fdefine_coding_system_alias): Update
7285 Vcoding_system_list.
7287 * fontset.c (load_font_get_repertory): Pay attention to the case
7288 that ENCODING of a font is specified by a char-table.
7290 * xterm.c (x_get_font_repertory): Handle the case that the
7291 encoding of font is other than Unicode.
7293 2008-02-01 Kenichi Handa <handa@m17n.org>
7295 * term.c (encode_terminal_code): Don't handle glyph-table. Check
7296 if a character is encodable by the terminal coding system. If
7297 not, produces proper number of `?'s. Update
7298 terminal_encode_buffer and terminal_encode_buf_size if necessary.
7299 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
7301 2008-02-01 Kenichi Handa <handa@m17n.org>
7303 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
7305 (encode_terminal_code): Change argument. Encode multiple
7306 characters at once. Store the result of encoding in
7307 terminal_encode_buffer.
7308 (write_glyphs, insert_glyphs): Adjust for the change of
7309 encode_terminal_code.
7310 (term_init): Initialize terminal_encode_buffer and
7311 terminal_encode_buf_size.
7313 * coding.c (consume_chars): If coding->src_object is nil, don't
7316 2008-02-01 Kenichi Handa <handa@m17n.org>
7318 * character.c (char_string): Use ASCII_CHAR_P instead of
7321 2008-02-01 Kenichi Handa <handa@m17n.org>
7323 * xdisp.c (handle_auto_composed_prop): Check if the last
7324 characters of auto-composed region is newly composed with the
7325 following characters.
7326 (handle_composition_prop): Fix checking of point being inside
7329 2008-02-01 Kenichi Handa <handa@m17n.org>
7331 * fns.c (concat): Don't change multibyteness of the result by
7332 concatenating an 8-bit character.
7334 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
7335 multibyteness of the result when newelt is an 8-bit character.
7337 2008-02-01 Dave Love <fx@gnu.org>
7339 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
7342 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
7344 * xfaces.c (face_numeric_value): Declare dim size_t.
7345 (Finternal_lisp_face_equal_p): Remove unused f.
7347 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
7348 (MATRIX_ROW): Remove unused vars.
7349 (draw_glyphs, x_insert_glyphs, fast_find_position)
7350 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
7353 * regex.c (regex_compile): Remove unused var.
7355 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7357 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7358 (Faccessible_keymaps, where_is_internal): Remove unused vars.
7360 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
7362 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
7364 * fileio.c (Fwrite_region): Remove unused var.
7366 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
7367 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
7369 * composite.c (Fremove_list_of_text_properties): Declare.
7371 * coding.c (inhibit_pre_post_conversion): Remove (unused).
7372 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
7373 (coding_inherit_eol_type): Remove unused attrs.
7374 (detect_coding): Cast arg of detect_eol.
7376 * charset.c (syms_of_charset): Remove unused var p.
7377 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
7380 * casetab.c (set_case_table): Remove unused var.
7382 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
7385 2008-02-01 Dave Love <fx@gnu.org>
7387 * xterm.c (x_bitmap_mask): Declare.
7389 2008-02-01 Dave Love <fx@gnu.org>
7391 * xterm.c (x_term_init): Fix type error.
7393 * lisp.h: Add Funibyte_char_to_multibyte.
7395 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
7396 (Fset_coding_system_priority): Doc fix.
7398 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
7400 * indent.c (check_composition): Make start and end EMACS_INT.
7402 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
7404 * xdisp.c (handle_composition_prop, check_point_in_composition):
7405 Make buffer positions EMACS_INT.
7407 * composite.c (find_composition, run_composition_function)
7408 (update_compositions, Ffind_composition_internal): Make buffer
7409 positions EMACS_INT.
7411 * composite.h (find_composition, update_compositions): Make
7412 position args EMACS_INT.
7414 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
7416 * intervals.c (get_property_and_range):
7417 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
7419 * unexalpha.c: Don't include varargs.h.
7421 2008-02-01 Dave Love <fx@gnu.org>
7423 * coding.h (ENCODE_UTF_8): New.
7425 * Makefile.in (gtkutil.o): Depend on coding.h.
7427 * coding.c (Fset_coding_system_priority): Doc fix.
7429 2008-02-01 Kenichi Handa <handa@m17n.org>
7431 * fileio.c (Finsert_file_contents): Call setup_coding_system in
7432 the case of auto saving.
7434 2008-02-01 Andreas Schwab <schwab@suse.de>
7436 * chartab.c (map_char_table, map_char_table_for_charset): Protect
7439 2008-02-01 Kenichi Handa <handa@m17n.org>
7441 * coding.c (decode_coding_sjis): Check bytes more rigidly.
7443 2008-02-01 Kenichi Handa <handa@m17n.org>
7445 * fileio.c (choose_write_coding_system): Return a decided coding system.
7446 (Fwrite_region): Set Vlast_coding_system_used to the return value
7447 of choose_write_coding_system.
7449 2008-02-01 Kenichi Handa <handa@m17n.org>
7451 * charset.c (Fset_charset_priority): Pay attention to duplicated
7454 * coding.c (QCcategory): New variable.
7455 (syms_of_coding): Defsym it. Set all elements of
7456 Vcoding_category_table and their symbol values.
7457 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
7458 coding-category-XXX, and coding-category-list.
7459 (Fdefine_coding_system_internal): Add category in the plist.
7461 2008-02-01 Kenichi Handa <handa@m17n.org>
7463 * callproc.c (Fcall_process): Handle carryover correctly.
7465 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
7466 (raw_text_coding_system): Check NILP (coding_system).
7467 (coding_inherit_eol_type): Check NILP (coding_system) and
7469 (consume_chars): Fix for the case of raw-text.
7471 * process.c (read_process_output): Handle carryover correctly.
7473 2008-02-01 Dave Love <fx@gnu.org>
7475 * regex.c (re_search_2): Fix last change.
7477 2008-02-01 Kenichi Handa <handa@m17n.org>
7479 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
7480 target_multibyte. Even in a unibyte case, return a converted
7482 (GET_CHAR_AFTER): New macro.
7483 (PATFETCH): Translate via multibyte char.
7484 (HANDLE_UNIBYTE_RANGE): Delete this macro.
7485 (SETUP_MULTIBYTE_RANGE): New macro.
7486 (regex_compile): Setup compiled code so that its multibyteness
7487 matches that of a target. Fix the handling of "[X-YZ]" using
7488 SETUP_MULTIBYTE_RANGE.
7489 (analyse_first) <charset>: For filling fastmap for all multibyte
7490 characters, don't check by BASE_LEADING_CODE_P.
7491 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
7492 the same as RE_MULTIBYTE_P (bufp) now.
7493 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
7494 (TARGET_CHAR_AND_LENGTH): Delete this macro.
7495 (TRANSLATE_VIA_MULTIBYTE): New macro.
7496 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
7497 It is the same as RE_MULTIBYTE_P (bufp) now.
7498 <exactn>: Translate via multibyte.
7499 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
7501 <charset, charset_not>: Fetch a character by
7502 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
7503 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
7504 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
7505 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
7507 (bcmp_translate): Likewise.
7509 * search.c (compile_pattern): Check the member target_multibyte,
7510 not the member multibyte of buf.
7512 * lread.c (read1): While reading a string, set force_singlebyte
7513 and force_multibyte correctly.
7515 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
7516 up of unibyte_to_multibyte_table.
7518 2008-02-01 Kenichi Handa <handa@m17n.org>
7520 * coding.c (setup_coding_system): If coding has
7521 post-read-conversion or pre-write-conversion, set
7522 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
7524 (decode_coding_gap): Run post-read-conversion if any.
7526 * fileio.c (Finsert_file_contents): Even if we read into a
7527 unibyte buffer, check if we must decode the result or not.
7529 2008-02-01 Kenichi Handa <handa@m17n.org>
7531 * coding.c (make_conversion_work_buffer): Change the work buffer
7532 name to the same one as that of Emacs 21.
7534 2008-02-01 Kenichi Handa <handa@m17n.org>
7536 * coding.h (make_conversion_work_buffer): Adjust prototype.
7537 (code_conversion_restore): Don't extern it.
7539 * coding.c (detected_mask): Delete unused variable.
7540 (decode_coding_iso_2022): Pay attention to the byte sequence of
7541 CTEXT extended segment, and retain those bytes as is.
7542 (decode_coding_ccl): Delete unused variable `valids'.
7543 (setup_coding_system): Delete unused variable `category'.
7544 (consume_chars): Delete unused variable `category'. Make it work
7545 for non-multibyte case.
7546 (make_conversion_work_buffer): Change argument.
7547 (saved_coding): Delete unused variable.
7548 (code_conversion_restore): Don't check saved_coding->destination.
7549 (code_conversion_save): New function.
7550 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
7551 instead of record_unwind_protect.
7552 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
7553 (detect_coding_system): Delete unused variable `mask'.
7554 (Fdefine_coding_system_internal): Delete unused vaiable id.
7556 * fileio.c (kill_workbuf_unwind): New function.
7557 (Finsert_file_contents): On replacing, call
7558 make_conversion_work_buffer with correct args, and call
7559 record_unwind_protect with the first arg kill_workbuf_unwind.
7561 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
7563 2008-02-01 Kenichi Handa <handa@m17n.org>
7565 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
7566 (fontset_add): Fix for the case that TO is less than TO1.
7567 (Ffontset_info): Don't use fallback fontset on checking the
7569 (dump_fontset): New function for debugging.
7571 * coding.c (Fdefine_coding_system_internal): Fix for the case that
7572 coding_type is Qcharset.
7574 2008-02-01 Kenichi Handa <handa@m17n.org>
7576 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
7577 (map_char_table): Don't inherit the value from the parent on
7578 initializing VAL. Adjust for the above change.
7580 2008-02-01 Kenichi Handa <handa@m17n.org>
7582 * coding.c (Qsignature, Qendian): Delete these variables.
7583 (syms_of_coding): Don't initialize them.
7584 (CATEGORY_MASK_UTF_16_AUTO): New macro.
7585 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
7587 (decode_coding_utf_16): Don't detect BOM here.
7588 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
7589 is NOT utf_16_without_bom.
7590 (setup_coding_system): For a coding system of type utf-16, check
7591 if the attribute :endian is Qbig or not (not nil or not), and set
7592 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
7593 (detect_coding): If coding type is utf-16 and BOM detection is
7594 required, detect it.
7595 (Fdefine_coding_system_internal): For a coding system of type
7596 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
7598 2008-02-01 Kenichi Handa <handa@m17n.org>
7600 * coding.c (coding_set_source): Fix for the case that the current
7601 buffer is different from coding->src_object.
7602 (decode_coding_object): Don't use the conversion work buffer if
7603 DST_OBJECT is a buffer.
7605 2008-02-01 Dave Love <fx@gnu.org>
7607 * lread.c (read_emacs_mule_char) [len==2]: Index
7608 emacs_mule_charset correctly.
7610 2008-02-01 Dave Love <fx@gnu.org>
7612 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
7613 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
7614 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
7616 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
7617 (detected_mask): Remove Big5 bits.
7619 2008-02-01 Kenichi Handa <handa@m17n.org>
7621 The following changes are to make the font rescaling facility
7622 compatible with Emacs 21.
7624 * xfaces.c (Vface_font_rescale_alist): Rename from
7625 Vface_resizing_fonts.
7626 (struct font_name): Rename member resizing_ratio to rescale_ratio.
7627 (font_rescale_ratio): Rename from font_resizing_ratio.
7628 (split_font_name): Set font->rescale_ratio.
7629 (better_font_p): Pay attention to font->rescale_ratio.
7630 (build_scalable_font_name): Likewise. Change RESX, and RESY
7632 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
7634 2008-02-01 Kenichi Handa <handa@m17n.org>
7636 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
7637 (Qutf_16_le): Remove these variables.
7638 (syms_of_coding): Don't DEFSYM them.
7639 (decode_coding_utf_16): Fix handling of BOM.
7640 (encode_coding_utf_16): Fix handling of BOM.
7642 2008-02-01 Kenichi Handa <handa@m17n.org>
7644 * fileio.c (Finsert_file_contents): On replacing, before decoding
7645 the file into the work buffer, set point of the work buffer to the end.
7647 2008-02-01 Dave Love <fx@gnu.org>
7649 * coding.c (Fcheck_coding_systems_region): Fix type errors.
7651 2008-02-01 Dave Love <fx@gnu.org>
7653 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7656 2008-02-01 Kenichi Handa <handa@m17n.org>
7658 * xdisp.c (SKIP_GLYPHS): New macro.
7659 (set_cursor_from_row): Pay attention to string display properties.
7661 * category.c (copy_category_entry): Fix for the case that RANGE
7664 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
7666 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
7668 2008-02-01 Kenichi Handa <handa@m17n.org>
7670 * charset.c (Fcharset_id_internal): New function.
7671 (syms_of_charset): Defsubr it.
7673 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
7674 with the last arg charset_list acquired from coding.
7675 (Fdefine_coding_system_internal): For ccl-based coding system, fix
7676 the attribute coding_attr_ccl_valids.
7678 * coding.h (enum define_coding_ccl_arg_index): Set the first
7679 member coding_arg_ccl_decoder to coding_arg_max.
7681 * ccl.h (ccl_driver): Adjust prototype.
7683 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
7684 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
7685 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
7686 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
7689 2008-02-01 Kenichi Handa <handa@m17n.org>
7691 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
7694 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
7696 2008-02-01 Dave Love <fx@gnu.org>
7698 * composite.c (syms_of_composite): Make composition_hash_table weak.
7700 2008-02-01 Kenichi Handa <handa@m17n.org>
7702 * dispextern.h (check_face_attributes, generate_ascii_font_name)
7703 (font_name_registry): Don't extern them.
7704 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
7706 * fontset.h (Qfontset): Don't extern it.
7707 (new_fontset_from_font_name): Extern it.
7709 * fontset.c: Give 8 extra slots to fontset objects.
7710 (Qfontset_info): New variable.
7711 (syms_of_fontset): Defsym it.
7712 (FONTSET_FALLBACK): New macro.
7713 (fontset_face): Try also the default fontset.
7714 (make_fontset): Realize a fallback fontset from the default fontset.
7715 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
7716 using split_font_name_into_vector and build_font_name_from_vector.
7717 (Fset_fontset_font): Access the elements of font_spec by enum
7718 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
7719 name by using split_font_name_into_vector.
7720 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
7721 generate a proper font name from the fontset name. Update
7722 Vfontset_alias_alist.
7723 (n_auto_fontsets): New variable.
7724 (new_fontset_from_font_name): New function.
7725 (Ffont_info): Store the information about fonts generated from the
7726 default fontset in the first extra slot of the returned char-table.
7728 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
7729 (font_name_registry): Delete function.
7730 (split_font_name_into_vector): New function.
7731 (build_font_name_from_vector): New function.
7732 (font_list): The argument REGISTRY is now a list of registry names.
7733 (choose_face_font): If we are choosing an ASCII font, and ATTRS
7734 specifies an explicit font name, return the name as is. Make a
7735 list of registy names.
7737 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
7739 (Fx_create_frame): Don't call x_new_fontset here. Just use
7740 x_list_fonts to check the existence of fonts.
7742 * xterm.h (x_new_fontset): Adjust prototype.
7744 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
7745 string. Use new_fontset_from_font_name to create a fontset from a
7748 2008-02-01 Kenichi Handa <handa@m17n.org>
7750 * syntax.c (Vfind_word_boundary_function_table): New name for
7751 Vnext_word_boundary_function_table.
7752 (find-word-boundary-function-table): New name for
7753 next-word-boundary-function-table.
7755 2008-02-01 Dave Love <fx@gnu.org>
7757 * Makefile.in: Fix some dependencies.
7759 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
7760 set it to nil before returning.
7762 * composite.c (update_compositions): Fix type error.
7764 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
7766 2008-02-01 Kenichi Handa <handa@m17n.org>
7768 * xterm.c (x_new_font): Optimize for the case that the font is
7769 already set for the frame.
7771 2008-02-01 Kenichi Handa <handa@m17n.org>
7773 * chartab.c (char_table_ascii): Check if the char table contents
7774 is sub-char-table or not.
7775 (char_table_set, char_table_set_range): Fix argument to
7778 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
7779 (detect_coding_utf_8, detect_coding_utf_16)
7780 (detect_coding_emacs_mule, detect_coding_iso_2022)
7781 (detect_coding_sjis, detect_coding_big5)
7782 (detect_coding_ccl, detect_coding_charset): Change argument MASK
7783 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
7784 sequence is valid in this coding system. Change callers.
7785 (MAX_ANNOTATION_LENGTH): New macro.
7786 (ADD_ANNOTATION_DATA): New macro.
7787 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
7788 ADD_ANNOTATION_DATA. Change the format of annotation data.
7789 (ADD_CHARSET_DATA): New macro.
7790 (emacs_mule_char): New argument ID. Change callers.
7791 (decode_coding_emacs_mule, decode_coding_iso_2022)
7792 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7793 Produce charset annotation data in coding->charbuf.
7794 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
7795 to charset annotation data in coding->charbuf.
7796 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
7797 coding->common_flags if the coding system is iso-2022 based and
7799 (produce_composition): Adjust for the new annotation data format.
7800 (produce_charset): New function.
7801 (produce_annotation): Handle charset annotation.
7802 (handle_composition_annotation, handle_charset_annotation): New
7804 (consume_chars): Handle charset annotation. Utilize the above two
7806 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
7807 buffer, get the deleted text as a string and set
7808 coding->src_object to that string.
7809 (detect_coding, detect_coding_system): Use the new struct
7810 coding_detection_info.
7812 * coding.h (struct coding_detection_info): New structure.
7813 (struct coding_system): Adjust prototype of the member `detector'.
7814 (CODING_ANNOTATE_CHARSET_MASK): New macro.
7816 2008-02-01 Kenichi Handa <handa@m17n.org>
7818 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
7820 2008-02-01 Dave Love <fx@gnu.org>
7822 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
7823 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
7824 to new local and nullify apropos_accumulate before returning.
7825 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
7827 2008-02-01 Kenichi Handa <handa@m17n.org>
7829 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
7832 2008-02-01 Dave Love <fx@gnu.org>
7834 * fns.c (Flanginfo): Call synchronize_system_time_locale.
7836 2008-02-01 Kenichi Handa <handa@m17n.org>
7838 The following changes are to make character composition happen
7839 automatically on displaying.
7841 * Makefile.in (lisp, shortlisp): Add composite.elc.
7843 * composite.h (Qauto_composed, Vauto_composition_function)
7844 (Qauto_composition_function): Extern them.
7846 * composite.c (Vcomposition_function_table)
7847 (Qcomposition_function_table): Delete variables.
7848 (Qauto_composed, Vauto_composition_function)
7849 (Qauto_composition_function): New variables.
7850 (run_composition_function): Don't call
7851 compose-chars-after-function.
7852 (update_compositions): Clear `auto-composed' text property.
7853 (compose_chars_in_text): Delete this function.
7854 (syms_of_composite): Staticpro Qauto_composed and
7855 Qauto_composition_function. Declare Vauto_composition_function as
7858 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
7860 * xdisp.c (it_props): Add an entry for Qauto_composed.
7861 (handle_auto_composed_prop): New function.
7863 * xselect.c (selection_data_to_lisp_data): Don't call
7864 compose_chars_in_text.
7866 2008-02-01 Dave Love <fx@gnu.org>
7868 * keyboard.c (read_char): Modify checking around use of
7869 Vkeyboard_translate_table.
7871 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7874 2008-02-01 Kenichi Handa <handa@m17n.org>
7876 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
7877 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7878 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
7879 the case that the last byte is '\r' correctly.
7880 (decode_coding): Flush out the unprocessed data correctly.
7881 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
7883 2008-02-01 Dave Love <fx@gnu.org>
7885 * xterm.c (XTread_socket): Fix changes for defined keysyms.
7887 (xaw_scroll_callback): Revert last change.
7889 2008-02-01 Kenichi Handa <handa@m17n.org>
7891 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
7893 2008-02-01 Kenichi Handa <handa@m17n.org>
7895 * xfaces.c (Vface_resizing_fonts): New variable.
7896 (struct font_name): New member `resizing_ratio'.
7897 (font_resizing_ratio): New function.
7898 (split_font_name): Set font->resizing_ratio.
7899 (better_font_p): Pay attention to font->resizing_ratio.
7900 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
7901 RESX, and RESY fields.
7902 (try_alternative_families): Try scalable fonts if
7903 Vscalable_fonts_allowed is not Qt.
7904 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
7906 2008-02-01 Dave Love <fx@gnu.org>
7908 * xterm.c (xaw_scroll_callback): Cast correctly.
7910 2008-02-01 Dave Love <fx@gnu.org>
7912 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
7913 (lispy_kana_keys): Comment out.
7914 (make_lispy_event) [XK_kana_A]: Comment out.
7916 * xterm.c (xaw_scroll_callback): Cast call_data.
7917 (XTread_socket): Deal with ASCII keysyms.
7918 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
7920 2008-02-01 Dave Love <fx@gnu.org>
7922 * xterm.c (Vx_keysym_table): New.
7923 (syms_of_xterm): Initialize it.
7924 (XTread_socket): Use it.
7925 From head: Eliminate incorrect optimization that tried to avoid
7926 decoding the output of X*LookupString.
7927 (x_get_font_repertory): Delete charset declaration.
7929 2008-02-01 Kenichi Handa <handa@m17n.org>
7931 * coding.c (detect_coding_charset): If only ASCII bytes are found,
7933 (Fdefine_coding_system_internal): Setup
7934 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
7936 2008-02-01 Dave Love <fx@gnu.org>
7938 * coding.c (Fcheck_coding_system): Doc fix.
7940 * editfns.c (Finsert_byte): Return a proper value.
7942 2008-02-01 Kenichi Handa <handa@m17n.org>
7944 * coding.c (decode_coding): Fix args to translate_chars. Pay
7945 attention to Vstandard_translation_table_for_decode.
7946 (encode_coding): Fix args to translate_chars. Pay attention to
7947 Vstandard_translation_table_for_encode.
7949 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7952 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7953 not by SINGLE_BYTE_CHAR_P.
7955 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7958 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7961 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7962 by SINGLE_BYTE_CHAR_P.
7964 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7967 2008-02-01 Dave Love <fx@gnu.org>
7969 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7971 2008-02-01 Dave Love <fx@gnu.org>
7973 * fns.c (Flanginfo): Fix typo.
7975 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
7977 2008-02-01 Kenichi Handa <handa@m17n.org>
7979 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
7980 (detect_coding_emacs_mule, detect_coding_iso_2022)
7981 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
7982 incomplete byte sequence. Don't update *mask when correctly detected.
7983 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
7984 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
7985 (detect_coding, detect_coding_system): Adjust for the changes above.
7987 2008-02-01 Kenichi Handa <handa@m17n.org>
7989 * character.c (char_string): Rename from
7990 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
7991 (string_char): Rename from string_char.
7993 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
7994 if C is greater than MAX_3_BYTE_CHAR.
7995 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
7996 string_char instead of string_char_with_unification.
7998 2008-02-01 Dave Love <fx@gnu.org>
8000 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
8002 2008-02-01 Kenichi Handa <handa@m17n.org>
8004 * keymap.c (push_key_description): Pay attention to force_multibyte.
8006 * regex.c (re_search_2): Fix for the case of unibyte buffer.
8008 2008-02-01 Dave Love <fx@gnu.org>
8010 * charset.c (define_charset_internal): Rename `supprementary'.
8012 * Makefile.in (lisp, shortlisp): Remove latin-N.
8014 2008-02-01 Dave Love <fx@gnu.org>
8016 * xfns.c (x_window, x_window): Use use_xim.
8018 * xterm.c (use_xim): Initialize.
8019 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8020 (x_term_init): Maybe set use_xim.
8022 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8024 2008-02-01 Kenichi Handa <handa@m17n.org>
8026 * search.c (search_buffer): Fix case-fold-search of multibyte
8028 (boyer_moore): Rename the last argument to char_high_bits.
8030 2008-02-01 Kenichi Handa <handa@m17n.org>
8032 * xdisp.c (display_string): Fix for the case of zero width glyph.
8034 * xfns.c (x_set_font): Change the error message of the case that
8035 x_new_fontset returns Qt.
8037 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
8038 (Finternal_set_lisp_face_attribute): Use signal_error for the
8039 error of invalid fontset.
8041 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
8044 2008-02-01 Dave Love <fx@gnu.org>
8046 * unexelf.c (unexec): Make .got handling not SGI-specific.
8048 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
8050 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
8052 * keyboard.c (read_key_sequence): Fix type error.
8054 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
8057 * fontset.c (fontset_add): Return Lisp_Object.
8059 2008-02-01 Dave Love <fx@gnu.org>
8061 * charset.h (charset_ordered_list_tick): Declare extern.
8063 2008-02-01 Kenichi Handa <handa@m17n.org>
8065 The following changes (and some of 2008-02-01 changes of mine) are
8066 for handling syntax, category, and case conversion for unibyte
8067 characters by converting them to multibyte on the fly. With these
8068 changes, we don't have to setup syntax and case tables for unibyte
8069 characters in each language environment.
8071 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
8072 multibyte if necessary.
8074 * bytecode.c (Fbyte_code): Likewise.
8076 * character.h (LEADING_CODE_LATIN_1_MIN)
8077 (LEADING_CODE_LATIN_1_MAX): New macros.
8078 (unibyte_to_multibyte_table): Extern it.
8079 (unibyte_char_to_multibyte): New macro.
8080 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
8081 (CHAR_LEADING_CODE): New macro.
8082 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
8084 * character.c (unibyte_to_multibyte_table): New variable.
8085 (unibyte_char_to_multibyte): Move to character.h and define as macro.
8086 (multibyte_char_to_unibyte): If C is an eight-bit character,
8087 convert it to the corresponding byte value.
8089 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
8090 not 1, singals an error. Update the elements of
8091 unibyte_to_multibyte_table.
8092 (init_charset_once): Initialize unibyte_to_multibyte_table.
8093 (syms_of_charset): Define the charset `iso-8859-1'.
8095 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
8096 as is without converting it to unibyte. In a unibyte buffer,
8097 convert C to multibyte before checking the syntax.
8099 * lisp.h (unibyte_char_to_multibyte): Delete extern.
8101 * minibuf.c (Fminibuffer_complete_word): Use the macro
8102 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
8104 * regex.h (struct re_pattern_buffer): New member target_multibyte.
8106 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
8107 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
8108 that is zero, convert an eight-bit char to multibyte.
8109 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
8111 (PATFETCH): Convert an eight-bit char to multibyte.
8112 (HANDLE_UNIBYTE_RANGE): New macro.
8113 (regex_compile): Setup the compiled pattern for multibyte chars
8114 even if the given regex string is unibyte. Use PATFETCH_RAW
8115 instead of PATFETCH in many places. To handle `charset'
8116 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
8117 only for ASCII chars.
8118 (analyse_first) <exactn>: Simplify because the compiled pattern
8120 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
8121 <charset>: Use CHAR_LEADING_CODE to get leading codes.
8122 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
8123 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
8125 (re_search_2): In emacs, set the locale variable multibyte to 1,
8126 otherwise to 0. New local variable target_multibyte. Check it
8127 to decide the multibyteness of STR1 and STR2. If
8128 target_multibyte is zero, convert unibyte chars to multibyte
8129 before translating and checking fastmap.
8130 (TARGET_CHAR_AND_LENGTH): New macro.
8131 (re_match_2_internal): In emacs, set the locale variable multibyte
8132 to 1, otherwise to 0. New local variable target_multibyte. Check
8133 it to decide the multibyteness of STR1 and STR2. Use
8134 TARGET_CHAR_AND_LENGTH to fetch a character from D.
8135 <charset, charset_not>: If multibyte is nonzero, check fastmap
8136 only for ASCII chars. Call bcmp_translate with
8137 target_multibyte, not with multibyte.
8138 <begline>: Declare the local variable C as `unsigned'.
8139 (bcmp_translate): Change the last arg name to target_multibyte.
8141 * search.c (compile_pattern_1): Don't adjust the multibyteness of
8142 the regexp pattern and the matching target. Set cp->buf.multibyte
8143 to the multibyteness of the regexp pattern. Set
8144 cp->but.target_multibyte to the multibyteness of the matching target.
8145 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
8146 FETCH_STRING_CHAR_ADVANCE.
8147 (Freplace_match): Convert unibyte chars to multibyte.
8149 * syntax.c (char_quoted, back_comment, scan_words)
8150 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
8151 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
8152 unibyte chars to multibyte.
8153 (skip_chars): Delete the arg syntaxp, and move the code for
8154 handling syntaxes to skip_syntaxes. Change callers.
8155 Fix the case that the multibyteness of STRING and the current
8156 buffer doesn't match.
8157 (skip_syntaxes): New function.
8158 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
8161 2008-02-01 Kenichi Handa <handa@m17n.org>
8163 * xfaces.c (QCfontset): New variable.
8164 (LFACE_FONTSET): New macro.
8165 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
8166 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
8167 (Finternal_set_lisp_face_attribute)
8168 (Finternal_get_lisp_face_attribute): Handle QCfontset.
8169 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
8170 check also LFACE_FONTSET_INDEX.
8171 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
8172 attrs[LFACE_FONT_INDEX].
8173 (syms_of_xfaces): Intern and staticpro QCfontset.
8175 * dispextern.h (enum lface_attribute_index): New member
8176 LFACE_FONTSET_INDEX.
8178 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
8180 2008-02-01 Kenichi Handa <handa@m17n.org>
8182 * coding.c (coding_set_destination): Fix coding->destination for
8183 the case converting a region.
8184 (encode_coding_utf_8): Encode eight-bit chars as single byte.
8185 (encode_coding_object): Fix coding->dst_pos and
8186 coding->dst_pos_byte for the case converting a region.
8188 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
8190 * character.h (BYTE8_STRING): New macro.
8192 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
8194 2008-02-01 Kenichi Handa <handa@m17n.org>
8196 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
8197 characters by octal form.
8199 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8201 * buffer.h (_fetch_multibyte_char_len): Delete extern.
8202 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
8203 _fetch_multibyte_char_len.
8204 (FETCH_CHAR_AS_MULTIBYTE): New macro.
8206 * casetab.c (set_canon, set_identity, shuffle): Simplify.
8208 * casefiddle.c (casify_object): Simplify. Handle the case that
8209 the case conversion change the byte length.
8210 (casify_region): Likewise.
8212 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
8214 * character.c (_fetch_multibyte_char_len): Delet this variable.
8215 (syms_of_character): Setup Vprintable_chars.
8217 * editfns.c (Fchar_equal): Fix for the unibyte case.
8218 (Finsert_byte): New function.
8219 (syms_of_editfns): Defsubr it.
8221 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
8222 of direct code 0x3ffff.
8224 * search.c (Freplace_match): Fix for the unibyte case.
8226 2008-02-01 Kenichi Handa <handa@m17n.org>
8228 * lread.c (safe_to_load_p): Fix the logic.
8230 * syntax.c (scan_words): Don't treat characters belonging to
8231 different scripts as constituting a word.
8233 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8235 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
8237 * emacs.c (main): In the case of --unibyte, instead of aborting on
8238 finding non-empty buffer, make it unibyte.
8240 2008-02-01 Kenichi Handa <handa@m17n.org>
8242 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
8243 to create a fontset.
8245 2008-02-01 Dave Love <fx@gnu.org>
8247 * character.c (Funibyte_char_to_multibyte): Doc fix.
8249 * xfns.c [HAVE_STDLIB_H]: Fix last change.
8251 2008-02-01 Kenichi Handa <handa@m17n.org>
8253 * fontset.c (fontset_add): Make the type `int'.
8254 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
8256 * character.c (unibyte_char_to_multibyte)
8257 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
8258 charset_unibyte, not charset_primary.
8260 * charset.h (charset_unibyte): Extern it instead of charset_primary.
8262 * charset.c (charset_unibyte): Rename from charset_primary.
8263 (Funibyte_charset): Rename from Fprimary_charset.
8264 (Fset_unibyte_charset): Rename from Fset_primary_charset.
8265 (syms_of_charset): Adjust for the above changes.
8267 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8268 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8269 it->multibyte_p is zero.
8271 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
8274 2008-02-01 Kenichi Handa <handa@m17n.org>
8276 * coding.c (Fdefine_coding_system_internal): Fix category setting
8277 for a coding system of type iso-2022.
8279 2008-02-01 Kenichi Handa <handa@m17n.org>
8281 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
8283 2008-02-01 Kenichi Handa <handa@m17n.org>
8285 * syntax.c (Vnext_word_boundary_function_table): New variable.
8286 (next-word-boundary-function-table): Declare it as a Lisp variable
8288 (scan_words): Call functions in Vnext_word_boundary_function_table
8291 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
8293 * fontset.c (fs_load_font): If fontp->charset is not negative,
8294 return fontp without setting its members.
8296 2008-02-01 Dave Love <fx@gnu.org>
8298 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
8300 * m/sparc.h (HAVE_ALLOCA): Delete.
8302 * s/irix6-5.h: Don't include strings.h.
8303 (bcopy, bzero, bcmp): Don't undef.
8305 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
8307 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
8308 (TIOCSIGSEND): Don't test IRIX6.
8309 (bcopy, bzero, bcmp): Define conditionally.
8311 2008-02-01 Kenichi Handa <handa@m17n.org>
8313 * buffer.c (Qas, Qmake, Qto): New variables.
8314 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
8315 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
8317 * callproc.c (Fcall_process): Don't call insert_1_both directly if
8318 we are inserting a process output into a multibyte buffer.
8320 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
8321 multibyte_char_to_unibyte.
8323 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
8324 by the primary charset, make it eight-bit char.
8325 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
8327 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
8328 (charset_8_bit__control, charset_8_bit_graphic)
8329 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
8330 (define_charset_internal): New function.
8331 (syms_of_charset): Call define_charset_internal for pre-defined
8334 * charset.h (charset_8_bit): Extern it.
8336 * coding.c (make_conversion_work_buffer): Adjust for the change
8337 of Fset_buffer_multibyte.
8338 (encode_coding_raw_text): Increment p0 in the loop.
8340 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
8342 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
8343 for the change of Fset_buffer_multibyte.
8345 * fns.c (Fstring_to_multibyte): New function.
8346 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
8348 2008-02-01 Dave Love <fx@gnu.org>
8350 * xfns.c (x_put_x_image): Declare args.
8352 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
8353 (try_font_list): Declare an arg.
8355 * xdisp.c (message2_nolog, set_message): Declare an arg.
8357 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
8359 * syntax.c (scan_sexps_forward): Declare an arg.
8361 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8364 * lisp.h (Fnew_fontset): Declare.
8366 * keymap.c (push_key_description): Call CHARACTERP correctly.
8368 * fontset.c (fontset_add): Declare args. Call make_number correctly.
8369 (face_for_char): Delete unused vars.
8370 (Fset_fontset_font): Doc fix. Delete unused vars.
8372 * doc.c (Fsubstitute_command_keys): Delete unused vars.
8374 * composite.c (update_compositions): Declare arg.
8376 * cm.c (calccost, cmgoto): Declare args.
8378 * charset.c: Remove `emacs' conditional. Doc fixes.
8379 (map_char_table_for_charset): Declare.
8381 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
8383 * ccl.c: Remove `emacs' conditional.
8385 2008-02-01 Kenichi Handa <handa@m17n.org>
8387 The following changes are to allow specifying multiple font
8388 patterns for a character range (specified by script or charset).
8390 * Makefile.in (abbrev.o): Depend on syntax.h.
8391 (xfaces.o): Depend on charset.h.
8393 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
8396 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
8398 * character.h (Vchar_script_table): Extern it.
8400 * character.c (Vscript_alist): Delete.
8401 (Vchar_script_table, Qchar_script_table): New variable.
8402 (syms_of_character): Declare Vchar_script_table as a lisp variable
8405 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
8406 have property char-table-extra-slots, make no extra slot.
8408 * dispextern.h (struct face): Delete member `charset'.
8409 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
8411 (choose_face_font, lookup_non_ascii_face, font_name_registry):
8413 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
8414 (generate_ascii_font_name): Rename from generate_ascii_font.
8416 * fontset.h (get_font_repertory_func): New prototype.
8417 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
8418 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
8420 * fontset.c (Qprepend, Qappend): New variables.
8421 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
8422 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
8423 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
8424 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
8425 (fontset_ref_and_range, fontset_add, reorder_font_vector)
8426 (load_font_get_repertory): New functions.
8427 (fontset_set): Delete.
8428 (fontset_face): New arg FACE. Return face ID, not face.
8429 Complete re-write to handle new fontset structure. Change caller.
8430 (free_face_fontset): Use ASET istead of AREF (X) = Y.
8431 (face_for_char): Don't call lookup_face.
8432 (make_fontset_for_ascii_face): New arg FACE.
8433 (fs_load_font): New arg CHARSET_ID. Don't check
8434 Vfont_encoding_alist here.
8435 (find_font_encoding): New function.
8436 (list_fontsets): Use STRINGP, not ! NILP.
8437 (accumulate_script_ranges): New function.
8438 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
8439 re-written to handle new fontset structure.
8440 (Ffontset_font): Return a copy of element.
8441 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
8442 docstring of font-encoding-alist.
8444 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
8445 (Fset_fotset_font): Fix arguments to 5.
8447 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
8449 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
8450 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8451 (highlight_trailing_whitespace): Adjust for the change of
8454 * xfaces.c: Include charset.h.
8455 (load_face_font): Delete argument C. Change caller.
8456 (generate_ascii_font_name): Rename from generate_ascii_font.
8457 (font_name_registry): New function.
8458 (cache_face): Store ascii faces before non-ascii faces in buckets.
8459 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
8460 Lookup only ascii faces.
8461 (lookup_non_ascii_face): New function.
8462 (lookup_named_face): Delete argument C. Change caller.
8463 (lookup_derived_face): Delete argument C. Change caller.
8464 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
8465 a string, just call font_list with it.
8466 (choose_face_font): Delete arguments FACE and C. New arg
8467 FONT_SPEC. Change caller.
8468 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
8470 (realize_non_ascii_face): New function.
8471 (realize_x_face): Call load_face_font here.
8472 (realize_tty_face): Delete argument C. Change caller.
8473 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
8475 (dump_realized_face): Don't print charset of FACE.
8477 * xfns.c (x_set_font): Always call x_new_fontset and
8478 store_frame_parameter.
8479 (Fx_create_frame): Call x_new_fontset, not x_new_font.
8480 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
8482 * xterm.h (x_get_font_repertory): Extern it.
8484 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8485 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8486 it->multibyte_p is zero.
8487 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8488 (x_new_fontset): If FONTSETNAME doesn't match any existing
8489 fontsets, create a new one.
8490 (x_get_font_repertory): New function.
8492 2008-02-01 Kenichi Handa <handa@m17n.org>
8494 * coding.c (Ffind_coding_systems_region_internal): Detect an
8495 ASCII only string correctly.
8497 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
8500 2008-02-01 Kenichi Handa <handa@m17n.org>
8502 * lread.c: Include "coding.h".
8503 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
8504 (load_each_byte, unread_char): New variables.
8505 (readchar_backlog): Delete.
8506 (readchar): Return a character unless load_each_byte is nonzero.
8507 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
8508 cons. If unread_char is not -1, simply return it.
8509 (unreadchar): Handle the case that readcharfun is
8510 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
8511 (read_multibyte): Delete.
8512 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
8513 (read_emacs_mule_char): New functions.
8514 (Fload): Even if the file doesn't have the extention ".elc", if
8515 safe_to_load_p returns a positive version number, assume that the
8516 file contains bytecompiled code. If the version is less than 22,
8517 load the file while decoding multibyte sequences by emacs-mule.
8518 (readevalloop): Don't use readchar_backlog.
8519 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
8520 (Fread_from_string): Pay attention to the case that STREAM is a cons.
8521 (read_escape): Delete the arg BYTEREP.
8522 (read1): Set load_each_byte to 1 temporarily while handling
8523 #@NUMBER. Don't call read_multibyte.
8524 (read_vector): Call Fread with a cons. If readcharfun is
8525 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
8526 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
8527 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
8528 and Qload_force_doc_strings.
8530 2008-02-01 Kenichi Handa <handa@m17n.org>
8532 * xdisp.c (face_before_or_after_it_pos): Call
8533 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8535 2008-02-01 Kenichi Handa <handa@m17n.org>
8537 * character.h (TRAILING_CODE_P): New macro.
8538 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
8539 (string_char_with_unification): Fix prototype.
8540 (Vscript_alist): Extern it.
8542 * character.c (Vscript_alist): New variable.
8543 (string_char_with_unification, str_as_unibyte)
8544 (string_escape_byte8): Add `const' to local variables.
8545 (syms_of_character): Declare script-alist as a Lisp variable.
8547 * charset.h (Vcharset_ordered_list): Extern it.
8548 (charset_ordered_list_tick): Extern it.
8549 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
8550 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
8551 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
8552 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
8553 (Funify_charset): Adjust for the change of Funify_charset.
8555 * charset.c (charset_ordered_list_tick): New variable.
8556 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
8557 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
8558 deunify intead of unify a charset.
8559 (string_xstring_p): Add `const' to local variables.
8560 (find_charsets_in_text): Add `const' to arguemnts and local variables.
8561 (encode_char): Adjust for the change of Funify_charset. Fix
8562 detecting of invalid code.
8563 (Fset_charset_priority): Increment charset_ordered_list_tick.
8564 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
8567 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
8568 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
8569 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
8570 (decode_coding_ccl, consume_chars)
8571 (Ffind_coding_systems_region_internal)
8572 (Fcheck_coding_systems_region): Add `const' to local variables.
8574 * print.c (print_object): Use octal form for printing the
8575 contents of a bool vector.
8577 2008-02-01 Dave Love <fx@gnu.org>
8579 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
8580 <version == 20>: Refuse to load.
8582 2008-02-01 Dave Love <fx@gnu.org>
8584 * fns.c: Move coding.h.
8585 (Qcodeset, Qdays, Qmonths): New.
8586 (concat): Use CHARACTERP instead of INTERGERP.
8587 (Flocale_codeset): Delete.
8588 (Flanginfo): New function.
8589 (syms_of_fns): Change accordingly.
8591 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
8593 2008-02-01 Dave Love <fx@gnu.org>
8595 * casetab.c (init_casetab_once, init_casetab_once): Fix
8596 CHAR_TABLE_SET call.
8598 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
8600 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
8602 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
8603 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
8604 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
8606 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
8608 * coding.c (ENCODE_DESIGNATION, decode_eol)
8609 (make_conversion_work_buffer, code_conversion_restore)
8610 (Fdefine_coding_system_internal): Convert Lisp types.
8611 (code_conversion_restore): Use EQ, not ==.
8612 (Fencode_coding_string): Fix code_convert_string call.
8614 * coding.h (code_convert_region): Fix prototype.
8616 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
8618 * fontset.c (fontset_ref, fontset_set, fs_load_font)
8619 (Ffontset_info): Convert Lisp types.
8621 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
8623 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
8625 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
8627 * chartab.c: Include "...h", not <...h> in some cases.
8629 * callproc.c (Fcall_process): Remove unused variables.
8631 2008-02-01 Dave Love <fx@gnu.org>
8633 * coding.c (Fset_coding_system_priority): Allow null arg list.
8635 2008-02-01 Dave Love <fx@gnu.org>
8637 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8638 (Fself_insert_and_exit): Use CHARACTERP.
8640 * callproc.c (Fcall_process): Remove unused vars.
8642 * xterm.c (XTread_socket): Add extra dead keysyms.
8644 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
8646 * dispextern.h: Remove prototypes for redraw_frame,
8647 redraw_garbaged_frames.
8649 * cmds.c (Fself_insert_command): Use CHARACTERP.
8651 * chartab.c (make_sub_char_table): Remove unused var.
8652 (Fset_char_table_default, Fmap_char_table): Doc fix.
8654 * keymap.c (access_keymap): Remove generic char code.
8655 (push_key_description): Use CHARACTERP.
8657 2008-02-01 Dave Love <fx@gnu.org>
8659 * charset.c: Doc fixes.
8660 (Funify_charset): Extra checking.
8662 2008-02-01 Dave Love <fx@gnu.org>
8664 * lread.c: Remove some unused variables.
8665 (safe_to_load_p): If safe, return the magic number version byte.
8666 (Fload): Maybe use load-with-code-conversion.
8668 2008-02-01 Kenichi Handa <handa@m17n.org>
8670 * category.c (Fmodify_category_entry): Don't modify the contents
8671 of category_set for characters out of the range. Avoid
8672 unnecessary modification.
8674 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
8675 Vchar_unify_table. The default value of the table is now nil.
8677 * character.c (syms_of_character): Setup Vchar_width_table for
8678 eight-bit-control and raw-byte chars.
8680 * charset.h (enum define_charset_arg_index): Delete
8681 charset_arg_parents and add charset_arg_subset and
8682 charset_arg_superset.
8683 (enum charset_attr_index): Delete charset_parents and add
8684 charset_subset and charset_superset.
8685 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
8686 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
8687 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
8688 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
8689 (CHARSET_SUPERSET): New macros.
8690 (charset_work): Extern it.
8691 (ENCODE_CHAR): Use charset_work.
8692 (CHAR_CHARSET_P): Adjust for the change of encoder format.
8693 (map_charset_chars): Extern it.
8695 * charset.c (load_charset_map): Set the default value of encoder
8696 and deunifier char-tables to nil.
8697 (map_charset_chars): Change argument. Change callers. Use
8698 map_char_table_for_charset instead of map_char_table.
8699 (Fmap_charset_chars): New optional args from_code and to_code.
8700 (Fdefine_charset_internal): Adjust for the change of
8701 `define-charset' (:parents -> :subset or :superset).
8702 (charset_work): New variable.
8703 (encode_char, syms_of_charset): Adjust for the change of
8704 Fdefine_charset_internal.
8705 (Ffind_charset_string): Setup the vector `charsets' correctly.
8707 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
8708 the previous change.
8709 (char_table_ref_and_range): Adjust for the above change.
8710 (map_sub_char_table_for_charset): New function.
8711 (map_char_table_for_charset): New function.
8713 * keymap.c (describe_vector): Handle a char-table directly here.
8714 (describe_char_table): Delete.
8716 * lisp.h (map_charset_chars): Delete.
8718 2008-02-01 Dave Love <fx@gnu.org>
8720 * fns.c (count_combining): Comment out (unused).
8721 (Flocale_codeset): New.
8722 (syms_of_fns): Defsubr it.
8724 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
8727 2008-02-01 Dave Love <fx@gnu.org>
8729 * Makefile.in (chartab.o): Depend on charset.h.
8731 2008-02-01 Kenichi Handa <handa@m17n.org>
8733 * character.c (syms_of_character): Set the default value of
8734 Vprintable_chars to Qnil.
8736 2008-02-01 Dave Love <fx@gnu.org>
8738 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
8740 2008-02-01 Kenichi Handa <handa@m17n.org>
8742 * charset.c (load_charset_map): Handle the case that from < to
8745 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
8746 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
8747 Pay attention to raw-8-bit chars.
8749 2008-02-01 Kenichi Handa <handa@m17n.org>
8751 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
8752 It is not bytecompiled now.
8754 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
8755 (charset_jisx0208): New variables.
8756 (Fdefine_charset_internal): Setup them if appropriate.
8757 (init_charset_once): Initialize them to -1.
8759 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
8760 (charset_jisx0208): Extern them.
8762 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
8763 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
8764 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
8765 (setup_iso_safe_charsets): Fix arguments to Fassq.
8766 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
8767 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
8768 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
8769 (encode_coding_iso_2022): Change the 1st arg to
8770 ENCODE_ISO_CHARACTER to a variable.
8772 2008-02-01 Kenichi Handa <handa@m17n.org>
8774 * charset.h (enum define_charset_arg_index): New enums
8775 charset_arg_min_code and charset_arg_max_code.
8776 (struct charset): New member char_index_offset.
8778 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
8779 Take charset->char_index_offset into account.
8780 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
8781 args[charset_arg_max_code]. Setup charset.char_index_offset.
8782 (syms_of_charset): Fix args to Fdefine_charset_internal.
8784 2008-02-01 Dave Love <fx@gnu.org>
8786 * coding.c (decode_coding_utf_8): Reject overlong sequences.
8788 2008-02-01 Dave Love <fx@gnu.org>
8790 * coding.c: Doc fixes.
8791 (Fcoding_system_aliases): Fix return value.
8792 (Qmac): Remove (duplicated) definition.
8794 2008-02-01 Dave Love <fx@gnu.org>
8796 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
8799 * character.c (Fstring): Doc fix.
8801 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
8803 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
8805 (font-encoding-alist): Doc fix.
8807 2008-02-01 Dave Love <fx@gnu.org>
8809 * term.c (costs_set): Declare static, non-initialized for pcc.
8810 (encode_terminal_code): Remove unused var.
8812 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
8815 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
8817 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
8818 (suffixes): Move out of make_subsidiaries for K&R.
8820 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
8822 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
8824 2008-02-01 Dave Love <fx@gnu.org>
8826 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
8828 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
8830 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
8832 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
8834 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
8836 2008-02-01 Kenichi Handa <handa@m17n.org>
8838 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
8839 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
8841 2008-02-01 Kenichi Handa <handa@m17n.org>
8843 * coding.c (decode_coding_charset): Adjust for the change of
8844 Fdefine_coding_system_internal.
8845 (Fdefine_coding_system_internal): For a coding system of
8846 `charset' type, store a list of charset IDs in
8847 `charset_attr_charset_valids' element of coding attributes.
8849 2008-02-01 Kenichi Handa <handa@m17n.org>
8851 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
8852 (emacs_mule_char): New arg src. Delete arg `composition'. Change
8853 caller. Handle 2-byte and 3-byte charsets correctly.
8854 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
8855 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
8856 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
8857 (DECODE_EMACS_MULE_21_COMPOSITION): Call
8858 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
8860 (decode_coding_emacs_mule): Handle composition correctly. Rewind
8861 `src' and `consumed_chars' correctly before calling emacs_mule_char.
8862 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
8863 and alt&rule composition.
8864 (decode_coding_iso_2022): Handle composition correctly.
8865 (init_coding_once): Setup emacs_mule_bytes for private charsets.
8867 * charset.c (Fdefine_charset_internal): Fix bug for the case of
8868 re-defining a charset. If the charset has :emacs-mule-id, setup
8870 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
8872 2008-02-01 Kenichi Handa <handa@m17n.org>
8874 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
8875 (encode_coding_big5, encode_coding_charset): If coding requires safe
8876 encoding, produce a character specified by
8877 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8879 2008-02-01 Dave Love <fx@gnu.org>
8881 * xterm.c (XSetIMValues): Declare.
8883 * process.c: Conditionally include sys/wait.h, pty.h.
8885 * print.c (print_object): Fix print format for 64-bit systems.
8887 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
8889 * buffer.c (emacs_strerror): Declare.
8891 * fontset.c (Fclear_face_cache): Declare.
8892 (accumulate_font_info): Comment-out (unused).
8893 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
8896 * character.h (string_escape_byte8): Declare.
8898 * charset.c (load_charset_map, load_charset_map_from_file): Remove
8900 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
8901 (Fmap_charset_chars): Doc fix.
8903 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
8904 (Fset_coding_system_priority, Fset_coding_system_priority)
8905 (Fdefine_coding_system_internal): Doc fix.
8907 2008-02-01 Dave Love <fx@gnu.org>
8909 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
8911 2008-02-01 Kenichi Handa <handa@m17n.org>
8913 * character.c (string_escape_byte8): Make multibyte string with
8916 * charset.c (Fmake_char): Delete unnecessary code.
8918 2008-02-01 Kenichi Handa <handa@m17n.org>
8920 * xfns.c (x_encode_text): Allocate coding.destination here, and
8921 call encode_coding_object with dst_object Qnil.
8923 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
8924 multibyte form correctly.
8926 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
8927 against Vfont_encoding_alist.
8929 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
8930 handling of charset list.
8931 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8932 (decode_coding_object): Move point to coding->dst_pos before
8933 calling post-read-conversion function.
8934 (encode_coding_object): Give correct arguments to
8935 pre-write-conversion. Ignore the return value of
8936 pre-write-conversion function. Pay attention to the case that
8937 pre-write-conversion changes the current buffer. If dst_object is
8938 Qt, even if coding->src_bytes is zero, allocate at least one byte
8939 to coding->destination.
8941 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
8943 * charset.c (Fmake_char): Make it more backward compatible.
8944 (Fmap_charset_chars): Fix docstring.
8946 2008-02-01 Dave Love <fx@gnu.org>
8948 * coding.c: Doc fixes.
8949 (Fdefine_coding_system_alias): Use names, not symbols, in
8950 coding-system-alist.
8952 2008-02-01 Kenichi Handa <handa@m17n.org>
8954 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8955 of calling free_realized_face.
8957 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
8959 * charset.c (read_hex): Don't treat SPC as a comment starter.
8960 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
8961 (Fdecode_char): Fix typo.
8963 2008-02-01 Kenichi Handa <handa@m17n.org>
8965 * charset.h (struct charset): New member `code_space_mask'.
8967 * coding.c (coding_set_source): Delete the local variable beg_byte.
8968 (encode_coding_charset, Fdefine_coding_system_internal):
8969 Delete the local variable charset.
8970 (Fdefine_coding_system_internal): Setup
8971 attrs[coding_attr_charset_valids] correctly.
8973 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
8974 member to check if CODE is valid or not.
8975 (Fdefine_charset_internal): Initialize `code_space_mask' member.
8976 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
8977 is within the range of charset->min_code and carset->max_code.
8979 2008-02-01 Dave Love <fx@gnu.org>
8981 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
8983 * dispextern.h (generate_ascii_font): Fix return type.
8985 * xfaces.c (generate_ascii_font): Fix arg declaration.
8987 * coding.c (coding_inherit_eol_type)
8988 (Fset_terminal_coding_system_internal)
8989 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
8991 2008-02-01 Kenichi Handa <handa@m17n.org>
8993 * coding.c (decode_coding_charset, encode_coding_charset): Handle
8994 multiple charsets correctly.
8996 2008-02-01 Kenichi Handa <handa@m17n.org>
8998 * search.c (boyer_moore): Fix handling of mulitbyte character
9001 * xdisp.c (display_mode_element): When the variable `elt' is
9002 changed, update `this' and `lisp_string'.
9004 2008-02-01 Kenichi Handa <handa@m17n.org>
9006 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
9008 * callproc.c (Fcall_process): Be sure to give the current buffer
9009 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
9011 * charset.c (struct charset_map_entries): New struct.
9012 (load_charset_map): Rename from parse_charset_map. New args
9013 entries and n_entries. Change caller.
9014 (load_charset_map_from_file): Rename from load_charset_map.
9015 Change caller. New arg control_flag. Call load_charset_map at
9017 (load_charset_map_from_vector): New function.
9018 (Fdefine_charset_internal): Setup charset.compact_codes_p.
9019 (encode_char): If the charset is compact, change a character index
9022 * coding.c (coding_alloc_by_making_gap): Check the case that the
9023 source and destination are the same correctly.
9024 (decode_coding_raw_text): Set coding->consumed_char and
9025 coding->consumed to 0.
9026 (produce_chars): If coding->chars_at_source is nonzero, update
9027 coding->consumed_char and coding->consumed before calling
9029 (Fdefine_coding_system_alias): Register ALIAS in
9030 Vcoding_system_alist.
9031 (syms_of_coding): Define `no-convesion' coding system at the tail.
9033 * fileio.c (Finsert_file_contents): Set coding_system instead of
9034 val. If the current buffer is multibyte, always call
9037 * xfaces.c (try_font_list): Give higher priority to fontset's
9038 family than face's family.
9040 2008-02-01 Kenichi Handa <handa@m17n.org>
9042 * callproc.c (Fcall_process): Be sure to give the current buffer
9043 to decode_coding_c_string.
9045 * xfaces.c (try_font_list): Give a family specified in a fontset
9046 higher priority than a family specified in a face.
9048 2008-02-01 Kenichi Handa <handa@m17n.org>
9050 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
9051 Fix arguments to insert_from_buffer.
9053 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
9055 2008-02-01 Kenichi Handa <handa@m17n.org>
9057 * coding.c (produce_chars): Set the variable `multibytep' correctly.
9058 (decode_coding_gap): Set coding->dst_multibyte correctly.
9060 2008-02-01 Kenichi Handa <handa@m17n.org>
9062 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
9063 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
9064 (encode_coding_utf_16): Substitute coding->default_char for
9065 non-Unicode characters.
9066 (decode_coding): Don't call record_insert here.
9067 (setup_coding_system): Initialize `surrogate' of
9068 coding->spec.utf_16 to 0.
9069 (EMIT_ONE_BYTE): Fix for multibyte case.
9071 * insdel.c (insert_from_gap): Call record_insert.
9073 2008-02-01 Kenichi Handa <handa@m17n.org>
9075 * casefiddle.c (casify_region): Fix multibyte case.
9077 * character.c (c_string_width): Add return type `int'.
9078 (char_string_with_unification): Delete arg ADVANCED.
9080 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
9081 (CHAR_STRING): Adjust for the change of char_string_with_unification.
9082 (CHAR_STRING_ADVANCE): Make it do-while statement.
9084 * chartab.c (sub_char_table_set_range): Optimize for the case
9085 DEPTH == 3. Add workaround code for a GCC optimization bug.
9087 * charset.c (parse_charset_map): Remove an unused variable.
9089 * coding.c: Delete unused variables.
9091 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
9092 earlier. If inserted is zero and the coding system doesn't
9093 require flushing, don't call decode_coding_gap.
9095 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
9097 2008-02-01 Kenichi Handa <handa@m17n.org>
9099 The following changes are for using Unicode as an internal
9100 character model, and use UTF-8 format for buffer/string
9103 * .gdbinit (xchartable): Adjust for the change of char table structure.
9104 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
9106 * Makefile.in (obj): Add character.o and chartab.o.
9107 (lisp, shortlisp): Remove utf-8.elc.
9108 (*.o): For many files, change dependency on charset.h to
9109 character.h, and add dependency on character.h.
9110 (character.o, chartab.o): New targets.
9112 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
9113 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
9114 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
9117 * dired.c, filelock.c: Include "character.h".
9119 * alloc.c: Include "character.h" instead of "charset.h".
9120 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
9121 (syms_of_alloc): Remove defsubr for Smake_char_table.
9123 * buffer.c: Include "character.h" instead of "charset.h", don't
9125 (Fset_buffer_multibyte): Adjust for UTF-8.
9127 * buffer.h: EXFUN Fbuffer_live_p.
9129 * callproc.c: Include "character.h" instead of "charset.h".
9130 (Fcall_process): Big change for the new code-conversion APIs.
9132 * casetab.c: Include "character.h" instead of "charset.h".
9133 (set_canon, set_identity, shuffle): Adjust for the new
9134 map_char_table spec.
9135 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
9136 accessing the char table structure.
9138 * chartab.c: New file that implements char table.
9140 * category.c: Include "character.h".
9141 (copy_category_entry): New function.
9142 (copy_category_table): Call map_char_table and copy_category_entry.
9143 (Fmake_category_table): Initialize all top-vel slots.
9144 (char_category_set): New function.
9145 (modify_lower_category_set): Delete.
9146 (Fmodify_category_entry): Call char_table_ref_and_range.
9148 * category.h (CATEGORY_SET): Just call char_category_set.
9150 * ccl.c: Include "character.h".
9151 (Qccl, Qcclp): New variables.
9152 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
9154 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
9155 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
9157 (ccl_driver): Change types of argument, adjust code accordingly.
9158 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
9160 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
9162 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
9163 New members src_multibyte, dst_multibyte, consumed, and produced.
9164 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
9165 (CODING_SPEC_CCL_PROGRAM): New macro.
9166 (ccl_driver): Update prototype.
9167 (Qccl, Qcclp, Fccl_program_p): Extern them.
9168 (CHECK_CCL_PROGRAM): New macro.
9170 * character.c, character.h, chartab.c: New files.
9172 * charset.c: Mostly re-written. Move character and multibyte sequence
9173 handling codes to character.c.
9175 * charset.h: Mostly re-written. Move character and multibyte sequence
9176 handling codes to character.h.
9178 * coding.c, coding.h: Mostly re-written.
9180 * composite.c: Include "character.h" instead of "charset.h".
9181 (CHAR_WIDTH): Move to character.h.
9182 (HASH_KEY, HASH_VALUE): Delete.
9184 * composite.h (enum composition_method): Change order of enumeration
9187 * data.c: Include "character.h" instead of "charset.h".
9188 (Faref): Call CHAR_TABLE_REF for a char table.
9189 (Faset): Call CHAR_TABLE_SET for a char table.
9191 * dispextern.h (free_realized_face, check_face_attribytes)
9192 (generate_ascii_font): Extern them.
9193 (free_realized_multibyte_face): Delete extern.
9195 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
9198 * editfns.c: Include "character.h" instead of "charset.h".
9199 (Fchar_to_string): Always call CHAR_STRING.
9201 * emacs.c (main): Call init_charset_once, init_charset,
9202 syms_of_chartab, and syms_of_character.
9204 * fileio.c: Include "character.h" instead of "charset.h".
9205 (Finsert_file_contents): Big change for the new code-conversion API.
9206 (choose_write_coding_system, Fwrite_region): Likewise.
9207 (build_annotations_2): Delete.
9208 (e_write): Big change for the new code-conversion API.
9210 * fns.c: Include "character.h" instead of "charset.h".
9211 (copy_sub_char_table): Move to chartab.c.
9212 (Fcopy_sequence): Call copy_char_table for a char table.
9213 (concat): Delete codes calling count_multibyte.
9214 (string_char_to_byte, string_byte_to_char): Adjust for the new
9216 (internal_equal): Adjust for the change of char table structure.
9217 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
9218 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
9219 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
9220 (char_table_translate, optimize_sub_char_table)
9221 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
9223 (char_table_ref_and_index): Delete.
9224 (HASH_KEY, HASH_VALUE): Move to lisp.h.
9225 (Fmd5): Call preferred_coding_system instead of accessing
9226 Vcoding_category_list. Adjust for the new code-conversion API.
9227 (syms_of_fns): Move defsubr for char table related functions to
9230 * fontset.c: Mostly re-written.
9232 * fontset.h (struct font_info): Change type of the member encoding_type.
9233 (enum FONT_SPEC_INDEX): New enum.
9234 (fontset_font_pattern, fs_load_font): Update prototype.
9235 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
9237 * indent.c: Include "character.h" instead of "charset.h".
9238 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
9240 * insdel.c: Include "character.h" instead of "charset.h".
9241 (copy_text): Don't refer to Vnonascii_translation_table.
9242 (insert_from_gap): New function.
9244 * keyboard.c: Include "character.h" instead of "charset.h".
9245 (command_loop_1): Never call direct_output_forward_char before
9246 a non-ASCII character.
9247 (read_char): If Vkeyboard_translate_table is a char table, always
9248 translate a character.
9250 * keymap.c: Include "character.h".
9251 (store_in_keymap): Handle the case that IDX is a cons.
9252 (Fdefine_key): Handle the case that KEY is a cons and the car part
9253 is also a cons (range).
9254 (push_key_description): Adjust for the new character code.
9255 (describe_vector): Call describe_char_table for a char table.
9256 (describe_char_table): New function.
9258 * keymap.h (describe_char_table): Extern it.
9260 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
9261 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
9262 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
9263 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
9265 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
9267 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
9268 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
9269 (CHARTAB_SIZE_BITS_3): New macros.
9270 (chartab_size): Extern it.
9271 (struct Lisp_Char_Table): Re-design.
9272 (struct Lisp_Sub_Char_Table): New structure.
9273 (HASH_KEY, HASH_VALUE): Move from fns.c.
9274 (CHARACTERBITS): Define as 22.
9275 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
9276 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
9277 (GC_SUB_CHAR_TABLE_P): New macro.
9278 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
9279 (code_convert_string_norecord): Deleted extern.
9280 (init_character_once, syms_of_character, init_charset)
9281 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
9283 * lread.c: Include "character.h".
9284 (read_multibyte): New arg NBYTES.
9285 (read_escape): Change the meaning of returned *BYTEREP.
9286 (to_multibyte): Delete.
9287 (read1): Adjust the handling of char table and string.
9289 * print.c: Include "character.h" instead of "charset.h".
9290 (print_string): Convert 8-bit raw bytes to octal form by
9291 string_escape_byte8.
9292 (print_object): Adjust for the new multibyte form. Print 8-bit
9293 raw bytes always in octal form. Handle sub char table correctly.
9295 * process.c: Include "character.h" instead of "charset.h".
9296 (read_process_output, send_process): Adjust for the new
9297 code-conversion API.
9299 * puresize.h (BASE_PURESIZE): Increase.
9301 * regex.c: Include "character.h" instead of "charset.h".
9302 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
9303 (regex_compile): Accept a range whose starting and ending
9304 character have different leading bytes.
9305 (analyse_first): Adjust for the above change.
9307 * search.c: Include "character.h" instead of "charset.h".
9308 (search_buffer, boyer_moore): Adjust for the new multibyte form.
9309 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
9311 * syntax.c: Include "character.h" instead of "charset.h".
9312 (syntax_parent_lookup): Delete.
9313 (Fmodify_syntax_entry): Accept a cons as CHAR.
9314 (skip_chars): Adjust for the new multibyte form.
9315 (init_syntax_once): Call char_table_set_range instead of directly
9316 accessing the structure of a char table.
9318 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
9319 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
9320 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
9321 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
9323 * term.c: Include "buffer.h" and "character.h".
9324 (encode_terminal_code, write_glyphs): Adjust for the new
9325 code-conversion API.
9326 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
9328 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
9330 * xdisp.c: Include "character.h".
9331 (get_next_display_element): Adjust for the new multibyte form.
9332 (disp_char_vector): Adjust for the new char table structure.
9333 (decode_mode_spec_coding): Adjust for the new structure of
9335 (decode_mode_spec): Adjust for the new code-conversion API.
9337 * xfaces.c: Include "character.h" instead of "charset.h".
9338 (load_face_font): Adjust for the change of choose_face_font and
9340 (generate_ascii_font): New function.
9341 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
9342 (set_font_frame_param): Adjust for the change of choose_face_font.
9343 (free_realized_face): Make it public.
9344 (free_realized_faces_for_fontset): Rename from
9345 free_realized_multibyte_face. Free also faces realized for ASCII.
9346 (choose_face_font): Change arguments. Adjust for the change of
9347 fontset_font_pattern and FS_LOAD_FONT.
9349 * xfns.c: Include "character.h".
9350 (x_encode_text): Adjust for the new code-conversion API.
9352 * xselect.c: Don't include "charset.h".
9353 (selection_data_to_lisp_data): Adjust for the new code conversion API.
9355 * xterm.c: Include "character.h".
9356 (x_encode_char): New argument CHARSET. Change caller.
9357 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
9358 Call ENCODE_CHAR instead of SPLIT_CHAR.
9359 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
9360 CHAR_WIDTH instead of CHARSET_WIDTH.
9361 (XTread_socket): Adjust for the new code-conversion API.
9362 (x_new_font): Adjust for the change of FS_LOAD_FONT.
9363 (x_load_font): Adjust for the change of struct font.
9365 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9367 * xfaces.c (face_at_buffer_position): Remove unused vars.
9369 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9371 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
9372 Fix overflow checking.
9374 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9376 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
9377 Cancel previous change.
9379 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9381 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
9382 ccl->eight_bit_control. Fix check for buffer overflow.
9383 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
9384 (ccl_driver): Initialize extra_bytes to 0.
9386 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9388 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
9389 return it ORed with ctrl_modifier.
9391 2008-01-29 Miles Bader <miles@gnu.org>
9393 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
9395 2008-01-28 Jason Rumney <jasonr@gnu.org>
9397 * w32.c (stat): Don't double check for networked drive.
9399 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9401 * window.c (run_window_configuration_change_hook): New function.
9402 Code extracted from set_window_buffer. Set the selected frame.
9403 (set_window_buffer): Use it.
9404 * window.h (run_window_configuration_change_hook): Declare.
9405 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
9407 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
9409 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
9411 * Makefile.in: Remove references to unused macros.
9413 2008-01-26 Eli Zaretskii <eliz@gnu.org>
9415 * w32.c (g_b_init_get_sid_sub_authority)
9416 (g_b_init_get_sid_sub_authority_count): New static variables.
9417 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
9418 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
9419 (init_user_info): Use them to retrieve uid and gid.
9420 Use 500/513, the Windows defaults, as Administrator's uid/gid.
9421 (fstat): Use pw_uid and pw_gid from the_passwd structure for
9422 st_uid and st_gid of the file.
9424 2008-01-26 Jason Rumney <jasonr@gnu.org>
9426 * w32.c (logon_network_drive): New function.
9429 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
9431 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
9432 invisible text covered with an ellipsis.
9434 2008-01-25 Richard Stallman <rms@gnu.org>
9436 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
9437 jump back to beginning. Move some other initializations after that.
9438 (Qwindow_text_change_functions, Vwindow_text_change_functions):
9440 (syms_of_xdisp): Init them.
9442 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
9444 * buffer.c (reset_buffer_local_variables):
9445 Implement `permanent-local-hook'.
9446 (Qpermanent_local_hook): New variable.
9447 (syms_of_buffer): Init and staticpro it.
9449 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
9451 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
9453 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
9455 * fns.c (Fclrhash): Return TABLE.
9457 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9459 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
9460 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
9461 is set even without positional changes.
9462 (x_scroll_bar_clear): Set bar->redraw_needed_p.
9464 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
9466 2008-01-23 Jason Rumney <jasonr@gnu.org>
9468 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
9470 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
9471 the unicode range available in MULE by locale-coding-system.
9472 Improve dbcs lead byte detection. Set event timestamp and modifiers
9475 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9477 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
9478 [MAC_OSX] (init_mac_osx_environment): Initialize it.
9479 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
9480 when used on child processes.
9482 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
9484 * dbusbind.c (Fdbus_method_return_internal): Rename from
9485 Fdbus_method_return.
9486 (Fdbus_unregister_object): Move to dbus.el.
9487 (Fdbus_call_method, Fdbus_method_return_internal)
9488 (Fdbus_send_signal): Improve debug messages.
9490 2008-01-20 Martin Rudalics <rudalics@gmx.at>
9492 * undo.c (undo_inhibit_record_point): New variable.
9493 (syms_of_undo): Initialize it.
9494 (record_point): Don't record point when undo_inhibit_record_point
9497 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
9499 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
9501 * xdisp.c (Qauto_hscroll_mode): New var.
9502 (syms_of_xdisp): Initialize it.
9503 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
9505 (hscroll_windows): Don't check automatic_hscrolling_p here.
9507 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
9508 vscroll if we're setting window-buffer to the value it already has.
9510 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
9512 * m/intel386.h: Remove references to XENIX.
9514 2008-01-17 Andreas Schwab <schwab@suse.de>
9516 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
9517 instead of HAVE_X86_64_LIB64_DIR.
9518 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
9520 2008-01-17 Glenn Morris <rgm@gnu.org>
9522 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
9523 to HAVE_X86_64_LIB64_DIR.
9525 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
9532 * s/hpux9shxr4.h: Remove files for systems no longer supported.
9534 * sysdep.c: Remove code containing references to symbols defined
9535 by unsupported systems.
9537 2008-01-16 Glenn Morris <rgm@gnu.org>
9539 * coding.c (select-safe-coding-system-function): Doc fix.
9541 2008-01-15 Glenn Morris <rgm@gnu.org>
9543 * config.in: Revert 2008-01-13 change: this is a generated file.
9545 2008-01-13 Tom Tromey <tromey@redhat.com>
9549 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9555 * s/ptx4.h: Remove files for systems no longer supported.
9557 * callproc.c (Fcall_process): Fix previous change.
9559 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9561 * unexsunos4.c: Remove file, system not supported anymore.
9581 * alloc.c: Remove code containing references to symbols defined by
9582 unsupported systems.
9584 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
9586 * coding.c (detect_coding_mask): Fix previous change.
9588 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
9590 * coding.c (detect_coding_iso2022): New arg
9591 latin_extra_code_state. Allow Latin extra codes only
9592 when *latin_extra_code_state is nonzero.
9593 (detect_coding_mask): If there is a NULL byte, detect the encoding
9594 as UTF-16 or binary. If Latin extra codes exist, detect the
9595 encoding as ISO-2022 only when there's no other proper encoding is
9598 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9600 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
9603 2008-01-08 Richard Stallman <rms@gnu.org>
9605 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
9607 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
9609 * keyboard.c (parse_menu_item): Don't enclose key bindings on
9610 menu bar in parentheses.
9612 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
9719 * unexsni.c: Remove files for systems no longer supported.
9721 * m/intel386.h: Remove references to unsupported systems.
9723 * w32.c (get_emacs_configuration): Remove reference to i860.
9725 * sysdep.c: Remove dead code.
9727 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
9730 * m/masscomp.h: Remove files. Platform is obsolete.
9732 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
9734 * dbusbind.c (Fdbus_method_return): New function.
9735 (xd_read_message): Add the serial number to the event.
9736 (Fdbus_register_method): Activate the function.
9738 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
9740 * keyboard.c (read_key_sequence): Fix typo.
9742 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
9744 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
9745 (xd_signature, xd_append_arg): Handle element type detection for
9747 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
9748 SDATA () calls; this must be solved more general.
9749 (Fdbus_register_signal): Use SBYTES instead of strlen.
9751 2008-01-03 Magnus Henoch <magnus@zemdatav>
9753 * dbusbind.c (xd_append_arg): Use unsigned char instead of
9754 unsigned int for byte values (necessary for big-endian platform).
9755 (Fdbus_call_method): Handle the case of no returned arguments.
9757 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
9759 * dbusbind.c (xd_read_message): Use non-static input_event struct.
9761 2007-12-31 Magnus Henoch <mange@freemail.hu>
9763 * dbusbind.c (xd_signature): Signature of variant is just "v".
9765 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
9767 * dbusbind.c: Fix several errors and compiler warnings.
9768 Reported by Tom Tromey <tromey@redhat.com>.
9769 (XD_ERROR, XD_DEBUG_MESSAGE)
9770 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
9771 (xd_append_arg): Part for basic D-Bus types rewitten.
9772 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
9773 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
9775 (xd_read_message): Return Qnil. Don't signal an error; it is not
9776 useful during event reading.
9777 (Fdbus_register_signal): Signal an error if the check for
9779 (Fdbus_register_method): New function. The implementation is not
9780 complete, the call of the function signals an error therefore.
9781 (Fdbus_unregister_object): New function, renamed from
9782 Fdbus_unregister_signal. The initial check signals an error, if
9783 the object is not well formed.
9785 2007-12-30 Richard Stallman <rms@gnu.org>
9787 * textprop.c (get_char_property_and_overlay):
9788 Signal error if POSITION is out of range in a buffer.
9790 2007-12-29 Martin Rudalics <rudalics@gmx.at>
9792 * w32fns.c (Fx_create_frame): Make copy of frame parameters
9793 because the original parameters are in pure storage now.
9795 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9797 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
9799 2007-12-22 Eli Zaretskii <eliz@gnu.org>
9801 * callint.c (syms_of_callint) <command-history>: Add reference to
9802 history-length in the doc string.
9804 2007-12-17 Jason Rumney <jasonr@gnu.org>
9806 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
9807 before passing as wParam.
9809 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
9811 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
9812 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
9813 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
9814 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
9816 (Fdbus_call_method): Fix docstring.
9818 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
9820 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
9822 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
9823 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
9825 (xd_signature): New function.
9826 (xd_append_arg): Compute also signatures. Major rewrite.
9827 (xd_retrieve_arg): Make debug messages friendly.
9828 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
9829 Check for signatures of arguments.
9831 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
9833 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
9834 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
9835 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
9836 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
9837 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
9838 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
9839 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
9840 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
9841 (xd_retrieve_value): Remove. Functionality included in ...
9842 (xd_append_arg): New function.
9843 (Fdbus_call_method, Fdbus_send_signal): Apply it.
9845 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
9847 * dbusbind.c (top): Include <stdio.h>.
9848 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
9849 dbus_message_new_method_call and dbus_message_new_signal.
9850 (Fdbus_register_signal): Rename unique_name to uname.
9851 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
9852 non-existing unique name. Fix typos in matching rule. Return an
9853 object which is useful in Fdbus_unregister_signal.
9854 (Fdbus_unregister_signal): Reimplementation, in order to remove
9855 only the corresponding entry.
9856 (Vdbus_registered_functions_table): Change the order of entries.
9857 Apply these changes in xd_read_message and Fdbus_register_signal.
9859 2007-12-16 Andreas Schwab <schwab@suse.de>
9861 * fileio.c (Finsert_file_contents): Fix overflow check to not
9862 depend on undefined integer overflow.
9864 2007-12-14 Jason Rumney <jasonr@gnu.org>
9866 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
9867 for characters above 127.
9869 2007-12-13 Jason Rumney <jasonr@gnu.org>
9871 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
9872 before dereferencing array.
9873 (lookup_vk_code): Remove zero comparison.
9875 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
9877 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
9878 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
9879 Use `unsigned int' instead of `uint'.
9880 (xd_read_message, Fdbus_register_signal): Split expressions into
9881 multiple lines before operators "&&" and "||", according to the
9882 GNU Coding Standards.
9884 2007-12-14 Eli Zaretskii <eliz@gnu.org>
9886 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
9888 2007-12-12 Juri Linkov <juri@jurta.org>
9890 * buffer.c (Frename_buffer): In interactive spec replace
9891 `read-buffer' with `read-string' that uses `buffer-name-history'
9892 as history, and the current buffer's name as default.
9894 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
9896 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
9897 manipulating the backtrace manually.
9898 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
9899 (struct backtrace, backtrace_list): Remove.
9900 (command_loop_1): Remove dead var `no_direct'.
9902 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
9903 preserve non-built-in buffer-local variables.
9904 (Fkill_all_local_variables): Don't re-create&re-set permanent
9905 buffer-local variables.
9907 2007-12-09 Juri Linkov <juri@jurta.org>
9909 * buffer.c (Frename_buffer): Change interactive spec from "s" to
9910 Lisp code that uses `read-buffer' with current buffer as default.
9912 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
9914 * dbusbind.c (xd_read_message): Generate an event for every
9915 registered handler. There might be several handlers registered
9916 for the same signal.
9917 (Fdbus_register_signal): Don't overwrite a registration for the
9918 same signal. Add a new registration if handlers are different.
9919 (Vdbus_registered_functions_table): Rework doc string.
9921 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
9923 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
9924 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
9925 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
9926 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
9927 Unify argument lists.
9928 (xd_read_message, Fdbus_register_signal): Reorder and extend event
9929 arguments and hash table keys. Use unique name for service.
9930 (Fdbus_unregister_signal): Remove checks.
9931 (Vdbus_registered_functions_table): Fix doc string.
9933 2007-12-05 Magnus Henoch <mange@freemail.hu>
9935 * process.c (make_process): Initialize pty_flag to 0.
9937 2007-12-05 Jason Rumney <jasonr@gnu.org>
9939 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
9942 2007-12-05 Richard Stallman <rms@gnu.org>
9944 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
9946 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9948 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9950 (mac_try_close_socket) [MAC_OSX]: New function.
9951 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9952 Update cfsockets_for_select. Replace invalid CFRunLoop source.
9954 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9955 Use mac_try_close_socket.
9957 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9959 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9961 (copy_dysymtab): Compute relocation base here.
9962 (rebase_reloc_address) [__ppc64__]: New function.
9963 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9966 2007-12-05 Jason Rumney <jasonr@gnu.org>
9968 * w32proc.c (sys_spawnve): Quote args with wildcards.
9970 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9972 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
9974 (unrelocate) [_LP64]: Set relocation base to address of data segment.
9976 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
9978 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
9979 Move check for Vdbus_registered_functions_table to
9980 xd_read_queued_messages.
9981 (xd_read_queued_messages): Protect xd_read_message calls by
9982 internal_condition_case_1.
9984 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
9986 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
9987 Qdbus_system_bus and Qdbus_session_bus, respectively.
9988 (Vdbus_intern_symbols): Remove.
9989 (Vdbus_registered_functions_table): New hash table.
9990 (XD_SYMBOL_INTERN_SYMBOL): Remove.
9991 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
9992 Rewrite in order to manage registered functions by hash table
9993 Vdbus_registered_functions_table.
9995 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
9997 * xterm.c: Update URL to Window Manager Specification in comment.
9999 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
10001 * config.in (HAVE_DBUS): Add.
10003 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
10004 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
10005 (obj): Add $(DBUS_OBJ).
10006 (LIBES): Add $(DBUS_LIBS).
10007 (dbusbind.o): New target.
10009 * dbusbind.c: New file.
10011 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
10013 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
10014 (Qdbus_event): New Lisp symbol.
10015 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
10016 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
10017 (keys_of_keyboard ): Define dbus-event.
10019 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
10021 2007-12-01 Richard Stallman <rms@gnu.org>
10023 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
10025 2007-11-30 Jason Rumney <jasonr@gnu.org>
10027 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
10028 (w32con_reset_terminal_modes): Clear screen buffer.
10029 (w32_face_attributes): Don't use color indexes that are out of range.
10030 Only reverse the default colors.
10032 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
10035 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
10037 2007-11-29 Jason Rumney <jasonr@gnu.org>
10039 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
10040 (w32_face_attributes): Use Vtty_defined_color_alist to determine
10041 if the terminal colors are initialized.
10042 (unspecified_fg, unspecified_bg): Remove unused declarations.
10044 2007-11-29 Andreas Schwab <schwab@suse.de>
10046 * keyboard.c (apply_modifiers): Fix typo.
10048 2007-11-29 Richard Stallman <rms@gnu.org>
10050 * keymap.c (Fcurrent_local_map): Doc fix.
10052 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
10054 * s/gnu-kfreebsd.h: New file.
10056 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
10058 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
10059 Don't cast redundantly.
10061 * keyboard.c (KEY_TO_CHAR): New macro.
10062 (parse_modifiers, apply_modifiers): Accept integer arguments.
10063 (read_key_sequence): Use them to unify the "shift->unshift" mapping
10064 for chars and symbol keys.
10065 After doing such remapping, apply function-key-map again.
10067 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
10069 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
10072 2007-11-26 Andreas Schwab <schwab@suse.de>
10074 * process.c (list_processes_1): Fix indentation level of the
10077 2007-11-23 Andreas Schwab <schwab@suse.de>
10079 * editfns.c (Fformat): Handle %c specially since it requires the
10080 argument to be of type int.
10082 2007-11-23 Markus Triska <markus.triska@gmx.at>
10084 * emacs.c (main): Call init_editfns before init_process, since
10085 init_process sets Vprocess_connection_type depending on OS release.
10087 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
10089 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
10090 (find_symbol_value): Use do_symval_forwarding.
10092 * data.c (set_internal): Set the value in the `cons-cell' (for
10093 Buffer_Local_values) not only for frame-local variables.
10095 2007-11-22 Andreas Schwab <schwab@suse.de>
10097 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
10099 * keymap.c (Fsingle_key_description): Likewise.
10100 * print.c (print_object): Likewise.
10102 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
10104 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
10105 file for image is nil.
10107 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
10109 * term.c: Include stdarg.h.
10110 (fatal): Implement using varargs.
10111 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
10113 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10115 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
10116 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
10117 Update call to buffer_slot_type_mismatch.
10118 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
10119 (buffer_slot_type_mismatch): Update.
10120 * buffer.c (buffer_local_types): Remove.
10121 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
10122 (defvar_per_buffer): Set the type in the buffer_objfwd.
10124 2007-11-21 Jason Rumney <jasonr@gnu.org>
10126 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
10127 CreateFileMapping returns NULL on failure.
10129 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10131 * search.c (Fset_match_data): Remove the `evaporate' feature.
10132 (unwind_set_match_data): Don't use the `evaporate' feature.
10134 2007-11-21 Jason Rumney <jasonr@gnu.org>
10136 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
10138 * w32console.c (w32con_write_glyphs): Remove unused variables.
10140 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
10142 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
10144 * s/darwin.h (MULTI_KBOARD): Remove.
10146 * macfns.c (x_create_tip_frame, Fx_create_frame)
10147 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
10149 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10151 * buffer.c (Fbuffer_local_value): Remove redundant test.
10152 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
10153 than in `current-buffer' to match the comment.
10154 Do the swap using swap_in_global_binding.
10156 * data.c (store_symval_forwarding, set_internal):
10157 * eval.c (specbind): Remove dead code.
10159 * coding.c (detect_coding, Fupdate_coding_systems_internal):
10160 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
10161 Since we do not want to see internal Lisp_*fwd objects here.
10163 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
10165 * sysdep.c (init_system_name): Use getaddrinfo if available.
10167 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
10168 (x_scroll_bar_note_movement): start, end, with, height in struct
10169 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
10171 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
10173 * puresize.h (BASE_PURESIZE): Increase to 1190000.
10175 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
10177 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
10178 This undoes Richard's change of 14-Oct-2002.
10180 * alloc.c (allocate_other_vector):
10181 * lisp.h (allocate_other_vector): Remove.
10183 * window.c (struct save_window_data): Move non-lisp data to the end
10184 and make it `int' rather than Lisp_Object.
10185 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
10186 Done wrap/unwrap integer values.
10187 (Fset_window_configuration, compare_window_configurations):
10188 Update use of fields to their new types.
10190 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
10191 Turn integer fields into `int'. Merge x_window_low and x_window_high.
10192 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
10193 (SET_SCROLL_BAR_X_WINDOW): Remove.
10194 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
10195 Access the new x_window field directly.
10196 * xterm.c (x_scroll_bar_create): Use a pseudovector.
10197 Don't wrap/unwrap integers into Lisp_Objects.
10198 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
10199 (x_scroll_bar_report_motion):
10200 Don't wrap/unwrap integers into Lisp_Objects.
10201 (x_term_init): Use SDATA.
10202 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
10203 (x_scroll_bar_set_handle, x_scroll_bar_remove)
10204 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
10205 (x_scroll_bar_report_motion, x_scroll_bar_clear):
10206 * xfns.c (x_set_background_color):
10207 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
10208 Access the new x_window field directly.
10210 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
10211 (allocate_pseudovector): Make non-static.
10213 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
10214 (allocate_pseudovector): Declare.
10215 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
10217 2007-11-15 Andreas Schwab <schwab@suse.de>
10219 * editfns.c (Fformat): Correctly format EMACS_INT values.
10220 Also take precision into account when formatting an integer.
10222 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
10224 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
10226 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
10227 (syms_of_keyboard): Defsubr it.
10229 * data.c (swap_in_global_binding): Fix longstanding bug where
10230 store_symval_forwarding was not called with the right second argument,
10231 thus causing objfwd-ing from being dropped.
10233 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
10235 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
10236 (Fx_display_pixel_height, Fx_display_planes)
10237 (Fx_display_color_cells, Fx_server_max_request_size)
10238 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10239 (Fx_display_visual_class, Fx_display_save_under):
10240 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
10241 (Fx_display_pixel_height, Fx_display_planes)
10242 (Fx_display_color_cells, Fx_server_max_request_size)
10243 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10244 (Fx_display_mm_height, Fx_display_mm_width)
10245 (Fx_display_backing_store, Fx_display_visual_class)
10246 (Fw32_select_font, Fx_display_save_under):
10247 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
10248 (Fx_display_pixel_height, Fx_display_planes)
10249 (Fx_display_color_cells, Fx_server_max_request_size)
10250 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10251 (Fx_display_save_under): Fix typos in docstrings.
10253 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
10255 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
10256 corresponding to deleted entries; they are an implementation detail.
10257 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
10259 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
10260 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
10261 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
10262 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
10263 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
10264 (Fw32_define_rgb_color, Fw32_load_color_file)
10265 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
10266 Fix typos in docstrings.
10267 (Fx_server_version): Reflow docstring.
10268 (Fw32_shell_execute): Doc fixes.
10270 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
10272 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
10273 if w32_parse_hot_key returned nil.
10275 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10277 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
10279 2007-11-09 Jason Rumney <jasonr@gnu.org>
10281 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
10283 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
10285 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
10286 Remove W32_SCROLL_BAR_CLICK_EVENT.
10288 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
10289 Add MULTIMEDIA_KEY_EVENT.
10291 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
10292 (lispy_multimedia_keys) [WINDOWSNT]: New array.
10293 (make_lispy_event) [WINDOWSNT]: Use it to translate
10294 MULTIMEDIA_KEY_EVENT.
10296 * w32term.h (WM_APPCOMMAND): Define if not already.
10297 (GET_APPCOMMAND_LPARAM): Likewise.
10299 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
10302 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
10303 (syms_of_w32fns): Export and initialize it.
10304 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
10306 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
10308 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
10311 * xdisp.c (handle_face_prop): Fix last change.
10313 2007-11-09 Richard Stallman <rms@gnu.org>
10315 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
10316 not just for after-strings and before-strings.
10317 Call face_for_overlay_string and pass the overlay to it.
10318 (handle_display_prop): Determine whether property came from an overlay.
10319 Pass OVERLAY arg to handle_single_display_spec.
10320 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
10321 (load_overlay_strings): Fill in it->string_overlays.
10322 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
10324 * xfaces.c (face_for_overlay_string): Function renamed from
10325 face_at_buffer_position_no_overlays, and add arg OVERLAY.
10327 * dispextern.h (struct it): New elt string_overlays.
10328 New elt from_overlay, also in stack.
10329 Rearrange a few elements.
10330 (face_for_overlay_string): Decl renamed from
10331 face_at_buffer_position_no_overlays, and add argument.
10333 2007-11-09 Richard Stallman <rms@gnu.org>
10335 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
10336 to get the base face for an overlay string.
10338 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
10340 * xfaces.c (face_at_buffer_position_no_overlays): New function.
10342 * xdisp.c (handle_stop): Move some code out of loop.
10344 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10346 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
10347 Fix conversion from Lisp object to ATSUFontID.
10349 2007-11-09 Jason Rumney <jasonr@gnu.org>
10351 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
10353 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10355 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
10356 Don't assume regions are aligned to page boundary.
10357 (print_load_command_name): Add LC_UUID if defined.
10359 2007-11-09 Richard Stallman <rms@gnu.org>
10361 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
10363 2007-11-07 Jason Rumney <jasonr@gnu.org>
10365 * s/windows95.h: Remove.
10367 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
10369 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
10370 abort with a message on unhandled store_type values.
10372 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
10374 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
10375 Remove HAVE_X11R5 and HAVE_X11R4.
10377 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10379 * Makefile.in: Remove references to sunfns.c and sunfns.o.
10381 2007-11-01 Johan Bockgård <bojohan@gnu.org>
10383 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
10384 Don't set s->stippled_p here, since it has already been set by
10385 x_set_glyph_string_gc from x_draw_glyph_string.
10387 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10389 * sunfns.c: Remove file.
10393 * m/sparc.h: Remove Sun windows code.
10395 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
10397 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
10398 (init_keyboard): Set current_kboard's window-system to nil.
10399 (tty_read_avail_input): Typo.
10400 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
10402 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
10409 * Makefile.in: Remove all mentions of X10.
10411 * dispnew.c (syms_of_display): Don't mention version 10.
10413 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
10415 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
10416 ($(BLD)/abbrev.$(O)): Remove.
10418 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10420 Rewrite abbrev.c in Elisp.
10421 * image.c (Qcount): Don't declare as extern.
10422 (syms_of_image): Initialize and staticpro `Qcount'.
10423 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
10424 * emacs.c (main): Don't call syms_of_abbrev.
10425 * Makefile.in (obj): Remove abbrev.o.
10426 (abbrev.o): Remove.
10427 * abbrev.c: Remove.
10429 2007-10-26 Martin Rudalics <rudalics@gmx.at>
10431 * window.c (window_min_size_2): Don't count header-line.
10433 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
10435 * frame.h (struct frame): Move all bit fields after the first bit
10436 field to take advantage of the available space. Group all the
10437 chars together to reduce wasted space due to padding.
10439 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
10441 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
10443 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
10444 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
10445 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
10446 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
10447 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
10448 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
10449 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
10450 (last_marked, mark_object_loop_halt): Make static.
10452 * frame.c (syms_of_frame) <delete-frame-functions>:
10453 Fix typo in docstring.
10455 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
10457 * w32.c (init_environment): Fix tiny memory leak.
10458 (w32_get_resource): Remove unused variable `ok'.
10460 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
10462 Make `window-system' into a keyboard-local variable (rather than
10463 frame-local as done originally by multi-tty).
10465 * keyboard.h (struct kboard): Add Vwindow_system.
10466 * keyboard.c (init_kboard): Set a default for Vwindow_system.
10467 (mark_kboards): Mark Vwindow_system.
10469 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
10470 (init_display): Don't set the obsolete `window-system' frame-param.
10472 * xterm.c (x_term_init):
10473 * w32term.c (w32_create_terminal):
10474 * term.c (init_tty): Set Vwindow_system.
10475 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
10476 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
10478 * xfns.c (Fx_create_frame, x_create_tip_frame):
10479 * w32fns.c (Fx_create_frame, x_create_tip_frame):
10480 * macfns.c (Fx_create_frame):
10481 Don't set the obsolete `window-system' frame-param.
10483 * frame.h (Qwindow_system): Remove.
10484 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
10485 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
10487 2007-10-24 Richard Stallman <rms@gnu.org>
10489 * frame.c (x_figure_window_size): For fullscreen case,
10490 set USPosition | PPosition without clobbering rest of window_prompting.
10492 * keyboard.c (Fcurrent_idle_time): Doc fix.
10494 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10496 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10498 * process.c (unwind_request_sigio): Only define if __ultrix__.
10500 * callproc.c (child_setup): Remove spurious *.
10502 * lisp.h (Fget_text_property): Declare.
10503 (have_menus_p): Declare it here rather than in sys-dep header files.
10504 * macterm.h (have_menus_p):
10505 * msdos.h (have_menus_p):
10506 * xterm.h (have_menus_p): Remove.
10508 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10509 (Fmake_variable_frame_local): Just check the variable's const-ness
10510 rather than checking nil or t.
10512 2007-10-22 Jason Rumney <jasonr@gnu.org>
10514 * w32fns.c: Include math.h.
10515 (w32_abort): Declaration moved to nt/config.nt.
10517 * s/ms-w32.h (HAVE_STDLIB_H): Define.
10518 (abort): Redefinition moved to nt/config.nt.
10520 * m/windowsnt.h: Remove.
10522 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
10524 * emacs.c (Fdump_emacs): Fix typo in message.
10525 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
10526 <installation-directory>: Reflow docstring.
10528 2007-10-22 Juri Linkov <juri@jurta.org>
10530 * minibuf.c: Allow minibuffer default to be a list of default values.
10531 With empty input use the first element of this list as returned default.
10533 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
10534 (read_minibuf): If defalt is cons, set histstring to its car.
10535 (Fread_string): If default_value is cons, set val to its car.
10536 (Fread_buffer): If def is cons, use its car.
10537 (Fcompleting_read): If defalt is cons, set val to its car.
10539 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
10541 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
10543 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
10545 * doc.c (Fdocumentation): Check for advice in all cases.
10547 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
10549 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
10551 2007-10-19 Richard Stallman <rms@gnu.org>
10553 * doc.c (Fdocumentation): Check for and handle an advised function.
10555 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
10557 * process.c (Fset_process_filter): Doc fix.
10559 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10561 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
10562 which caused key-translation-map to applied repeatedly (thus breaking
10565 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10567 * xselect.c (x_own_selection, x_handle_selection_clear)
10568 (x_clear_frame_selections):
10569 * w32menu.c (list_of_panes, list_of_items):
10570 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
10571 * textprop.c (validate_plist, interval_has_all_properties)
10572 (interval_has_some_properties, interval_has_some_properties_list)
10573 (add_properties, text_property_list):
10574 * process.c (Fget_buffer_process, list_processes_1, status_notify):
10575 * minibuf.c (Fassoc_string):
10576 * macselect.c (x_own_selection, x_clear_frame_selections)
10577 (Fx_disown_selection_internal):
10578 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
10579 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
10581 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
10583 * process.c: Link to libs for calling res_init() if available.
10584 (Fmake_network_process): Call res_init() before getaddrinfo or
10585 gethostbyname, if possible.
10587 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10589 * lread.c (read1): Set pvectype for char_tables.
10591 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
10592 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
10594 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
10596 * alloc.c (free_misc): Use XMISCTYPE.
10597 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
10599 2007-10-17 Glenn Morris <rgm@gnu.org>
10601 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
10602 (syms_of_minibuf): Add Qcompletion_ignore_case.
10603 * dired.c (Qcompletion_ignore_case): Change to external.
10604 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
10605 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
10606 (Fread_file_name): Use it rather than intern'ing.
10608 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
10609 (Fread_coding_system): Ignore case of user input.
10611 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10613 * xdisp.c (handle_display_prop): Ignore display specs after
10614 replacing one when string text is being replaced.
10615 (handle_single_display_spec): Pretend as if characters with display
10616 property haven't been consumed only when buffer text is being replaced.
10618 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
10620 * xfns.c (Fx_create_frame, Fx_display_list):
10621 * window.c (window_fixed_size_p, enlarge_window)
10622 (shrink_window_lowest_first):
10623 * macterm.c (init_font_name_table):
10624 * macfns.c (Fx_create_frame, Fx_display_list):
10625 * lread.c (close_load_descs):
10626 * keyboard.c (read_char_x_menu_prompt):
10627 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
10628 * coding.c (code_convert_region_unwind): Test the type of an object
10629 rather than just !NILP before extracting data from it.
10631 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
10633 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
10634 (XMISCANY): New macro.
10635 (XMISCTYPE): Use it.
10636 (struct Lisp_Misc_Any): New type.
10637 (union Lisp_Misc): Use it.
10638 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
10639 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
10640 (find_symbol_value, set_internal, default_value, Fset_default)
10641 (Fmake_variable_buffer_local, Fmake_local_variable)
10642 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
10643 (Flocal_variable_if_set_p, Fvariable_binding_locus):
10644 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
10645 * alloc.c (allocate_buffer): Set the size and tag.
10646 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
10648 (die): Follow the GNU convention for error messages.
10649 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
10650 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
10652 (set_buffer_internal_1):
10653 * frame.c (store_frame_param):
10654 * eval.c (specbind):
10655 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
10657 * doc.c (Fsnarf_documentation): Simplify.
10659 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10661 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
10662 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
10664 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
10666 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
10668 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10670 * eval.c (do_autoload): Don't save autoloads.
10672 * data.c (Ffset): Save autoload of the function being set.
10674 2007-10-07 John Paul Wallington <jpw@pobox.com>
10676 * xfns.c (x_create_tip_frame): Set the `display-type' frame
10677 parameter before setting up faces.
10679 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10681 * ccl.c (Fregister_code_conversion_map):
10682 * keyboard.c (append_tool_bar_item): Reformat last change.
10684 * lisp.h (eabs): Rename from `abs'. All callers changed.
10686 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
10688 * buffer.c (add_overlay_mod_hooklist):
10689 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
10690 * fontset.c (make_fontset):
10691 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
10692 (append_tool_bar_item):
10693 * macmenu.c (grow_menu_items):
10694 * w32menu.c (grow_menu_items):
10695 * xmenu.c (grow_menu_items): Use larger_vector.
10697 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10699 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
10700 selected frame'' on MSDOS).
10702 2007-10-12 Martin Rudalics <rudalics@gmx.at>
10704 * frame.c (Qexplicit_name): New variable.
10705 (x_report_frame_params): Report it in parameter alist.
10706 (syms_of_frame): Intern and staticpro it.
10708 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
10710 * macfns.c (x_create_tip_frame): Set terminal for frame.
10712 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
10714 * frame.c (Qenvironment): Remove.
10715 (syms_of_frame) <Qenvironment>: Don't initialize.
10716 (Fdelete_frame): Don't treat the `environment' param specially.
10717 * frame.h (Qenvironment): Don't declare.
10718 * callproc.c (set_initial_environment): Don't set unused frame param.
10720 * frame.c (Fframe_with_environment): Remove.
10721 (syms_of_frame) <Sframe_with_environment>: Don't declare.
10723 * lisp.h (Fframe_with_environment): Don't declare.
10725 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
10727 * indent.c (indent_tabs_mode, last_known_column)
10728 (last_known_column_modified): Make static.
10729 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
10731 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
10733 * puresize.h (BASE_PURESIZE): Increase to 1170000.
10735 2007-10-09 Jason Rumney <jasonr@gnu.org>
10737 * w32term.c (x_set_window_size): Disable code that attempts to tell
10738 Lisp code about a size change before it actually happens.
10740 2007-10-09 Richard Stallman <rms@gnu.org>
10742 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
10743 return HANDLED_RETURN.
10745 2007-10-08 Martin Rudalics <rudalics@gmx.at>
10747 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
10748 when there's an unread command event.
10750 * frame.c (focus_follows_mouse): Move here from frame.el to allow
10751 window autoselection act appropriately when leaving selected frame.
10752 (syms_of_frame): Initialize focus_follows_mouse.
10753 * frame.h (focus_follows_mouse): Extern it.
10754 * macterm.c (XTread_socket): When focus_follows_mouse is nil
10755 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
10756 * msdos.c (dos_rawgetc): Likewise.
10757 * w32term.c (w32_read_socket): Likewise.
10758 * xterm.c (handle_one_xevent): Likewise.
10759 * xdisp.c (syms_of_xdisp): In doc-string of
10760 mouse-autoselect-window mention focus-follows-mouse.
10762 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10764 * macterm.c (mac_load_query_font): Fix missing return value.
10765 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
10768 2007-10-08 Richard Stallman <rms@gnu.org>
10770 * xdisp.c (get_window_cursor_type): Implement documented behavior
10771 for cursor-in-non-selected-windows = t.
10773 2007-10-08 Jason Rumney <jasonr@gnu.org>
10775 * w32.c (w32_get_resource): Always close registry keys.
10777 2007-10-08 Jason Rumney <jasonr@gnu.org>
10779 * makefile.w32-in (LIBS): Add COMCTL32.
10781 * w32fns.c (globals_of_w32fns): Init common controls.
10783 2007-10-08 Richard Stallman <rms@gnu.org>
10785 * image.c (our_memory_buffer): Rename from omfib_buffer.
10787 2007-10-08 Richard Stallman <rms@gnu.org>
10789 * buffer.c (Foverlays_at): Doc fix.
10791 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
10793 * fns.c (Fplist_put): Preserve uneven tail data.
10795 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
10797 * termhooks.h (enum event_kind): Remove trailing comma.
10799 * frame.h (enum): Remove trailing comma.
10801 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
10803 * w32proc.c (delete_child): Don't terminate threads of zombies.
10805 2007-10-08 Martin Rudalics <rudalics@gmx.at>
10807 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
10809 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
10810 last-repeatable-command.
10811 (init_kboard): Initialize Vlast_repeatable_command.
10812 (command_loop_1): Set it to real_this_command unless that was
10813 bound to an input event.
10814 (mark_kboards): Mark it.
10816 2007-10-08 Richard Stallman <rms@gnu.org>
10818 * eval.c (condition-case): Doc fix.
10820 2007-10-08 Masatake YAMATO <jet@gyve.org>
10822 * xfaces.c (tty_supports_face_attributes_p): Fix code
10823 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
10824 was copied and not edited.
10826 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
10828 Add new `input-decode-map' keymap and use it for terminal
10830 * keyboard.h (struct kboard): Add Vinput_decode_map.
10831 Remove Vlocal_key_translation_map.
10832 * keyboard.c (read_key_sequence): Add support for input-decode-map.
10833 (init_kboard): Init input-decode-map.
10834 Replace local-key-translation-map back with key-translation-map.
10835 (syms_of_keyboard): Declare input-decode-map.
10836 Remove local-key-translation-map. Update docstrings.
10837 (mark_kboards): Mark Vinput_decode_map.
10838 Don't mark Vlocal_key_translation_map.
10839 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
10840 Replace local-key-translation-map back with key-translation-map.
10841 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
10842 Bind in input-decode-map rather than function-key-map.
10844 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
10845 This was made redundant by the previous introduction of XSETPVECTYPE.
10847 2007-10-09 Richard Stallman <rms@gnu.org>
10849 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
10851 2007-09-29 Richard Stallman <rms@gnu.org>
10853 * eval.c (internal_condition_case_2, internal_condition_case_1)
10854 (internal_condition_case): Reenable abort if x_catching_errors ()
10855 to see if that really happens and why.
10857 2007-10-06 Andreas Schwab <schwab@suse.de>
10859 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
10861 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
10863 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
10865 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
10867 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
10869 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
10871 * window.h (struct window):
10872 * window.c (struct save_window_data, struct saved_window):
10873 * termhooks.h (struct terminal):
10874 * process.h (struct Lisp_Process):
10875 * frame.h (struct frame):
10876 * buffer.h (struct buffer):
10877 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
10878 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
10879 The size field of (pseudo)vectors is now unsigned.
10880 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
10882 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
10883 Turn `count' into an integer.
10885 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
10886 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
10887 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
10888 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
10889 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
10891 * alloc.c (allocate_pseudovector): New fun.
10892 (ALLOCATE_PSEUDOVECTOR): New macro.
10893 (allocate_window, allocate_terminal, allocate_frame)
10894 (allocate_process): Use it.
10895 (mark_vectorlike): New function.
10896 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
10897 (mark_terminals): Use it.
10898 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
10899 (Fmake_byte_code): Use XSETPVECTYPE.
10901 * frame.c (Fframe_parameters): Minor simplification.
10903 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
10905 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
10907 * buffer.c (Fget_buffer_create, init_buffer_once):
10908 * lread.c (defsubr):
10909 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
10911 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
10912 defined differently in the m/*.h files.
10913 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
10914 (XSETPVECTYPE): New macro.
10915 (XSETPSEUDOVECTOR): Use it.
10917 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
10918 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
10920 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
10921 * lread.c (defvar_per_buffer):
10922 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
10924 * window.c (candidate_window_p): Only consider as visible frames that
10925 are on the same terminal.
10927 * m/ibms390x.h (MARKBIT): Remove unused macro.
10929 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
10931 * lread.c (Fload): Fix typo in docstring.
10933 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
10935 * floatfns.c (Fexpt): Manually check for overflows, so that a power
10936 of a non-zero value can't yield zero.
10938 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
10940 * term.c (term_clear_mouse_face, term_mouse_highlight)
10941 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
10943 * print.c (safe_debug_print): Use XHASH.
10945 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10946 Lisp elements such as tags.
10947 (XHASH): New macro.
10949 (SREF, SSET, STRING_COPYIN): Use SDATA.
10950 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10952 * alloc.c (mark_terminal): Remove left-over declaration.
10953 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10954 (allocate_vectorlike): Remove type argument. Adjust callers.
10955 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10956 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10958 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10959 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10960 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10961 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10962 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10965 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10966 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10967 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10969 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10971 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10974 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10976 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
10978 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
10980 * term.c (mouse_face_window): Rename from Qmouse_face_window.
10982 (handle_one_term_event): Use Gpm_DrawPointer.
10983 (Fgpm_mouse_start): Rename from Fterm_open_connection.
10984 Signal errors instead of returning nil. Always return nil.
10985 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
10986 Make it a noop if gpm-mouse was not activated.
10987 (syms_of_term): Update names.
10989 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
10991 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
10992 (init_sys_modes): Check that gpm_tty is the current tty.
10994 * alloc.c (allocate_terminal): Set the vector size to only count the
10995 lisp fields. Initialize those to nil.
10996 (mark_object): Don't treat terminals specially.
10997 (mark_terminal): Remove.
10998 (mark_terminals): Use mark_object instead.
11000 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
11001 the GC to the beginning.
11004 * indent.c: Use EMACS_INT for ints coming from Elisp data.
11006 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
11008 2007-09-25 Jason Rumney <jasonr@gnu.org>
11010 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
11012 * w32console.c (create_w32cons_output): Remove.
11014 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
11016 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
11017 (reset_sys_modes): Use reset_terminal_modes_hook.
11019 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
11021 * eval.c (do_autoload): Don't output any message.
11023 2007-09-24 Juri Linkov <juri@jurta.org>
11025 * emacs.c (standard_args): Change priority of "--no-splash"
11026 from 40 to 3. Add "--no-desktop" with the same priority.
11028 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
11030 * alloc.c (gc_sweep): Check cons cell mark bits word by word
11031 and optimize the case where they are all 1.
11033 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
11035 * lisp.h (abs): Define if not defined.
11036 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
11037 Don't define `abs', since it's defined in lisp.h.
11039 2007-09-22 Eli Zaretskii <eliz@gnu.org>
11041 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
11042 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
11043 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
11044 (init_tty): Use DEV_TTY instead of "/dev/tty".
11045 [WINDOWSNT]: No need to protect from NAME arg being null.
11047 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11049 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
11052 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11054 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
11055 (gpm_tty): Change its type.
11056 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
11057 (gpm_tty): Change its type and initialize it.
11058 (Fterm_open_connection): Check the frame is indeed a tty.
11059 Use the new gpm_tty.
11060 (Fterm_close_connection): Use the new gpm_tty.
11061 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
11062 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
11064 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
11066 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
11067 underline_color, to draw strike-through.
11069 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11071 * lisp.h (allocate_terminal): Declare.
11073 * window.c (candidate_window_p): Consider frames that are being placed
11074 by the user as somewhere between visible and iconified.
11075 (window_loop): Prefer windows on the current frame.
11076 (Fselect_window): Move the use of select-frame to the beginning so we
11077 can just delegate all the work (it'll call us back anyway).
11079 * frame.c (Qdisplay_environment_variable):
11080 * frame.h (Qdisplay_environment_variable): Delete.
11082 * .gdbinit (xbacktrace): Print the arg's address rather than the value
11083 of the first arg, since that value may be a union.
11085 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
11086 parameter rather than Qdisplay_environment_variable. If all else
11087 fails, look for DISPLAY in initial-environment.
11089 2007-09-21 Glenn Morris <rgm@gnu.org>
11091 * Makefile.in (emacstool): Remove target.
11092 (lisp, shortlisp): Remove termdev.elc.
11094 2007-09-21 Markus Triska <markus.triska@gmx.at>
11096 * xterm.c (x_delete_display): Compile session management conditionally.
11098 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
11100 * callproc.c (getenv_internal_1): New function.
11101 (getenv_internal): Use it.
11102 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
11104 * terminal.c (get_terminal): Don't accept ints to represent terminals.
11105 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
11106 (Fset_terminal_parameter): Work with dead terminals as well.
11107 (Fmodify_terminal_parameters): Remove.
11109 * terminal.c (get_terminal): Handle terminals.
11110 Make sure the terminal returned is live.
11111 (create_terminal): Use allocate_terminal.
11112 (mark_terminals): Move to alloc.c.
11113 (delete_terminal): Use terminal->name as liveness status.
11114 NULL out fields after freeing their contents.
11115 Don't deallocate the object.
11116 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
11117 rather than an int.
11118 (Fterminal_live_p): Accept non-integer arguments.
11119 (Fterminal_list): Return terminal objects rather than an ints.
11121 * alloc.c (enum mem_type): New member for `terminal' objects.
11122 (allocate_terminal): New function.
11123 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
11125 (mark_terminal): New fun.
11126 (mark_terminals): Move from terminal.c.
11128 * term.c (get_tty_terminal): Don't treat output_initial specially.
11129 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
11130 (delete_tty): Use terminal->name as liveness status.
11132 * termhooks.h (struct terminal): Make it into a pseudovector.
11133 Remove `deleted' replaced by checking `name's nullness.
11135 * print.c (print_object): Handle terminals.
11137 * lisp.h (enum pvec_type): New `terminal' pseudovector.
11138 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
11140 * frame.c (make_terminal_frame):
11141 * keyboard.c (tty_read_avail_input):
11142 * w32term.c (x_delete_terminal):
11143 * xfns.c (Fx_create_frame, x_create_tip_frame):
11144 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
11146 2007-09-20 Glenn Morris <rgm@gnu.org>
11148 * process.c (Fmake_network_process): Doc fix.
11150 2007-09-19 Jason Rumney <jasonr@gnu.org>
11152 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
11154 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
11156 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
11157 Fix a C warning regarding variable constness.
11159 * xterm.c (handle_one_xevent): Fix a C warning.
11161 2007-09-18 Jason Rumney <jasonr@gnu.org>
11163 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
11165 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
11167 * gtkutil.c (gdpy_def): New variable.
11168 (xg_initialize): Initialize gdpy_def.
11169 (xg_display_close): If no other display exists, set gdpy_def to a
11172 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
11174 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
11175 when we have no file name for the icon.
11176 (xg_tool_bar_expose_callback): Remove.
11177 (xg_create_tool_bar): Don't connect expose signal to
11178 xg_tool_bar_expose_callback.
11179 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
11181 2007-09-16 Andreas Schwab <schwab@suse.de>
11183 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
11184 values instead of zapping them.
11186 2007-09-14 Glenn Morris <rgm@gnu.org>
11188 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
11189 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
11190 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
11191 scope and rename to omfib_buffer for clarity.
11192 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
11194 2007-09-14 Kenichi Handa <handa@m17n.org>
11196 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
11198 2007-09-13 Jason Rumney <jasonr@gnu.org>
11200 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
11202 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
11204 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
11205 (mac_term_init): Call here instead, passing rif.
11207 2007-09-13 Glenn Morris <rgm@gnu.org>
11209 * s/hpux.h: No longer define `static' as nothing.
11211 2007-09-13 Johan Bockgård <bojohan@gnu.org>
11213 * callint.c (Fcall_interactively): Remove unused var `fun'.
11215 2007-09-12 Romain Francoise <romain@orebokech.com>
11217 * window.c (prefer_window_split_horizontally, display_buffer):
11218 Revert 2007-09-08 change.
11220 2007-09-12 Glenn Morris <rgm@gnu.org>
11222 * alloca.c: Remove file.
11223 * Makefile.in (alloca): Do not undef.
11224 (allocaobj, alloca.o): Remove.
11225 (otherobj): Remove allocaobj.
11226 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
11227 * regex.c (C_ALLOCA): Remove all references and code that was only
11228 used when this was defined.
11229 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
11230 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
11231 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
11233 * Makefile.in (SOURCES, unlock, relock): Delete.
11235 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
11236 (menu_grab_callback): All uses changed.
11238 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
11239 (x_reply_selection_request): All uses changed.
11241 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11243 * lread.c (load_warn_old_style_backquotes): Change message to look
11244 better when it appears in the middle of byte-compiler messages.
11246 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
11248 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
11250 * xterm.c (x_create_terminal): Add comment.
11252 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
11254 2007-09-10 Richard Stallman <rms@gnu.org>
11256 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
11258 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
11260 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
11261 (DEFUN): Document `intspec', use it instead of `prompt'.
11263 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
11265 * data.c (Finteractive_form): If the interactive specification starts
11266 with a `(', use it as a Lisp form.
11268 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
11269 name and file modes.
11271 * callint.c (Fcall_interactively): Comment fixes.
11273 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11275 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
11276 and compiled functions.
11278 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
11280 * window.c (prefer_window_split_horizontally): New variable.
11281 (display_buffer): Consider splitting window horizontally depending
11282 on prefer_window_split_horizontally.
11284 2007-09-08 Eli Zaretskii <eliz@gnu.org>
11286 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
11288 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11290 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
11292 * frame.c (x_set_frame_parameters): Check number is positive before
11295 * window.c (freeze_window_start): Don't presume selected_window holds
11297 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
11299 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
11301 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
11303 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11305 * window.c (Vsplit_window_preferred_function): New var.
11306 (Fdisplay_buffer): Use it.
11307 (syms_of_window): Export, and initialize it.
11309 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
11311 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
11313 2007-09-06 Glenn Morris <rgm@gnu.org>
11315 * gtkutil.c (menu_grab_callback) <cnt>:
11316 * xselect.c (x_reply_selection_request) <cnt>: Move static
11317 variable to file scope.
11319 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
11321 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
11322 consistent values of selected_frame and selected_window.
11324 2007-09-04 Jason Rumney <jasonr@gnu.org>
11326 * w32console.c (initialize_w32_display): Zero unused hooks.
11328 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11330 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
11331 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
11333 2007-09-04 Jason Rumney <jasonr@gnu.org>
11335 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
11336 in w32console.c. Set up input. Remove XXX comments that have been
11337 confirmed as correct.
11339 * s/ms-w32.h (MULTI_KBOARD): Define.
11341 * w32console.c (one_and_only_w32cons): Remove.
11342 (initialize_w32_display): Take terminal argument.
11344 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
11345 initialize_w32_display.
11346 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
11348 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
11350 * keyboard.c (discard_mouse_events): Discard it.
11351 (make_lispy_event): Translate it to a lisp event.
11352 (lispy_wheel_names): Add wheel-left and right events.
11353 (syms_of_keyboard): Enlarge wheel_syms.
11355 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
11356 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
11358 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
11360 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
11361 from WM_MOUSEHWHEEL.
11362 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
11364 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
11367 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
11368 keyboard for the terminal.
11370 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11372 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
11373 (Vresume_tty_hook): Rename from Vresume_tty_functions.
11374 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
11375 and resume-tty-function to resume-tty-hook.
11376 (Fsuspend_tty, Fresume_tty): Use new names.
11378 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
11380 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
11381 if it starts with "n:".
11383 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
11385 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
11387 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11390 * frame.c (Qterm_environment_variable): Remove.
11391 (syms_of_frame): Don't init and staticpro it.
11393 * callproc.c (getenv_internal): Remove special case for $TERM.
11395 * callproc.c (Vinitial_environment): New variable.
11396 (set_initial_environment): Initialize it.
11397 (syms_of_callproc): Declare it.
11398 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
11399 TERM under which a process runs is never related to the TERM in which
11402 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11404 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
11405 * s/darwin.h: ... do it here.
11407 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11409 * lisp.h (set_initial_environment): Rename from set_global_environment.
11411 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
11412 removed by mistake on the multi-tty branch.
11414 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
11415 (Fmodify_frame_parameters): Return a value.
11417 * image.c (png_load): Comment-out var only used in commented-out code.
11419 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
11420 before passing it to mark_object.
11422 * xfaces.c (internal_resolve_face_name): Return a value.
11423 (internal_resolve_face_name, resolve_face_name_error): Comment out.
11425 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
11426 (x_icon): Comment-out var only used in commented-out code.
11428 2007-08-29 Romain Francoise <romain@orebokech.com>
11430 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
11431 QUIT hasn't been provided.
11433 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11435 * callproc.c (child_setup, getenv_internal): Use the
11436 display-environment-variable and term-environment-variable frame params.
11437 (set_initial_environment): Initialise Vprocess_environment.
11439 * config.in: Disable multi-keyboard support on a mac.
11441 * frame.c (Qterm_environment_variable)
11442 (Qdisplay_environment_variable): New variables.
11443 (syms_of_frame): Intern and staticpro them.
11444 (Fmake_terminal_frame): Disable output method test.
11446 * frame.h: Declare them here.
11448 * macfns.c (x_set_mouse_color): Get rif from the frame.
11449 (x_set_tool_bar_lines): Don't use updating_frame.
11450 (mac_window): Add 2 new parameters for consistency with other systems.
11451 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
11452 frame parameters following what is done in X11 and w32. Don't use
11453 FRAME_MAC_DISPLAY_INFO.
11454 (Fx_open_connection, start_hourglass): Remove window-system check.
11455 (x_create_tip_frame): Get the keyboard from the terminal.
11457 * macmenu.c: Reorder includes.
11458 (Fx_popup_menu): Use terminal specific mouse_position_hook.
11460 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
11461 terminal parameter.
11462 (x_clear_frame): Add a frame parameter.
11463 (note_mouse_movement): Get rif from the frame.
11464 (mac_term_init): Initialize the terminal.
11465 (mac_initialize): Make static and move terminal initialization ...
11466 (mac_create_terminal): ... to this new function.
11468 * macterm.h (struct mac_display_info): Add terminal.
11469 (mac_initialize): Delete declaration.
11471 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
11473 * sysdep.c: Comment out text after #endif.
11475 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
11476 is defined. Better initialize ttys in windows. Use terminal
11477 specific mouse_position_hook.
11479 * termhooks.h (union display_info): Add mac_display_info.
11481 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
11482 Set the default minibuffer frame, window_system and the rest of the
11483 frame parameters following what is done in X11.
11485 * w32term.c (w32_initialize): Make static.
11487 * xselect.c (x_handle_selection_clear): Only access
11488 terminal->kboard when MULTI_KBOARD is defined.
11490 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
11491 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
11493 2007-08-29 Jason Rumney <jasonr@gnu.org>
11495 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
11496 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
11498 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
11499 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
11501 * keyboard.c (restore_kboard_configuration): Only define when
11502 MULTI_KBOARD defined.
11504 * makefile.w32-in: Update dependancies from Makefile.in.
11505 (OBJ1): Add terminal.$(O)
11507 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
11508 Don't define function body.
11509 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
11511 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
11513 * w32.c (request_sigio, unrequest_sigio): Remove.
11515 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
11516 (w32con_clear_frame, w32con_clear_end_of_line)
11517 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
11518 (w32con_delete_glyphs, w32con_set_terminal_window)
11519 (scroll_line, w32_sys_ring_bell): Add frame arg.
11520 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
11522 (PICK_FRAME): Remove.
11523 (w32con_write_glyphs): Use frame specific terminal coding.
11524 (one_and_only_w32cons): New global variable.
11525 (initialize_w32_display): Use it for storing hooks.
11526 (create_w32cons_output): New function.
11528 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
11531 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
11533 (x_set_tool_bar_lines): Don't use updating_frame.
11534 (Fx_create_frame): Set terminal and ref count.
11535 (Fx_open_connection): Remove window-system check.
11537 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
11539 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
11540 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
11541 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
11543 (x_delete_terminal, w32_create_terminal): New functions.
11544 (w32_term_init): Create a terminal.
11545 (w32_initialize): Move terminal specific initialization to
11546 w32_create_terminal.
11548 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
11549 (w32_clear_rect, w32_clear_area): Use background from frame.
11550 (w32_display_info): Add terminal.
11551 (w32_sys_ring_bell, x_delete_display): Declare here.
11553 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
11555 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
11557 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
11559 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
11560 Fix get_named_tty calls for the controlling tty.
11562 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
11564 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
11566 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
11568 * term.c (tty_insert_glyphs): Add missing first parameter.
11570 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
11572 * buffer.c (Fbuffer_list, Fbury_buffer):
11573 Take frame->buried_buffer_list into account.
11575 * cm.c (current_tty): New variable, for cmputc().
11577 (cmcheckmagic): Add tty parameter, look up terminal streams there.
11578 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
11579 (cmgoto): Add tty parameter. Pass it on to calccost().
11580 Use emacs_tputs() instead of tputs().
11582 * cm.h (emacs_tputs): New macro to set current_tty, and then call
11584 (current_tty): New variable, for cmputc().
11585 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
11587 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
11588 (internal_condition_case, internal_condition_case_1)
11589 (internal_condition_case_2): Don't abort when x_catching_errors.
11591 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
11592 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
11593 prevent crashes caused by bogus longjmps in read_char.
11595 * keymap.h (Fset_keymap_parent): Add EXFUN.
11597 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
11598 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11599 Remove redundant definition.
11601 * macfns.c (x_set_mouse_color, x_make_gc):
11602 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11604 * w32term.c (x_free_frame_resources):
11605 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11606 (w32_initialize): Use the accessor macros for terminal characteristics.
11608 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
11609 Use the accessor macros for terminal characteristics.
11610 * msdos.c (internal_terminal_init): Use the accessor macros for
11611 terminal characteristics.
11612 (ScreenVisualBell, internal_terminal_init):
11613 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11615 * termopts.h (no_redraw_on_reenter): Declare.
11617 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
11618 (mark_terminals, mark_ttys): Declare.
11619 (Fgarbage_collect): Call them.
11620 (mark_object): Mark buried_buffer_list.
11622 * prefix-args.c: Include stdlib.h for exit.
11624 * syssignal.h: Add comment.
11626 * indent.c: Include stdio.h.
11628 * window.h (Vinitial_window_system): Declare.
11629 (Vwindow_system): Delete declaration.
11631 * fontset.c (Finternal_char_font): Use FRAME_RIF.
11633 * image.c (lookup_image): Don't initialize `c' until the xasserts
11636 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
11637 FRAME_FOREGROUND_PIXEL.
11639 * print.c (print_preprocess): Don't lose print_depth levels while
11642 * widget.c (update_from_various_frame_slots):
11643 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11645 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
11647 (window_internal_height): Remove bogus make_number call.
11648 (init_window_once): Call make_terminal_frame with two zero parameters.
11650 * fileio.c (Fread_file_name): Update comment.
11652 * callint.c (Fcall_interactively):
11653 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
11654 Make sure it is correctly unwound.
11656 * xsmfns.c (x_session_close): New function.
11658 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
11659 Delete declarations.
11661 * xterm.h: Remove declaration for x_fully_uncatch_errors.
11662 (x_output): Remove background_pixel and foreground_pixel fields.
11663 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
11664 (x_delete_device, x_session_close): Declare.
11666 * lread.c: Include setjmp.h. Update declaration of `read_char'.
11667 (read_filtered_event): Call `read_char' with a local
11668 `wrong_kboard_jmpbuf'.
11670 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
11671 Don't call single_kboard_state. Use FRAME_RIF.
11673 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
11676 * lisp.h (set_process_environment): Rename to `set_global_environment'.
11677 (Fframe_with_environment, Fset_input_meta_mode)
11678 (Fset_quit_char): EXFUN.
11679 (x_create_device, tty_output, terminal, tty_display_info): Declare.
11680 (init_sys_modes, reset_sys_modes): Update prototypes.
11681 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
11683 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
11684 Vlocal_key_translation_map, and Vkeyboard_translate_table.
11685 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
11686 Delete declarations.
11687 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
11688 (temporarily_switch_to_single_kboard, tty_read_avail_input):
11691 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
11692 already does that during init_display(). Call syms_of_keymap
11693 before syms_of_keyboard. Call `syms_of_terminal'.
11694 Call set_initial_environment, not set_process_environment.
11695 (shut_down_emacs): Call reset_all_sys_modes() instead of
11698 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
11699 (internal_resolve_face_name, resolve_face_name_error): New functions.
11700 (resolve_face_name): Protect against loops and errors thrown by Fget.
11701 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
11702 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
11704 * scroll.c: Replace CURTTY() with local variables throughout the
11705 file (where applicable).
11706 (calculate_scrolling, calculate_direct_scrolling)
11707 (scrolling_1, scroll_cost): Use the accessor macros for terminal
11710 * keymap.c (Vfunction_key_map): Remove.
11711 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
11712 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
11713 (Vkey_translation_map): Remove.
11714 (syms_of_keymap): Remove DEFVAR for key-translation-map.
11715 (Fdescribe_buffer_bindings)
11716 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
11717 Update for terminal-local key-translation-map.
11719 * Makefile.in (callproc.o): Update dependencies.
11720 (lisp, shortlisp): Add termdev.elc.
11721 (obj): Add terminal.o.
11722 (terminal.o): Add dependencies.
11723 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
11724 (data.o, fns.o): Add termhooks.h dependency.
11725 (SOME_MACHINE_LISP): Add dnd.elc.
11726 (minibuf.o): Fix typo.
11727 Update dependencies.
11729 * data.c (do_symval_forwarding, store_symval_forwarding)
11730 (find_symbol_value): Use the selected frame's keyboard, not
11733 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
11736 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
11738 (syms_of_xmenu): Update defsubr.
11739 (mouse_position_for_popup, Fx_popup_menu)
11740 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
11741 (set_frame_menubar, free_frame_menubar)
11742 (create_and_show_popup_menu, xmenu_show, )
11743 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
11746 * xselect.c (x_own_selection): Abort if not an X frame.
11747 (some_frame_on_display): Check if it is an X frame.
11748 (x_handle_selection_clear): Deal with MULTI_KBOARD.
11750 * coding.c: Include frame.h and termhooks.h.
11751 (terminal_coding, keyboard_coding): Delete.
11752 (Fset_terminal_coding_system_internal)
11753 (Fset_keyboard_coding_system_internal)
11754 (Fkeyboard_coding_system)
11755 (Fterminal_coding_system): Add a terminal parameter.
11756 Get terminal_coding from the terminal.
11757 (init_coding_once): Don't call setup_coding_system here.
11759 * dispextern.h (set_scroll_region, turn_off_insert)
11760 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
11761 (tty_clear_end_of_line, tty_setup_colors)
11762 (delete_tty, updating_frame)
11763 (produce_special_glyphs, produce_glyphs, write_glyphs)
11764 (insert_glyphs): Remove.
11765 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
11766 (tty_turn_off_highlight, get_tty_size): Add declaration.
11767 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
11769 * frame.h (enum output_method): Add output_initial.
11770 (struct x_output): Delete.
11771 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11772 Access foreground_pixel and background_pixel directly from the frame.
11773 (tty_display): Delete.
11774 (struct frame): Add buried_buffer_list, foreground_pixel,
11775 background_pixel and terminal. Delete kboard.
11776 (union output_data): Add tty.
11777 (FRAME_KBOARD): Get the kboard from the terminal.
11778 (FRAME_INITIAL_P): New macro.
11779 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
11780 (Qterm_environment_variable, Qdisplay_environment_variable)
11781 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
11784 * termchar.h (tty_output, tty_display_info): New structures.
11785 (tty_list): Declare.
11786 (FRAME_TTY, CURTTY): New macros.
11787 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
11788 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
11789 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
11790 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
11792 * callproc.c: Include frame.h and termhooks.h, for terminal
11794 (add_env): New function.
11795 (child_setup): Use it.
11796 (child_setup, getenv_internal): Handle the new Vprocess_environment.
11797 (getenv_internal): Fix get_terminal_param call.
11798 (Fgetenv_internal, egetenv): Update doc.
11799 (syms_of_callproc): Initialize Vprocess_environment to nil.
11800 Register and initialize them. Remove obsolete defvars. Update doc
11802 (child_setup): Handle Vlocal_environment_variables.
11803 (getenv_internal): Add terminal parameter.
11804 Handle Vlocal_environment_variables.
11805 (Fgetenv_internal): Add terminal parameter.
11806 (child_setup, getenv_internal, Fgetenv_internal): Store the local
11807 environment in a frame (not terminal) parameter. Update doc strings.
11808 (set_initial_environment): Rename from set_global_environment.
11809 Store Emacs environment in initial frame parameter.
11811 * xdisp.c (redisplay_internal): Update references to
11812 `previous_terminal_frame'.
11813 (display_mode_line, Fformat_mode_line): Replace calls to
11814 `push_frame_kboard' with `push_kboard'.
11815 (get_glyph_string_clip_rects): Add extra parentheses and
11816 braces to prevent compiler warnings.
11817 (calc_pixel_width_or_height): Add xassert to check that the
11818 frame is alive. Don't call `lookup_image' on a termcap frame.
11819 (message2_nolog, message3_nolog, redisplay_internal)
11820 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
11821 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
11822 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
11823 (Fx_display_pixel_width, Fx_display_pixel_height)
11824 (Fx_display_planes, Fx_display_color_cells)
11825 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
11826 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
11827 (Fx_display_backing_store, Fx_display_visual_class)
11828 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
11829 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
11831 * xfns.c (x_set_foreground_color x_set_background_color)
11832 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
11833 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11834 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
11835 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
11836 terminal that is being deleted.
11837 (Fx_create_frame): Use `store_frame_param' to set `window-system'
11838 frame parameter, and make sure it overrides any user-supplied setting.
11839 (Fx_close_connection, Fx_synchronize): Unify argument names with
11840 the rest of the DEFUNs.
11842 * dispnew.c (Fsend_string_to_terminal): Update call to
11843 `get_tty_terminal'.
11844 (Fredraw_frame, Fsend_string_to_terminal)
11845 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
11846 FRAME_TERMCAP_P and FRAME_TTY.
11847 (window_change_signal): Don't believe width/height values that are
11849 (Vinitial_window_system): Rename from Vwindow_system.
11850 (termscript, Wcm, rif): Delete.
11852 * termhooks.h (struct terminal): New struct containing the
11853 previously global text display hooks and new members NAME,
11854 DELETED and PARAM_ALIST.
11855 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
11856 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
11857 (FRAME_RIF): New macros.
11858 (get_terminal_param, get_device): New declarations.
11859 (termscript): Delete declaration.
11861 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
11862 (XTflash, x_free_frame_resources, x_scroll_bar_create)
11863 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
11864 FRAME_FOREGROUND_PIXEL.
11865 (x_fully_uncatch_errors): Disable definition.
11866 (x_scroll_bar_expose): Fix reference to foreground pixel.
11867 (XTread_socket): Disable loop on all X displays.
11868 (x_delete_terminal): Don't set terminal->deleted and let
11869 delete_terminal delete the frames on the terminal.
11870 (x_delete_display): Doc update to reflect changes in
11872 (x_display_info) <terminal>: Move member earlier in the struct.
11873 (deleting_tty): Remove old variable.
11874 (Fsuspend_tty): Call clear_tty_hooks.
11875 (Fresume_tty, init_tty): Call set_tty_hooks.
11876 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
11877 errors on X frames.
11878 (x_catch_errors_unwind): Abort if x_error_message is NULL.
11879 (handle_one_xevent): Initialize `f' to NULL.
11880 (x_delete_terminal, x_create_terminal): New functions.
11881 (XTset_terminal_modes, XTreset_terminal_modes)
11882 (XTread_socket, x_connection_closed, x_term_init)
11883 (x_term_init, x_delete_display): Add terminal parameter.
11884 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
11887 * frame.c: Include termchar.h.
11888 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
11889 (Qwindow_system, Qenvironment, Qterm_environment_variable)
11890 (Qdisplay_environment_variable): New vars.
11891 (Fframep): Deal with output_initial.
11892 (Fframe-live-p): Doc fix.
11893 (Fwindow-system): New function.
11894 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
11895 (make_terminal_frame): Don't create frames on a terminal that is
11896 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11897 (store_frame_param): Check for found_for_frame before calling XFRAME.
11898 (Fmake_terminal_frame): Handle NULL tty names correctly.
11899 (syms_of_frame): Enhance doc string of `default-frame-alist'.
11900 (Fdelete_frame): Remove unused variable `count'. Don't allow other
11901 frames to refer to a deleted frame in their 'environment parameter.
11902 (Fframe_with_environment): New function.
11903 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
11904 (get_future_frame_param): New function.
11905 (Fmake_terminal_frame): Use it.
11906 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
11908 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
11909 * sysdep.c (reset_sys_modes): Update for renames.
11911 * keyboard.c (tty_read_avail_input): New function.
11912 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
11913 (syms_of_keyboard): Defsubr them.
11914 (Fset_input_meta_mode, Fset_quit_char): New functions.
11915 (Fset_input_mode): Split to above functions.
11916 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
11917 parameter. Use it in call to `read_char'.
11918 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
11919 Set wrong_kboard_jmpbuf correctly in recursive calls.
11920 Use current_kboard to access Vkeyboard_translate_table.
11921 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
11922 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
11923 Update longjmp invocations. Remember the original current_kboard,
11924 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
11925 changes it. Comment out unnecessary calls to
11926 `record_single_kboard_state' and `any_kboard_state'.
11927 Update recursive calls.
11928 (wrong_kboard_jmpbuf): Remove global variable.
11929 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
11930 Handle deleted interrupted_kboards correctly; that is a legal
11931 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
11932 and read_char calls. Abort if interrupted_kboard died in read_char.
11933 (any_kboard_state, single_kboard_state)
11934 (push_frame_kboard): Remove function.
11935 (pop_kboard): Switch out of single_kboard mode if the kboard has
11936 been deleted. Remove unused variable. Help debugging by not
11937 changing current_kboard unnecessarily. Set current_kboard to the
11938 kboard of the selected frame when the stored kboard object has
11939 been deleted before pop_kboard.
11940 (temporarily_switch_to_single_kboard): Change first parameter to a
11941 frame pointer. Throw an error when caller wants to change kboards
11942 while in single_kboard mode. Don't push_kboard if we weren't in
11943 single kboard state. Don't pop_kboard if we popped into any
11945 (restore_kboard_configuration): Abort if pop_kboard changed the
11946 kboard in single_kboard mode. Call pop_kboard only after setting
11947 up single_kboard mode.
11948 (Frecursive_edit): Switch to single_kboard mode only in nested
11950 (cmd_error, command_loop, command_loop_1, timer_check):
11951 Comment out unnecessary call to `any_kboard_state' and
11952 `record_single_kboard_state'.
11953 (delete_kboard): Exit single_kboard mode if we have just deleted
11954 that kboard. Use FRAME_KBOARD.
11955 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11956 `fatal_error_signal'.
11957 (record_single_kboard_state): Don't push_kboard if we weren't in
11958 single kboard state. Don't pop_kboard if we popped into any
11960 (push_frame_kboard): Rename to push_kboard.
11961 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11962 (read_avail_input): Read input from all terminals.
11963 (mark_kboards): Also mark Vkeyboard_translate_table.
11964 (kbd_buffer_store_event_hold): Simplify condition.
11965 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11966 (Vkeyboard_translate_table): Move to struct kboard.
11967 (init_kboard): Initialize Vkeyboard_translate_table.
11968 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11969 Vkeyboard_translate_table. Update doc strings. Update docs of
11970 local-function-key-map and function-key-map.
11972 * terminal.c: New file.
11974 * term.c: Include errno.h.
11975 (Vring_bell_function, device_list, initial_device)
11976 (next_device_id, ring_bell, update_begin, update_end)
11977 (set_terminal_window, cursor_to, raw_cursor_to)
11978 (clear_to_end, clear_frame, clear_end_of_line)
11979 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
11980 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
11981 (syms_of_term): Move their initialization to terminal.c.
11982 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
11983 (Ftty_display_color_cells)
11984 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
11985 (clear_tty_hooks, set_tty_hooks)
11986 (init_tty, maybe_fatal): New functions.
11987 (Ftty_type): Return nil if terminal is not on a tty instead of
11988 throwing an error. Doc update.
11989 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
11990 Doc update. Initialize new subrs and variables.
11991 (delete_tty): Use terminal->deleted.
11992 (tty_set_terminal_modes): Rename from set_terminal_modes.
11993 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
11994 (set_scroll_region): Rename to `tty_set_scroll_region'.
11995 (turn_on_insert): Rename to `tty_turn_on_insert'.
11996 (turn_off_insert): Rename to `tty_turn_off_insert'.
11997 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
11998 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
11999 (toggle_highligh): Rename to `tty_toggle_highlight'.
12000 (background_highlight): Rename to `tty_background_highlight'.
12001 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
12002 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
12003 (tty_set_scroll_region, tty_background_highlight)
12004 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
12005 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
12006 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
12007 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
12008 Add static modifier.
12009 (tty_reset_terminal_modes, tty_set_terminal_window)
12010 (tty_set_scroll_region, tty_background_highlight)
12011 (tty_highlight_if_desired, tty_cursor_to)
12012 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
12013 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
12014 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
12017 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
12019 * keyboard.c: Qrtl is new.
12020 (parse_tool_bar_item): Handle :rtl keyword.
12021 (syms_of_keyboard): Intern :rtl keyword.
12023 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
12025 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
12026 so no Lisp code is executed.
12027 (file_for_image, find_rtl_image): New functions.
12028 (xg_get_image_for_pixmap): Use file_for_image.
12029 (update_frame_tool_bar): If direction is RTL, use RTL image if
12030 defined. Use Gtk stock images if defined.
12032 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12034 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
12035 for nonexistent or zero-width glyph in composition glyph.
12037 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
12039 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
12041 * xdisp.c (Finvisible_p): New function.
12042 (syms_of_xdisp): defsubr it.
12044 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
12046 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
12049 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12051 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
12053 2007-08-24 Martin Rudalics <rudalics@gmx.at>
12055 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
12056 whether decoding has modified buffer contents.
12058 2007-08-24 Jason Rumney <jasonr@gnu.org>
12060 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
12061 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
12062 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
12063 (init_svg_functions) [HAVE_NTGUI]: New function.
12064 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
12065 (svg_load_image): Use them.
12066 (svg_load_image) [HAVE_NTGUI]: Implement background.
12068 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12070 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
12071 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
12072 (LIBX): Remove @RSVG_LIBS@.
12073 (LIBES): Add $(RSVG_LIBS).
12075 * image.c (svg_load_image): Blend with specified background if exists.
12076 Use IMAGE_BACKGROUND. Add Mac OS Support.
12078 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
12079 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
12081 [MAC_OSX] (socket_callback): Do nothing.
12082 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
12084 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
12086 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
12088 2007-08-22 Glenn Morris <rgm@gnu.org>
12090 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
12092 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
12094 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
12096 * image.c: Add support for SVG images. Some additional comments
12097 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
12098 (svg_image_p): New function to test for SVG image.
12099 (svg_load): New function to load SVG image.
12100 (svg_load_image): New function, helper for svg_load.
12101 (Qsvg): New Lisp_object.
12102 (svg_keyword_index): New enum.
12103 (svg_format): New static `image_keyword' struct.
12104 (svg_type): New static `image_type' struct.
12105 (librsvg/rsvg.h): Include it.
12107 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
12109 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
12111 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
12113 * lread.c (Qold_style_backquotes): New var.
12114 (syms_of_lread): Init and staticpro it.
12115 (load_warn_old_style_backquotes): New fun.
12116 (Fload): Use them to warn about old style backquotes.
12117 (end_of_file_error, Fload): Remove unused vars.
12119 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
12121 * lread.c (Vold_style_backquotes): New var.
12122 (syms_of_lread): Init and export it to Elisp.
12123 (read1): Set it when we find an old-style (back)quote.
12125 2007-08-22 Jason Rumney <jasonr@gnu.org>
12127 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
12129 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
12131 * puresize.h (BASE_PURESIZE): Increase to 1140000.
12133 2007-08-19 Richard Stallman <rms@gnu.org>
12135 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
12137 2007-08-19 Andreas Schwab <schwab@suse.de>
12139 * alloc.c (pure): Round PURESIZE up.
12141 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
12143 * xterm.c (handle_one_xevent): Remove check that mouse click is in
12146 2007-08-16 Richard Stallman <rms@gnu.org>
12148 * eval.c (Fcommandp): Add parens to clarify.
12150 * minibuf.c (Fall_completions): Use enum for type of table.
12152 * emacs.c (USAGE2): Improve text.
12154 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
12156 * term.c (tty_default_color_capabilities): Declare static
12157 variables in file scope, to avoid HPUX compiler problem.
12159 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
12161 * gtkutil.c (update_frame_tool_bar): Use -1 as index
12162 to gtk_toolbar_insert.
12164 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
12166 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
12168 * insdel.c (reset_var_on_error): New fun.
12169 (signal_before_change, signal_after_change):
12170 Use it to reset (after|before)-change-functions to nil in case of error.
12171 Bind inhibit-modification-hooks to t.
12172 Don't bind (after|before)-change-functions to nil while they run.
12174 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12176 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
12177 filling pixmap with stippled background.
12179 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12181 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
12182 Don't use invisible frame as parent window for repositioning.
12184 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
12186 * print.c (new_backquote_output): Rename from old_backquote_output.
12187 (print): Inverse its logic (according to its name) so as to match the
12188 behavior of new_backquote_flag in lread.c.
12190 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12192 * gmalloc.c (posix_memalign): New function.
12194 * macterm.c (frame_highlight, frame_unhighlight): Don't call
12195 ActivateControl/DeactivateControl here.
12196 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
12197 frame-notice-user-settings is non-nil.
12198 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
12199 for kEventParamFMFontStyle.
12200 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
12201 mac_pass_command_to_system and mac_pass_control_to_system here.
12202 (XTread_socket): Call ActivateControl/DeactivateControl here.
12203 (XTread_socket) [TARGET_API_MAC_CARBON]:
12204 Check mac_pass_command_to_system and mac_pass_control_to_system here.
12205 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
12206 for window repositioning.
12208 2007-08-08 Glenn Morris <rgm@gnu.org>
12210 * Replace `iff' in doc-strings and comments.
12212 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
12214 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
12216 2007-08-07 Martin Rudalics <rudalics@gmx.at>
12218 * fileio.c (Finsert_file_contents): Run format-decode and
12219 after_insert_file_functions on entire buffer when REPLACE is
12220 non-nil and inhibit modification_hooks and point_motion_hooks.
12221 For consistency, run after_insert_file_functions iff something
12222 got inserted. Move signal_after_change and update_compositions
12223 after code running after_insert_file_functions. Make sure that
12224 undo_list doesn't record intermediate steps of the decoding process.
12226 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12229 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
12230 Call malloc_enable_thread on interactive startup.
12232 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
12233 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
12234 [USE_PTHREAD]: Conditionalize with it.
12235 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
12236 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
12239 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
12241 * xdisp.c (redisplay_window): When restoring original buffer
12242 position, make sure it is still valid.
12244 * image.c (png_load): Ignore png-supplied background color.
12246 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12248 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
12249 Use kCFAbsoluteTimeIntervalSince1970.
12251 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
12253 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
12254 event loop should be quit.
12255 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
12256 Quit dialog event loop if quit_dialog_event_loop is set.
12258 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
12259 (Selection): New typedef. Use instead of ScrapRef.
12260 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
12261 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
12262 (mac_clear_selection): Rename from clear_scrap.
12263 (get_flavor_type_from_symbol): New argument SEL and subsume function of
12264 scrap_has_target_type. All uses changed.
12265 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12266 (mac_selection_has_target_p): New functions.
12267 (mac_put_selection_value): Rename from put_scrap_string.
12268 (mac_get_selection_value): Rename from get_scrap_string.
12269 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
12270 (put_scrap_private_timestamp, scrap_has_target_type)
12271 (get_scrap_private_timestamp): Remove functions.
12272 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
12273 (x_own_selection, x_get_local_selection):
12274 Use mac_valid_selection_value_p.
12275 (x_own_selection): Don't use put_scrap_private_timestamp.
12276 Record OWNERSHIP-INFO into Vselection_alist instead.
12277 (x_get_local_selection): Don't check type if request is local.
12278 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
12279 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
12281 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
12283 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
12284 add comment explaining why.
12286 2007-08-03 Richard Stallman <rms@gnu.org>
12288 * fileio.c (Fvisited_file_modtime): Use make_time.
12290 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
12292 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
12295 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
12297 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
12299 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
12301 * puresize.h (BASE_PURESIZE): Increase to 1130000.
12303 2007-07-30 Richard Stallman <rms@gnu.org>
12305 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
12307 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
12309 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
12311 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
12313 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
12314 remote default-directory.
12316 * buffer.c (mode-line-format): Update doc string.
12318 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12320 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
12322 (x_scroll_bar_create): Set bar->fringe_extended_p.
12323 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
12324 on frame edge. Check fringe background extension. Don't clear
12325 extended fringe background area.
12327 * w32term.h (struct scroll_bar): New member fringe_extended_p.
12328 (w32_fill_area): Enclose multiple statements with do ... while (0).
12330 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
12331 Extend fringe background to scroll bar gap.
12332 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
12333 Set bar->fringe_extended_p.
12334 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12335 Put leftmost/rightmost scroll bars on frame edge. Check fringe
12336 background extension. Don't clear extended fringe background area.
12338 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12339 New member fringe_extended_p.
12341 2007-07-25 Glenn Morris <rgm@gnu.org>
12343 * Relicense all FSF files to GPLv3 or later.
12345 * COPYING: Switch to GPLv3.
12347 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
12349 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
12351 * data.c (Finteractive_form): Check for the presence of an
12352 `interactive-form' symbol property more thoroughly.
12354 * data.c (Finteractive_form): Use an `interactive-form' property if
12355 present, analogous to the function-documentation property.
12357 2007-07-24 Jason Rumney <jasonr@gnu.org>
12359 * w32fns.c (x_real_positions): Get real position from OS instead of
12362 2007-07-23 Jason Rumney <jasonr@gnu.org>
12364 * filelock.c (current_lock_owner): Allow for @ sign in username.
12366 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
12368 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
12369 remote default-directory.
12371 * buffer.c (mode-line-format): Describe above case in doc string.
12373 2007-07-20 Eli Zaretskii <eliz@gnu.org>
12375 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
12376 Define if not defined.
12378 2007-07-18 Jason Rumney <jasonr@gnu.org>
12380 * w32proc.c (w32_executable_type): Handle 64 bit executables.
12382 2007-07-18 Richard Stallman <rms@gnu.org>
12384 * data.c (Fsetq_default): Doc fix.
12386 * eval.c (Fsetq): Doc fix.
12388 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
12390 * coding.c (Ffind_operation_coding_system):
12391 * eval.c (For, Fand): Doc fixes.
12392 Reported by Johan Bockgård.
12394 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
12396 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
12398 * xterm.h: Declare x_ewmh_activate_frame.
12400 * xterm.c (x_ewmh_activate_frame): New function.
12401 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
12403 2007-07-17 Martin Rudalics <rudalics@gmx.at>
12405 * window.c (Fdisplay_buffer): If largest or LRU window is the
12406 only window, split it even if it is not eligible for splitting.
12407 This restores the original behavior broken by the 2007-07-15
12410 2007-07-17 Glenn Morris <rgm@gnu.org>
12412 * abbrev.c (abbrev_check_chars): New function.
12413 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12414 Call abbrev_check_chars to check abbrev characters are word
12415 constituents. Doc fix.
12417 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12419 * process.c (Fstart_process, Fmake_network_process)
12420 (read_process_output): Fix up last changes.
12422 2007-07-16 Eli Zaretskii <eliz@gnu.org>
12424 * makefile.w32-in (clean): Don't delete *~.
12426 2007-07-16 Andreas Schwab <schwab@suse.de>
12428 * window.c (Fdisplay_buffer): Use NILP.
12429 (Fset_window_scroll_bars): Likewise.
12431 2007-07-15 Martin Rudalics <rudalics@gmx.at>
12433 * window.c (window_min_size_2): New function.
12434 (window_min_size_1, size_window, Fdisplay_buffer)
12435 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
12436 windows without mode- or header-lines when window-min-height is
12438 (size_window): Reset nodelete_p after testing it, following an
12439 earlier note by Kim F. Storm.
12440 (display_buffer): Do not set split_height_threshold to twice the
12441 value of window_min_height to avoid changing the value of a
12442 customizable variable. Rather explicitly check whether the
12443 height of the window that shall be splitted is at least as large
12444 as split_height_threshold.
12445 (Fwindow_full_width_p): New defun.
12446 (syms_of_window): Defsubr it.
12448 * window.h: Add EXFUN for Fwindow_full_width_p.
12450 2007-07-14 Jason Rumney <jasonr@gnu.org>
12452 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
12454 2007-07-14 Richard Stallman <rms@gnu.org>
12456 * eval.c (maybe_call_debugger): New function.
12457 (find_handler_clause): Use maybe_call_debugger.
12458 Call it when the handler says `debug'.
12459 Eliminate DEBUGGER_VALUE_PTR.
12460 (Fsignal): Eliminate debugger_value.
12461 (Qdebug): New variable.
12462 (syms_of_eval): Initialize it.
12464 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
12467 * keyboard.c (Ftrack_mouse):
12468 * print.c (Fwith_output_to_temp_buffer):
12469 * window.c (Fsave_window_excursion): Doc fix.
12471 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
12473 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
12475 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
12477 * process.h (struct Lisp_Process): Turn slots infd, outfd,
12478 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
12479 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
12480 read_output_delay, and read_output_skip from Lisp_Objects to ints.
12481 Remove unused encoding_carryover.
12482 * process.c: Adjust all functions accordingly.
12484 2007-07-12 Richard Stallman <rms@gnu.org>
12486 * term.c: Include unistd.h only if HAVE_UNISTD_H.
12488 2007-07-11 Jason Rumney <jasonr@gnu.org>
12490 * makefile.w32-in (LIBS): Include OLE32.
12492 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
12493 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
12495 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
12497 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
12498 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
12499 from a Lisp_Object into a bare pointer.
12500 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12501 Adjust the code correspondingly.
12503 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
12505 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
12506 (term_show_mouse_face): Remove unused var `j'.
12507 (handle_one_term_event): Remove unused vars `i' and `j'.
12508 Don't cast return value of ttyname since it's not necessary.
12510 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
12512 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
12513 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
12515 * fns.c (map_char_table): Use an array of int for `indices' rather than
12516 an array of Lisp_Objects (which are only ever integers anyway).
12517 (Fmap_char_table): Update caller.
12518 * lisp.h: Update prototype.
12519 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
12520 * fontset.c (Ffontset_info):
12521 * casetab.c (set_case_table): Update callers.
12523 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
12525 * keymap.c (struct accessible_keymaps_data)
12526 (struct where_is_internal_data): New structures.
12527 (accessible_keymaps_1, where_is_internal_1): Use them to change
12528 interface to adhere to the one used by map_keymap.
12529 (Faccessible_keymaps, where_is_internal): Use map_keymap.
12530 (accessible_keymaps_char_table, where_is_internal_2): Remove.
12532 * keymap.h (map_keymap_function_t): More informative prototype.
12534 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
12536 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
12537 (looking_at_1): Don't change search_regs and last_thing_searched
12538 if `inhibit-changing-match-data' is non-nil.
12539 (string_match_1, search_buffer, set_search_regs): Likewise.
12540 (syms_of_search): Add Lisp level definition for
12541 `inhibit-changing-match-data' and set it to nil.
12542 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
12543 start and end of the match, instead of using values in search_regs.
12545 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
12547 * minibuf.c (Fcompleting_read): New value `confirm-only'
12548 for `require-match'.
12550 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
12552 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
12553 part of the 2007-06-27 change to syms_of_fileio.
12555 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12557 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
12558 Check WINDOWP before using XWINDOW. Consolidate return statements.
12560 2007-06-27 Richard Stallman <rms@gnu.org>
12562 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12564 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
12566 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
12568 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12570 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
12571 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
12572 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
12573 (_free_internal, memalign): Use them.
12574 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
12575 Initialize to PTHREAD_MUTEX_INITIALIZER.
12576 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
12577 (morecore_nolock): Rename from morecore. All uses changed.
12578 Use only nolock versions of internal allocation functions.
12579 (_malloc_internal_nolock, _realloc_internal_nolock)
12580 (_free_internal_nolock): New functions created from
12581 _malloc_internal, _realloc_internal, and _free_internal.
12582 (_malloc_internal, _realloc_internal, _free_internal): Use them.
12583 Copy hook value to automatic variable before its use.
12584 (memalign): Copy hook value to automatic variable before its use.
12586 2007-06-26 Kenichi Handa <handa@m17n.org>
12588 * coding.c (Ffind_operation_coding_system): Docstring improved.
12589 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
12591 2007-06-25 David Kastrup <dak@gnu.org>
12593 * keymap.c (Fcurrent_active_maps): Add `position' argument.
12594 (Fwhere_is_internal): Adjust call to `current-active-maps' to
12595 cater for additional parameter.
12597 * keymap.h: Adjust number of parameters to `current-active-maps'.
12599 * doc.c (Fsubstitute_command_keys): Adjust call of
12600 `current-active-maps'.
12602 2007-06-25 David Kastrup <dak@gnu.org>
12604 * callint.c (Fcall_interactively): Make the parsing of interactive
12605 specs somewhat more readable.
12607 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12609 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
12610 to scroll bar gap also when bitmap fills fringe. Draw only foreground
12611 if extended background has already been filled.
12613 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12615 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
12616 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
12618 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
12619 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
12620 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
12621 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
12622 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
12623 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
12624 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
12625 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
12626 Run timers during dialog popup.
12627 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
12629 2007-06-21 Jason Rumney <jasonr@gnu.org>
12631 * image.c (convert_mono_to_color_image): Swap fore and background.
12633 2007-06-20 Jason Rumney <jasonr@gnu.org>
12635 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
12636 (w32_free_bdf_font): Unmap memory not handle.
12638 2007-06-20 Sam Steingold <sds@gnu.org>
12640 * gmalloc.c (__morecore): Fix the declaration to comply with the
12643 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
12645 * w32term.c (w32_delete_display): Remove leftover declaration.
12646 (w32_define_cursor, w32_initialize): Make static.
12648 * w32.c (_wsa_errlist): Fix typo in error message.
12649 (init_environment): Ignore any environment variable from the
12650 registry having a null value.
12652 2007-06-20 Glenn Morris <rgm@gnu.org>
12654 * Makefile.in (LIBGIF): Default to -lgif.
12656 2007-06-17 Jason Rumney <jasonr@gnu.org>
12658 * w32menu.c (add_menu_item): Don't use multibyte string functions on
12661 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
12663 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
12664 Fix typo in docstring.
12666 2007-06-16 Eli Zaretskii <eliz@gnu.org>
12668 * w32menu.c (add_menu_item): Escape `&' characters in menu items
12669 and their keybindings.
12671 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
12673 * composite.c (update_compositions): Fix last fix.
12675 2007-06-14 Jason Rumney <jasonr@gnu.org>
12677 * w32.c (get_process_times_fn): New function pointer.
12678 (globals_of_w32): Intialize it if present in kernel32.dll.
12679 (w32_get_internal_run_time): New function.
12681 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
12683 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
12685 * composite.c (update_compositions): Check the validness of
12688 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12690 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
12691 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
12693 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
12694 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
12696 * macgui.h (USE_MAC_TOOLBAR): New define.
12698 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12699 Return immediately unless popup is activated.
12701 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
12702 background to scroll bar gap.
12703 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
12704 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
12705 scroll bars on frame edge. Check fringe background extension.
12706 Don't clear extended fringe background area.
12707 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
12708 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
12709 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
12710 [USE_MAC_TOOLBAR]: New macros.
12711 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
12712 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
12713 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
12714 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
12715 [USE_MAC_TOOLBAR]: New functions.
12716 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
12717 manually if previous repositioning has failed.
12718 (mac_handle_keyboard_event): Use precomputed event kind.
12719 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
12720 as tool bar item click. Handle mouse movement over tool bar items.
12722 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
12723 toolbar_win_gravity.
12724 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
12725 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
12728 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
12729 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
12731 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
12733 * image.c (search_image_cache): Remove unused variable.
12735 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
12737 * xfns.c, xmenu.c: Link to xaw3d if available.
12739 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12741 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
12742 frame_foreground and frame_background.
12744 * image.c (lookup_image): Save frame foreground and background colors.
12745 (search_image_cache): Check if saved and current frame colors match.
12747 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12749 * regex.c (regex_compile): Remove the `regnum' counter.
12750 Use bufp->re_nsub instead. Add support for \(?N:RE\).
12752 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12754 * term.c: Include intervals.h to declare Fget_text_property.
12756 2007-06-10 Jason Rumney <jasonr@gnu.org>
12758 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
12760 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
12762 * callint.c (Fcall_interactively):
12763 * editfns.c (Fdelete_and_extract_region):
12764 * fileio.c (Fread_file_name):
12765 * fns.c (Fmapconcat):
12766 * keyboard.c (cmd_error_internal):
12767 * keymap.c (Fkey_description):
12769 * minibuf.c (read_minibuf):
12770 * search.c (wordify):
12771 * sunfns.c (sel_read):
12772 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
12773 * xfns.c (x_default_scroll_bar_color_parameter):
12774 * xmenu.c (menu_help_callback):
12775 * xselect.c (Fx_get_atom_name):
12776 * xterm.c (x_term_init): Use empty_unibyte_string.
12778 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
12780 * alloc.c (init_strings): Initialize canonical empty strings.
12781 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
12782 canonical empty string when the requested size is 0.
12784 * emacs.c (empty_unibyte_string): Rename from empty_string.
12785 (empty_multibyte_string): New canonical empty string.
12786 (syms_of_emacs): Don't initialize empty_string.
12788 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
12789 string, if appropriate.
12790 (empty_unibyte_string, empty_multibyte_string): New externs.
12791 (empty_string): Remove extern.
12793 * lread.c (syms_of_lread): Use empty_unibyte_string.
12795 2007-06-07 Jason Rumney <jasonr@gnu.org>
12797 * s/ms-w32.h: Don't define HAVE_TZNAME.
12799 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
12801 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12803 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
12805 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
12806 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
12808 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12809 Don't call next handler.
12810 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
12811 Remove argument. Install handler to application.
12812 (set_frame_menubar): Don't change deep_p.
12813 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
12814 FRAME_OUTER_TO_INNER_DIFF_Y.
12815 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12816 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12817 [HAVE_DIALOGS]: New macros.
12818 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
12820 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
12822 * macselect.c [MAC_OSX] (install_service_handler): Rename from
12823 init_service_handler. All callers changed. Return OSStatus value.
12825 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
12826 All callers changed so as not to call SetPortWindowPort.
12827 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
12828 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
12829 mac_draw_string_common.
12830 (mac_draw_image_string_qd): Likewise.
12831 (mac_draw_string_common): Use them. Add INLINE.
12832 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
12833 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
12835 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
12836 and FRAME_OUTER_TO_INNER_DIFF_Y.
12837 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
12838 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
12839 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
12840 repositioning window to mac_handle_window_event.
12841 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
12842 saving window location to mac_handle_window_event
12843 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
12844 (install_menu_target_item_handler): Remove argument in extern.
12845 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
12846 Also accept command events.
12847 (do_keystroke): New function created from XTread_socket.
12848 (init_command_handler): Remove functions.
12849 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
12850 and save window location by kEventWindowShowing and kEventWindowHiding
12851 handlers here. Don't call next handler for window state change and
12853 (mac_handle_application_event, mac_handle_keyboard_event)
12854 [TARGET_API_MAC_CARBON]: New functions.
12855 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
12856 kEventWindowShowing and kEventWindowHiding events. Move installation
12857 of mouse, font, text input and menu target item handlers to
12858 install_application_handler.
12859 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
12860 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12862 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12864 (XTread_socket) [TARGET_API_MAC_CARBON]:
12865 Consolidate SendEventToEventTarget calls.
12866 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
12867 Move application activation handler to mac_handle_application_event.
12868 Move keyboard handler to mac_handle_keyboard_event.
12869 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
12870 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12871 init_command_handler. Call install_application_handler.
12873 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
12874 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
12876 2007-06-07 Glenn Morris <rgm@gnu.org>
12878 * emacs.c (main): Use `emacs-copyright' in --version output.
12880 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
12882 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
12884 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12886 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
12888 * macgui.h: Replace WindowPtr with WindowRef.
12890 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12891 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12892 Replace ControlHandle with ControlRef.
12893 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
12895 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12896 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12897 Replace ControlHandle with ControlRef.
12898 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
12899 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
12901 * macterm.h (struct scroll_bar): Rename member control_handle_low
12902 and control_handle_high to control_ref_low and control_ref_high.
12904 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
12905 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
12906 respectively. All uses changed.
12907 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
12908 (install_window_handler, remove_window_handler): Replace WindowPtr
12909 with WindowRef in externs.
12911 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
12913 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
12915 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
12917 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
12919 * frame.c (Fmouse_position, Fmouse_pixel_position):
12920 Condition on HAVE_GPM too.
12922 * term.c (term_mouse_highlight): Remove unused variables.
12923 (Fterm_open_connection): Set gpm_zerobased to 1.
12924 (term_mouse_movement, term_mouse_click, handle_one_term_event):
12925 Use zero based co-ordinates.
12926 (handle_one_term_event): Report a drag as mouse movement too.
12928 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
12930 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
12932 * image.c (search_image_cache): New function. Require background
12933 color match if background color is unspecified in the image spec.
12934 (uncache_image, lookup_image): Use it.
12936 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
12938 * window.c (Fshrink_window): Reflow docstring.
12940 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
12942 * Version 22.1 released.
12944 2007-06-01 Richard Stallman <rms@gnu.org>
12946 * xfns.c (x_encode_text): Add GCPRO.
12948 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12950 * xfns.c (x_set_name_internal): Save encoded name before
12951 x_encode_text in case string data is relocated.
12953 2007-05-31 Richard Stallman <rms@gnu.org>
12955 * buffer.c (syms_of_buffer): Doc fix.
12957 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
12959 * sysdep.c (init_sys_modes): Add rather than replace with
12962 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12965 * termhooks.h (term_mouse_moveto): New extern.
12967 * term.c (mouse_face_window): Rename...
12968 (Qmouse_face_window): ...to this.
12969 (term_show_mouse_face, term_clear_mouse_face)
12970 (term_mouse_highlight): Use Qmouse_face_window.
12971 (term_mouse_moveto): New function.
12972 (term_mouse_position): Make it work.
12973 (syms_of_term): Uncomment assignment to mouse_position_hook.
12974 Staticpro Qmouse_face_window.
12976 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12978 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
12979 around current_column call.
12981 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
12983 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
12984 * xdisp.c (next_element_from_buffer):
12985 * window.c (delete_window):
12986 * term.c (term_mouse_highlight):
12987 * msdos.c (getdefdir):
12988 * macterm.c (mac_create_bitmap_from_bitmap_data)
12989 (init_font_name_table):
12991 * data.c (Fmake_local_variable):
12992 * ccl.c (ccl_driver): Likewise.
12994 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12996 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
12997 Call mac_wakeup_from_rne on window size change.
12999 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
13001 * image.c (uncache_image): Fix typo.
13003 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
13005 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
13007 2007-05-22 Richard Stallman <rms@gnu.org>
13009 * xterm.c (x_connection_closed): Remove NO_RETURN.
13011 2007-05-22 Martin Rudalics <rudalics@gmx.at>
13013 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
13015 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
13017 * image.c (uncache_image): New function.
13018 (Fimage_refresh): New function.
13020 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
13022 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
13024 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13026 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
13027 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
13029 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13031 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
13032 conditional on [HAVE_GPM_H].
13034 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13036 * syntax.c (skip_chars): Update syntax-table only after we checked that
13037 the new location is valid.
13039 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13041 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
13042 mac_get_window_bounds.
13044 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13046 * Makefile.in (LIBGPM): Allow it to be set from configure.
13047 If set then link Emacs with it.
13049 * config.in: Regenerate.
13051 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
13054 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
13056 (handle_one_term_event, term_gpm): New externs.
13058 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
13059 and allow it to be interrupted by SIGIO.
13061 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
13062 (wait_reading_process_output): Wait on gpm_fd too.
13063 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
13064 (add_gpm_wait_descriptor_called_flag): New variable.
13065 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
13067 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
13068 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
13069 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
13070 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
13071 (make_lispy_event): Add case GPM_CLICK_EVENT.
13072 (read_avail_input): Handle mouse input.
13074 * term.c (write_glyphs_with_face): New function.
13075 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
13076 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
13077 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
13078 (mouse_face_face_id, term_gpm, pos_x, pos_y)
13079 (last_mouse_x, last_mouse_y): New variables.
13080 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
13081 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
13082 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
13083 (Fterm_close_connection): New functions.
13084 (term_init): Initialise mouse_face_window.
13086 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
13088 * xdisp.c (redisplay_window): If first window line is a
13089 continuation line, recompute the new window start instead of
13092 2007-05-18 Glenn Morris <rgm@gnu.org>
13094 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
13095 Suggested by Alfred M. Szmidt <ams@gnu.org>.
13097 2007-05-17 Glenn Morris <rgm@gnu.org>
13099 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
13101 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13103 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
13104 dead key repeat and up events.
13106 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
13108 * image.c (pbm_load): Check image size for monochrome pbm.
13110 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
13112 * xterm.c (XTread_socket): Revert last change.
13114 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
13116 * image.c (pbm_load): Correctly check image size for greyscale pbm.
13118 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
13120 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13122 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
13125 2007-05-07 Andreas Schwab <schwab@suse.de>
13127 * keymap.c (Flookup_key): Fix typo in last change.
13129 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13131 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
13132 mapping for unibyte strings.
13134 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13136 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
13137 (Fx_popup_dialog) [MAC_OSX]: Likewise.
13139 2007-04-29 Richard Stallman <rms@gnu.org>
13141 * insdel.c (replace_range): For undo, record insertion first.
13143 2007-04-29 Andreas Schwab <schwab@suse.de>
13145 * lisp.h (VECSIZE): Use OFFSETOF.
13147 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13149 * xdisp.c (try_window_reusing_current_matrix): Fix number of
13152 2007-04-28 Richard Stallman <rms@gnu.org>
13154 * lread.c (read_escape): In a string, \s is always space.
13156 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
13158 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
13160 * gtkutil.c (xg_update_menubar, create_menus): Create empty
13161 submenu for menu bar items.
13163 See ChangeLog.10 for earlier changes.
13165 ;; Local Variables:
13167 ;; add-log-time-zone-rule: t
13168 ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
13171 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
13173 This file is part of GNU Emacs.
13175 GNU Emacs is free software: you can redistribute it and/or modify
13176 it under the terms of the GNU General Public License as published by
13177 the Free Software Foundation, either version 3 of the License, or
13178 (at your option) any later version.
13180 GNU Emacs is distributed in the hope that it will be useful,
13181 but WITHOUT ANY WARRANTY; without even the implied warranty of
13182 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13183 GNU General Public License for more details.
13185 You should have received a copy of the GNU General Public License
13186 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
13188 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40