(w32font_text_extents): Don't count overhang as part of width.
[bpt/emacs.git] / src / ChangeLog
1 2008-07-01 Jason Rumney <jasonr@gnu.org>
2
3 * w32font.c (w32font_text_extents): Don't count overhang as part
4 of width.
5
6 2008-06-30 Miles Bader <miles@gnu.org>
7
8 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9 Add `avoid_cursor_p' field.
10
11 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13 (append_glyph, append_composite_glyph, produce_image_glyph)
14 (append_stretch_glyph): Initialize avoid_cursor_p.
15 (get_it_property): Rename from `get_line_height_property'.
16 (x_produce_glyphs): Use get_it_property.
17 (handle_line_prefix, push_display_prop): New functions.
18 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
20 New variables.
21 (syms_of_xdisp): Initialize them.
22
23 2008-06-30 Kenichi Handa <handa@m17n.org>
24
25 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
26 XftDefaultSubstitute (they are called in XftFontMatch).
27 (xftfont_open): Fix args to ftfont_font_format.
28
29 * ftfont.c (fc_charset_table): New member lang.
30 (ftfont_resolve_generic_family): New arg pattern.
31 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
32 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
33 (ftfont_open): Fix args to ftfont_font_format.
34 (ftfont_font_format): New arg filename.
35
36 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
37
38 * xfaces.c (Finternal_merge_in_global_face): If default face was
39 modified, realize it again. Update the font face attribute.
40
41 2008-06-29 Jason Rumney <jasonr@gnu.org>
42
43 * w32term.c (x_set_frame_alpha): Fix logic.
44
45 2008-06-29 Kenichi Handa <handa@m17n.org>
46
47 * fontset.c (Finternal_char_font): Return font-object instead of
48 font-name.
49
50 * composite.c (get_composition_id): Fix the width calculation for TAB.
51
52 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
53
54 * indent.c (Fvertical_motion): Properly handle float column arg.
55
56 2008-06-28 Jason Rumney <jasonr@gnu.org>
57
58 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
59 (pfnSetLayeredWindowAttributes): New function pointer.
60 (w32_initialize): Initialize it when supported.
61 (x_set_frame_alpha): New function.
62
63 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
64 (w32_frame_parm_handlers): Set alpha handler.
65
66 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
67
68 2008-06-27 Jason Rumney <jasonr@gnu.org>
69
70 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
71 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
72 (w32_to_x_charset, x_to_w32_charset)
73 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
74 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
75 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
76 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
77 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
78 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
79 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
80 (Qw32_charset_unicode): Remove.
81 (syms_of_w32fns): Update for above changes.
82
83 * w32font.c (w32_to_x_charset, x_to_w32_charset)
84 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
85 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
86 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
87 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
88 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
89 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
90 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
91 (syms_of_w32font): Update for above changes.
92
93 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
94
95 * s/usg5-4.h: Fix previous change: keep the correct branch of a
96 removed #if.
97 (USG_SHARED_LIBRARIES): Remove duplicate definition.
98
99 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
100 Eli Zaretskii <eliz@gnu.org>
101
102 * makefile.w32-in (LOCAL_FLAGS):
103 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
104
105 * sysdep.c (_spawnlp, _getpid):
106 Declare with explicit _cdecl instead of _CRTAPI1.
107
108 * editfns.c (Fget_internal_run_time):
109 Check for WINDOWSNT with #ifdef, not #if.
110
111 2008-06-26 Jason Rumney <jasonr@gnu.org>
112
113 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
114
115 * w32term.c (x_draw_glyph_string_foreground)
116 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
117 Use FONT_HANDLE macro.
118 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
119
120 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
121 (uniscribe_encode_char): Use FONT_HANDLE macro.
122
123 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
124 (w32font_text_extents): Use precast w32_font.
125 (w32font_close): Free cached metrics.
126 (w32font_open_internal): Allocate space for name on stack.
127
128 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
129
130 * xdisp.c (extend_face_to_end_of_line): Fix last change.
131
132 2008-06-26 Jason Rumney <jasonr@gnu.org>
133
134 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
135 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
136
137 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
138
139 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
140
141 2008-06-26 Jason Rumney <jasonr@gnu.org>
142
143 * w32bdf.c, w32bdf.h: Remove obsolete files.
144
145 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
146
147 * w32gui.h: Don't include w32bdf.h.
148 (XCharStruct, enum w32_char_font_type, W32FontStruct):
149 Remove obsolete font support.
150
151 * w32font.h (struct w32font_info): Remove compat_w32_font.
152 Add hfont member.
153 (FONT_COMPAT): Remove obsolete macro.
154
155 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
156 (w32font_encode_char, w32font_text_extents): Use new hfont member.
157 (w32font_open_internal): Remove compat code. Set new hfont member.
158 (Fx_select_font): Use new hfont member.
159
160 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
161 (uniscribe_encode_char): Use new hfont member.
162
163 * w32term.c (x_draw_glyph_string_foreground)
164 (x_draw_composite_glyph_string_foreground): Use new hfont member.
165 (x_draw_glyph_string): Use metrics in w32font_info.
166
167 2008-06-26 Kenichi Handa <handa@m17n.org>
168
169 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
170
171 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
172
173 * unexnext.c:
174 * m/ews4800.h:
175 * m/hp9000s300.h:
176 * m/ibm370aix.h:
177 * m/mips-siemens.h:
178 * m/ncr386.h:
179 * m/next.h:
180 * m/pmax.h:
181 * m/powerpcle.h:
182 * m/tandem-s2.h:
183 * s/386bsd.h:
184 * s/bsd386.h:
185 * s/bsd4-1.h:
186 * s/bsd4-2.h:
187 * s/bsdos2-1.h:
188 * s/bsdos2.h:
189 * s/bsdos3.h:
190 * s/bsdos4.h:
191 * s/nextstep.h:
192 * s/ultrix4-3.h:
193 * s/usg5-0.h:
194 * s/usg5-2-2.h:
195 * s/usg5-2.h:
196 * s/usg5-4-3.h:
197 * s/ux4800.h:
198 * s/uxpds.h:
199 * s/uxpv.h: Remove support for obsolete systems.
200 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
201 Remove, insert contents in s/hpux-10.20.h
202 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
203 Remove, insert contents in s/aix-4.2.h
204 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
205 * s/bsd4-3.h: Rename to ..
206 * s/bsd-common.h: ... this.
207 * src/data.c:
208 * src/doc.c:
209 * src/ecrt0.c:
210 * src/emacs.c:
211 * src/fileio.c:
212 * src/floatfns.c:
213 * src/keyboard.c:
214 * src/mem-limits.h:
215 * src/print.c:
216 * src/process.c:
217 * src/sysdep.c:
218 * src/syssignal.h:
219 * src/systty.h:
220 * src/syswait.h:
221 * src/term.c:
222 * src/unexec.c:
223 * src/unexelf.c:
224 * src/unexhp9k800.c:
225 * src/m/hp800.h:
226 * src/m/ibmrs6000.h:
227 * src/m/mips.h:
228 * src/m/vax.h:
229 * src/s/darwin.h:
230 * src/s/freebsd.h:
231 * src/s/gnu.h:
232 * src/s/ms-w32.h:
233 * src/s/msdos.h:
234 * src/s/netbsd.h:
235 * src/s/template.h: Remove references to obsolete variables.
236
237 * Makefile.in: Add dependencies for all unexec files.
238 (admindir): Remove unused variable.
239 (UNEXEC_SRC): Remove references.
240
241 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
242
243 * xfns.c (x_default_font_parameter): If Xft is available, first
244 try Monospace-12 for the default font.
245
246 2008-06-25 Jason Rumney <jasonr@gnu.org>
247
248 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
249
250 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
251
252 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
253
254 * buffer.c (syms_of_buffer): Remove default-word-wrap.
255
256 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
257
258 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
259 <scroll-conservatively>: Fix typo in docstring.
260
261 * xselect.c (Fx_send_client_event): Doc fix.
262
263 2008-06-25 Kenichi Handa <handa@m17n.org>
264
265 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
266
267 * font.c (font_parse_fcname): Remove unused variables.
268 (font_sort_entites): Delete the arg SPEC. Caller changed.
269 Fix for the case of ! best_only.
270 (font_delete_unmatched): Check DPI and AVGWIDTH too.
271
272 * lisp.h (Fstring_to_unibyte): EXFUN it.
273
274 * character.h (str_to_unibyte): Extern it.
275
276 * character.c (str_to_unibyte): New function.
277
278 * fns.c (Fstring_to_unibyte): New function.
279 (syms_of_fns): Defsubr it.
280
281 2008-06-24 Kenichi Handa <handa@m17n.org>
282
283 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
284 DPI too.
285 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
286
287 2008-06-24 Andreas Schwab <schwab@suse.de>
288
289 * Makefile.in (${lispsource}loaddefs.el): Rename from
290 ../lisp/loaddefs.el.
291 (bootstrap-clean): Do what distclean does but don't remove
292 Makefile.
293 (distclean): Depend on bootstrap-clean and remove Makefile.
294
295 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
296
297 * buffer.h (struct buffer): New member word_wrap.
298
299 * buffer.c (syms_of_buffer): New variables default-word-wrap and
300 word-wrap.
301 (init_buffer_once): Initialize them.
302
303 * dispextern.h (struct it): Replace bool truncate_lines_p with a
304 line_wrap enum possessing three possible values.
305
306 * termopts.h: Replace truncate_partial_width_windows with
307 Vtruncate_partial_width_windows.
308
309 * dispnew.c (direct_output_for_insert): Avoid direct output when
310 inserting a space with word wrap on.
311
312 * indent.c (compute_motion): Obey integer values of
313 truncate-partial-width-windows.
314
315 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
316 replacing truncate_partial_width_windows.
317 (init_iterator): If Vtruncate_partial_width_windows is an integer,
318 truncate only if the window width is below that integer.
319 (start_display. resize_mini_window, produce_stretch_glyph)
320 (display_string, move_it_in_display_line_to): Use line_wrap.
321 (back_to_previous_visible_line_start, reseat_1): Reset
322 string_from_display_prop_p.
323 (display_line): Extend default face to end of line when wrapping.
324
325 2008-06-24 Kim F. Storm <storm@cua.dk>
326
327 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
328 to wrap continued lines at word boundaries.
329
330 2008-06-24 Jason Rumney <jasonr@gnu.org>
331
332 * font.c (Ffont_face_attributes): Multiply pixel size before point
333 conversion to avoid multiplying rounding error.
334
335 2008-06-23 Jason Rumney <jasonr@gnu.org>
336
337 * w32term.c (x_draw_glyph_string_background)
338 (x_draw_glyph_string): Remove old bdf font code.
339
340 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
341
342 2008-06-22 Kenichi Handa <handa@m17n.org>
343
344 * font.c (font_find_for_lface): Try the adstyle specified in
345 the property of LFACE_FONT of LFACE (if any).
346
347 2008-06-21 Seiji Zenitani <zenitani@mac.com>
348 Ryo Yoshitake <ryo@shiftmode.net>
349
350 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
351
352 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
353
354 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
355 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
356 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
357 (witness-emacs): Remove.
358 (lisp, shortlisp): Move loaddefs.el earlier.
359 (mostlyclean): Forget about witness-emacs.
360
361 2008-06-22 Glenn Morris <rgm@gnu.org>
362
363 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
364 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
365
366 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
367
368 * Makefile.in (PRECOMP): Remove.
369 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
370 (witness-emacs): Run `compile-first'.
371 (.el.elc): Use the new compile-onefile target.
372
373 2008-06-21 Kenichi Handa <handa@m17n.org>
374
375 * xftfont.c (xftfont_open): Handle QCembolden only when
376 FC_EMBOLDEN is defined.
377
378 2008-06-21 Andreas Schwab <schwab@suse.de>
379
380 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
381 (.el.elc): Likewise.
382
383 2008-06-21 Miles Bader <miles@gnu.org>
384
385 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
386 build dir, not the lisp source dir.
387
388 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
389
390 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
391 (bootstrapclean): Remove.
392 (.el.elc): New rule.
393 (PRECOMP): New var.
394 (../lisp/subdirs.el): Remove.
395 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
396 (witness-emacs): New target.
397 (mostlyclean): Remove witness-emacs as well.
398 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
399 Add witness-emacs dependency.
400
401 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
402
403 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
404 defined by the font.
405
406 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
407
408 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
409 (bootstrap-clean): New target that keeps TAGS around.
410 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
411 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
412
413 2008-06-20 Jason Rumney <jasonr@gnu.org>
414
415 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
416 Remove obsolete font code.
417
418 * w32font.c (font_matches_spec): Use csb bitfield from font signature
419 to determine language support.
420
421 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
422
423 * sysdep.c (cfsetspeed): New fun extracted from the code.
424 (cfmakeraw): Move before first use.
425
426 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
427
428 * sysdep.c (cfmakeraw): Provide fallback implementation.
429 (serial_configure): Provide fallback implementation of cfsetspeed.
430
431 2008-06-20 Kenichi Handa <handa@m17n.org>
432
433 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
434 the pattern.
435
436 * fontset.c (fontset_from_font): Copy font_spec before changing
437 the elements.
438
439 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
440
441 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
442
443 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
444 for explicit `font' parameters.
445
446 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
447
448 2008-06-19 Kenichi Handa <handa@m17n.org>
449
450 * frame.c: Include <ctype.h>.
451 (x_set_font_backend): Allow spacing characters in the X resource
452 for FontBackend.
453
454 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
455
456 * w32fns.c, xfns.c (Qfont_param): New var.
457 (syms_of_w32fns): Initialize it.
458 (x_default_font_parameter): Record explicit `font' into
459 `font-parameter'.
460
461 2008-06-18 Kenichi Handa <handa@m17n.org>
462
463 * font.c (font_parse_xlfd): Fix previous change.
464 (font_parse_fcname): Don't use :fc-unknown-spec.
465 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
466 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
467 (font_add_log): Prepend the driver name to the resulting fonts.
468
469 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
470 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
471 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
472
473 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
474 (QCembolden): New variables.
475 (syms_of_xftfont): DEFSYM them.
476 (xftfont_open): Call XftFontMatch. Don't trust the result of
477 XftTextExtents8 if the pixel_size is less than 5.
478
479 2008-06-18 Andreas Schwab <schwab@suse.de>
480
481 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
482 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
483
484 2008-06-18 Jason Rumney <jasonr@gnu.org>
485
486 * w32font.c (w32font_list, w32font_match): Add logging.
487
488 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
489
490 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
491
492 * font.c (font_parse_fcname): Store divider characters for
493 unknown-spec list. For known key symbols, intern using correct
494 symbol name.
495
496 2008-06-17 Kenichi Handa <handa@m17n.org>
497
498 * xfaces.c (realize_default_face): If the frame is not on window
499 system, set the fontset of face to nil.
500
501 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
502
503 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
504
505 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
506
507 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
508 (build_font_name_from_vector): Delete externs.
509
510 * xfaces.c (struct font_name): Don't declare.
511
512 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
513
514 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
515
516 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
517
518 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
519
520 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
521
522 * font.c (Ffont_spec): Fix usage in docstring.
523 (Ffont_face_attributes): Doc fix.
524
525 2008-06-16 Andreas Schwab <schwab@suse.de>
526
527 * font.c (Ffont_face_attributes): Fix definition.
528
529 2008-06-16 Jason Rumney <jasonr@gnu.org>
530
531 * font.h (font_style_symbolic_from_value): Remove.
532
533 * font.c (font_style_symbolic_from_value): Remove.
534 (font_style_symbolic): Revert to pre 2008-06-13 version.
535
536 * w32font.c (w32_to_fc_weight): New function.
537 (w32font_full_name, logfont_to_fcname): Use it.
538
539 2008-06-16 Kenichi Handa <handa@m17n.org>
540
541 * font.c (font_check_object): Delete it.
542 (font_clear_cache): Check if a font-object is alive.
543 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
544 font-object to nil.
545 (font_close_object): Don't check FONT_CLOSE_OBJECT.
546 (font_at): Don't call font_check_object.
547 (Ffont_get): Return a symbol for :weight, :slant, and :width.
548
549 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
550
551 * puresize.h (BASE_PURESIZE): Increase to 1230000.
552
553 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
554
555 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
556
557 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
558
559 * font.c (font_parse_fcname): Only one decimal point.
560 (font_unparse_fcname): Handle data in family and foundry indices
561 as symbols, not strings.
562 (font_unparse_gtkname, Ffont_face_attributes): New functions.
563
564 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
565
566 * font.h (font_unparse_gtkname): Add prototype.
567
568 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
569
570 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
571
572 2008-06-15 Andreas Schwab <schwab@suse.de>
573
574 * font.c (font_update_drivers): Fix crash when no drivers match.
575
576 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
577
578 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
579 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
580
581 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
582
583 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
584
585 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
586
587 * process.c (Fserial_process_configure, Fprocess_send_eof):
588 Use EQ to compare Lisp_Objects.
589
590 2008-06-13 Jason Rumney <jasonr@gnu.org>
591
592 * w32fns.c (Fw32_select_font): Remove old font API function.
593
594 * w32font.c (logfont_to_fcname): New function.
595 (Fx_select_font): New font dialog function compatible with
596 GTK/fontconfig version.
597
598 * font.c (font_style_symbolic_from_value): New function.
599 (font_style_symbolic): Use it.
600
601 * font.h (font_style_symbolic_from_value): Declare new function.
602
603 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
604
605 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
606 <font-width-table>: Fix typos in docstrings.
607
608 2008-06-13 Daniel Engeler <engeler@gmail.com>
609
610 These changes add serial port access.
611 * process.c: Add HAVE_SERIAL.
612 (Fdelete_process, Fprocess_status, Fset_process_buffer)
613 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
614 (list_processes_1, select_wrapper, Fstop_process)
615 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
616 (status_notify): Modify to handle serial processes.
617 [HAVE_SERIAL] (Fserial_process_configure)
618 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
619 New functions.
620 * process.h (struct Lisp_Process): Add `type'.
621 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
622 New functions.
623 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
624 serial ports.
625 (serial_open, serial_configure) New functions.
626 * w32.h: Add FILE_SERIAL.
627 (struct _child_process): Add ovl_read, ovl_write.
628
629 2008-06-13 Kenichi Handa <handa@m17n.org>
630
631 * dispextern.h (enum lface_attribute_index): New member
632 LFACE_FOUNDRY_INDEX.
633
634 * font.c (font_score): Delete arg alternate_families. Check only
635 weight, slant, width, and size. Ignore the difference of alias
636 style symbols.
637 (font_sort_entites): Adjust for the above change. Reflect the
638 order of font-driver to scores.
639 (font_list_entities): Don't check alternate_familes here.
640 (font_clear_prop): Handle foundry.
641 (font_update_lface): Don't parse "foundry-family" form here.
642 Handle FONT_FOUNDRY_INDEX.
643 (font_find_for_lface): Likewise. Handle alternate families here.
644 If registry is nil, try iso8859-1 and ascii-0.
645 (font_open_for_lface): Pay attention to size in ENTITY.
646 (font_open_by_name): Simplify by calling font_load_for_lface.
647 (free_font_driver_list): Delete it.
648 (font_update_drivers): Preserve the order of backends.
649 (syms_of_font): Setting of sort_shift_bits adjusted for the change
650 of font_score and font_sort_entites.
651 (font_update_sort_order): Likewise.
652
653 * xfaces.c (LFACE_FOUNDRY): New macro.
654 (check_lface_attrs): Check foundry.
655 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
656 (merge_face_vectors): Check foundry.
657 (merge_face_ref): Likewise.
658 (Finternal_set_lisp_face_attribute): Likewise.
659 (x_update_menu_appearance): Likewise.
660 (Finternal_get_lisp_face_attribute): Likewise.
661 (lface_hash): Likewise.
662 (lface_same_font_attributes_p): Likewise.
663 (x_supports_face_attributes_p): Likewise.
664 (tty_supports_face_attributes_p): Likewise.
665 (Finternal_set_alternative_font_family_alist): Intern strings.
666 (Finternal_set_alternative_font_registry_alist): Downcase strings.
667 (realize_default_face): Set LFACE_FOUNDRY (lface).
668
669 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
670 font-driver at first.
671
672 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
673
674 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
675
676 * lread.c (Fload): Use xfree, not free on saved_doc_string.
677
678 2008-06-12 Jim Meyering <meyering@redhat.com>
679
680 Make unexec_free handle NULL the same way free does.
681 * unexmacosx.c (unexec_free): Ignore a NULL argument.
682
683 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
684
685 * character.h (CHAR_TO_BYTE_SAFE): New macro.
686 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
687 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
688 (WEAK_ALIAS): Simplify.
689 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
690 when searching a unibyte buffer.
691
692 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
693
694 * xfns.c (Fx_select_font): Rename from x-font-dialog.
695
696 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
697
698 * w32font.c: Include ctype.h.
699
700 2008-06-11 Jason Rumney <jasonr@gnu.org>
701
702 * w32font.c (w32font_encode_char): Detect missing glyphs that are
703 misreported as space.
704 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
705 as aliases for registry iso10646-1.
706
707 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
708
709 * buffer.c (clone_per_buffer_values): Skip `name'.
710
711 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
712
713 * font.c (font_parse_fcname): Fix last change; accept decimal
714 points in font size.
715
716 2008-06-10 Jason Rumney <jasonr@gnu.org>
717
718 * w32uniscribe.c (add_opentype_font_name_to_list):
719 Skip non unicode fonts.
720
721 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
722
723 * xfns.c (Fx_font_dialog): New function.
724
725 * gtkutil.c (xg_dialog_response_cb): Rename from
726 xg_file_response_callback.
727 (pop_down_dialog): Rename from pop_down_file_dialog.
728 (xg_get_file_name): Callers changed.
729 (xg_get_font_name): New function.
730
731 * gtkutil.h (xg_get_font_name): Insert prototype.
732
733 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
734
735 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
736 x_underline_minimum_display_offset.
737 (syms_of_xdisp): Declare it here rather than in xterm.c.
738 * dispextern.h (underline_minimum_offset): Declare it.
739 * w32term.c (x_draw_glyph_string): Use it.
740 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
741 (syms_of_xterm): Don't declare it any more.
742 (x_draw_glyph_string): Adjust to the new name.
743
744 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
745
746 * xterm.c (x_underline_minimum_display_offset): New var.
747 (x_draw_glyph_string): Use it.
748 (syms_of_xterm): Declare it.
749
750 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
751
752 * font.c (font_parse_fcname): Accept GTK-style font names too.
753
754 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
755
756 * dired.c (file_name_completion): Don't return t if the match is exact
757 but with different capitalization.
758 * minibuf.c (Ftry_completion): Simplify.
759
760 * window.c (Vwindow_point_insertion_type): New var.
761 (set_window_buffer): Use it.
762 (syms_of_window): Init and export it to Lisp.
763
764 2008-06-10 Kenichi Handa <handa@m17n.org>
765
766 * font.h (font_intern_prop): Prototype adjusted.
767
768 * font.c (font_intern_prop): New arg force_symbol.
769 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
770 Adjust for the change of font_intern_prop.
771
772 * ftfont.c (ftfont_pattern_entity):
773 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
774 (w32_registry):
775 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
776 the change of font_intern_prop.
777
778 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
779
780 * w32menu.c (digest_single_submenu): Declare extern.
781
782 2008-06-09 Jason Rumney <jasonr@gnu.org>
783
784 * w32term.c (x_make_frame_visible): Use alternate restore flags.
785
786 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
787 (parse_single_submenu): Remove.
788 (digest_single_submenu): Remove.
789 (syms_of_w32menu): Don't initialise variables that have moved
790 to menu.c.
791 (set_frame_menubar): Sync with version in xmenu.c.
792 (w32_menu_show): Sync with xmenu_show in xmenu.c.
793
794 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
795 Make static again.
796
797 2008-06-09 Jason Rumney <jasonr@gnu.org>
798
799 Changes to w32 files related to the move of common menu code
800 to menu.c on 2008-06-08 by Chong Yidong.
801
802 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
803 defs to w32gui.h.
804 (single_keymap_panes, push_menu_item, push_menu_pane):
805 Make globally visible.
806
807 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
808 (local_free, malloc_widget_value, free_widget_value)
809 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
810 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
811 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
812 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
813 (menu_items, menu_items_allocated, menu_items_used)
814 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
815 (init_menu_items, finish_menu_items, discard_menu_items)
816 (grow_menu_items, push_submenu_start, push_submenu_end)
817 (push_left_right_boundary, push_menu_pane, push_menu_item)
818 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
819 (free_menubar_widget_tree_value, parse_single_submenu)
820 (update_submenu_strings): Remove functions.
821 (xmalloc_widget_value): Remove and declare extern.
822
823 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
824 (OBJ1): Build it.
825
826 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
827 (local_heap, local_alloc, local_free, malloc_widget_value)
828 (free_widget_value): Define here.
829
830 2008-06-09 Kenichi Handa <handa@m17n.org>
831
832 * font.h (Qascii_0): Extern it.
833
834 * font.c (Qascii_0): New variable.
835 (syms_of_font): DEFSYM it.
836 (font_open_by_name): If the registry "iso8859-1" fails, try also
837 "ascii-0".
838
839 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
840
841 2008-06-08 Kenichi Handa <handa@m17n.org>
842
843 * .gdbinit (xfont): New command.
844
845 2008-06-08 Andreas Schwab <schwab@suse.de>
846
847 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
848 * Makefile.in (menu.o): Update dependencies.
849
850 * Makefile.in (obj): Always add menu.o.
851 * emacs.c (main): Always call syms_of_menu.
852 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
853
854 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
855
856 * Makefile.in: Compile menu.c.
857
858 * lisp.h: Declare syms_of_menu.
859
860 * emacs.c (main): Call syms_of_menu.
861
862 * keyboard.h: Relocate platform-independent menu definitions from
863 xmenu.c.
864
865 * menu.c: New file. Relocate platform-independent menu
866 definitions from xmenu.c. Suggested by Adrian Robert.
867
868 * xmenu.c: Remove platform-independent menu definitions.
869 (menu_items menu_items_inuse, menu_items_allocated)
870 (menu_items_used, menu_items_n_panes)
871 (menu_items_submenu_depth): Move to keyboard.h.
872 (init_menu_items, finish_menu_items, unuse_menu_items)
873 (discard_menu_items, restore_menu_items, save_menu_items)
874 (grow_menu_items, push_submenu_start, push_submenu_end)
875 (push_left_right_boundary, push_menu_pane, push_menu_item)
876 (keymap_panes, single_keymap_panes, single_menu_item)
877 (list_of_panes, list_of_items, find_and_call_menu_selection)
878 (xmalloc_widget_value, free_menubar_widget_value_tree)
879 (parse_single_submenu, digest_single_submenu)
880 (update_submenu_strings): Move to menu.c.
881
882 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
883
884 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
885
886 2008-06-06 Miles Bader <miles@gnu.org>
887
888 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
889 face, not frame default.
890
891 2008-06-05 Martin Rudalics <rudalics@gmx.at>
892
893 * window.c (pop_up_windows, pop_up_frames)
894 (display_buffer_reuse_frames, Vpop_up_frame_function)
895 (Vdisplay_buffer_function, Veven_window_heights)
896 (Vspecial_display_buffer_names, Vspecial_display_regexps)
897 (Vspecial_display_function, Vsame_window_buffer_names)
898 (Vsame_window_regexps, split_height_threshold)
899 (Vsplit_window_preferred_function): Move those vars to window.el.
900 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
901 (Fdisplay_buffer): Move those functions to window.el.
902 (syms_of_window): Remove corresponding declarations.
903 (display_buffer): New function.
904 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
905 * dispnew.c (Flast_nonminibuf_frame): New function.
906 * buffer.c (Fpop_to_buffer): Move to window.el.
907
908 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
909
910 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
911
912 2008-06-05 Kenichi Handa <handa@m17n.org>
913
914 * coding.c (detect_coding): Fix previous change.
915 (detect_coding_system): Likewise.
916
917 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
918
919 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
920
921 * keymap.c (Vminibuffer_local_filename_must_match_map):
922 Rename from Vminibuffer_local_must_match_filename_map.
923 (syms_of_keymap):
924 * minibuf.c (Fcompleting_read): Adjust accordingly.
925 * commands.h: Rename declaration as well.
926
927 2008-06-05 Kenichi Handa <handa@m17n.org>
928
929 * font.c (Ffont_spec): Don't use font_parse_family_registry for
930 family name.
931 (Ffont_put): Likewise.
932
933 * fontset.c (fontset_find_font): Call font_open_for_lface with the
934 current font-spec.
935
936 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
937 is unspecified.
938
939 * xfaces.c (realize_x_face): If the font-related face attributes
940 are the same as those of default face, realize a new fontset from
941 default->fontset.
942 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
943
944 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
945
946 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
947 (move_it_in_display_line): New wrapper.
948
949 * window.c (window_scroll_pixel_based_preserve_x)
950 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
951 (window_scroll_pixel_based, window_scroll_line_based):
952 Use them to preserve column positions.
953 (syms_of_window): Initialize them.
954
955 * indent.c (Fvertical_motion): Extend first arg to allow passing an
956 (HPOS . VPOS) pair.
957
958 * dispextern.h (move_it_in_display_line): Declare.
959
960 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
961
962 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
963 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
964 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
965
966 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
967
968 * window.c (Fset_window_parameter): Doc fix.
969 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
970
971 2008-06-04 Joakim Verona <joakim@verona.se>
972
973 * window.h (struct window): Add new member window_parameters.
974
975 * window.c (Fwindow_parameters, Fwindow_parameter)
976 (Fset_window_parameter): New defuns.
977 (syms_of_window): Defsubr the new defuns.
978 (make_window): Initialize window_parameters to nil.
979
980 2008-06-04 John Paul Wallington <jpw@pobox.com>
981
982 * eval.c (Fdefmacro): Doc fix.
983
984 2008-06-04 Kenichi Handa <handa@m17n.org>
985
986 * coding.c (detect_coding): Fix handling of coding->head_ascii.
987 Be sure to call setup_coding_system when we find a proper coding system.
988 (detect_coding_system): Fix handling of coding->head_ascii.
989
990 2008-06-03 Andreas Schwab <schwab@suse.de>
991
992 * font.c (font_prop_validate_spacing): Fix last change.
993
994 2008-06-03 Kenichi Handa <handa@m17n.org>
995
996 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
997 (font_parse_fcname): Fix handling of unknown key.
998
999 * xfont.c (xfont_list): Try an alias.
1000
1001 * charset.c (char_charset): Return NULL if the arg charset_list is
1002 specified and C doesn't belong to any of them.
1003
1004 2008-06-02 Chip Coldwell <coldwell@redhat.com>
1005
1006 * font.c (font_pixel_size): Don't take cdr of an integer.
1007
1008 2008-06-02 Jim Meyering <meyering@redhat.com>
1009
1010 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
1011 * alloc.c (xfree): Return right away for a NULL arg.
1012 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
1013 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
1014 * mac.c (create_apple_event_from_event_ref): Likewise.
1015 (create_apple_event_from_drag_ref, cfstring_create_normalized):
1016 Likewise.
1017 * doprnt.c (doprnt1): Likewise.
1018 * frame.c (frame): Likewise.
1019 * keyboard.c (wipe_kboard): Likewise.
1020 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
1021 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
1022 * term.c (tty_default_color_capabilities, maybe_fatal)
1023 (delete_tty): Likewise.
1024 * w16select.c (string): Likewise.
1025 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
1026 * w32bdf.c (w32_free_bdf_font): Likewise.
1027 * w32fns.c (w32_unload_font): Likewise.
1028 * w32font.c (w32font_close): Likewise.
1029 * window.c (size_window): Likewise.
1030 * xselect.c (receive_incremental_selection): Likewise.
1031 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
1032 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
1033 * w32.c (stat): Likewise.
1034
1035 Remove useless if-before-free tests.
1036 * editfns.c (Fset_time_zone_rule): Likewise.
1037 * lread.c (nosuffix): Likewise.
1038 * ralloc.c (get_bloc): Likewise.
1039 * regex.c (reg_free): Likewise.
1040 * xftfont.c (xftfont_open, xftfont_close): Likewise.
1041 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
1042 * xsmfns.c (smc_save_yourself_CB): Likewise.
1043
1044 2008-06-02 Kenichi Handa <handa@m17n.org>
1045
1046 * font.c (font_find_for_lface): Handle float font size.
1047 (font_open_for_lface): Likewise.
1048
1049 * xfaces.c (x_supports_face_attributes_p): Check face->font before
1050 comparing the properties.
1051
1052 2008-06-01 Jason Rumney <jasonr@gnu.org>
1053
1054 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
1055 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
1056 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
1057 Don't add empty script list.
1058 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
1059
1060 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1061
1062 * Makefile.in (dot, dotdot): Remove, update users.
1063 ".." has been used elsewhere in the file for a long time.
1064 (LIBXT_STATIC): Remove conditional based on unused variable.
1065
1066 2008-06-01 Miles Bader <miles@gnu.org>
1067
1068 * xfaces.c (Vface_remapping_alist): New variable.
1069 (syms_of_xfaces): Initialize it.
1070 (enum named_merge_point_kind): New type.
1071 (struct named_merge_point): Add `named_merge_point_kind' field.
1072 (push_named_merge_point): Make cycle detection respect different
1073 named-merge-point kinds.
1074 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
1075 Remove face-name alias resolution.
1076 (lface_from_face_name): New definition using
1077 `lface_from_face_name_no_resolve'.
1078 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
1079 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
1080 (get_lface_attributes): New definition that layers face-remapping on
1081 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
1082 (lookup_basic_face): New function.
1083 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
1084 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
1085 `get_lface_attributes'.
1086 (face_at_buffer_position): Use `lookup_basic_face' to lookup
1087 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
1088 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
1089
1090 * xdisp.c (init_iterator): Pass base_face_id through
1091 `lookup_basic_face' when we actually use it as a face-id.
1092 (handle_single_display_prop): Use `lookup_basic_face' to lookup
1093 DEFAULT_FACE_ID.
1094
1095 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
1096 lookup the initial face-id.
1097
1098 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
1099
1100 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
1101
1102 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
1103 (Fremove_text_properties): Fix typos in docstrings.
1104
1105 2008-05-31 Kenichi Handa <handa@m17n.org>
1106
1107 * font.c (font_list_entities): Fix the car part of data to be
1108 stored in the cache.
1109
1110 * ftfont.c (ftfont_font_format): Don't use strcasestr.
1111
1112 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1113
1114 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
1115 Add a `test' argument so another predicate than `equal' can be used.
1116 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
1117 (map_char_table): Remove unused vars `c' and `i'.
1118 * lisp.h (Foptimize_char_table): Adjust declaration.
1119 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
1120
1121 2008-05-30 Kenichi Handa <handa@m17n.org>
1122
1123 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
1124 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
1125 defined.
1126
1127 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1128
1129 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
1130 (Fmake_variable_frame_local): Disallow mixing buffer-local and
1131 frame-local settings for the same variable.
1132
1133 2008-05-30 Kenichi Handa <handa@m17n.org>
1134
1135 * fontset.c (Ffont_info): Move to font.c.
1136 (syms_of_fontset): Delete defsubr of Sfont_info.
1137
1138 * font.c (font_style_to_value, font_score): Delete casting of the
1139 args to xstcasecmp.
1140 (register_font_driver): Increment num_font_drivers only when
1141 registering the driver globally.
1142 (Ffont_info): Move from fontset.c. Handle a font object too.
1143 (syms_of_font): Defsubr Sfont_info.
1144
1145 2008-05-29 Kenichi Handa <handa@m17n.org>
1146
1147 * coding.h (enum define_coding_utf8_arg_index): New enum.
1148 (enum coding_attr_index): Change coding_attr_utf_16_bom to
1149 coding_attr_utf_bom.
1150 (enum utf_bom_type): Rename from utf_16_bom_type.
1151 (struct utf_16_spec): Adjust for the above change.
1152 (struct coding_system): Add utf_8_bom in `spec' union.
1153
1154 * coding.c (CODING_UTF_8_BOM): New macro.
1155 (enum coding_category): Delete coding_category_utf_8, add
1156 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
1157 coding_category_utf_8_sig.
1158 (CATEGORY_MASK_UTF_8): Delete it.
1159 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
1160 (CATEGORY_MASK_UTF_8_SIG): New macros.
1161 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
1162 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
1163 CATEGORY_MASK_UTF_8_SIG.
1164 (CATEGORY_MASK_UTF_8): New macro.
1165 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
1166 (detect_coding_utf_8): Check BOM.
1167 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
1168 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
1169 (encode_coding_utf_16): Likewise.
1170 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
1171 (detect_coding, detect_coding_system): Handle utf-8-auto.
1172 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
1173 (syms_of_coding): Fix setting up of Vcoding_category_table.
1174
1175 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
1176
1177 * process.c (Faccept_process_output): If `millisec' is non-nil,
1178 `seconds' default to 0.
1179 (wait_reading_process_output): Also return non-nil if we read output
1180 from a non-running process.
1181
1182 2008-05-29 Jason Rumney <jasonr@gnu.org>
1183
1184 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
1185 `raster' specified.
1186 (add_font_entity_to_list): Allow non-opentype truetype fonts back
1187 in the uniscribe backend, but disallow any font that has no
1188 unicode subrange support.
1189
1190 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
1191
1192 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
1193 Fix typos in docstrings.
1194
1195 2008-05-29 Kenichi Handa <handa@m17n.org>
1196
1197 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
1198 (Fx_family_fonts): Set frame correctly.
1199
1200 2008-05-28 Jason Rumney <jasonr@gnu.org>
1201
1202 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
1203
1204 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1205
1206 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
1207 calling build_annotations.
1208
1209 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
1210
1211 * coding.c (Fdecode_coding_region, Fencode_coding_region)
1212 (Fencode_coding_string):
1213 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
1214 <latin-extra-code-table>: Fix typos in docstrings.
1215 (syms_of_coding) <coding-system-alist>: Doc fix.
1216 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
1217
1218 2008-05-28 Kenichi Handa <handa@m17n.org>
1219
1220 * fontset.c (Ffont_info): Don't call font_close_object.
1221
1222 * font.c (font_parse_family_registry): Use Ffont_put to validate
1223 foundry and family.
1224 (font_delete_unmatched): Don't check spacing.
1225 (font_list_entities): Add spacing to the spec to list fonts.
1226
1227 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
1228 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
1229
1230 * coding.c (encode_coding_raw_text): Fix previous change.
1231 (encode_coding_object): When the dst_object is a buffer and is
1232 different from src_object, move gap to PT.
1233
1234 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1235
1236 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
1237
1238 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1239
1240 * coding.c (encode_coding_raw_text): Set coding->produced_char for
1241 all branches. Compute it differently.
1242
1243 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
1244
1245 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
1246
1247 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
1248 into "else if () ... else ...".
1249
1250 2008-05-27 Jason Rumney <jasonr@gnu.org>
1251
1252 * w32font.c (w32font_open_internal): Determine if glyph indices
1253 are likely to work here.
1254
1255 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1256
1257 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
1258 draw overlap glyphs with appropriate highlighting.
1259
1260 2008-05-27 Kenichi Handa <handa@m17n.org>
1261
1262 * xfont.c (xfont_open): Fix calculation of font->average_width.
1263
1264 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1265
1266 * casefiddle.c (casify_object): Try to guess better whether the
1267 argument is a byte or a char.
1268
1269 2008-05-26 Andreas Schwab <schwab@suse.de>
1270
1271 * xselect.c (x_reply_selection_request): Properly handle format == 32.
1272 Always send multiples of format size.
1273
1274 * xterm.c (x_set_frame_alpha): Fix type mismatch.
1275
1276 2008-05-26 Jason Rumney <jasonr@gnu.org>
1277
1278 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
1279 (compute_metrics): Don't set failure if we just cleared the cache.
1280 (w32_weight_table): Remove unused variable.
1281 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
1282 backwards compatibility.
1283
1284 2008-05-25 Kenichi Handa <handa@m17n.org>
1285
1286 * w32term.c (x_draw_glyph_string):
1287 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
1288
1289 * xfaces.c: Delete unused function prototypes.
1290 (xstrlwr, font_frame): Delete them.
1291 (clear_face_cache): Delete unused variable.
1292
1293 * xftfont.c (xftfont_open): Delete unused variable.
1294 If underline_thickness is not 1, adjust underline_position.
1295
1296 * ftxfont.c (ftxfont_open): Delete unused variable.
1297
1298 * fontset.c (face_for_char): Optimize for the case of no charset
1299 property.
1300
1301 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
1302 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
1303 (otf_open, font_otf_capability, generate_otf_features)
1304 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1305 Comment out by surrounding "#if 0" and "#endif" for the moment.
1306 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
1307 (syms_of_font): Codes for accessing above commented out.
1308
1309 2008-05-24 Eli Zaretskii <eliz@gnu.org>
1310
1311 * w32proc.c: Include dispextern.h.
1312
1313 * w32.c: Include dispextern.h.
1314
1315 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
1316
1317 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
1318 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
1319 Fix typos in docstrings.
1320
1321 2008-05-23 Jason Rumney <jasonr@gnu.org>
1322
1323 * xsmfns.c: Remove includes that are already included by config.h.
1324
1325 2008-05-23 Kenichi Handa <handa@m17n.org>
1326
1327 * charset.c (Qemacs, charset_emacs): New variables.
1328 (char_charset): Fix for non-Unicode characters.
1329 (syms_of_charset): Define charset_emacs.
1330
1331 * w32term.c (x_draw_glyph_string): Be sure to update
1332 s->underline_thickness and s->underline_position. Be sure to draw
1333 underline within the current line area.
1334
1335 * xterm.c (x_draw_glyph_string): Be sure to update
1336 s->underline_thickness and s->underline_position. Be sure to draw
1337 underline within the current line area.
1338
1339 * fontset.c: Delete unused variables and add casting for char *
1340 throughout the file.
1341 (fontset_font): Try the fallback fonts of the current fontset
1342 before consulting the default fontset.
1343
1344 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
1345
1346 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
1347
1348 2008-05-22 Jason Rumney <jasonr@gnu.org>
1349
1350 * font.c: Don't include strings.h.
1351
1352 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
1353
1354 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
1355 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
1356 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
1357 to call xstrcasecmp.
1358
1359 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
1360
1361 * fontset.c (fs_query_fontset): Use xstrcasecmp.
1362
1363 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
1364
1365 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
1366
1367 2008-05-22 Kenichi Handa <handa@m17n.org>
1368
1369 * puresize.h (BASE_PURESIZE): Increase to 1220000.
1370
1371 * font.c (font_prop_validate_style): Adjust for the format
1372 change of font_style_table.
1373
1374 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
1375 two args.
1376
1377 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
1378 two args.
1379
1380 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
1381
1382 * minibuf.c (keys_of_minibuf): Delete.
1383 * lisp.h (keys_of_minibuf): Delete.
1384 * emacs.c (main): Don't call keys_of_minibuf.
1385
1386 2008-05-22 Kenichi Handa <handa@m17n.org>
1387
1388 * ftfont.c (ftfont_resolve_generic_family): Rename from
1389 ftfont_list_generic_family. Return a single family for each
1390 generic family.
1391 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
1392 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
1393 Call font_add_log.
1394 (ftfont_match): Call font_add_log.
1395
1396 * font.h (Ffont_xlfd_name): EXFUN adjusted.
1397 (FONT_DEBUG): Define it.
1398 (font_add_log): Extern it.
1399 (font_assert): Rename from xassert.
1400
1401 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
1402 (xfont_list_family): Call font_add_log.
1403 (xfont_match): Likewise.
1404 (memq_no_quit): Delete.
1405
1406 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
1407 call of Ffont_xlfd_name.
1408
1409 * xfaces.c (struct table_entry, slant_table, weight_table)
1410 (swidth_table): Move to font.c.
1411
1412 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
1413 xassert are changed to font_assert. Delete many unused variables.
1414 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
1415 New variables.
1416 (struct table_entry): Move from xfaces.c and modified.
1417 (weight_table, slant_table, width_table): Move from xfaces.c and
1418 contents adjusted for the change of struct table_entry.
1419 (font_style_to_value, font_style_symbolic): Adjust for the
1420 format change of font_style_table.
1421 (font_parse_family_registry): Don't overwrite existing foundry and
1422 family of font_spec.
1423 (font_score): Fix calculation of diff for sizes.
1424 (font_sort_entites): Call font_add_log.
1425 (font_delete_unmatched): Return a newly created list.
1426 (font_list_entities): Fix previous change. Call font_add_log.
1427 (font_matching_entity, font_open_entity, font_close_entity):
1428 Call font_add_log.
1429 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
1430 (Finternal_set_font_style_table): Delete.
1431 (BUILD_STYLE_TABLE): New macro.
1432 (build_style_table): New function.
1433 (Vfont_log, font_log_env_checked): New variables.
1434 (font_add_log): New function.
1435 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
1436 Declare Lisp variables "font-weight-table", "font-slant-table",
1437 "font-width-table", and "font-log". Initialize font_style_table.
1438
1439 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
1440
1441 * xterm.c (x_set_frame_alpha): Move declarations before statements.
1442
1443 2008-05-21 Seiji Zenitani <zenitani@mac.com>
1444 Ryo Yoshitake <ryo@shiftmode.net>
1445
1446 * frame.c (Qalpha): Add a new frame parameter `alpha'.
1447 (Vframe_alpha_lower_limit): New variable.
1448 (x_set_alpha): New function.
1449
1450 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
1451
1452 * xfns.c (x-create-frame, Qalpha):
1453 Initialize the frame parameter `alpha'.
1454 * xterm.c (OPAQUE, OPACITY): New.
1455 (x_set_frame_alpha): New function.
1456 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
1457
1458 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
1459 * w32fns.c (w32_frame_parm_handlers): Likewise.
1460
1461 2008-05-20 Jason Rumney <jasonr@gnu.org>
1462
1463 * w32font.c (add_font_entity_to_list): Don't add non-opentype
1464 truetype fonts to opentype list.
1465
1466 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
1467
1468 * fontset.c (Ffontset_info): Doc fix.
1469 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
1470 <ignore-relative-composition>: Fix typos in docstrings.
1471
1472 * font.c (syms-of-font) <font-encoding-alist>:
1473 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
1474 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
1475 (Ffont_otf_alternates): Doc fixes.
1476
1477 2008-05-20 Kenichi Handa <handa@m17n.org>
1478
1479 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
1480 font.h through out the file.
1481 (FONT_DRIVERS): Rename from FONTOBJ.
1482 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
1483 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
1484
1485 * emacs.c (main): Call syms_of_font unconditionally.
1486
1487 * font.h (find_font_encoding): Extern it.
1488
1489 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
1490 fontset.c.
1491 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
1492 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
1493 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
1494 only when HAVE_WINDOW_SYSTEM is defined.
1495 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
1496 when HAVE_WINDOW_SYSTEM is defined.
1497
1498 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
1499 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
1500
1501 * xfaces.c: Include font.h unconditionally.
1502 (merge_face_ref, merge_face_vectors)
1503 (Finternal_set_lisp_face_attribute): Cancel the previous change.
1504
1505 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
1506
1507 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
1508 indirect_variable.
1509 * eval.c (lisp_indirect_variable): New fun.
1510 (Fuser_variable_p): Use it.
1511
1512 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1513
1514 * lisp.h (indirect_variable):
1515 * data.c (indirect_variable, let_shadows_buffer_binding_p):
1516 Use Lisp_Symbol pointers rather than Lisp_Object.
1517 Adjust callers.
1518 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
1519 To this end, change calling-convention.
1520
1521 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
1522 if some non-hidden buffers are selected by string&pred.
1523
1524 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
1525
1526 * process.c (wait_reading_process_output): Always check status
1527 when in batch mode.
1528
1529 2008-05-19 Kenichi Handa <handa@m17n.org>
1530
1531 * font.c (font_list_entities): Fix handling of cache.
1532 (font_matching_entity): Likewise.
1533
1534 * ftfont.c (cs_iso8859_1): Delete.
1535 (ft_face_cache): New variable.
1536 (struct ftfont_info): New member fc_charset_idx.
1537 (ftfont_build_basic_charsets): Delete.
1538 (fc_charset_table): New variable.
1539 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
1540 . FC_CHARSET_IDX) as :font-entity property in the font entity.
1541 Callers changed.
1542 (ftfont_lookup_cache, ftfont_get_charset): New functions.
1543 (ftfont_spec_pattern): New argument fc_charset_idx.
1544 Check registry more rigidly. Change callers.
1545 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
1546 change of :font-entity property of the font.
1547
1548 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
1549 property of the font.
1550
1551 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
1552
1553 * coding.c (Fcoding_system_p): Rename argument to match docstring.
1554 (Funencodable_char_position, Fcheck_coding_systems_region)
1555 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
1556 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
1557 (Ffind_operation_coding_system, Fset_coding_system_priority)
1558 (Fcoding_system_eol_type): Doc fixes.
1559
1560 2008-05-17 Glenn Morris <rgm@gnu.org>
1561
1562 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
1563
1564 2008-05-16 Eli Zaretskii <eliz@gnu.org>
1565
1566 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
1567 and st_gid.
1568
1569 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1570 HAVE_WINDOW_SYSTEM is not defined.
1571
1572 * xfaces.c (merge_face_ref, merge_face_vectors)
1573 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
1574 HAVE_WINDOW_SYSTEM is defined.
1575 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
1576
1577 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
1578
1579 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
1580
1581 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1582
1583 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
1584
1585 2008-05-15 Kenichi Handa <handa@m17n.org>
1586
1587 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
1588 preference.
1589
1590 2008-05-15 Glenn Morris <rgm@gnu.org>
1591
1592 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
1593
1594 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
1595
1596 * fns.c (init_fns): Don't initialize weak_hash_tables here.
1597 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
1598
1599 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
1600
1601 2008-05-15 Kenichi Handa <handa@m17n.org>
1602
1603 * ftfont.c (ftfont_list): Downcase family name to check generic
1604 families.
1605
1606 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
1607 font-spec for QCfont value.
1608
1609 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
1610 buffer. Check the return value of it.
1611
1612 2008-05-14 Jason Rumney <jasonr@gnu.org>
1613
1614 * w32term.c (w32_get_glyph_overhangs): Remove.
1615 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
1616
1617 2008-05-14 Kenichi Handa <handa@m17n.org>
1618
1619 * font.c (font_prop_validate): Make nil a valid value.
1620 (font_clear_cache): Check if the cached vector of entities is nil
1621 or not.
1622
1623 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1624
1625 * emacs.c (main_thread): Conditionalize on
1626 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1627 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
1628
1629 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
1630 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
1631 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1632
1633 2008-05-14 Kenichi Handa <handa@m17n.org>
1634
1635 * coding.c (detect_coding_iso_2022): Ignore a coding category that
1636 has no corresponding coding system.
1637
1638 2008-05-14 Jason Rumney <jasonr@gnu.org>
1639
1640 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
1641
1642 * w32font.h (w32font_open_internal): Update declaration.
1643
1644 * w32font.c (w32font_open_internal): Change last argument from
1645 w32font_info struct to font object. Fill in font object from
1646 font_entity. Get Outline metrics if possible. Use them to
1647 calculate underline position and thickness. Use xlfd name as name
1648 property. Don't set codepage.
1649 (w32font_open): Pass font_object to w32font_open_internal. Don't
1650 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
1651 (w32font_draw): Use s->font.
1652 (clear_cached_metrics): Don't clear non-existent blocks.
1653
1654 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
1655 font was not found.
1656 (x_draw_glyph_string): Use underline position and thickness from font.
1657
1658 * w32uniscribe.c (uniscribe_open): Pass font_object to
1659 w32font_open_internal.
1660
1661 2008-05-14 Kenichi Handa <handa@m17n.org>
1662
1663 These changes are to delete all legacy font-handling codes, and
1664 make Emacs use only font-backends.
1665
1666 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
1667 (frame.o, image.o, print.o): Depend on $(FONTSRC).
1668
1669 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
1670
1671 * charset.h (Vcharset_non_preferred_head)
1672 (Vcurrent_iso639_language): Extern them.
1673
1674 * charset.c (Vcharset_non_preferred_head): New variable.
1675 (Vcurrent_iso639_language): New variable.
1676 (syms_of_charset): Declare it as a Lisp variable.
1677 (char_charset): Don't check non preferred charsets. As a last
1678 resort, return charset_unicode.
1679 (Fset_charset_priority): Update Vcharset_non_preferred_head.
1680
1681 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
1682 conditionals. Don't check enable_font_backend. Delete all codes
1683 used only when USE_FONT_BACKEND is not defined.
1684
1685 * dispextern.h (struct glyph_string): Change type of `font' to
1686 `struct font *'.
1687 (struct glyph_string): New member underline_position and
1688 underline_thickness.
1689 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
1690 (struct face): Change type of `font' to `struct font *'. Remove
1691 members `font_name', `font_info_id'.
1692 (per_char_metric, encode_char): Delete externs.
1693 (calc_pixel_width_or_height): Adjust the prototype.
1694
1695 * emacs.c (enable_font_backend): Delete extern.
1696 (main): Don't set enable_font_backend. Don't check the command
1697 line argument "-disable-font-backend".
1698
1699 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
1700 (enum font_property_index): New members FONT_DPI_INDEX,
1701 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
1702 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
1703 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
1704 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
1705 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
1706 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
1707 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1708 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1709 (struct font_spec, struct font_entity): New structs.
1710 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1711 (struct font): Many members from old "struct font_info" moved to
1712 here. Members font and entity deleted.
1713 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1714 the new font-related objects.
1715 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1716 (CHECK_FONT_GET_OBJECT): Likewise.
1717 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1718 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1719 (struct font_driver): New members case_sensitive anc check. Type
1720 of the member list and open changed.
1721 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1722 (font_symbolic_width, font_find_object, font_get_spec)
1723 (font_set_lface_from_name): Delete extern.
1724 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
1725
1726 * font.c: Include <strings.h>.
1727 (enable_font_backend): Delete it.
1728 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1729 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1730 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1731 (null_string): Delete it.
1732 (null_vector): Make it static.
1733 (font_family_alist): Delete it.
1734 (Qnormal): Extern it.
1735 (QCextra, QClanguage): Delete it.
1736 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
1737 (font_make_spec, font_make_entity, font_make_object)
1738 (font_intern_prop): Renamed from intern_downcase. Don't downcase
1739 the string. Callers changed.
1740 (font_pixel_size): Adjusted for the format change of font-related
1741 objects.
1742 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
1743 (font_style_to_value, font_style_symbolic): New function.
1744 (build_font_family_alist): Delete it.
1745 (font_registry_charsets): Use Fassoc_string instead of
1746 assq_no_quit.
1747 (font_prop_validate_symbol): Don't return null_string.
1748 (font_prop_validate_style): Adjusted for the change of
1749 style-related values in a font vector.
1750 (font_property_table): Delete entries for QClanguage and
1751 QCantialias, add entries for QCavgwidth.
1752 (get_font_prop_index): Delete the 2nd argument FROM.
1753 (font_prop_validate): Arguments changed.
1754 (font_put_extra): Adjusted for the change of font-related objects.
1755 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
1756 (font_parse_fcname, font_unparse_fcname)
1757 (font_prepare_composition): Likewise.
1758 (font_parse_family_registry): Renamed from font_merge_old_spec.
1759 (otf_open): Delete the 1st arg entity.
1760 (font_otf_capability): Adjusted for the above change.
1761 (font_score): New arg alternate_families. Adjusted for the change
1762 of font-related objects.
1763 (font_sort_entites): New arg best_only.
1764 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
1765 Delete them.
1766 (font_match_p): Check alternate families.
1767 (font_find_object): Delete it.
1768 (font_check_object): New function.
1769 (font_clear_cache): Adjusted for the change of font-related objects.
1770 (font_delete_unmatched): New arg.
1771 (font_list_entities): Call font_driver->list with a spec that
1772 doesn't specify style-related properties.
1773 (font_matching_entity): Arguments changed. Caller changed.
1774 (font_open_entity): Adjusted for the change of font-related objects.
1775 (font_close_object, font_has_char, font_encode_char)
1776 (font_get_name, font_get_spec): Likewise.
1777 (font_spec_from_name, font_clear_prop, font_update_lface):
1778 New functions.
1779 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
1780 (font_prepare_for_face, font_done_for_face, font_open_by_name)
1781 (font_at): Adjusted for the change of font-related objects.
1782 (font_range): New function.
1783 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
1784 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
1785 (Fcopy_font_spec, Fmerge_font_spec): New function.
1786 (Ffont_family_list): Renamed from list-families.
1787 (Finternal_set_font_style_table): Arguments changed.
1788 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
1789 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
1790 change of font-related objects.
1791 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
1792
1793 * fontset.h (struct font_info): Delete it. Most members go to
1794 struct font.
1795 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
1796 (enum FONT_SPEC_INDEX): Delete it.
1797 (font_info, list_fonts_func, load_font_func, query_font_func)
1798 (set_frame_fontset_func, find_ccl_program_func)
1799 (get_font_repertory_func, new_fontset_from_font_name): Delete
1800 externs.
1801 (fontset_from_font_name): Extern it.
1802 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
1803 (FONT_INFO_FROM_FACE): Deleted.
1804 (face_for_font): Adjust prototype.
1805
1806 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
1807 conditionals. Don't check enable_font_backend. Delete all codes
1808 used only when USE_FONT_BACKEND is not defined.
1809 (get_font_info_func, list_font_func, load_font_func)
1810 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
1811 (get_font_repertory_func): Delete them.
1812 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
1813 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
1814 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
1815 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
1816 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
1817 (fontset_compare_rfontdef): New function.
1818 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
1819 ront-defs by qsort. Adjusted for the change of font-group vector.
1820 (load_font_get_repertory): Deleted.
1821 (fontset_find_font): Use new macros to ref/set elements of
1822 font-def and rfont-def.
1823 (fontset_font): Fix the timing of remembering that no font for C.
1824 (free_face_fontset): Do nothing if the face has no fontset.
1825 (face_suitable_for_char_p): Use new macros to ref/set elements of
1826 rfont-def.
1827 (face_for_char): Likewise. Call face_for_char with font_object.
1828 (fs_load_font): Delete. Delete #pragma surrounding it.
1829 (fs_query_fontset): Use strcasecmp instead of strcmp.
1830 (generate_ascii_font_name): Adjusted for the format change of
1831 font-spec.
1832 (Fset_fontset_font): Likewise. Use new macros to set elements of
1833 font-def.
1834 (Fnew_fontset): Use font_unparse_xlfd to generate
1835 FONTSET_ASCII (fontset).
1836 (new_fontset_from_font_name): Deleted.
1837 (fontset_from_font): Renamed from new_fontset_from_font. Check if
1838 a fontset is already created for the font. FIx updating of
1839 Vfontset_alias_alist.
1840 (fontset_ascii_font): Deleted.
1841 (Ffont_info): Adjusted for the format change of font-spec.
1842 (Finternal_char_font): Likewise.
1843 (Ffontset_info): Likewise.
1844 (syms_of_fontset): Don't check load_font_func.
1845
1846 * fns.c (internal_equal): Handle PREV_FONT.
1847
1848 * frame.h: Delete USE_FONT_BACKEND conditional.
1849
1850 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
1851 conditionals. Don't check enable_font_backend. Delete all codes
1852 used only when USE_FONT_BACKEND is not defined.
1853 (x_set_font): Call x_new_font, not x_new_fontset2.
1854 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
1855 already set for the frame.
1856
1857 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
1858 a font-entity by font_make_entity. Use font_intern_prop instead
1859 of intern_downcase. Use FONT_SET_STYLE to set a style-related
1860 font property. If a font is scalable, set avgwidth property to 0.
1861 Set font-entity property by font_put_extra.
1862 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
1863 (ffont_driver): Adjusted for the change of struct font_driver.
1864 (ftfont_spec_pattern): New function.
1865 (ftfont_list): Return a list, not vector.
1866 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
1867 (ftfont_list_family): Don't downcase names.
1868 (ftfont_free_entity): Deleted.
1869 (ftfont_open): Return a font-ojbect. Adjusted for the change of
1870 struct font. Get underline_thickness and underline_position from
1871 font property. Don't update dpyinfo->smallest_font_height and
1872 dpyinfo->smallest_char_width.
1873 (ftfont_close): Don't free `struct font'.
1874 (ftfont_has_char): Adjusted for the format change of font-entity.
1875 (ftfont_encode_char, ftfont_text_extents): Likewise.
1876
1877 * ftxfont.c (ftxfont_list): Return a list, not vector.
1878 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
1879 struct font. Get underline_thickness and underline_position from
1880 font property. Don't update dpyinfo->smallest_font_height and
1881 dpyinfo->smallest_char_width.
1882 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
1883 (ftxfont_draw): Adjusted for the change of struct font.
1884
1885 * image.c (image_ascent): Don't include "charset.h". Include
1886 "character.h" and "font.h".
1887
1888 * lisp.h (enum pvec_type): New member PREV_FONT.
1889 (Fassoc_string): EXFUN it.
1890
1891 * print.c: Include font.h.
1892 (print_object): Handle font-related objects.
1893
1894 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
1895 conditionals. Don't check enable_font_backend. Delete all codes
1896 used only when USE_FONT_BACKEND is not defined.
1897 (handle_auto_composed_prop): Do nothing if it->f is not on a
1898 window system. Check how many following characters can be
1899 displayed by the same font.
1900 (calc_pixel_width_or_height): Type of the 4th arg is changed to
1901 'struct font *'.
1902 (get_char_face_and_encoding): Assign the whole encoding task to
1903 the `encode-char' method of a font driver.
1904 (fill_composite_glyph_string): Adjusted for the change of `struct
1905 face' and `struct glyph_string'.
1906 (fill_glyph_string): Likewise.
1907 (get_per_char_metric): Arguments changed.
1908 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
1909 and `struct glyph_string'.
1910 (produce_stretch_glyph, calc_line_height_property)
1911 (x_produce_glyphs): Likewise.
1912
1913 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
1914 conditionals. Don't check enable_font_backend. Delete all codes
1915 used only when USE_FONT_BACKEND is not defined. Use
1916 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
1917 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
1918 (Qp): Extern them.
1919 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
1920 Deleted.
1921 (struct font_name): Deleted.
1922 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
1923 (compare_fonts_by_sort_order): New function.
1924 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
1925 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
1926 Deleted.
1927 (Fx_family_fonts): Use font_list_entities, and sort fonts by
1928 compare_fonts_by_sort_order.
1929 (Fx_font_family_list): Call Ffont_family_list.
1930 (face_numeric_value, face_numeric_weight, face_numeric_slant)
1931 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
1932 (face_symbolic_slant, face_symbolic_swidth)
1933 (split_font_name_into_vector, build_font_name_from_vector)
1934 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
1935 (font_rescale_ratio, split_font_name, build_font_name)
1936 (free_font_names, sort_fonts, x_face_list_fonts)
1937 (face_font_available_p, sorted_font_list, cmp_font_names)
1938 (font_list_1, concat_font_list, font_list, remove_duplicates):
1939 Deleted.
1940 (Fx_list_fonts): Use Ffont_list.
1941 (LFACE_AVGWIDTH): Deleted.
1942 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
1943 by FONTP.
1944 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1945 (set_lface_from_font_name): Delete it.
1946 (set_lface_from_font): Renamed from
1947 set_lface_from_font_and_fontset. Caller changed. Don't set
1948 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
1949 for face.
1950 (merge_face_vectors): Copy font-spec if necessary.
1951 Clear properties of the font-spec if necessary.
1952 (merge_face_ref): Clear properties of the font-spec if necessary.
1953 (Finternal_set_lisp_face_attribute): Likewise.
1954 (set_font_frame_param): Use font_load_for_lface to load a
1955 font-object, and call Fmodify_frame_parameters with it.
1956 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
1957 font name by Ffont_xlfd_name.
1958 (Finternal_lisp_face_attribute_values): Don't check QCweight,
1959 QCslant, and QCwidth.
1960 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
1961 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
1962 Compare fonts by EQ.
1963 (lookup_non_ascii_face): Deleted.
1964 (face_for_font): The 2nd argument changed.
1965 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
1966 Check atomic font properties by case insensitive.
1967 (realize_non_ascii_face): Set face->overstrike correctly.
1968 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
1969 (dump_realized_face): Get font name from
1970 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
1971
1972 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
1973 conditionals. Don't check enable_font_backend. Delete all codes
1974 used only when USE_FONT_BACKEND is not defined.
1975 (xic_create_xfontset): Original code deleted and renamed from
1976 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
1977 (x_make_gc): Don't set GCFont in GCs.
1978 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
1979 opened by "fixed".
1980 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
1981 find_ccl_program_func, query_font_func, set_frame_fontset_func,
1982 get_font_repertory_func.
1983
1984 * xfont.c: Include <stdlib.h> and "ccl.h".
1985 (struct xfont_info): New structure.
1986 (xfont_query_font): Deleted.
1987 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
1988 moved from xterm.c.
1989 (xfont_driver): Adjusted for the change of struct font_driver.
1990 (compare_font_names): New function.
1991 (xfont_list_pattern): Sort font names case insensitively. Make
1992 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
1993 (xfont_list): Return a list, not vector.
1994 (xfont_match): If the font doesn't have QCname property, generate
1995 a name from the other font properties.
1996 (xfont_open): Return a font-ojbect. Adjusted for the change of
1997 struct font. Get underline_thickness and underline_position from
1998 font property. Don't update dpyinfo->smallest_font_height and
1999 dpyinfo->smallest_char_width.
2000 (xfont_close): Don't free struct font.
2001 (xfont_prepare_face): Adjusted for the change of struct font.
2002 (xfont_done_face): Deleted.
2003 (xfont_has_char): Adjusted for the change of struct font.
2004 (xfont_encode_char, xfont_draw): Likewise.
2005 (xfont_check): New function.
2006
2007 * xftfont.c (xftfont_list): Adjusted for the change of `list'
2008 callback function.
2009 (xftfont_match): Adjusted for the fontmat change of font-entity.
2010 (xftfont_open): Adjusted for the format change of font-entity and
2011 font-object. Adjusted for the change of struct font. Return a
2012 font-object. Don't update dpyinfo->smallest_font_height and
2013 dpyinfo->smallest_char_width.
2014 (xftfont_close): Block input while calling XftFontClose.
2015 (xftfont_prepare_face): Don't block input while calling
2016 xftfont_get_colors. Adjusted for the change of struct font.
2017 (xftfont_shape): Return value of error case fixed.
2018
2019 * xrdb.c (x_load_resources): Don't setup a fontset resource.
2020
2021 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
2022 conditionals.
2023 (FONT_WIDTH): Return (f)->max_width.
2024 (struct x_display_info): Delete member `font'.
2025 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
2026 (x_find_ccl_program, x_get_font_repertory): Delete externs.
2027 (struct x_output): Change type of `font' to `struct font *'.
2028
2029 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
2030 conditionals. Don't check enable_font_backend. Delete all codes
2031 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
2032 (x_per_char_metric, x_encode_char): Deleted.
2033 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
2034 (x_compute_glyph_string_overhangs): Adjusted for the change of
2035 `struct face'.
2036 (x_draw_glyph_string_foreground)
2037 (x_draw_composite_glyph_string_foreground): Likewise.
2038 (x_draw_glyph_string): Likewise. Use font->underline_position and
2039 font->underline_thickness.
2040 (x_new_font): Renamed from x_new_fontset2.
2041 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
2042 (x_check_font): Call `check' method of a font driver.
2043 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
2044 (x_query_font, x_get_font_repertory): Deleted.
2045 (x_find_ccl_program): Renamed and moved to xfont.c.
2046 (x_redisplay_interface): Adjusted for the change of `struct
2047 redisplay_interface'.
2048
2049 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
2050 conditionals. Don't check enable_font_backend. Delete all codes
2051 used only when USE_FONT_BACKEND is not defined. Surround non-used
2052 code by "#ifdef OLD_FONT" and "endif".
2053 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
2054
2055 * w32font.h (struct w32font_info): New member.
2056 (FONT_COMPAT): New macro.
2057 (w32font_open_internal): Prototype adjusted.
2058
2059 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
2060 OLD_FONT" and "endif".
2061
2062 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
2063 conditionals. Don't check enable_font_backend. Delete all codes
2064 used only when USE_FONT_BACKEND is not defined.
2065 (w32font_open): Return a font-object. Make a font-object by
2066 font_make_object. Adjusted for the change of struct w32font_info.
2067 (w32font_close): Don't free struct font. Adjusted for the change
2068 of struct w32font_info.
2069 (w32font_encode_char, w32font_text_extents, w32font_draw):
2070 Adjusted for the change of struct w32font_info.
2071 (w32font_draw): Likewise.
2072 (w32font_list_internal): Return a list, not vector.
2073 (w32font_open_internal): Change the 4th arg to font-object.
2074 Adjusted for the change of struct w32font_info and font-object format.
2075 (add_font_name_to_list): Don't downcase names.
2076 (w32_enumfont_pattern_entity): Make a font-entity by
2077 font_make_entity. Adjusted for the format change of font-entity.
2078 Use FONT_SET_STYLE to set a style-related font property. If a
2079 font is scalable, set avgwidth property to 0. Set font-entity
2080 property by font_put_extra.
2081 (font_matches_spec): Adjusted for the format change of font-entity.
2082 (w32_weight_table, w32_decode_weight): New variables.
2083 (w32_encode_weight): New function.
2084 (fill_in_logfont): Adjusted for the format change of font-spec.
2085 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
2086 weight value.
2087 (w32font_driver): Adjusted for the change of struct font_driver.
2088
2089 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
2090 conditionals. Don't check enable_font_backend. Surround non-used
2091 code by "#ifdef OLD_FONT" and "endif".
2092 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
2093 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
2094
2095 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
2096 conditionals. Don't check enable_font_backend. Delete all codes
2097 used only when USE_FONT_BACKEND is not defined. Surround non-used
2098 code by "#ifdef OLD_FONT" and "endif".
2099
2100 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
2101 (uniscribe_open): Return value changed to font-object.
2102 Adjusted for the format change of font-object.
2103 (uniscribe_otf_capability): Adjusted for the change of struct font.
2104 (add_opentype_font_name_to_list): Don't downcase names.
2105 (uniscribe_font_driver): Adjusted for the change of struct
2106 font_driver.
2107
2108 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
2109
2110 * dispnew.c (update_frame_1): Check if tty output is still valid
2111 before flushing it.
2112
2113 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
2114
2115 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
2116 to Gtk+ menus.
2117
2118 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2119
2120 * dired.c (file_name_completion): Tweak the code so as to always do it
2121 in a single pass. Tighten the scope of some variables.
2122
2123 * dired.c (Qdefault_directory): New var.
2124 (file_name_completion): Use it instead of Fexpand_file_name.
2125 (syms_of_dired): Initialize it.
2126
2127 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
2128
2129 * fileio.c (double_dollars): Remove dead code.
2130
2131 2008-05-10 Eli Zaretskii <eliz@gnu.org>
2132
2133 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
2134 Mention w32-get-true-file-attributes in doc string.
2135
2136 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2137
2138 2008-05-09 Glenn Morris <rgm@gnu.org>
2139
2140 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
2141 2008-04-23.
2142
2143 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2144
2145 Support for reporting owner and group of each file on MS-Windows:
2146 * dired.c (stat_uname, stat_gname): New functions, with special
2147 implementation for w32.
2148 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
2149
2150 * w32.c: Rename the_passwd_* to dflt_passwd_*.
2151 (dflt_group_name): New static variable.
2152 (dflt_group): Rename from the_group.
2153 (init_user_info): Init dflt_group fields. Get user's group name
2154 from LookupAccountSid.
2155 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
2156 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
2157 New initialization states.
2158 (globals_of_w32): Initialize them to zero. Initialize the default
2159 group name to "None".
2160 (GetFileSecurity_Name): New global var, the name of the function
2161 to call for GetFileSecurity.
2162 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
2163 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
2164 (get_file_security, get_security_descriptor_owner)
2165 (get_security_descriptor_group, is_valid_sid)
2166 (get_file_security_desc, get_rid, get_name_and_id)
2167 (get_file_owner_and_group): New functions.
2168 (stat): Use get_file_security_desc and get_file_owner_and_group to
2169 report the owner and primary group of each file. Don't ignore the
2170 high 32 bits of file's size, now that st_size is 64-bit wide.
2171 Fix test when to get true file attributes.
2172 (init_user_info): Use get_rid instead of equivalent inline code.
2173 (fstat): Don't ignore the high 32 bits of file's size.
2174
2175 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
2176
2177 * image.c (png_load): Use correct bit-depth for setting background
2178 color.
2179
2180 2008-05-08 Eli Zaretskii <eliz@gnu.org>
2181
2182 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
2183 epa-hook.elc.
2184
2185 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
2186
2187 * font.c (Ffont_match_p): Don't use `iff' in docstring.
2188
2189 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2190
2191 * macfns.c (Fx_create_frame): Make a copy of frame parameters
2192 because the original parameters are in pure storage now.
2193 (mac_window): Remove unused params. Update callers.
2194
2195 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2196
2197 * lread.c (substitute_object_recurse): Use lower-level primitives.
2198 Don't signal errors when traversing sub-char-tables.
2199 Don't loop over all the possible characters when traversing char-tables.
2200
2201 * print.c (print_preprocess): Add sub-char-tables to the print-table,
2202 just like we do in print.c.
2203
2204 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2205
2206 * minibuf.c (Ftry_completion): Remove code left over from when we used
2207 scmp instead of Fcompare_strings.
2208
2209 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
2210
2211 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
2212
2213 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2214
2215 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
2216 Create bitmap context in native byte order.
2217
2218 * macterm.c (XDrawLine)
2219 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
2220 context in native byte order.
2221
2222 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2223
2224 * config.in: Regenerate.
2225
2226 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
2227 New definitions for Image I/O support.
2228 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2229 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
2230 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2231 (mac_data_provider_release_data, image_load_image_io)
2232 [USE_MAC_IMAGE_IO]: New functions.
2233 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
2234 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
2235 (init_image_func_pointer) [MAC_OSX]: Remove function.
2236 (image_load_quartz2d) [MAC_OSX]: Check availability of
2237 CGImageCreateWithPNGDataProvider at compile time.
2238 Use lowercase `false' for boolean constant.
2239 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
2240 Use image_load_image_io.
2241 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
2242 Don't check MyCGImageCreateWithPNGDataProvider.
2243 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
2244 Don't call init_image_func_pointer.
2245
2246 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
2247
2248 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
2249 Make variable non-static.
2250 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2251 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2252
2253 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
2254 (RED_FROM_ULONG): Mask off higher bits.
2255 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
2256
2257 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
2258 Include AvailabilityMacros.h.
2259 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
2260 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
2261
2262 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
2263
2264 * chartab.c (Fset_char_table_range): If range is t, really set all
2265 chars to that value.
2266
2267 2008-05-03 Eli Zaretskii <eliz@gnu.org>
2268
2269 * dired.c (Ffile_attributes): Don't allow the device number become
2270 negative.
2271
2272 2008-05-02 Daiki Ueno <ueno@unixuser.org>
2273
2274 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
2275
2276 2008-05-02 Juri Linkov <juri@jurta.org>
2277
2278 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
2279 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
2280 DEFAULT argument as a list of default values in docstrings.
2281
2282 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
2283
2284 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2285
2286 2008-05-01 Martin Rudalics <rudalics@gmx.at>
2287
2288 * dispnew.c (change_frame_size_1): Preserve small windows when
2289 shrinking frames by calling set_window_height|width with third
2290 arg 2.
2291
2292 * window.h (struct window): Replace field too_small_ok by field
2293 resize_proportionally.
2294
2295 * window.c (make_window): Initialize resize_proportionally.
2296 (enlarge_window): Temporarily set resize_proportionally to make
2297 sure that shrink_windows does scale the window proportionally.
2298 (shrink_windows): When window has resize_proportionally set try
2299 to shrink it proportionally by stealing from other windows.
2300 (struct saved_window, Fset_window_configuration)
2301 (compare_window_configurations): Handle resize_proportionally.
2302 (WINDOW_TOTAL_SIZE): New macro.
2303 (window_min_size, shrink_windows, size_window): Use it.
2304 (check_min_window_sizes): Remove. Invalid values of
2305 window-min-height|width are handled by window_min_size_2 now.
2306 (size_window, Fsplit_window, enlarge_window)
2307 (adjust_window_trailing_edge, grow_mini_window): Don't call
2308 check_min_window_sizes.
2309 (window_min_size_2, window_min_size_1, window_min_size):
2310 New argument safe_p for retrieving "safe" minimum sizes.
2311 (Fdisplay_buffer, Fsplit_window, enlarge_window)
2312 (adjust_window_trailing_edge, grow_mini_window):
2313 Adjust arguments of window_min_size... functions.
2314 (shrink_windows): Argument min_size removed. New argument
2315 safe_p allows shrinking windows to their safe minimum sizes.
2316 Calculate minimum size and decide whether a window shall be
2317 deleted for each window individually.
2318 (size_window): When nodelete_p equals 2, tell shrink_windows to
2319 delete windows only if their new minimum size is no more safe.
2320 (shrink_window_lowest_first): Call window_min_size_1 to make
2321 sure to preserve modeline of bottom-most window when resizing
2322 the minibuffer.
2323 (Fset_window_configuration, Fcurrent_window_configuration)
2324 (compare_window_configurations): Do not handle
2325 window-min-height|width any more.
2326 (syms_of_window): Clarify window-min-height|width doc-strings.
2327
2328 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
2329
2330 * dired.c (file_name_completion): Fix up the encoding/decoding issue
2331 some more. Copy some of the code from Ftry_completions.
2332 Remove special case code that dates back to initial revision when the
2333 slash was only added when necessary and that can't trigger nowadays.
2334
2335 2008-04-27 Kenichi Handa <handa@m17n.org>
2336
2337 * font.c (font_prop_validate): Signal `error' instead of `font'.
2338
2339 2008-04-29 Jason Rumney <jasonr@gnu.org>
2340
2341 * w32fns.c (Fw32_battery_status): New defun.
2342 (syms_of_w32fns): Defsubr it.
2343
2344 2008-04-28 Andreas Schwab <schwab@suse.de>
2345
2346 * dired.c (file_name_completion): Fix another mixing of encoded
2347 and decoded names.
2348
2349 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
2350
2351 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
2352
2353 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
2354
2355 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2356
2357 2008-04-27 Andreas Schwab <schwab@suse.de>
2358
2359 * dired.c (file_name_completion): Fix inappropriate mixing of
2360 encoded and decoded names.
2361
2362 * xterm.c (XTread_socket): Fix use of uninitialized variable.
2363
2364 * puresize.h (BASE_PURESIZE): Increase to 1200000.
2365
2366 2008-04-26 Eli Zaretskii <eliz@gnu.org>
2367
2368 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
2369 2008-03-31, it's not needed anymore with `struct stat' definition
2370 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
2371 for the same reasons.
2372
2373 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
2374
2375 * m/sparc.h: Additional redefinitions for GNU/Linux.
2376
2377 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2378
2379 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
2380 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2381 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
2382 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
2383 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2384 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
2385 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2386 Likewise.
2387
2388 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
2389 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
2390 (mac_ax_number_of_characters): Add externs.
2391 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2392 [USE_MAC_TSM]: Likewise.
2393 (mac_handle_text_input_event) [MAC_OSX]:
2394 Handle kEventTextInputOffsetToPos for no active input area case.
2395 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2396 (mac_handle_document_access_event)
2397 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
2398 (install_application_handler) [MAC_OSX]: Register handlers for
2399 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2400 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2401 Register mac_handle_document_access_event.
2402
2403 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
2404 Make functions non-static.
2405
2406 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2407
2408 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
2409 (read_file_name_completion_ignore_case, insert_default_directory)
2410 (Qdefault_directory): Move to minibuffer.el.
2411 (Fread_file_name): Call the new `read-file-name' instead.
2412
2413 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2414
2415 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
2416 Make function non-static.
2417 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
2418 Remove function.
2419 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2420 Move to mactoolbox.c.
2421 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
2422
2423 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
2424 (mac_rect_make): New macro.
2425
2426 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
2427 instead of float.
2428 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2429 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
2430 (XSetBackground) [USE_CG_DRAWING]: Likewise.
2431 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
2432 CGRectMake.
2433 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2434 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
2435 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
2436 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2437 instead of WindowRef in argument type.
2438 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
2439 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
2440 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
2441 instead of DISPLAY. All uses changed.
2442 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
2443 (x_calc_absolute_position): Simplify so as not to use
2444 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
2445
2446 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2447 instead of WindowRef in argument type.
2448 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
2449 [TARGET_API_MAC_CARBON]: Remove externs.
2450 (create_apple_event, mac_event_parameters_to_lisp)
2451 [TARGET_API_MAC_CARBON]: Add externs.
2452
2453 * mactoolbox.c (Vmac_ts_script_language_on_focus)
2454 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
2455 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
2456 is clicked.
2457 (x_activate_menubar): Remove extern for saved_menu_event_location.
2458 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2459 Move from mac.c.
2460
2461 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2462
2463 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
2464 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
2465
2466 2008-04-23 Jason Rumney <jasonr@gnu.org>
2467
2468 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
2469 attributes only for local files.
2470
2471 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
2472 default to Qlocal.
2473
2474 2008-04-22 Juri Linkov <juri@jurta.org>
2475
2476 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
2477 read-buffer-to-switch instead of using the letter "B".
2478
2479 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2480
2481 * fileio.c (Qdefault_directory): New variable.
2482 (Fread_file_name): Use it to pass `dir' to the completion functions.
2483
2484 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
2485
2486 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
2487
2488 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2489
2490 * keyboard.c (Vpre_help_message): Remove.
2491 (show_help_echo): Remove default C code.
2492
2493 * dired.c (directory_files_internal, file_name_completion):
2494 Only call ENCODE_FILE if the string is indeed decoded.
2495
2496 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2497
2498 * Makefile.in (TOOLKIT_DEFINES): Remove.
2499 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
2500
2501 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2502
2503 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
2504 (mactoolbox.o): New target.
2505
2506 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
2507 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
2508
2509 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
2510 Use mac_set_frame_window_background instead of XSetWindowBackground.
2511 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
2512 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
2513 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
2514 instead of SetWindowTitleWithCFString.
2515 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
2516 Move function to mactoolbox.c.
2517 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2518 Use mac_set_window_modified instead of SetWindowModified.
2519 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
2520 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
2521 (Fx_focus_frame): Use mac_front_non_floating_window instead of
2522 FrontNonFloatingWindow. Use mac_activate_window instead of
2523 ActivateWindow. Use mac_active_non_floating_window instead of
2524 ActiveNonFloatingWindow.
2525 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
2526 Use mac_show_hourglass and mac_hide_hourglass.
2527 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
2528 instead of GetGlobalMouse.
2529 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
2530 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
2531 Use mac_bring_window_to_front instead of BringToFront.
2532 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
2533 mactoolbox.c.
2534 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
2535 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
2536 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
2537 mactoolbox.c.
2538
2539 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
2540 (XtPointer): Move typedef from macmenu.c.
2541 (enum button_type): Move enum from macmenu.c.
2542 (widget_value): Move typedef from macmenu.c.
2543 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
2544 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2545 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2546 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2547 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2548 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2549 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2550 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
2551 (Selection): Move typedef from macselect.c.
2552 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
2553 macterm.c.
2554 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
2555 (mac_is_window_collapsed, mac_bring_window_to_front)
2556 (mac_send_window_behind, mac_hide_window, mac_show_window)
2557 (mac_collapse_window, mac_front_non_floating_window)
2558 (mac_active_non_floating_window, mac_activate_window)
2559 (mac_move_window_structure, mac_move_window, mac_size_window)
2560 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
2561
2562 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
2563 (enum mac_menu_kind): Move enum to mactoolbox.c.
2564 (min_menu_id): Move variable to mactoolbox.c.
2565 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
2566 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
2567 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2568 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2569 [TARGET_API_MAC_CARBON]: Likewise.
2570 (XtPointer): Move typedef to macgui.h.
2571 (enum button_type): Move enum to macgui.h.
2572 (widget_value): Move typedef to macgui.h.
2573 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2574 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2575 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2576 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2577 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2578 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2579 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
2580 (popup_activated_flag): Make variable non-static.
2581 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
2582 (add_menu_item, fill_menu, dispose_menus):
2583 Move functions to mactoolbox.c.
2584 (restore_show_help_function, menu_target_item_handler)
2585 (install_menu_target_item_handler, mac_handle_dialog_event)
2586 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
2587 [TARGET_API_MAC_CARBON]: Likewise.
2588 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
2589 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2590 (find_and_call_menu_selection, name_is_separator): Make function
2591 non-static.
2592 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
2593 to mactoolbox.c.
2594 (set_frame_menubar): Don't call install_menu_quit_handler.
2595 (menu_item_selection): New variable.
2596 (mac_menu_show): Use create_and_show_popup_menu.
2597 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
2598 selection but set variable menu_item_selection. All uses changed.
2599 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
2600 Call install_menu_quit_handler. Move to mactoolbox.c.
2601
2602 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
2603 (Selection): Move typedef to macgui.h.
2604 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
2605 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
2606 Make variables non-static.
2607 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2608 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
2609 Make functions non-static.
2610 (Vmac_service_selection) [MAC_OSX]: Likewise.
2611 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
2612 (mac_valid_selection_target_p, mac_clear_selection)
2613 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2614 (mac_put_selection_value, mac_selection_has_target_p)
2615 (mac_get_selection_value, mac_get_selection_target_list)
2616 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
2617 Move functions to mactoolbox.c.
2618 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
2619 Likewise.
2620 (copy_scrap_flavor_data, mac_handle_service_event)
2621 (install_service_handler) [MAC_OSX]: Likewise.
2622 (syms_of_macselect) <Vmac_dnd_known_types>:
2623 Use mac_dnd_default_known_types.
2624
2625 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
2626 Move to mactoolbox.c.
2627 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
2628 (Fx_selection_owner_p): Add EXFUN.
2629 (install_window_handler, remove_window_handler, XSetWindowBackground):
2630 Remove externs.
2631 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
2632 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
2633 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
2634 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
2635 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
2636 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
2637 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
2638 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
2639 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
2640 (create_and_show_popup_menu, mac_get_selection_from_symbol)
2641 (mac_valid_selection_target_p, mac_clear_selection)
2642 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2643 (mac_put_selection_value, mac_selection_has_target_p)
2644 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
2645 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
2646 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
2647 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2648 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
2649 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2650 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
2651 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2652 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2653
2654 * mactoolbox.c: New file.
2655
2656 2008-04-18 Jason Rumney <jasonr@gnu.org>
2657
2658 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
2659
2660 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2661
2662 * character.c (Fmultibyte_char_to_unibyte):
2663 Return latin1 chars unchanged.
2664
2665 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
2666 relocated if it points to `name'.
2667
2668 2008-04-17 Kenichi Handa <handa@m17n.org>
2669
2670 * data.c (Faset): Allow setting a multibyte character in an
2671 ASCII-only unibyte string.
2672
2673 * lisp.h (STRING_SET_MULTIBYTE): New macro.
2674
2675 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2676
2677 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
2678 done in config.h.
2679
2680 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
2681
2682 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
2683 (Fchar_direction): Add usage in the docstring.
2684
2685 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
2686
2687 * keyboard.c (read_key_sequence): Remove always-true checks.
2688
2689 2008-04-14 Jason Rumney <jasonr@gnu.org>
2690
2691 * w32font.c (w32font_open_internal): Set max_bounds.descent in
2692 compatibility struct, for better underline positioning.
2693
2694 2008-04-13 David Hansen <david.hansen@gmx.net>
2695
2696 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
2697 string.
2698
2699 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2700
2701 * m/hp800.h (XUINT, XSET): Remove.
2702
2703 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
2704
2705 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
2706 previous change.
2707
2708 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2709
2710 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2711 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2712
2713 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2714
2715 * keymap.h (map_keymap_canonical): Declare.
2716 * xmenu.c (single_keymap_panes): Use it.
2717
2718 2008-04-11 Glenn Morris <rgm@gnu.org>
2719
2720 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2721 set the target's value to that of the alias.
2722
2723 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2724
2725 * term.c (set_tty_color_mode): Left over typo.
2726
2727 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
2728
2729 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
2730 only after check for file name handler functions. Signal, when
2731 native functionality is not supported.
2732 (syms_of_fileio): Declare it unconditionally.
2733
2734 2008-04-10 Jason Rumney <jasonr@gnu.org>
2735
2736 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
2737 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2738
2739 * w32.c (logon_network_drive): Also logon to remote drives that
2740 are mapped to drive letters.
2741
2742 2008-04-10 Glenn Morris <rgm@gnu.org>
2743
2744 * xdisp.c (truncate-partial-width-windows): Doc fix.
2745
2746 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
2747
2748 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
2749 Move functions to minibuffer.el.
2750 (syms_of_fileio): Don't declare them.
2751
2752 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2753
2754 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
2755 (syms_of_minibuf): Remove its initialization.
2756
2757 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
2758
2759 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
2760
2761 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
2762
2763 2008-04-09 Jason Rumney <jasonr@gnu.org>
2764
2765 * makefile.w32-in (distclean): Delete makefile too.
2766 (maintainer-clean): New target.
2767
2768 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
2769
2770 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
2771 for new font backend and composite cases.
2772
2773 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
2774
2775 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
2776 Most of the code moved to run_timers.
2777 (do_pending_atimers): Call run_timers.
2778 (run_timers): New function.
2779
2780 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
2781 run atimers.
2782
2783 * process.c (wait_reading_process_output): The same as above.
2784
2785 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2786
2787 * minibuf.c (last_exact_completion): Remove variable.
2788 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
2789 (complete_and_exit_1, complete_and_exit_2)
2790 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2791 (Fdisplay_completion_list, display_completion_list_1)
2792 (Fminibuffer_completion_help, Fself_insert_and_exit)
2793 (Fexit_minibuffer, Fminibuffer_message): Move functions to
2794 minibuffer.el.
2795 (syms_of_minibuf): Remove corresponding initializations.
2796
2797 * keyboard.c (Qdeactivate_mark): New var.
2798 (command_loop_1): Use it to call `deactivate-mark'.
2799 (syms_of_keyboard): Initialize it.
2800
2801 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
2802 to another frame.
2803 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
2804 Don't call set_tty_color_mode.
2805 (store_frame_param): Reset previous_frame rather than call
2806 set_tty_color_mode.
2807 * term.c (set_tty_color_mode): Rewrite.
2808 * dispextern.h (set_tty_color_mode): New type.
2809 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
2810
2811 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2812
2813 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
2814 for generic chars, which do not exist any more in emacs-unicode.
2815
2816 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
2817
2818 * coding.c (detect_coding_emacs_mule)
2819 (Ffind_operation_coding_system): Fix typo.
2820
2821 2008-04-08 Jason Rumney <jasonr@gnu.org>
2822
2823 * w32uniscribe.c (SNAME): Extract only symbol name.
2824
2825 * w32font.h (struct w32_metric_cache): New struct.
2826 (w32font_info): Use it.
2827 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
2828 (CACHE_BLOCKSIZE): New constants.
2829
2830 * w32font.c (Qja, Qko, Qzh): New symbols.
2831 (syms_of_w32font): Initialise them.
2832 (font_matches_spec): Use them to filter by language.
2833 (recompute_cached_metrics): Remove function.
2834 (compute_metrics, clear_cached_metrics): New functions.
2835 (w32font_encode_char): Use them to manage metric cache.
2836 (w32font_text_extents): Cache metrics for all glyphs on demand.
2837 Delay converting glyph indices to WORD until needed.
2838 (w32font_open_internal): Initialize metric cache to empty.
2839 (registry_to_w32_charset): Charset should always be a symbol.
2840 (fill_in_logfont, list_all_matching_fonts): Family should
2841 always be a symbol.
2842
2843 2008-04-06 Jason Rumney <jasonr@gnu.org>
2844
2845 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
2846 Give up if glyph indices not supported. Use uniscribe obtained
2847 ABC widths for individual metrics. Map glyph clusters back to
2848 characters using fClusterStart flag. Return number of glyphs
2849 produced, not chars processed.
2850 (uniscribe_shape): Map char at FROM to current glyph.
2851
2852 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2853
2854 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
2855 Use SetMenuItemHierarchicalMenu.
2856
2857 2008-04-05 Jason Rumney <jasonr@gnu.org>
2858
2859 * image.c (pbm_load): Allow color values up to 65535.
2860 Throw an error if max_color_idx is outside the supported range.
2861 Report an error when image size is invalid.
2862 Read two bytes at a time when raw images have max_color_idx above 255.
2863
2864 2008-04-05 Eli Zaretskii <eliz@gnu.org>
2865
2866 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2867 cFileName a file name that includes `?' characters, use the 8+3
2868 alias in cAlternateFileName instead.
2869
2870 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
2871
2872 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
2873 append "CCL: Quitted" when the CCL program is quitted.
2874 (setup_ccl_program): Initialize ccl->quit_silently to zero.
2875
2876 * ccl.h (struct ccl_program): New member quit_silently.
2877
2878 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
2879
2880 * search.c (compile_pattern_1): Treat non-nil and non-string of
2881 search-spaces-regexp as nil.
2882
2883 * minibuf.c (Fassoc_string): Tweak docstring.
2884
2885 2008-04-05 Eli Zaretskii <eliz@gnu.org>
2886
2887 * dired.c (Ffile_attributes): Support inode numbers wider than 32
2888 bits. Remove ugly WINDOWSNT-specific kludge introduced on
2889 2008-03-14 to force inode be positive.
2890
2891 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
2892 _S_* ones, since we now use our own sys/stat.h.
2893 (stat, fstat): Don't mangle the inode number.
2894 (init_user_info): Don't restrict UID and GID to 0-60000 range.
2895
2896 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2897
2898 * frame.h (struct frame): Give one more bit to `visible' since we use
2899 values larger than 1 to indicate obscured frames on ttys.
2900
2901 * keymap.c (Qkeymap_canonicalize): New var.
2902 (Fmap_keymap_internal): New fun.
2903 (describe_map): Use keymap-canonicalize.
2904
2905 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
2906 (Fundo_boundary): Set them.
2907 (syms_of_undo): Initialize them.
2908 (record_point): Use them instead of last_point_position*.
2909 (last_undo_buffer): Change type.
2910
2911 2008-04-04 Jason Rumney <jasonr@gnu.org>
2912
2913 * w32font.c (w32font_text_extents): Use font's ascent and descent.
2914 (recompute_cached_metrics): Don't set ascent and descent per char.
2915
2916 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
2917 (uniscribe_check_otf): Add GC protection before consing.
2918 Rearrange loop for counting features.
2919
2920 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2921
2922 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
2923 buffer with byte-size of source buffer.
2924
2925 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
2926
2927 * callint.c (Fcall_interactively): Handle temporary region even
2928 when shift-select-mode is off.
2929
2930 2008-04-03 Jason Rumney <jasonr@gnu.org>
2931
2932 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
2933
2934 2008-04-03 Kenichi Handa <handa@m17n.org>
2935
2936 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
2937 (CATEGORY_MASK_UTF_16): Likewise.
2938 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
2939 binary file.
2940 (detect_coding): Add null-byte detection for a binary file.
2941 (detect_coding_system): Likewise.
2942
2943 2008-04-03 Jason Rumney <jasonr@gnu.org>
2944
2945 * w32uniscribe.c: New file.
2946
2947 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
2948
2949 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
2950
2951 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
2952 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
2953 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
2954 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
2955 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
2956 (Qphonetic): New symbols.
2957 (syms_of_w32font): Initialize them.
2958 (font_supported_scripts): Use them.
2959 (w32font_list_family): List all charsets.
2960 (w32font_text_extents, recompute_cached_metrics): Fix metric
2961 calculations.
2962 (w32_enumfont_pattern_entity): Make full_type a DWORD.
2963 Give opentype fonts their own format.
2964 (font_matches_spec): New arguments backend and logfont.
2965 Handle :otf spec for uniscribe backend.
2966 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
2967 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
2968
2969 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
2970 font backend.
2971 (globals_of_w32fns): Initialize uniscribe font backend.
2972
2973 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
2974 dependencies.
2975 (w32uniscribe.$(O)): New file to build.
2976 (FONT_OBJ): Include w32uniscribe.$(O).
2977 (LIBS): Add uniscribe libraries.
2978
2979 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
2980
2981 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
2982
2983 * callint.c (Vshift_select_mode): New var.
2984 (Finteractive): Document new ^ spec.
2985 (Fcall_interactively): Call handle-shift-selection if the ^ spec
2986 is present.
2987
2988 * keyboard.c (Vthis_command_keys_shift_translated): New var.
2989 (command_loop_1): Avoid running the direct display versions of
2990 forward-char and backward-char if shift-selection may occur.
2991 (read_key_sequence): Set Vthis_command_keys_shift_translated if
2992 shift-translation takes place.
2993
2994 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
2995 avoid clobbering by define-minor-mode.
2996
2997 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
2998 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2999
3000 * syntax.c (Fforward_word): Add ^ interactive spec.
3001
3002 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
3003 (Fscroll_right): Add ^ interactive spec.
3004
3005 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
3006
3007 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
3008
3009 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
3010
3011 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
3012
3013 2008-03-31 Juri Linkov <juri@jurta.org>
3014
3015 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
3016
3017 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
3018
3019 * gtkutil.c (xg_set_geometry): Fix indentation.
3020 (xg_resize_outer_widget): Remove.
3021 (x_wm_size_hint_off): Fix indentation.
3022 (xg_frame_set_char_size): Call flush_and_sync after
3023 gtk_window_resize.
3024 (x_wm_set_size_hint): Pass NULL as geometry window to
3025 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
3026 Add menu bar and tool bar height to base height.
3027 (xg_update_frame_menubar, free_frame_menubar)
3028 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3029 (update_frame_tool_bar, free_frame_tool_bar):
3030 Change xg_resize_outer_widget to xg_frame_set_char_size.
3031
3032 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
3033
3034 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
3035 (Fdbus_call_method): New parameter TIMEOUT.
3036 (dbus-send-signal): Optimize UNGCPRO call.
3037
3038 2008-03-29 Juri Linkov <juri@jurta.org>
3039
3040 * window.c (Fdisplay_buffer): Move call to
3041 Vsplit_window_preferred_function out of conditions that check
3042 if window is eligible for vertical splitting.
3043 When Vsplit_window_preferred_function is non-nil, call it and use
3044 its non-nil return value as window. Otherwise, continue doing
3045 vertical splitting using Fsplit_window with arg horflag=nil.
3046 (syms_of_window) <Vsplit_window_preferred_function>: Change the
3047 default value from `split-window' to nil.
3048
3049 2008-03-29 Juri Linkov <juri@jurta.org>
3050
3051 * callint.c (Fcall_interactively): Revert 2008-03-16 change
3052 for interactive code letters 'b' and 'B'.
3053
3054 2008-03-29 Eli Zaretskii <eliz@gnu.org>
3055
3056 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
3057 multibyte string.
3058
3059 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3060
3061 * keyboard.c (pending_funcalls): New var.
3062 (timer_check): Run it.
3063 (syms_of_keyboard): Initialize it.
3064 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
3065 (Vdelete_terminal_functions): New vars.
3066 (syms_of_terminal): Initialize them.
3067 (Fdelete_terminal): Run delete-terminal-functions.
3068 * xdisp.c (safe_eval): Rewrite.
3069 (safe_call2): New fun.
3070 * frame.c (Qdelete_frame_functions): New var.
3071 (syms_of_frame): Initialize it.
3072 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
3073 * lisp.h (safe_call2, pending_funcalls): Declare.
3074
3075 2008-03-28 Andreas Schwab <schwab@suse.de>
3076
3077 * indent.c (Fmove_to_column): Move declaration before statements.
3078
3079 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
3080
3081 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
3082 (struct frame): Use bit fields for boolean vars.
3083
3084 * process.c (server_accept_connection): Simplify naming.
3085 (emacs_get_tty_pgrp): Use SDATA.
3086
3087 * coding.c (decode_coding_object): Fix last change.
3088
3089 2008-03-27 Jason Rumney <jasonr@gnu.org>
3090
3091 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
3092
3093 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
3094
3095 * charset.c (Fdefine_charset_internal): Change the way of
3096 registering charsets in Vcharset_order_list.
3097 (syms_of_charset): Make the charset `eight-bit' supplementary.
3098
3099 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
3100
3101 * regex.c (EXTEND_BUFFER): Change order of pointer addition
3102 operations, to avoid having the difference between pointers
3103 overflow.
3104
3105 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3106
3107 * indent.c (check_display_width): New fun.
3108 (scan_for_column): Use it.
3109
3110 * data.c (syms_of_data): Mark most-positive-fixnum and
3111 most-negative-fixnum as constants.
3112
3113 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
3114
3115 * indent.c (scan_for_column): Extract from current_column_1.
3116 Merge with the same code from Fmove_to_column.
3117 (current_column_1, Fmove_to_column): Use it.
3118
3119 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3120
3121 * keymap.c (map_keymap_internal): New fun.
3122 (map_keymap): Use it.
3123 (Fmap_keymap_internal): New fun.
3124 (Fmap_keymap): Remove left-out test from before make_save_value.
3125
3126 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
3127
3128 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
3129 Use XCAR/XCDR.
3130
3131 * process.h (struct Lisp_Process): Remove filter_multibyte.
3132 * process.c (QCfilter_multibyte): Remove.
3133 (setup_process_coding_systems): Don't use filter_multibyte.
3134 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
3135 (read_process_output): Don't adjust multibyteness to filter_multibyte.
3136 (Fset_process_filter_multibyte): Change the coding-system to
3137 approximate the previous behavior.
3138 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
3139 coding-system.
3140
3141 * coding.c (decode_coding_object): When not decoding into a buffer,
3142 obey the coding system's preference of (uni|multi)byte.
3143
3144 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3145
3146 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
3147 every char is changed and has a different byte-length.
3148 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
3149 Fix int -> EMACS_INT.
3150
3151 2008-03-23 David Hansen <david.hansen@gmx.net>
3152
3153 * dbusbind.c (xd_read_message): Remove extra copying of message
3154 strings. Check for NULL `interface' or `member'.
3155
3156 2008-03-22 Eli Zaretskii <eliz@gnu.org>
3157
3158 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3159 cFileName a file name that includes `?' characters, use the 8+3
3160 alias in cAlternateFileName instead.
3161
3162 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
3163
3164 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
3165
3166 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3167
3168 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
3169 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
3170 work on current_buffer only instead (that was already the case
3171 for some of the code anyway).
3172 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
3173 (temp_set_point, temp_set_point_both): Use EMACS_INT.
3174 (SET_PT, SET_PT_BOTH): Adjust.
3175 * intervals.h (set_point, temp_set_point, set_point_both)
3176 (temp_set_point_both): Remove redundant declarations.
3177
3178 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3179
3180 * fileio.c (Finsert_file_contents):
3181 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
3182 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
3183 when buffer != current_buffer anyway.
3184
3185 2008-03-20 Andreas Schwab <schwab@suse.de>
3186
3187 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
3188 as default.
3189
3190 2008-03-19 Jason Rumney <jasonr@gnu.org>
3191
3192 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
3193 (syms_of_w32fns): Initialize them.
3194 (HOURGLASS_ID): New constant.
3195 (x_window_to_frame): Don't check hourglass_window.
3196 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
3197 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
3198 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
3199 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
3200 Only change the cursor if hourglass is not active.
3201 (Fx_create_frame): Initialize frame's current_cursor.
3202 (hourglass_atimer): Remove.
3203 (hourglass_started): New function.
3204 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
3205 (show_hourglass): Adapt to w32, changing argument to frame.
3206
3207 * w32term.h (struct w32_output): Remove hourglass_window.
3208 Add current_cursor.
3209
3210 * eval.c (call_debugger, Fsignal):
3211 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
3212 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
3213 (Fexecute_extended_command, cancel_hourglass_unwind):
3214 * minibuf.c (read_minibuf):
3215 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
3216
3217 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3218
3219 * window.c (run_funs): New fun.
3220 (run_window_configuration_change_hook): Use it to run the buffer-local
3221 and the global part of the hook.
3222
3223 * xdisp.c (format_mode_line_unwind_data): Add window argument.
3224 (unwind_format_mode_line): Restore selected window.
3225 (x_consider_frame_title, Fformat_mode_line): Set selected window.
3226
3227 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3228
3229 * editfns.c (Fchar_equal): Check they are valid characters.
3230
3231 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
3232
3233 2008-03-17 Andreas Schwab <schwab@suse.de>
3234
3235 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
3236 against a charset.
3237
3238 * lisp.h (Fbuffer_list): Declare.
3239
3240 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
3241
3242 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
3243 handlebox_widget is != 0.
3244
3245 2008-03-16 Juri Linkov <juri@jurta.org>
3246
3247 * callint.c (Fcall_interactively): For interactive code letters
3248 'b' and 'B' put the buffer list into the list of default "future"
3249 values of the minibuffer.
3250
3251 2008-03-16 Andreas Schwab <schwab@suse.de>
3252
3253 * keyboard.c (read_key_sequence): Fix downcasing of letters with
3254 modifiers.
3255
3256 * regex.c (re_match_2_internal): Correct matching of a charset
3257 against latin-1 characters.
3258
3259 2008-03-16 Kenichi Handa <handa@m17n.org>
3260
3261 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
3262 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
3263 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
3264 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
3265 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
3266 CHAR_STRING_ADVANCE.
3267 (produce_chars): Fix for the case that the source and the
3268 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
3269 instead of CHAR_STRING_ADVANCE.
3270 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
3271 STRING_CHAR_ADVANCE.
3272
3273 2008-03-15 Andreas Schwab <schwab@suse.de>
3274
3275 * regex.c (re_match_2_internal): Correct matching of eight bit
3276 characters in unibyte strings.
3277
3278 2008-03-15 Martin Rudalics <rudalics@gmx.at>
3279
3280 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
3281 at end of range when it coincides with the end of the buffer.
3282
3283 2008-03-14 Eli Zaretskii <eliz@gnu.org>
3284
3285 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
3286
3287 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
3288
3289 2008-03-14 Jason Rumney <jasonr@gnu.org>
3290
3291 * editfns.c (initial_tz): New variable.
3292 (syms_of_editfns): Initialize it.
3293 (Fset_time_zone_rule): Set it when first called.
3294 Use it when TZSTRING is nil.
3295
3296 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
3297 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
3298 (monitor_from_point_fn, get_monitor_info_fn): New globals.
3299 (globals_of_w32fns): Initialize them.
3300 (compute_tip_xy): Use them to position tooltips.
3301
3302 2008-03-14 Glenn Morris <rgm@gnu.org>
3303
3304 * emacs.c (main): Revert previous change.
3305 (standard_args): Revert -internal-script back to -scriptload,
3306 and remove the long-option form.
3307
3308 2008-03-13 Glenn Morris <rgm@gnu.org>
3309
3310 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
3311 Remove option -enable-font-backend.
3312
3313 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3314
3315 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
3316
3317 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
3318
3319 * xterm.c (x_connection_closed): For GTK: If this is the last
3320 terminal just exit without closing the display.
3321
3322 2008-03-11 Jason Rumney <jasonr@gnu.org>
3323
3324 * w32font.c (w32font_full_name): Use floor to round.
3325
3326 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
3327
3328 * sound.c (alsa_configure): Declare vol at beginning of block.
3329
3330 * fontset.c (Ffontset_info): Remove extra semicolon.
3331
3332 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3333
3334 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
3335 size of resulting string.
3336
3337 2008-03-10 Jason Rumney <jasonr@gnu.org>
3338
3339 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
3340
3341 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3342
3343 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
3344 Don't pretend as if characters with display property haven't been
3345 consumed for string-replacing-string case.
3346
3347 2008-03-08 Kim F. Storm <storm@cua.dk>
3348
3349 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
3350 (get_next_display_element, next_element_from_string)
3351 (next_element_from_ellipsis, next_element_from_buffer): Use it.
3352
3353 2008-03-08 Andreas Schwab <schwab@suse.de>
3354
3355 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
3356
3357 2008-03-06 Jason Rumney <jasonr@gnu.org>
3358
3359 * w32font.c (w32_registry): Take font_type argument. Use ANSI
3360 when charset not specified. Only translate ANSI to unicode when
3361 font_type is truetype.
3362 (w32font_coverage_ok): New function.
3363 (add_font_entity_to_list): Use it to filter unsuitable fonts.
3364
3365 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
3366
3367 * lread.c (Fread_char): Resolve modifiers.
3368 (Fread_char_exclusive): Likewise.
3369
3370 * character.c (char_resolve_modifier_mask): New function.
3371 (char_string): Use char_resolve_modifier_mask.
3372 (Fchar_resolve_modifiers): New function.
3373 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
3374 function.
3375
3376 2008-03-04 Jason Rumney <jasonr@gnu.org>
3377
3378 * makefile.w32-in: Always include w32font.c in the build.
3379 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
3380
3381 2008-03-04 Andreas Schwab <schwab@suse.de>
3382
3383 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
3384 (versionclean): Likewise.
3385
3386 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
3387
3388 * .cvsignore: Add oo.
3389
3390 2008-03-03 Andreas Schwab <schwab@suse.de>
3391
3392 * coding.c (decode_coding_object): Inhibit gap shrinking while
3393 decoding in place.
3394
3395 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
3396
3397 * w32term.c: Remove unused include "gnu.h".
3398 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
3399
3400 * gnu.h: Rename to ...
3401 * emacs-icon.h: ... this.
3402 * xterm.c: Use emacs-icon.h instead of gnu.h.
3403 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
3404
3405 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
3406
3407 * w32font.c: Include math.h.
3408
3409 2008-03-03 Jason Rumney <jasonr@gnu.org>
3410
3411 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
3412 Compute options separately.
3413 (w32font_open_internal): Set glyph_idx before caching metrics.
3414
3415 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
3416 Define if system headers don't.
3417 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
3418 (w32font_encode_char): Don't declare here.
3419
3420 * w32font.c (Quniscribe, QCformat): New symbols.
3421 (syms_of_w32font): Define them.
3422 (w32font_has_char): Indicate uncertainty.
3423 (w32font_encode_char): Encode as glyph point. Make static.
3424 (recompute_cached_metrics): New function.
3425 (w32font_open_internal): Use it. Set font to use glyph points
3426 initially. Set format based on type of font.
3427 (w32font_text_extents, w32font_draw): Optionally use glyph points.
3428 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
3429 on it. Set format based on information available here.
3430 (add_font_entity_to_list): Identify backend based on opentype_only.
3431
3432 2008-03-02 Andreas Schwab <schwab@suse.de>
3433
3434 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
3435
3436 * coding.c (decode_coding_big5, produce_chars):
3437 Fix typos in last change.
3438
3439 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
3440
3441 * gnu.h: New icon.
3442
3443 2008-03-02 Kenichi Handa <handa@m17n.org>
3444
3445 * coding.c (decode_coding_utf_8): When eol-type of CODING is
3446 `dos', don't decode '\r' if that is the last in the source.
3447 (decode_coding_utf_16, decode_coding_emacs_mule)
3448 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3449 (decode_coding_raw_text, decode_coding_charset): Likewise.
3450 (produce_chars): Don't decode EOL here. Use EMACS_INT.
3451
3452 2008-03-01 Jason Rumney <jasonr@gnu.org>
3453
3454 * w32font.c (w32font_full_name): Report point size for scalable fonts.
3455
3456 2008-03-01 Kim F. Storm <storm@cua.dk>
3457
3458 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
3459
3460 2008-03-01 Jason Rumney <jasonr@gnu.org>
3461
3462 * w32font.c (w32font_full_name): New function.
3463 (w32font_open_internal): Use it.
3464
3465 2008-03-01 Kim F. Storm <storm@cua.dk>
3466
3467 * dispnew.c (line_draw_cost): Fix invalid glyph check.
3468
3469 2008-03-01 Jason Rumney <jasonr@gnu.org>
3470
3471 * font.c (font_unparse_fcname): Increase len when style is a symbol.
3472
3473 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
3474
3475 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
3476 xg_frame_resized when the event is for the edit widget.
3477
3478 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
3479
3480 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
3481 set_char_size.
3482 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
3483 operations on widgets here. Just set frame size if needed.
3484 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
3485 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
3486 (x_wm_set_size_hint): Set size hints on the edit widget only, not
3487 the whole frame.
3488 (xg_create_tool_bar): Move attachement of the tool bar to
3489 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
3490 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
3491
3492 2008-03-01 Jason Rumney <jasonr@gnu.org>
3493
3494 * w32fns.c (w32_msg_pump): Disable debug code.
3495
3496 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3497
3498 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
3499
3500 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
3501
3502 * xdisp.c (next_overlay_string): Don't set
3503 overlay_strings_at_end_processed_p if we're currently reading from
3504 a display string.
3505
3506 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
3507
3508 * xdisp.c (get_overlay_strings_1): Fix typo.
3509
3510 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
3511
3512 * xdisp.c (get_overlay_strings_1): Add missing argument type.
3513
3514 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
3515
3516 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
3517
3518 * xdisp.c (display_mode_element): Cancel the previous change.
3519 (decode_mode_spec): Likewise.
3520 (handle_auto_composed_prop): Don't make composition if it->string
3521 is a string.
3522
3523 2008-02-27 Kim F. Storm <storm@cua.dk>
3524
3525 * lisp.h (GLYPH): Change type from int to struct with separate char
3526 and face_id members.
3527 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
3528 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
3529 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
3530 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
3531 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
3532 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
3533 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
3534 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
3535 handle new Lisp glyph code encoding, either an integer or a cons.
3536
3537 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
3538 (GLYPH_ALIAS): Delete.
3539 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
3540 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
3541 (GLYPH_FROM_CHAR): Replace macro by ...
3542 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
3543
3544 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
3545 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
3546 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
3547 (GLYPH_INVALID_P): New macro.
3548 (spec_glyph_lookup_face): Update prototype.
3549
3550 * dispnew.c (line_draw_cost): Adapt to new glyph type.
3551 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
3552 new glyph code encoding.
3553 (spec_glyph_lookup_face): No return value; update passed glyph instead.
3554 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
3555
3556 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3557 Adapt to new glyph type and new glyph code encoding.
3558
3559 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
3560
3561 * indent.c (current_column, current_column_1, Fmove_to_column)
3562 (compute_motion): Adapt to new glyph code encoding.
3563
3564 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
3565
3566 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
3567
3568 * process.c (wait_reading_process_output): Check for window
3569 changes caused by timers.
3570 Suggested by Johan Bockgård.
3571
3572 2008-02-27 Glenn Morris <rgm@gnu.org>
3573
3574 * emacs.c (USAGE1): Add `--disable-font-backend'.
3575
3576 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
3577
3578 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
3579 is made to the buffer.
3580
3581 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3582
3583 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
3584 (face_at_string_position):
3585 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3586 (face_at_string_position):
3587 * xdisp.c (display_string, next_overlay_change):
3588 * buffer.h (overlays_at):
3589 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
3590 Update callers.
3591
3592 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
3593
3594 * editfns.c (Fformat): Doc fix.
3595
3596 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
3597
3598 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
3599 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
3600 (Ffont_otf_alternates, Fquery_font): Doc fixes.
3601
3602 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3603
3604 * buffer.c (Fbuffer_swap_text): New function.
3605 (syms_of_buffer): Defsubr it.
3606
3607 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
3608
3609 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
3610
3611 2008-02-25 Jason Rumney <jasonr@gnu.org>
3612
3613 * w32font.c (w32font_draw): Draw one character at a time when padding.
3614
3615 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3616
3617 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
3618 Handle a nil arg. Use run_window_configuration_change_hook.
3619 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
3620 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
3621 Use run_window_configuration_change_hook.
3622
3623 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3624
3625 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
3626 1-pixel width.
3627
3628 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3629
3630 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
3631 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
3632 if the glyph in the font is zero pixel with.
3633
3634 * dispextern.h (struct glyph_string): New member padding_p.
3635
3636 * w32font.c (w32font_draw): Pay attention to s->padding_p.
3637
3638 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
3639
3640 * xfont.c (xfont_draw): Pay attention to s->padding_p.
3641
3642 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
3643
3644 * font.c: If the font driver doesn't have `shape' function, return Qnil.
3645
3646 2008-02-25 Jason Rumney <jasonr@gnu.org>
3647
3648 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
3649
3650 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
3651
3652 Allow fine-grained image-cache flushing.
3653 * dispextern.h (struct image): Add `dependencies' field.
3654 (clear_image_caches): Change arg to Lisp_Object.
3655 * image.c (make_image): Initialize `dependencies' field.
3656 (clear_image_cache): Change arg to allow fine-grained flushing.
3657 Perform the flush even if image-cache-eviction-delay is nil.
3658 (clear_image_caches): Change arg to Lisp_Object.
3659 (Fclear_image_cache): Expand meaning of the argument.
3660 (mark_image): Mark `dependencies' field.
3661 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
3662 (lface_hash): Use XHASH rather than XFASTINT.
3663 (face_at_buffer_position): Fix int -> EMACS_INT position.
3664 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
3665 (select_frame_for_redisplay): Remove code duplication.
3666 (redisplay_internal): Adapt arg to call to clear_image_caches.
3667
3668 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
3669
3670 * s/vms4-0.h:
3671 * s/vms4-2.h:
3672 * s/vms4-4.h:
3673 * s/vms5-5.h: Remove, unused.
3674
3675 * s/irix5-2.h:
3676 * s/irix6-0.h:
3677 * s/riscos5.h:
3678 * s/mach-bsd4-3.h:
3679 * m/mips4.h: Remove files for obsolete systems.
3680
3681 * Makefile.in:
3682 * filelock.c:
3683 * unexmips.c:
3684 * m/hp9000s300.h:
3685 * m/iris4d.h:
3686 * s/aix3-1.h:
3687 * s/hpux.h:
3688 * s/msdos.h:
3689 * s/usg5-0.h:
3690 * s/usg5-2-2.h:
3691 * s/usg5-2.h:
3692 * s/usg5-3.h: Remove references to obsolete variables.
3693
3694 * s/irix5-0.h: Remove, move all the contents ...
3695 * s/irix6-5.h: ... here. Simplify.
3696 * config.in: Regenerate.
3697
3698 2008-02-24 Jason Rumney <jasonr@gnu.org>
3699
3700 * w32term.c (x_draw_glyph_string_background): Clear the background
3701 manually when cleartype is in use.
3702 (x_draw_glyph_string_foreground): Draw text transparently when
3703 cleartype is in use.
3704
3705 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
3706 a font into it unless we have to.
3707
3708 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3709
3710 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3711 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
3712
3713 2008-02-18 Jason Rumney <jasonr@gnu.org>
3714
3715 * w32fns.c (Fw32_shell_execute): Encode parameters.
3716
3717 2008-02-09 Eli Zaretskii <eliz@gnu.org>
3718
3719 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
3720
3721 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
3722
3723 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
3724
3725 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3726
3727 * xterm.c (x_set_offset): Don't change the gravity if
3728 CHANGE_GRAVITY is -1.
3729
3730 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
3731
3732 * fileio.c (auto_save_error_occurred): New var.
3733 (auto_save_error): Set it.
3734 (Fdo_auto_save): Don't overwrite the error message if an auto-save
3735 error occurred.
3736
3737 2008-02-23 Eli Zaretskii <eliz@gnu.org>
3738
3739 * w32.c (globals_of_w32): Add initializations for
3740 g_b_init_get_sid_sub_authority and
3741 g_b_init_get_sid_sub_authority_count.
3742
3743 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3744
3745 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
3746 (font_parse_xlfd): Use them for sanity check.
3747 (Finternal_set_font_style_table): Make sure the table is bijective.
3748
3749 Consolidate the image_cache to the terminal struct.
3750 * termhooks.h (P_): Remove redundant def.
3751 (struct terminal): New field `image_cache'.
3752 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
3753 of FRAME_X_IMAGE_CACHE.
3754 * xterm.h (struct x_display_info): Remove image_cache field.
3755 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3756 * w32term.h (struct w32_display_info): Remove image_cache field.
3757 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3758 * macterm.h (struct mac_display_info): Remove image_cache field.
3759 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3760 * xterm.c (x_term_init):
3761 * w32term.c (w32_term_init):
3762 * macterm.c (mac_term_init): Set the image_cache in the terminal.
3763 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
3764 Remove declarations.
3765 (clear_image_caches, mark_image_cache): New declarations.
3766 * xfaces.c (clear_face_cache):
3767 * xdisp.c (redisplay_internal): Use clear_image_caches.
3768 * image.c (clear_image_cache): Don't check that a frame is on
3769 a window-system before checking if it shares the same cache.
3770 (clear_image_caches): New function.
3771 (Fclear_image_cache): Use it.
3772 (mark_image): Move from allo.c.
3773 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
3774 * alloc.c (mark_image, mark_image_cache): Move to image.c.
3775 (mark_object): Don't call mark_image_cache for frames.
3776 (mark_terminals): Call mark_image_cache.
3777
3778 * lisp.h (Fdelete_terminal): Declare.
3779
3780 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
3781 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
3782 wrong_type_argument.
3783
3784 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
3785
3786 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
3787 malayalam.el, and tamil.el. Add sinhala.el.
3788
3789 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
3790
3791 * xterm.c (x_connection_closed): Consolidate identical tests.
3792 (x_delete_terminal): Don't crash if called via x_connection_closed.
3793
3794 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
3795
3796 * xdisp.c (decode_mode_spec): New arg string.
3797 (display_mode_element): Adjust for the above change.
3798
3799 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3800
3801 * callint.c (Fcall_interactively): Use AREF.
3802
3803 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3804
3805 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
3806
3807 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
3808
3809 * xfns.c (Fx_show_tip): Set string to " " if empty.
3810
3811 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
3812
3813 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
3814 with Qt.
3815
3816 2008-02-17 Kenichi Handa <handa@m17n.org>
3817
3818 * ftfont.c (ftfont_shape): Return Lispy number.
3819
3820 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
3821 for GCs.
3822 (Finternal_set_font_selection_order): Call font_update_sort_order
3823 only when enable_font_backend is set.
3824 (realize_x_face): Set face->font_info to that of default face only
3825 when enable_font_backend is set.
3826
3827 * xdisp.c (handle_composition_prop): Set it->c to the fist
3828 characte of the composed region.
3829 (fill_composite_glyph_string): Set base_face->font_info to
3830 s->font_info. Get a face for ascii from base_face->ascii_face.
3831 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
3832 with a face already decided.
3833 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
3834 non-negative.
3835 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
3836 call font_prepare_composition unconditionally.
3837
3838 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
3839
3840 * xterm.h (struct x_display_info): New member font.
3841
3842 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
3843 (x_set_mouse_face_gc, x_new_font): Likewise.
3844 (x_term_init): Setup display_info->font.
3845 (x_delete_terminal): Free display_info->font.
3846
3847 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
3848
3849 * ftxfont.c (ftxfont_default_fid): Delete it.
3850 (ftxfont_open): Set xfont->fid to 0.
3851 (ftxfont_end_for_frame): Clear data specific to the frame and the
3852 font-driver.
3853
3854 * xftfont.c (xftfont_default_fid): Delete it.
3855 (xftfont_open): Set xfont->fid to 0.
3856
3857 * fontset.c (FONTSET_OBJLIST): New macro.
3858 (fontset_find_font): Update font-object list of the fontset.
3859 (free_realized_fontset): New function.
3860 (free_face_fontset): Call free_realized_fontset.
3861 (Ffont_info): Call font_close_object only when enable_font_backend
3862 is set.
3863
3864 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
3865 [HAVE_NTGUI]: Include w32term.h.
3866 [MAC_OS]: Include macterm.ch.
3867 (font_otf_ValueRecord): Use make_number.
3868 (font_finish_cache): Fix handling of reference count.
3869 (font_clear_cache): Update num_fonts.
3870 (font_open_entity): Update smallest_char_width and
3871 smallest_font_height of the frame.
3872 (font_close_object): Update num_fonts.
3873 (Fclear_font_cache): Fix finding the target cache data.
3874
3875 2008-02-16 Glenn Morris <rgm@gnu.org>
3876
3877 * fontset.c (Finternal_char_font): Fix compilation warning.
3878
3879 2008-02-16 Eli Zaretskii <eliz@gnu.org>
3880
3881 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
3882 instead of char arrays. Enlarge the size of array passed to
3883 get_token_information.
3884
3885 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
3886 warnings.
3887
3888 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
3889
3890 * .gdbinit: Don't set `args', it breaks gdb --args.
3891
3892 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
3893
3894 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
3895 within a narrowed buffer.
3896
3897 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
3898
3899 * coding.c (decode_coding_object, encode_coding_object):
3900 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
3901
3902 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3903
3904 * coding.c (coding_set_destination): Use BEG_BYTE rather than
3905 hardcoding 1.
3906 (detect_coding_system):
3907 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
3908 (string_char_to_byte, string_byte_to_char, insert_from_gap):
3909 * insdel.c (insert_from_gap):
3910 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
3911 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
3912 (string_to_multibyte):
3913 * character.c (chars_in_text, multibyte_chars_in_text):
3914 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
3915
3916 * character.h (FETCH_STRING_CHAR_ADVANCE)
3917 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
3918 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
3919 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
3920
3921 * casefiddle.c (casify_region): Only call after-change and composition
3922 functions on the part of the region that was changed.
3923
3924 * keyboard.c (read_avail_input):
3925 * frame.c (Fdelete_frame): Call Fdelete_terminal.
3926
3927 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3928
3929 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
3930 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
3931
3932 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
3933
3934 * w32menu.c (push_submenu_start, push_submenu_end)
3935 (push_left_right_boundary, push_menu_pane, push_menu_item):
3936 * keyboard.c (read_key_sequence): Don't pass args with side effects
3937 to AREF, it fails when compiling with -DENABLE_CHECKING.
3938
3939 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
3940
3941 * Makefile.in (${lispsource}international/charprop.el):
3942 Delete this target.
3943
3944 * search.c (boyer_moore): Fix incorrect synching of the trunk and
3945 emacs-unicode-2.
3946
3947 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3948
3949 * terminal.c (Fdelete_terminal): Clean up the `force' path.
3950
3951 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3952
3953 * frame.c (Qnoelisp): New symbol.
3954 (syms_of_frame): Initialize it.
3955 (Fdelete_frame): Use it to distinguish a mere `force' passed from
3956 someharmles Elisp code, from a strong `force' from x_connection_closed.
3957 * frame.h (Qnoelisp): Declare.
3958 * xterm.c (x_connection_closed): Pass `noelisp'.
3959
3960 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
3961 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
3962 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
3963 rather than `int' for the type of `type'.
3964
3965 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
3966
3967 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
3968
3969 * Makefile.in (GNUC): Remove support for gcc-1.x.
3970
3971 2008-02-10 Richard Stallman <rms@gnu.org>
3972
3973 * lisp.h (ASET): Use AREF, not ASLOT.
3974
3975 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3976
3977 * lisp.h (ASET): Check bounds.
3978
3979 2008-02-10 Glenn Morris <rgm@gnu.org>
3980
3981 * buffer.c (mode-name): Doc fix.
3982
3983 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3984
3985 * Makefile.in:
3986 * emacs.c:
3987 * gmalloc.c:
3988 * keyboard.c:
3989 * lisp.h:
3990 * m/ibm370aix.h:
3991 * process.c:
3992 * regex.c:
3993 * s/hpux.h:
3994 * sysdep.c:
3995 * sysselect.h:
3996 * systty.h:
3997 * unexec.c:
3998 * w32term.c:
3999 * xsmfns.c:
4000 * xterm.c: Remove code that deals with obsolete variables.
4001
4002 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
4003
4004 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
4005 nothing else needs it anymore.
4006
4007 2008-02-09 Eli Zaretskii <eliz@gnu.org>
4008
4009 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
4010 instead of unibyte_char_to_multibyte.
4011
4012 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4013
4014 * s/gnu-linux.h: Remove commented out code.
4015
4016 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
4017
4018 * Makefile.in: Update what RMS says about using autoconf.
4019 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
4020 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
4021 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
4022 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
4023
4024 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4025
4026 * keymap.c (Fkey_description): Move side effect outside of macro call.
4027
4028 * xfaces.c (Finternal_make_lisp_face):
4029 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
4030
4031 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
4032 (syms_of_fontset): Use ASET.
4033
4034 * fns.c (concat): Move side effect outside of macro call.
4035 (hash_clear): Use ASET.
4036
4037 2008-02-08 Richard Stallman <rms@gnu.org>
4038
4039 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
4040 If FORCE, and frame has a surrogate minibuffer for another frame,
4041 delete the other frame first.
4042
4043 2008-02-07 Timo Savola <timo.savola@iki.fi>
4044
4045 * xterm.c (x_detect_focus_change): Handle embed client message.
4046 (handle_one_xevent): Ditto.
4047 (handle_one_xevent): If embedded and we get a button press/release,
4048 request focus.
4049 (xembed_set_info, xembed_send_message): New functions.
4050 (x_make_frame_visible): Call xembed_set_info if embedded.
4051 (x_make_frame_invisible): Call xembed_set_info if embedded.
4052 (x_term_init): Initialize Xatom_XEMBED.
4053 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
4054 (x_iconify_frame): Ditto.
4055
4056 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
4057 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
4058 (enum xembed_modifier, enum xembed_accelerator): New.
4059 (xembed_set_info, xembed_send_message): Declare.
4060 (FRAME_X_EMBEDDED_P): New.
4061
4062 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
4063 gtk_plug_new.
4064
4065 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
4066 window ID of a frame.
4067 (x_window): Reparent frame if embedded.
4068 (Fx_create_frame): Don't set border width if embedded.
4069
4070 * emacs.c (USAGE3): Add --parent-id.
4071 (standard_args): Ditto.
4072
4073 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
4074
4075 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
4076
4077 2008-02-07 Jim Meyering <meyering@redhat.com>
4078
4079 Use "do...while (0)", not "if (1)...else" in macro definitions.
4080 The latter provokes a warning from gcc about the empty else, when
4081 followed by ";". Also, without that trailing semicolon, it would
4082 silently swallow up any following statement.
4083 * syntax.h (SETUP_SYNTAX_TABLE)
4084 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
4085 * buffer.h (DECODE_POSITION): Likewise.
4086 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
4087 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
4088 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
4089 (FETCH_CHAR_ADVANCE): Likewise.
4090 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
4091
4092 2008-02-07 Jim Meyering <meyering@redhat.com>
4093
4094 * lread.c [lint]: Don't include <sys/inode.h>.
4095
4096 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
4097
4098 * xselect.c (x_handle_dnd_message):
4099 * xmenu.c (digest_single_submenu, xmenu_show):
4100 * xdisp.c (with_echo_area_buffer_unwind_data)
4101 (format_mode_line_unwind_data, unwind_format_mode_line)
4102 (display_menu_bar):
4103 * eval.c (Ffetch_bytecode):
4104 * doc.c (store_function_docstring):
4105 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
4106 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
4107 * buffer.c (add_overlay_mod_hooklist): Use ASET.
4108
4109 2008-02-07 Kenichi Handa <handa@m17n.org>
4110
4111 * ftxfont.c (ftxfont_open): Don't set
4112 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
4113
4114 * ftfont.c (ftfont_open): Fix previous change.
4115
4116 2008-02-06 Jason Rumney <jasonr@gnu.org>
4117
4118 * w32font.c (w32font_text_extents): Fill in lbearing metric.
4119 Use cached metrics for ASCII characters.
4120 (w32font_open_internal): Don't set font's owning_frame.
4121 Cache metrics for ASCII characters.
4122
4123 * w32font.h (struct w32font_info): Add ascii_metrics.
4124 Remove owning_frame.
4125
4126 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
4127
4128 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
4129 to negative value.
4130
4131 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
4132
4133 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
4134
4135 * charset.c (syms_of_charset): Set QCtest and Qeq.
4136
4137 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
4138
4139 * process.c (Fstart_process):
4140 * callproc.c (Fcall_process): Handle the case where
4141 Funhandled_file_name_directory returns nil.
4142
4143 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
4144 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
4145 * font.c (check_gstring): Use them and AREF to access the vector before
4146 we know it's really a gstring.
4147 (Ffont_shape_text): Fix typo.
4148 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
4149
4150 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
4151 Declare.
4152
4153 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
4154
4155 2008-02-05 Jason Rumney <jasonr@gnu.org>
4156
4157 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
4158 Set smallest_font_height and smallest_char_width in display info.
4159
4160 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
4161
4162 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
4163
4164 2008-02-05 Miles Bader <miles@gnu.org>
4165
4166 * xfaces.c (get_lface_attributes, merge_named_face)
4167 (lookup_named_face, lookup_derived_face, realize_named_face):
4168 Revert 2008-02-01 change by cyd@stupidchicken.com.
4169
4170 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
4171
4172 * fontset.c (Ffontset_info): Handle the case of inhibitting the
4173 fallback fonts.
4174 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
4175
4176 2008-02-04 Jason Rumney <jasonr@gnu.org>
4177
4178 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
4179 set full_name.
4180 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
4181
4182 2008-02-03 Jason Rumney <jasonr@gnu.org>
4183
4184 * makefile.w32-in (OBJ1): Include font.o here.
4185 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
4186
4187 2008-02-02 Jason Rumney <jasonr@gnu.org>
4188
4189 * makefile.w32-in (temacs): Bump EMHEAP to 21.
4190
4191 2008-02-01 Jason Rumney <jasonr@gnu.org>
4192
4193 * s/cygwin.h: Define VIRT_ADDR_VARIES.
4194
4195 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
4196
4197 2008-02-01 Andreas Schwab <schwab@suse.de>
4198
4199 * Makefile.in (shortlisp, lisp): Update for rename of
4200 ../lisp/language/myanmar.el.
4201
4202 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
4203
4204 * xfaces.c (get_lface_attributes): Delete function.
4205 (merge_named_face, lookup_named_face, lookup_derived_face)
4206 (realize_named_face): Call lface_from_face_name directly, and use
4207 the fact that merge_face_vectors does not alter its FROM argument.
4208
4209 2008-02-01 Jason Rumney <jasonr@gnu.org>
4210
4211 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
4212 input in the default locale. Handle non-Unicode multibyte input.
4213
4214 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4215
4216 * fontset.c (reorder_font_vector): Exclude nil elements from the
4217 font group. Don't try multiple fonts.
4218 (fontset_font): Adjust for the above change.
4219 (Finternal_char_font): Return nil if the found font doesn't
4220 contain the character ch.
4221
4222 * Makefile.in (lisp, shortlisp): Add cham.el.
4223
4224 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4225
4226 * font.h (FONTP): Make it return 1 also for a font-object.
4227
4228 * .gdbinit (xfontset): New function.
4229
4230 * font.c (font_find_for_lface): Check if the character C is
4231 supported or not only for the first font.
4232
4233 * fontset.c (reorder_font_vector): Fix typo.
4234 (fontset_find_font): Don't add a font-spec specifying a script.
4235 Use 0 (not Qt) for the indication of empty font-group. Change the
4236 format of RFONT-DEF. Return Qt if no font in the font-group
4237 support the character.
4238 (fontset_font): Adjust for the above change. If no font was
4239 found the character, remember that.
4240 (face_for_char): Adjust for the change of RFONT-DEF.
4241 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
4242 no font for the target.
4243 (Finternal_char_font): Adjust for the change of RFONT-DEF.
4244
4245 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4246
4247 * font.c (font_load_for_face): Handle the case that the font in
4248 face->lface is a string.
4249
4250 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4251
4252 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
4253
4254 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4255
4256 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
4257 Fix previous change. If the frame is not on a window system,
4258 signal an error.
4259
4260 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4261
4262 * coding.c (decode_coding_object, encode_coding_object): Adjust
4263 marker positions after conversion.
4264
4265 * lisp.h (struct Lisp_Marker): New member need_adjustment.
4266
4267 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4268
4269 * font.c (font_find_for_lface): Fix the handling of the return
4270 value of font_has_char.
4271 (Ffont_shape_text): Fix previous change.
4272
4273 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
4274 (fontset_ref_and_range): Delete it.
4275 (fontset_find_font): Call char_table_ref_and_range instead of
4276 FONTSET_REF_AND_RANGE.
4277 (make_fontset): Don't setup font groups of Latin here.
4278 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
4279 (new_fontset_from_font): Make the specified font the default for
4280 all Latin characters.
4281
4282 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4283
4284 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
4285 is on a window system before accessing the fontset of the frame.
4286
4287 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4288
4289 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
4290
4291 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
4292 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
4293
4294 * font.c (Ffont_shape_text): If the font driver doesn't have a
4295 shaper function, make zero-width glyphs to have at least one-pixel
4296 width. Fix setting of `to' field of glyphs.
4297
4298 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4299
4300 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
4301 glyphs.
4302
4303 * font.h (struct font_driver): Improve docstring of member `shape'.
4304
4305 2008-02-01 Kenichi Handa <handa@m17n.org>
4306
4307 * composite.c (syms_of_composite): Fix docstring of
4308 auto-composition-function.
4309
4310 * font.h (LGLYPH_SIZE): New macro.
4311
4312 * font.c (Ffont_fill_gstring): Stop filling when a character not
4313 supported by the font is found.
4314 (Ffont_shape_text): When a shape callback function returns nil,
4315 try at most two more times with larger gstring.
4316 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
4317
4318 * xdisp.c (handle_auto_composed_prop): Change the argument to
4319 auto-composition-function.
4320
4321 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
4322 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
4323 Lispy glyph and store it in the lgstring.
4324
4325 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
4326
4327 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
4328
4329 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4330
4331 * font.c (Ffont_shape_text): Avoid unnecessary composition.
4332
4333 * fontset.c (Vfont_encoding_charset_alist): New variable.
4334 (syms_of_fontset): DEFVAR it.
4335 (reorder_font_vector, fontset_find_font): Optimize for the case of
4336 no need of reordering.
4337 (face_for_char): Map the charset property by
4338 Vfont_encoding_charset_alist.
4339
4340 2008-02-01 Jason Rumney <jasonr@gnu.org>
4341
4342 * w32font.c (logfonts_match): Don't check adstyle here.
4343 (font_matches_spec): Check here against physical font instead.
4344 (add_font_entity_to_list): Avoid some substitutions.
4345
4346 * font.c (font_parse_fcname): Default weight and slant to normal.
4347 (font_score): Prefer normal fonts if weight or slant unspecified.
4348 (font_score) [WINDOWSNT]: Scale weight difference down to closer
4349 match freetype scores.
4350
4351 2008-02-01 Jason Rumney <jasonr@gnu.org>
4352
4353 * w32font.c (w32font_text_extents): Don't use the frame stored in the
4354 font, as it may have been deleted.
4355 (w32_enumfont_pattern_entity): Map generic family to adstyle using
4356 most common hyphenless variation.
4357 (logfonts_match): Check generic family.
4358 (font_matches_spec): Don't check generic family here.
4359 (fill_in_logfont): Set generic family based on adstyle.
4360
4361 * w32font.h (w32font_get_cache): Update declaration.
4362
4363 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4364
4365 * ftfont.c (ftfont_get_cache): Adjust the argument type.
4366
4367 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
4368 If none of the new drivers are available, call font_update_drivers
4369 with the old drivers.
4370
4371 * w32font.c (w32font_get_cache): Adjust the argument type.
4372
4373 * xfont.c (xfont_get_cache): Adjust the argument type.
4374
4375 * font.h (struct font_driver): Change argument type of get_cache.
4376
4377 * xftfont.c (xftfont_start_for_frame): Delete prototype.
4378
4379 * font.c (Ffont_get): Fix arguments to Fassoc.
4380 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
4381 (font_clear_cache): New function.
4382 (font_list_entities, font_matching_entity): Use font_get_cache.
4383 (font_update_drivers): Call font_clear_cache when finishing a driver.
4384
4385 * fontset.c (fontset_find_font): Fix previous change.
4386
4387 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4388
4389 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
4390 dpyinfo->font_table.
4391 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
4392 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
4393
4394 * font.c (font_at): Handle the case that the arg C is negative.
4395 Handle the unibyte case.
4396 (Ffont_at): Call font_at with the arg C -1.
4397
4398 * xdisp.c (handle_auto_composed_prop): Don't get a character at
4399 the position here, and call font_at with the arg C -1.
4400 Don't check the range of the existing composition at the point.
4401
4402 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4403
4404 * fontset.c (fontset_add): New args charset_id and family.
4405 Change caller.
4406 (load_font_get_repertory, fontset_find_font): Assume that
4407 font_spec is always a font-spec object.
4408 (Fset_fontset_font): Always store a font-spec object in a fontset.
4409
4410 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
4411 instead of get_property_and_range.
4412
4413 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4414
4415 * xftfont.c (struct xftfont_info): Delete the member ft_face.
4416 (xftfont_open): Don't keep locking face.
4417 (xftfont_close): Don't unlock face.
4418 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
4419
4420 * fontset.c (fontset_find_font): Don't prefer a font of
4421 supplementary charset.
4422
4423 2008-02-01 Kenichi Handa <handa@m17n.org>
4424
4425 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
4426 script, langsys_tag to langsys, new member script.
4427 (OTF_TAG_STR): Terminate by '\0'.
4428 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
4429 listing to the script specified in that property. Fix arg to
4430 OTF_check_features.
4431
4432 2008-02-01 Jason Rumney <jasonr@gnu.org>
4433
4434 * w32font.h: New file.
4435
4436 * w32font.c: Include it.
4437 (struct w32font_info): Add owning_frame field. Move to w32font.h.
4438 (w32font_open): Set owning_frame.
4439 (w32font_text_extents): Use owning_frame.
4440 (struct font_callback_data): Add opentype_only field.
4441 (add_font_entity_to_list): Use it to filter fonts.
4442 Don't check against full name.
4443 (w32font_list_internal): New function.
4444 (w32font_list): Use it.
4445 (w32font_match_internal): New function.
4446 (w32font_match): Use it.
4447 (w32font_open_internal): New function.
4448 (w32font_open): Use it.
4449 (w32font_get_cache, w32font_close, w32font_has_char)
4450 (w32font_encode_char, w32font_text_extents, w32font_draw):
4451 Make non-static.
4452
4453 * makefile.w32-in (w32font.o): Depend on w32font.h.
4454
4455 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4456
4457 * charset.c (Fdefine_charset_internal): Record a supplementary
4458 charset at the tail of Vcharset_order_list.
4459
4460 * font.c (Ffont_shape_text): Fix the return value.
4461
4462 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
4463
4464 * xdisp.c (handle_auto_composed_prop): Fix previous change.
4465
4466 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4467
4468 * ftfont.c (struct OpenTypeSpec): New struct.
4469 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
4470 (ftfont_get_open_type_spec): New function.
4471 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
4472
4473 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
4474
4475 2008-02-01 Jason Rumney <jasonr@gnu.org>
4476
4477 * w32font.c (add_font_entity_to_list): Compare only the beginning
4478 of full name.
4479
4480 2008-02-01 Kenichi Handa <handa@m17n.org>
4481
4482 * xdisp.c (handle_auto_composed_prop): Simplify the code.
4483 Never return HANDLED_RECOMPUTE_PROPS.
4484
4485 2008-02-01 Kenichi Handa <handa@m17n.org>
4486
4487 * font.c (font_gstring_produce): Delete it.
4488
4489 * composite.h (COMPOSITION_METHOD):
4490 Handle COMPOSITION_WITH_GLYPH_STRING.
4491
4492 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4493
4494 * xfont.c (Qx): Delete.
4495 (syms_of_xfont): Don't initialize Qx.
4496
4497 * composite.h (enum composition_method):
4498 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
4499
4500 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4501
4502 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
4503 (choose_face_font): Accept new form of font-spec.
4504
4505 * frame.h (font_driver_list): Declare it unconditionally.
4506 (struct frame): Define members font_driver_list and font_data_list
4507 unconditionally.
4508
4509 * fontset.c: Include "font.h" unconditionally.
4510 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
4511 (Fset_fontset_font): Accept a font-spec object.
4512
4513 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
4514 PIXEL_SIZE part a wild card.
4515
4516 * dispextern.h (struct glyph_string): Define members clip and
4517 num_clips unconditionally.
4518 (struct face): Define members font_info and extra unconditionally.
4519
4520 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
4521 ftfont_info only when HAVE_LIBOTF is defined.
4522
4523 2008-02-01 Andreas Schwab <schwab@suse.de>
4524
4525 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
4526 and end.
4527
4528 2008-02-01 Jason Rumney <jasonr@gnu.org>
4529
4530 * w32font.c (w32font_driver): Add new fields.
4531
4532 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4533
4534 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
4535 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
4536 (LIBES): Add @M17N_FLT_CFLAGS@.
4537
4538 * composite.c (compose_text): Don't treat the new style
4539 composition specially.
4540
4541 * emacs.c (main): Call syms_of_font unconditionally.
4542
4543 * font.h (FONT_ENTITY_NOT_LOADABLE)
4544 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
4545 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
4546 (struct font_driver): New member shape.
4547 (font_registry_charsets): Extern it.
4548 (font_find_for_lface, font_prepare_composition): Adjust prototype.
4549 (font_otf_capability, font_drive_otf): Delete their externs.
4550
4551 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4552 (font_charset_alist, font_registry_charsets): Move from xfont.c
4553 and rename.
4554 (font_prop_validate_otf): New function.
4555 (font_property_table): Register it for QCotf.
4556 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
4557 (font_drive_otf): Delete.
4558 (font_prepare_composition): New arg F. Adjust for the change of
4559 lispy gstring.
4560 (font_find_for_lface): New arg C.
4561 (font_load_for_face): Adjust for the change of font_find_for_lface.
4562 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
4563 lispy gstring.
4564 (Ffont_shape_text): New function.
4565 (Fopen_font): If the font size is not given, use 12-pixel.
4566 (Ffont_at): New arg STRING.
4567 (syms_of_font): Initalize font_charset_alist.
4568 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
4569 conditionally.
4570
4571 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
4572 fonts of the same font-spec. Change the format of RFONT-DEF.
4573 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
4574 Adjust for the change of RFONT-DEF.
4575 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
4576
4577 * ftfont.h: New file.
4578
4579 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
4580 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4581 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4582 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
4583 font_otf_capability and font_drive_otf, set ftfont_shape.
4584 (ftfont_list): Adjust for the change of :otf property value.
4585 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
4586 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
4587 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
4588 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
4589 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
4590 (otf_gstring, gstring, m17n_flt_initialized): New variables.
4591
4592 * w32term.c (x_draw_composite_glyph_string_foreground):
4593 Adjust for the change of lispy gstring.
4594
4595 * xdisp.c (handle_composition_prop): Adjust for the change of
4596 lispy gstring. Call a function for auto-composition with the
4597 third arg it->window.
4598 (fill_composite_glyph_string): Adjust for the change of lispy string.
4599 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
4600
4601 * xfaces.c (set_font_frame_param): Adjust for the change of
4602 font_find_for_lface.
4603
4604 * xfont.c (x_font_charset_alist): Move to font.c and rename.
4605 (xfont_registry_charsets): Likewise. Change caller.
4606 (syms_of_xfont): Don't handle x_font_charset_alist.
4607
4608 * xftfont.c: Include "ftfont.h".
4609 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4610 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4611 (xftfont_close) [HAVE_LIBOTF]: Close otf.
4612 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
4613 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
4614 Set xftfont_driver.shape to xftfont_shape.
4615
4616 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
4617 the change of lispy gstring.
4618
4619 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4620
4621 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
4622
4623 2008-02-01 Jason Rumney <jasonr@gnu.org>
4624
4625 * w32font.c (w32font_draw): Fill background manually.
4626
4627 2008-02-01 Jason Rumney <jasonr@gnu.org>
4628
4629 * font.c (Qfontp): Remove unused symbol.
4630 (QCantialias): New symbol.
4631 (syms_of_font): Define it.
4632 (font_property_table): Set a validator for QCantialias.
4633
4634 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
4635 Define if not already.
4636 (QCfamily): Share with xfaces.c.
4637 (Qstandard, Qsubpixel, Qnatural): New symbols.
4638 (syms_of_w32font): Define them. Don't define QCfamily here.
4639 (w32_antialias_type, lispy_antialias_type): New functions.
4640 (w32_enumfont_pattern_entity): New arg requested_font.
4641 Set antialias parameter if non-default was requested.
4642 (fill_in_logfont): Fill in lfQuality if :antialias specified.
4643
4644 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4645
4646 * lread.c (read1): Undo the previous change.
4647
4648 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
4649
4650 * frame.c (Fdelete_frame): Call font_update_drivers only when
4651 USE_FONT_BACKEND is defined.
4652
4653 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4654
4655 * font.h (struct font_bitmap): New member bits_per_pixel.
4656 (struct font_driver): New members start_for_frame and end_for_frame.
4657 (struct font_data_list): New struct.
4658 (font_put_frame_data, font_get_frame_data): Extern them.
4659
4660 * frame.h (struct frame): New member font_data_list.
4661
4662 * font.c (font_update_drivers): Call driver->start_for_frame and
4663 driver->end_for_frame at proper timings.
4664 (font_put_frame_data, font_get_frame_data): New functions.
4665 (Ffont_spec): Add usage in the docstring.
4666
4667 * frame.c (make_frame): Initialize f->font_data_list to NULL.
4668 (Fdelete_frame): Call font_update_drivers.
4669
4670 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4671 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
4672 (xftfont_get_xft_draw): New function.
4673 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
4674 (xftfont_end_for_frame): New function.
4675 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
4676
4677 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
4678 Change argument. Cache GCs in the per-frame data.
4679 (struct ftxfont_frame_data): New struct.
4680 (ftxfont_draw_bitmap): New arg gc_fore and flush.
4681 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
4682 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
4683 (ftxfont_end_for_frame): New function.
4684 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
4685
4686 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
4687
4688 2008-02-01 Kenichi Handa <handa@m17n.org>
4689
4690 * xselect.c (Vselection_coding_system)
4691 (Vnext_selection_coding_system): Delete them.
4692 (syms_of_xselect): Don't declare selection-coding-system and
4693 next-selection-coding-system. They are declared in select.el.
4694
4695 2008-02-01 Jason Rumney <jasonr@gnu.org>
4696
4697 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
4698
4699 * w32fns.c: Include imm.h.
4700 (get_composition_string_fn, get_ime_context_fn): New optional
4701 system functions.
4702 (globals_of_w32fns): Load them from imm32.dll.
4703 (ignore_ime_char): New flag.
4704 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
4705 WM_IME_ENDCOMPOSITION messages.
4706
4707 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4708 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4709
4710 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4711
4712 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4713 (READCHAR_REPORT_MULTIBYTE): New macro.
4714 (readchar): New 2nd arg MULTIBYTE.
4715 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4716 Make symbol's name multibyte according to the multibyteness of the
4717 source.
4718
4719 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4720
4721 * xfaces.c (face_for_overlay_string): Call lookup_face with
4722 correct arguments (fix of synching with the trunk).
4723
4724 2008-02-01 Kenichi Handa <handa@m17n.org>
4725
4726 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4727 (font_prop_validate_non_neg, font_prop_validate_spacing):
4728 Delete argument prop_index.
4729 (font_property_table): Change arguments to validater. Change Callers.
4730 (font_lispy_object): Delete.
4731 (font_at): Use font_find_object instead fo font_lispy_object.
4732
4733 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4734
4735 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
4736 and file names.
4737
4738 2008-02-01 Jason Rumney <jasonr@gnu.org>
4739
4740 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
4741 (font_matches_spec): Remove debug output.
4742 (add_font_entity_to_list): Avoid using substituted fonts.
4743
4744 2008-02-01 Jason Rumney <jasonr@gnu.org>
4745
4746 * doc.c (Fsnarf_documentation):
4747 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
4748
4749 2008-02-01 Miles Bader <miles@gnu.org>
4750
4751 * dispextern.h (struct glyph_row): Only define "clip" field if
4752 HAVE_WINDOW_SYSTEM is defined.
4753
4754 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
4755
4756 Fix up multi-tty merge.
4757
4758 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
4759 and indentation.
4760
4761 * xfaces.c (free_realized_face, clear_face_gcs):
4762 Include font_done_for_face in the input_blocked section, just in case.
4763
4764 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
4765 (get_char_face_and_encoding): Undo last change and remove the *other*
4766 duplicate definition (i.e. keep the one that's better scoped and that
4767 includes code for the font-backend).
4768
4769 * terminal.c (create_terminal): Default keyboard_coding to
4770 `no-conversion' and terminal_coding to `undecided'.
4771
4772 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
4773
4774 * fontset.c (free_realized_fontsets): Check that the table entry does
4775 contain a fontset before trying to compare it to `base'.
4776
4777 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
4778 syms_of_charset, and syms_of_coding earlier because init_window_once
4779 now needs Vcoding_system_hash_table to be setup.
4780
4781 * coding.h (default_buffer_file_coding): Remove.
4782
4783 * coding.c (default_buffer_file_coding): Remove.
4784 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
4785 than ->symbol, and use the terminal-local coding system.
4786 (syms_of_coding): Don't setup the coding-systems that are not
4787 terminal-local.
4788 (Fdefine_coding_system_internal): Use XCAR/XCDR.
4789
4790 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
4791 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
4792
4793 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
4794 in chartab.c and were re-added here by mistake.
4795 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
4796
4797 * doc.c (Fsnarf_documentation):
4798 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
4799 src to etc.
4800
4801 * ChangeLog.10: Add mistakenly removed entry.
4802
4803 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
4804
4805 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
4806
4807 2008-02-01 Miles Bader <miles@gnu.org>
4808
4809 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
4810 Add extra args to FACE_FOR_CHAR.
4811
4812 2008-02-01 Kenichi Handa <handa@m17n.org>
4813
4814 * keymap.c (where_is_internal_1): If key is a cons, store the copy
4815 in sequence.
4816
4817 * chartab.c (map_sub_char_table, map_char_table): If the range
4818 contains just one character, call the function with that character
4819 even if the depth is not 3.
4820
4821 2008-02-01 Jason Rumney <jasonr@gnu.org>
4822
4823 * w32font.c (w32font_text_extents): Calculate metrics for the
4824 whole string.
4825
4826 2008-02-01 Jason Rumney <jasonr@gnu.org>
4827
4828 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
4829
4830 2008-02-01 Jason Rumney <jasonr@gnu.org>
4831
4832 * w32term.c (x_set_glyph_string_clipping): Use
4833 get_glyph_string_clip_rects.
4834 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4835 Adjust for the change of struct glyph_string.
4836
4837 * w32font.c (w32font_draw): Do clipping here.
4838
4839 2008-02-01 Kenichi Handa <handa@m17n.org>
4840
4841 * xftfont.c (xftfont_draw): Adjust for the change of struct
4842 glyph_string.
4843
4844 * xterm.c (x_set_glyph_string_clipping): Use
4845 get_glyph_string_clip_rects.
4846 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4847 Adjust for the change of struct glyph_string.
4848
4849 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
4850 the resulting clip(s}.
4851 (expose_overlaps): Add arg r. Change callers. Set it to
4852 row->clip temporarily.
4853 (expose_window): Redraw rows overlapping the exposed area.
4854
4855 * dispextern.h (struct glyph_row): New member clip.
4856 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
4857 clip_height, new member clip, and num_clips.
4858
4859 2008-02-01 Kenichi Handa <handa@m17n.org>
4860
4861 * data.c (Fchar_or_string_p): Fix docstring.
4862
4863 2008-02-01 Kenichi Handa <handa@m17n.org>
4864
4865 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
4866 create a temporal XftDraw object.
4867
4868 2008-02-01 Kenichi Handa <handa@m17n.org>
4869
4870 * font.c (Ffontp): Fix docstring.
4871
4872 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
4873 strong evidence of ISO-2022.
4874
4875 2008-02-01 Kenichi Handa <handa@m17n.org>
4876
4877 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
4878 SYNTAX_ENTRY_FOLLOW_PARENT.
4879
4880 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
4881
4882 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
4883 its type.
4884 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
4885 Update to the new type of weak_hash_tables and next_weak.
4886
4887 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
4888 a plain C pointer to Lisp_Hash_Table.
4889
4890 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
4891 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
4892 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
4893 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
4894 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
4895 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
4896 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
4897 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
4898 (GC_EQ): Remove since they've been identical to their non-GC_
4899 alter-egos ever since the markbit was eradicated.
4900
4901 * alloc.c:
4902 * buffer.c:
4903 * buffer.h:
4904 * data.c:
4905 * fileio.c:
4906 * filelock.c:
4907 * fns.c:
4908 * frame.h:
4909 * lisp.h:
4910 * macterm.c:
4911 * print.c:
4912 * process.c:
4913 * w32fns.c:
4914 * w32menu.c:
4915 * w32term.c:
4916 * xfns.c:
4917 * xmenu.c:
4918 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
4919
4920 2008-02-01 Kenichi Handa <handa@m17n.org>
4921
4922 * chartab.c (map_sub_char_table): Make it work for the top-level
4923 char-table. Fix handling of parent char-table.
4924 (map_char_table): Adjust for the above change.
4925
4926 2008-02-01 Jason Rumney <jasonr@gnu.org>
4927
4928 * w32font.c (Qgdi): Rename from Qw32.
4929
4930 2008-02-01 Jason Rumney <jasonr@gnu.org>
4931
4932 * w32bdf.c (get_quoted_string): Make function static.
4933
4934 2008-02-01 Kenichi Handa <handa@m17n.org>
4935
4936 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
4937 bigger ascent and descent than those of the font, use them as
4938 font's ascent and descent.
4939
4940 2008-02-01 Kenichi Handa <handa@m17n.org>
4941
4942 * Makefile.in (${lispsource}international/charprop.el): Move this
4943 target within "#ifdef HAVE_UNIDATA" and "#endif".
4944
4945 2008-02-01 Kenichi Handa <handa@m17n.org>
4946
4947 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
4948 (shortlisp): Add ../lisp/language/tai-viet.el.
4949
4950 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
4951
4952 * Makefile.in (${lispsource}international/charprop.el): Depend on
4953 temacs${EXEEXT}.
4954
4955 2008-02-01 Jason Rumney <jasonr@gnu.org>
4956
4957 * w32font.c (w32font_close): Delete the GDI font object.
4958
4959 * w32menu.c: Include character.h.
4960
4961 * w32proc.c: Likewise.
4962
4963 * w32select.c: Likewise.
4964
4965 * makefile.w32-in (w32proc.o): Depend on character.h.
4966
4967 2008-02-01 Jason Rumney <jasonr@gnu.org>
4968
4969 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
4970
4971 * w32menu.c (syms_of_w32menu): Likewise.
4972
4973 * w32proc.c (syms_of_ntproc): Likewise.
4974
4975 * w32select.c (syms_of_w32select): Likewise.
4976
4977 * w32term.c (syms_of_w32term): Likewise.
4978
4979 2008-02-01 Jason Rumney <jasonr@gnu.org>
4980
4981 * w32font.c (w32font_draw): Delete brush after using it.
4982
4983 2008-02-01 Jason Rumney <jasonr@gnu.org>
4984
4985 * w32font.c (w32font_open): Don't set font_idx.
4986 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
4987 to font settings.
4988 (w32font_draw): Fill background explicitly.
4989
4990 2008-02-01 Jason Rumney <jasonr@gnu.org>
4991
4992 * w32term.c (w32_initialize): Don't call w32font_initialize.
4993
4994 * w32font.c (w32font_info): Remove subranges.
4995 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
4996 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
4997 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
4998 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
4999 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
5000 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
5001 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
5002 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
5003 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
5004 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
5005 New symbols.
5006 (font_callback_data): New struct.
5007 (w32font_list, w32font_match): Use it.
5008 (w32font_open): Don't populate subranges.
5009 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
5010 (w32font_encode_char): Always return unicode code-point as-is.
5011 (w32font_text_extents): Supply a tranformation matrix to
5012 GetGlyphOutline. Never look up by glyph index. Avoid looping
5013 twice. Use unicode version of GetTexExtentPoint32 instead of
5014 glyph index version.
5015 (set_fonts_frame): Remove.
5016 (w32_enumfont_pattern_entity): Add frame parameter, use it to
5017 set frame parameter. Use backward compatible fake foundries.
5018 Save generic family in extra slot under QCfamily. Make width slot
5019 constant. Save QCspacing value. Save list of scripts instead of
5020 binary subranges.
5021 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
5022 (add_font_entity_to_list): Use font_callback_data struct. Filter
5023 unwanted fonts.
5024 (add_one_font_entity_to_list): Use font_callback_data struct.
5025 (w32_registry): Default to iso10646_1.
5026 (fill_in_logfont): Use dpi from extra slot. Don't bother with
5027 string font registries. Don't fill in font name if it is a generic
5028 family name, fill family instead. Use spacing, family and script
5029 extra info to fill pitch, family and charset fields.
5030 (list_all_matching_fonts): Use font_callback_data struct.
5031 (unicode_range_for_char): Remove.
5032 (font_supported_scripts): New function.
5033 (w32font_initialize): Remove.
5034 (syms_of_w32font): Update which symbols are defined.
5035
5036 2008-02-01 Jason Rumney <jasonr@gnu.org>
5037
5038 * font.c (font_pixel_size): Reverse assq_no_quit args.
5039
5040 * w32term.h (FONT_WIDTH): Report max width, not average.
5041 (FONT_MAX_WIDTH): Remove.
5042 (FONT_AVG_WIDTH): New macro.
5043
5044 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
5045 redefinition of FONT_WIDTH.
5046
5047 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
5048 (w32_cache_char_metrics): Use FONT_WIDTH.
5049
5050 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
5051
5052 2008-02-01 Jason Rumney <jasonr@gnu.org>
5053
5054 * w32font.c (w32font_open): Make lfHeight negative.
5055
5056 * w32fns.c (x_default_font_parameter): Use new style font name.
5057 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
5058
5059 2008-02-01 Jason Rumney <jasonr@gnu.org>
5060
5061 * w32font.c (QCsubranges): New symbol.
5062 (w32font_open, w32font_has_char): Get subranges from subproperty
5063 of extra.
5064 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
5065 (syms_of_w32font): Define :subranges symbol.
5066
5067 * font.c (font_put_extra): Expose externally.
5068
5069 * font.h (font_put_extra): Move declaration from font.c.
5070
5071 * font.c (Ffont_get): Use font driver to determine otf capability.
5072 (adjust_anchor): Check if driver defines anchor_point before using.
5073
5074 * w32font.c (w32font_open): Handle size, height and pixel_size better.
5075 (w32font_draw): Use options.
5076 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
5077 Fix detection of truetype fonts.
5078 (registry_to_w32_charset): Handle charsets other than iso8859-1
5079 expressed as lisp symbols.
5080 (w32_registry): Express charset as lisp symbol.
5081 (fill_in_logfont): Reverse pixel and point height logic.
5082 Don't set width here. Set quality to default.
5083
5084 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
5085 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
5086
5087 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5088 Remove redundant loop and allocation.
5089
5090 * makefile.w32-in (font.o, w32font.o): New objects.
5091 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
5092 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
5093
5094 * xdisp.c (fill_composite_glyph_string): Make the first arg to
5095 STORE_XCHARB a valid l-value.
5096
5097 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
5098 calculations for non-Truetype fonts.
5099 (x_draw_glyph_string): Sync with xterm.c.
5100 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5101 Remove redundant code.
5102 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
5103
5104 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
5105 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
5106
5107 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
5108 (x_to_w32_charset, w32_to_x_charset): Expose externally.
5109
5110 * w32font.c: New file for w32 font backend.
5111
5112 2008-02-01 Kenichi Handa <handa@m17n.org>
5113
5114 * term.c: Don't include "buffer.h" twice.
5115
5116 2008-02-01 Kenichi Handa <handa@m17n.org>
5117
5118 * character.c (Funibyte_string): New function.
5119 (syms_of_character): Defsubr it.
5120
5121 2008-02-01 Jason Rumney <jasonr@gnu.org>
5122
5123 * w32term.c [USE_FONT_BACKEND]:
5124 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
5125 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
5126 (x_draw_glyph_string, x_draw_glyph_string_foreground)
5127 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
5128 (x_free_frame_resources): Sync with xterm.c.
5129
5130 2008-02-01 Andreas Schwab <schwab@suse.de>
5131
5132 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
5133 char-table size.
5134
5135 2008-02-01 Kenichi Handa <handa@m17n.org>
5136
5137 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
5138
5139 2008-02-01 Kenichi Handa <handa@m17n.org>
5140
5141 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
5142 font_otf_gpos, add font_drive_otf.
5143
5144 * fontset.c (fontset_find_font): Pay attention to font size
5145 specified for a font.
5146 (reorder_font_vector): Check contents of font_def.
5147
5148 * font.c (struct otf_list): Delete it.
5149 (otf_list): Make it a lisp variable.
5150 (otf_open): Use lispy otf_list.
5151 (generate_otf_features): Rename from parse_gsub_gpos_spec.
5152 (check_otf_features): New function.
5153 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5154 New functions.
5155 (font_drive_otf): New function merging font_otf_gsub and
5156 font_otf_gpos.
5157 (font_open_for_lface): New arg spec. Change argument order.
5158 (font_load_for_face): Adjust for the change of font_open_for_lface.
5159 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
5160 Ffont_otf_gpos.
5161 (syms_of_font): Staticpro otf_list. Delete defsubr of
5162 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
5163
5164 * xfaces.c (set_font_frame_param): Adjust for the change of
5165 font_open_for_lface.
5166
5167 * font.h (font_open_for_lface): Adjust prototype.
5168 (struct font_driver): Delete members otf_gsub and otf_gpos, add
5169 member otf_drive.
5170 (font_otf_gsub, font_otf_gpos): Delete externs.
5171 (font_drive_otf): Extern it.
5172
5173 2008-02-01 Kenichi Handa <handa@m17n.org>
5174
5175 * font.c (font_at): If the window W is not on a window system,
5176 return Qnil.
5177
5178 * coding.c (produce_chars, encode_coding): Don't call
5179 insert_from_gap if no characters to produce.
5180
5181 2008-02-01 Kenichi Handa <handa@m17n.org>
5182
5183 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
5184 Fclear_face_cache.
5185
5186 * xfaces.c (face_for_font): Check also face->font==font->font.font.
5187
5188 2008-02-01 Miles Bader <miles@gnu.org>
5189
5190 * emacs.c (main): Change default value of `enable_font_backend' to 1.
5191 Parse "--disable-font-backend" option.
5192 (standard_args): Add "--disable-font-backend" option.
5193
5194 2008-02-01 Kenichi Handa <handa@m17n.org>
5195
5196 * fontset.c (fontset_find_font): New function.
5197 (fontset_font): Use fontset_find_font.
5198 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
5199 Register the specified font for all Latin characters.
5200 (new_fontset_from_font): Register the specified font for all Latin
5201 characters.
5202 (dump_fontset): For a realized fontset, include the base fontset
5203 name in the returned vector.
5204
5205 2008-02-01 Kenichi Handa <handa@m17n.org>
5206
5207 * character.h (CHAR_STRING): Cast C to unsigned on calling
5208 char_string.
5209
5210 * character.c (char_string): Type of arg C changed to unsigned.
5211 Signal an error if C is an invalid character code.
5212
5213 * editfns.c (general_insert_function, Fchar_to_string):
5214 Use CHARACTERP, not INTEGERP.
5215
5216 2008-02-01 Kenichi Handa <handa@m17n.org>
5217
5218 * character.h (MIN_MULTIBYTE_LEADING_CODE)
5219 (MAX_MULTIBYTE_LEADING_CODE): New macros.
5220
5221 * regex.c (analyse_first): Fix for multibyte characters in "case
5222 charset:" and "case categoryspec:".
5223
5224 2008-02-01 Andreas Schwab <schwab@suse.de>
5225
5226 * Makefile.in (LIBES): Move standard libraries to the end.
5227
5228 2008-02-01 Kenichi Handa <handa@m17n.org>
5229
5230 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
5231 nonzero, don't shrink the buffer nextb.
5232
5233 * buffer.h (struct buffer_text): New member inhibit_shrinking.
5234
5235 * coding.c (coding_alloc_by_making_gap): New arg offset.
5236 (alloc_destination): Call coding_alloc_by_making_gap with the arg
5237 offset.
5238 (decode_coding_iso_2022): Update coding->safe_charsets.
5239 (decode_coding_gap): Temporarily set
5240 current_buffer->text->inhibit_shrinking to 1.
5241
5242 2008-02-01 Kenichi Handa <handa@m17n.org>
5243
5244 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
5245 indexing into elements of s->cmp and s->char2b.
5246
5247 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
5248
5249 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
5250
5251 2008-02-01 Kenichi Handa <handa@m17n.org>
5252
5253 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
5254 target_multibyte instead of multibyte.
5255 (re_match_2_internal): Call bcmp_translate with target_multibyte.
5256 (bcmp_translate): Change the argument name from multibyte to
5257 target_multibyte.
5258
5259 2008-02-01 Kenichi Handa <handa@m17n.org>
5260
5261 These changes are to compile a regexp into a pattern that can be
5262 used both for multibyte and unibyte targets.
5263
5264 * Makefile.in (search.o): Depend on charset.h.
5265
5266 * character.c (multibyte_char_to_unibyte_safe): New function.
5267
5268 * search.c: Include "charset.h".
5269 (compile_pattern_1): Delete argument multibyte. Don't set
5270 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
5271 (compile_pattern): Don't compare cp->buf.target_multibyte.
5272 Compare cp->buf.charset_unibyte.
5273 (compile_pattern): Set cp->buf.target_multibyte.
5274
5275 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
5276
5277 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
5278
5279 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
5280 multibyte. Change callers.
5281 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
5282 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
5283 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
5284 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
5285 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
5286 (regex_compile): Make the compiled pattern usable both for
5287 multibyte and unibyte targets.
5288 (analyse_first): Make the fastmap usable both for multibyte and
5289 unibyte targets.
5290 (TRANSLATE_VIA_MULTIBYTE): Delete.
5291 (re_match_2_internal): Pay attention to the case that the
5292 multibyteness of bufp and target may be different.
5293
5294 2008-02-01 Kenichi Handa <handa@m17n.org>
5295
5296 * xdisp.c (x_produce_glyphs): When a font is not found, make the
5297 empty box occupy at least one column width.
5298
5299 2008-02-01 Miles Bader <miles@gnu.org>
5300
5301 * Makefile.in: Remove redundant HAVE_XFT clause.
5302
5303 2008-02-01 Kenichi Handa <handa@m17n.org>
5304
5305 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
5306
5307 2008-02-01 Kenichi Handa <handa@m17n.org>
5308
5309 * fontset.c (Finternal_char_font): Fix for the case of POSITION
5310 being nil.
5311
5312 2008-02-01 Kenichi Handa <handa@m17n.org>
5313
5314 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
5315
5316 2008-02-01 Kenichi Handa <handa@m17n.org>
5317
5318 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
5319
5320 2008-02-01 Kenichi Handa <handa@m17n.org>
5321
5322 * search.c (simple_search): Fix previous change.
5323
5324 2008-02-01 Kenichi Handa <handa@m17n.org>
5325
5326 * xftfont.c (ftfont_font_format): Extern declaration.
5327
5328 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
5329
5330 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
5331 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
5332
5333 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
5334 (ftfont_font_format): Fix previous change.
5335
5336 * font.h (Ffont_xlfd_name): EXFUN it.
5337
5338 * font.c (font_parse_xlfd): Fix the array size of `f'.
5339 (register_font_driver): Use EQ to compare driver->type.
5340
5341 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
5342 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
5343 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
5344
5345 2008-02-01 Kenichi Handa <handa@m17n.org>
5346
5347 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
5348 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
5349
5350 2008-02-01 Kenichi Handa <handa@m17n.org>
5351
5352 * xfont.c (xfont_open): Set font->format.
5353
5354 * xftfont.c (xftfont_open): Set font->format.
5355
5356 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
5357 (ftfont_list): Include FC_FONTFORMAT in FcObject.
5358 (ftfont_open): Set font->format.
5359 (ftfont_font_format): New function.
5360
5361 * font.h (struct font): New memeber format.
5362
5363 * font.c (Qopentype): New variable.
5364 (syms_of_font): Defsym it.
5365 (Fquery_font): Change the format of the last element of the return
5366 value.
5367
5368 2008-02-01 Kenichi Handa <handa@m17n.org>
5369
5370 * xfns.c (xic_create_xfontset): Try the default fontset name as a
5371 last resort.
5372
5373 2008-02-01 Kenichi Handa <handa@m17n.org>
5374
5375 * coding.c (detect_coding_charset): Fix detection of multi-byte
5376 charset.
5377
5378 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
5379
5380 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
5381
5382 2008-02-01 Kenichi Handa <handa@m17n.org>
5383
5384 * xdisp.c (get_next_display_element): Set it->face_id for the
5385 first component of a composition.
5386 (x_produce_glyphs): Check if the font is changed or not for composition.
5387
5388 2008-02-01 Kenichi Handa <handa@m17n.org>
5389
5390 * fontset.c (Qlatin): New variable.
5391 (syms_of_fontset): Define it as a lisp symbol.
5392 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
5393
5394 2008-02-01 Kenichi Handa <handa@m17n.org>
5395
5396 * font.c (font_unparse_fcname): Pay attention to the case that
5397 some of font property is a null string.
5398
5399 2008-02-01 Kenichi Handa <handa@m17n.org>
5400
5401 * term.c: Include "composite.h".
5402 (encode_terminal_code): Output all components of composition.
5403 Check the size of encode_terminal_src.
5404 (produce_glyphs): For composition, call produce_composite_glyph.
5405 (append_composite_glyph, produce_composite_glyph): New functions.
5406
5407 * xdisp.c (x_produce_glyphs): In handling composition, if a font
5408 is not found, get font_info from the current ascii face.
5409
5410 2008-02-01 Kenichi Handa <handa@m17n.org>
5411
5412 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
5413 buffer-file-name to Qnil before calling insert_from_buffer.
5414
5415 * font.c (font_unparse_fcname): Pay attention to the case that
5416 foundry is a null string.
5417
5418 2008-02-01 Kenichi Handa <handa@m17n.org>
5419
5420 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
5421
5422 * font.c (Qunicode_sip): New variable.
5423 (syms_of_font): Declare it as a Lisp symbol.
5424
5425 * font.h (Qunicode_sip): Extern it.
5426
5427 2008-02-01 Kenichi Handa <handa@m17n.org>
5428
5429 * composite.c (get_composition_id): Pay attention to TAB component.
5430
5431 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
5432 TAB. Adjust for the change of s->char2b which always points to
5433 the first elememnt of allocated memory.
5434
5435 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
5436
5437 * xdisp.c (handle_composition_prop): Set it->c to the first
5438 non-TAB component.
5439 (fill_composite_glyph_string): Change argument.
5440 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
5441 (x_produce_glyphs): Fix handling of left/right padding.
5442
5443 2008-02-01 Kenichi Handa <handa@m17n.org>
5444
5445 * coding.c (detect_coding_system): Fix for handling off
5446 inhibit_iso_escape_detection. Fix for the case that no coding
5447 system is defined for a specific coding category.
5448
5449 2008-02-01 Kenichi Handa <handa@m17n.org>
5450
5451 * font.c (font_matching_entity): Delete unused local var.
5452
5453 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
5454 opening a font.
5455
5456 * fileio.c (Finsert_file_contents): On recovering a file, assume
5457 Unix-like eol.
5458 (choose_write_coding_system): On auto-saving a file, force
5459 Unix-like eol.
5460
5461 * coding.c (setup_coding_system): Fix setting of
5462 coding->common_flags based on eol_type.
5463 (coding_inherit_eol_type): If PARENT is not nil, be sure to
5464 inherit from it.
5465
5466 2008-02-01 Kenichi Handa <handa@m17n.org>
5467
5468 * alloc.c (NSTATICS): Increas to 0x600.
5469
5470 2008-02-01 Kenichi Handa <handa@m17n.org>
5471
5472 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
5473 (ftfont_list): Don't check :name property.
5474 (ftfont_match): New function.
5475 (ftfont_pattern_entity): If the pattern doesn't contain
5476 FC_SPACING, don't assuce FC_MONO.
5477
5478 * font.h (struct font_driver): New member `match'.
5479 (font_update_drivers): Adjust prototype.
5480
5481 * font.c (font_parse_fcname, font_parse_name): Don't change :name
5482 property of FONT.
5483 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
5484 them unconditionally.
5485 (font_matching_entity): New function.
5486 (font_open_by_name): Try font_matching_entity if exact match is
5487 not found.
5488 (font_update_drivers): Delete the arg FONT. Return a list of
5489 actually used backends. Don't free faces, font caches here.
5490 Don't store data in frame parameters. Don't call x_set_font.
5491 (Ffont_spec): Store :name property as is.
5492 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
5493 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
5494 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
5495 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
5496 Call font->driver->otf_gsub instead of font_otf_gsub.
5497
5498 * frame.c (x_set_font_backend): Do more works that were done in
5499 font_update_drivers before.
5500
5501 * xfont.c (xfont_match): New function.
5502 (xfont_driver): Set xfont_driver.match to xfont_match.
5503 (xfont_draw): Set font in GC if necessary.
5504
5505 * ftxfont.c (ftxfont_match): New function.
5506 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
5507
5508 * xftfont.c (xftfont_match): New function.
5509 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
5510
5511 2008-02-01 Kenichi Handa <handa@m17n.org>
5512
5513 * font.h (struct font): New member scalable.
5514 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
5515 (font_otf_gsub): Adjust prototype.
5516
5517 * font.c (font_otf_capability): Fix handling of the default langsys.
5518 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
5519 Check the contents of SPEC.
5520 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
5521 (check_gstring): New function.
5522 (REPLACEMENT_CHARACTER): New macro.
5523 (font_otf_gsub): New arg alternate_subst. Be sure to set all
5524 glyph codes of GSTRING.
5525 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
5526 (font_prepare_composition): Set cmp->glyph_len.
5527 (font_open_entity): Set font->scalable.
5528 (Ffont_get): Handle :otf property.
5529 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
5530 functions.
5531 (Fquery_font): Use font->font.full_name.
5532 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
5533 Sfont_otf_alternates.
5534
5535 * ftfont.c (ftfont_open): Set font->font.full_name and
5536 font->font.name properly. Fix calculation of font->font.height
5537 and font->min_width.
5538
5539 * ftxfont.c (ftxfont_create_gcs): New function.
5540 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
5541 (ftxfont_draw_backgrond): Fix filling region.
5542 (ftxfont_default_fid): New function.
5543 (ftxfont_open): Set xfotn->fid to the return value of
5544 ftxfont_default_fid.
5545 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
5546 (ftxfont_done_face): Free only GCs that are created by
5547 ftxfont_create_gcs.
5548 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
5549
5550 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
5551 Clip to src->width, etc (not src->clip_XXX).
5552
5553 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
5554 FontBackend frame parameter.
5555
5556 2008-02-01 Kenichi Handa <handa@m17n.org>
5557
5558 * font.h (struct font_driver_list): New member `on'.
5559 (Fclear_font_cache): EXFUN it.
5560 (font_update_drivers): Extern it.
5561
5562 * font.c (font_unparse_fcname): Fix typo (swidth->width).
5563 (font_list_entities): Check driver_list->on.
5564 (register_font_driver): Initalize `on' member to 0.
5565 (font_update_drivers): New function.
5566 (Fclear_font_cache): Check driver_list->on.
5567
5568 * frame.h (Qfont_backend): Extern it.
5569 (x_set_font_backend): Extern it.
5570
5571 * frame.c (Qfont_backend): New variable.
5572 (frame_parms): New element for font-backend.
5573 (x_set_font_backend): New function.
5574
5575 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
5576 FontBackend frame parameter.
5577 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
5578 x_set_font_backend.
5579
5580 * xfont.c (xfont_list): Don't try listing by :name property if the
5581 name is not for XLFD.
5582
5583 2008-02-01 Kenichi Handa <handa@m17n.org>
5584
5585 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
5586 (LGLYPH_SET_TO): New macros.
5587 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
5588 element of G is vector or not.
5589 (font_at): Extern it.
5590
5591 * font.c: Include window.h.
5592 (font_lispy_object): New function.
5593 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
5594 end of valid glyph.
5595 (font_close_object): Fix getting (struct font *).
5596 (font_at): New function.
5597 (Ffont_get): If FONT is a font-object, get entity from it.
5598 (Ffont_make_gstring): Initialize elements of glyphs with nil.
5599 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
5600 range check.
5601 (Ffont_at): New function.
5602 (syms_of_font): Defsubr Sfont_at.
5603
5604 * xdisp.c (it_props): Move the entry for Qauto_composed to just
5605 before the entry for Qcomposition.
5606 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
5607 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
5608 the font in gstring.
5609 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
5610 LGLYPH_FORM (g) to detect the end of valid glyph.
5611 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
5612 we are composing with gstring.
5613
5614 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
5615 Check if adjustment is vector or not.
5616
5617 * Makefile.in (font.o): Make it depends on window.h.
5618
5619 2008-02-01 Kenichi Handa <handa@m17n.org>
5620
5621 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
5622 adjustment is vector or not.
5623
5624 2008-02-01 Miles Bader <miles@gnu.org>
5625
5626 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
5627
5628 2008-02-01 Kenichi Handa <handa@m17n.org>
5629
5630 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
5631 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
5632 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
5633
5634 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
5635 (DEVICE_DELTA): Fix typo.
5636 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
5637 LGLYPH format.
5638
5639 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5640 the change of LGLYPH format.
5641
5642 2008-02-01 Kenichi Handa <handa@m17n.org>
5643
5644 * ftfont.c (ftfont_list): Fix typo.
5645 (ftfont_build_basic_charsets): Don't include letters with diacritics.
5646
5647 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5648
5649 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
5650
5651 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
5652 xftface_info is non-NULL.
5653
5654 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5655
5656 * ftfont.c (ftfont_list): Move misplaced #endif.
5657
5658 2008-02-01 Kenichi Handa <handa@m17n.org>
5659
5660 * ftfont.c (ftfont_list): Pay attention to the case that
5661 FC_CAPABILITY is not defined.
5662
5663 2008-02-01 Kenichi Handa <handa@m17n.org>
5664
5665 * xftfont.c (xftfont_open): Set charset related members to -1.
5666
5667 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
5668 QCname.
5669 (ftfont_open): Set charset related members to -1.
5670
5671 * fontset.c (Votf_script_alist): New variable.
5672 (syms_of_fontset): Initialize it.
5673 (fontset_font): Delete unused variable.
5674
5675 * fontset.h (Votf_script_alist): Extern it.
5676
5677 * font.c (font_find_for_lface): Optimize code.
5678
5679 * font.h (font_close_object, font_merge_old_spec): Extern them.
5680
5681 2008-02-01 Kenichi Handa <handa@m17n.org>
5682
5683 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
5684 (syms_of_font): Initialize them.
5685 (font_pixel_size): Allow float value in dpi.
5686 (font_prop_validate_type): Delete.
5687 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
5688 Change caller.
5689 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
5690 (font_prop_validate_extra): Delete.
5691 (font_prop_validate_spacing): New function.
5692 (font_property_table): Add elements for all known properties.
5693 (get_font_prop_index): Rename from check_font_prop_name. New
5694 argument FROM. Change caller.
5695 (font_prop_validate): Validate all known properties.
5696 (font_put_extra): Delete argument force. Change caller.
5697 (font_expand_wildcards): Make it static. Fix the way of shrinking
5698 the possible range.
5699 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
5700 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
5701 Change caller.
5702 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
5703 (font_parse_fcname): Delete argument merge. Fix parsing of point
5704 size. Don't validate properties values here. Change caller.
5705 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
5706 (font_open_by_name): Delete unused variable.
5707 (Ffont_spec): Likewise. Validate property values.
5708 (Ffont_match_p): New function.
5709
5710 * font.h (QCscalable): Extern it.
5711 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
5712
5713 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
5714
5715 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
5716 (xfont_list_pattern): New function.
5717 (xfont_list): Use xfont_list_pattern.
5718
5719 2008-02-01 Kenichi Handa <handa@m17n.org>
5720
5721 * font.h (Flist_fonts): EXFUN it.
5722
5723 2008-02-01 Jason Rumney <jasonr@gnu.org>
5724
5725 * w32term.c (w32_initialize): Add back smoothing_type and
5726 smoothing_enabled definitions.
5727
5728 2008-02-01 Kenichi Handa <handa@m17n.org>
5729
5730 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5731 s->face->font on determining underline position.
5732
5733 2008-02-01 Kenichi Handa <handa@m17n.org>
5734
5735 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
5736 (font_has_char): Accept font-object too.
5737 (font_find_for_lface): Try at first with a size specified in face.
5738
5739 2008-02-01 Kenichi Handa <handa@m17n.org>
5740
5741 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
5742 font_open_by_name.
5743
5744 2008-02-01 Kenichi Handa <handa@m17n.org>
5745
5746 * font.h (QCspacing, QCdpi): Extern them.
5747 (enum font_spacing): New enum.
5748 (FONT_PIXEL_SIZE_QUANTUM): New macro.
5749
5750 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
5751 (QCspacing, QCdpi): New variables.
5752 (syms_of_font): Initialize them.
5753 (font_pixel_size): New function.
5754 (font_put_extra): New function.
5755 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
5756 in FONT_EXTRA.
5757 (font_parse_fcname): Handle enumenrated values (e.g. bold).
5758 Fix handling font size. Add QCname property that contains only
5759 unknown properties.
5760 (font_score): Change argument. Change caller. Pay attention to
5761 FONT_PIXEL_SIZE_QUANTUM.
5762 (font_sort_entites, font_list_entities, font_find_for_lface)
5763 (font_open_for_lface, font_open_by_name): Fix handling of font size.
5764 (Ffont_spec): Add QCname property that contains only unknown properties.
5765
5766 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
5767 include weight in listing pattern, instead check weight of each
5768 listed font. Don't include scalable in pattern. Pay attention to
5769 FONT_PIXEL_SIZE_QUANTUM.
5770
5771 2008-02-01 Kenichi Handa <handa@m17n.org>
5772
5773 * font.c (font_parse_fcname): Fix parsing of point-size.
5774 (font_unparse_fcname): Produce symbolic names for style properties.
5775 (font_list_entities): Handle float size correctly.
5776 (font_open_by_name): Prefer `normal' property values if the name
5777 doesn't specify them.
5778
5779 * fontset.c (Finternal_char_font): Use font_get_name, not
5780 Ffont_xlfd_name.
5781
5782 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
5783 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
5784 pattern. Don't force scalable.
5785
5786 * xftfont.c (xftfont_open): For generating a name, start from
5787 96-byte buffer.
5788
5789 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5790
5791 * frame.h (x_new_fontset2): Fix prototype.
5792
5793 2008-02-01 Kenichi Handa <handa@m17n.org>
5794
5795 * font.h (struct font_driver): Delete member parse_name.
5796 (font_match_p, font_get_spec, font_parse_fcname)
5797 (font_unparse_fcname): Extern them.
5798 (font_get_name): Adjust prototype.
5799
5800 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
5801 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
5802 (font_expand_wildcards): Fix handling ENCODING field. Avoid
5803 unnecessary checks for weight, slant, and swidth.
5804 (font_parse_fcname): New function.
5805 (font_unparse_fcname): New function.
5806 (font_parse_name): New function.
5807 (font_match_p): New function.
5808 (font_get_name): Change return value to Lisp string.
5809 (font_get_spec): New function.
5810 (Qunspecified, Qignore_defface): Don't extern them.
5811 (font_find_for_lface): Assume that LFACE is fully specified.
5812 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
5813 object, use it for FACE.
5814 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
5815 driver->parse_name.
5816 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
5817
5818 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
5819 prototype.
5820
5821 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
5822 argument F. Don't call Fnew_fontset. Instead, directly call
5823 make_fontset.
5824
5825 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
5826
5827 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
5828 of x_new_fontset2.
5829
5830 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
5831 (Qsans__serif): New variables.
5832 (ftfont_generic_family_list): New variable.
5833 (syms_of_ftfont): Initialize the above variables.
5834 (ftfont_pattern_entity): Delete argument NAME.
5835 (ftfont_list_generic_family): New function.
5836 (ftfont_parse_name): Delete this function.
5837 (ftfont_list): Try generic family only when FcFontList found no font.
5838 (ftfont_list_family): Fix args to FcObjectSetBuild.
5839
5840 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
5841 object in attrs[LFACE_FONT_INDEX].
5842 (set_lface_from_font_name): Cancel all changes for font-backend.
5843 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
5844 function.
5845 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
5846 font object in QCfont attribute.
5847 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
5848 (realize_default_face) [USE_FONT_BACKEND]: Call
5849 set_lface_from_font_and_fontset.
5850
5851 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
5852 "fixed", and signal error here if no suitable font was found.
5853
5854 * xfont.c (xfont_parse_name): Delete this function.
5855
5856 * xftfont.c (xftfont_open): Change coding style of error
5857 handling. Generate fontconfig's fontname pattern.
5858
5859 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
5860 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
5861
5862 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
5863 Both args FONTSET and FONT_OBJECT must be existing ones.
5864
5865 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5866
5867 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
5868
5869 2008-02-01 Kenichi Handa <handa@m17n.org>
5870
5871 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
5872
5873 * font.h (struct font): Fix typo.
5874
5875 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
5876 XLFD_XXX_INDEX.
5877 (enum xlfd_field_mask): New enum.
5878 (intern_font_field): Changed argument. Change caller. If digits
5879 are followed by non-digits, return a symbol.
5880 (font_expand_wildcards): New function.
5881 (font_parse_xlfd): Fix wildcard handling.
5882 (Ffont_spec): If :name is specified, reflect the info in the other
5883 properties.
5884
5885 * ftfont.c (ftfont_pattern_entity): Fix typo.
5886 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
5887 locale.
5888
5889 2008-02-01 Kenichi Handa <handa@m17n.org>
5890
5891 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
5892
5893 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
5894 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
5895 registry doesn't specify encoding part.
5896 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
5897 (font_open_by_name): At first try parsing the name.
5898 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
5899 as Lisp symbols.
5900
5901 * fontset.c (reorder_font_vector): Pay attention to the case that
5902 the 3rd element of font_def is nil.
5903 (fontset_font): For the default fontset, append one more fontset
5904 elements for a script-based font specification. Don't add script
5905 attribute on finding a font.
5906 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
5907 font name.
5908 (fontset_ascii_font): If a font can't be opened, return nil.
5909
5910 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
5911 (ftfont_pattern_entity): New function.
5912 (ftfont_get_cache): Assume that freetype_font_cache is already
5913 initialized.
5914 (ftfont_list): Handle the case that a file is specified in font
5915 name. Use ftfont_pattern_entity to generate entities.
5916 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
5917 (syms_of_ftfont): Initialize freetype_font_cache.
5918
5919 * xftfont.c (xftfont_open): Make the font name fontconfig's
5920 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
5921 (xftfont_close): Free font->font.name if not NULL.
5922
5923 * xfont.c (xfont_list): If script is specified for a font, return
5924 null_vector.
5925 (xfont_list_family): Declare argument type.
5926
5927 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
5928 name, set LFACE_FONT (lface) to nil.
5929
5930 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
5931 return Qnil.
5932
5933 2008-02-01 Kenichi Handa <handa@m17n.org>
5934
5935 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
5936 (standard_args): Add "-enable-font-backend".
5937
5938 2008-02-01 Kenichi Handa <handa@m17n.org>
5939
5940 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
5941 (struct xftdraw_list, xftdraw_list): Delete them.
5942 (register_xftdraw, check_xftdraw): Delete them.
5943 (xftfont_prepare_face): Don't call register_xftdraw.
5944 (xftfont_done_face): Don't call check_xftdraw.
5945 (xftfont_draw): Get backroudn color only when with_background is
5946 nonzero.
5947
5948 * xfont.c (xfont_encode_char): Fix calculation of char2b.
5949
5950 2008-02-01 Kenichi Handa <handa@m17n.org>
5951
5952 These changes are for the new font handling codes.
5953
5954 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
5955 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
5956 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
5957 (FONTSRC, FONTOBJ): New variables.
5958 (obj): Add $(FONTOBJ).
5959 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
5960 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
5961 @LIBOTF_LIBS@.
5962 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
5963 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
5964
5965 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
5966
5967 * character.h (Vscript_representative_chars): Extern it.
5968
5969 * character.c (Vscript_representative_chars): New variable.
5970 (syms_of_character): Declare it as a Lisp variable.
5971
5972 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
5973 enable_font_backend is nonzero, accept the composition method
5974 COMPOSITION_WITH_GLYPH_STRING.
5975
5976 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
5977 enumeration COMPOSITION_WITH_GLYPH_STRING.
5978
5979 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
5980 members clip_x, clip_y, clip_width, and clip_height.
5981 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
5982
5983 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
5984 --enable-font-backend. Call syms_of_font.
5985
5986 * fns.c (assoc_no_quit): New function.
5987
5988 * fontset.h (FONT_INFO_FROM_FACE): New macro.
5989 (face_for_font, new_fontset_from_font)
5990 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
5991
5992 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
5993 (fontset_font, fontset_ascii, face_for_char)
5994 (make_fontset_for_ascii_face, Ffont_info)
5995 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
5996 is nonzero, use font-backend mechanism.
5997 (find_font_encoding): Make it non-static.
5998 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
5999 New functions.
6000
6001 * frame.h (struct frame): New members resx and resy.
6002 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
6003 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
6004
6005 * frame.c [USE_FONT_BACKEND]: Include "font.h".
6006 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
6007
6008 * lisp.h (assoc_no_quit): Extern it.
6009
6010 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
6011 Through out the file, use FONT_INFO_FROM_FACE instead of
6012 FONT_INFO_FROM_ID, use get_per_char_metric instead of
6013 rif->per_char_metric.
6014 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
6015 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
6016 (get_glyph_face_and_encoding, fill_composite_glyph_string)
6017 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6018 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
6019 nonzero, use font-backend mechanism.
6020 (get_per_char_metric): New function.
6021
6022 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
6023 (set_lface_from_font_name)
6024 (set_font_frame_param, free_realized_face)
6025 (prepare_face_for_display, clear_face_gcs)
6026 (Finternal_set_font_selection_order, realize_x_face)
6027 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
6028 font-backend mechanism.
6029 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
6030 (load_face_font) [USE_FONT_BACKEND]: Abort.
6031 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
6032 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
6033
6034 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
6035 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
6036 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
6037 nonzero, register all available font drivers. Call
6038 x_default_font_parameter for deciding a font.
6039 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
6040
6041 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
6042 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
6043 (x_set_glyph_string_clipping_exactly)
6044 (x_compute_glyph_string_overhangs)
6045 (x_draw_glyph_string_foreground)
6046 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
6047 (x_free_frame_resources) [USE_FONT_BACKEND]: If
6048 enable_font_backend is nonzero, use font-backend mechanism.
6049 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
6050
6051 2008-02-01 Kenichi Handa <handa@m17n.org>
6052
6053 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
6054 system_eol_type.
6055 (syms_of_coding): Initialize system_eol_type.
6056
6057 * process.c (Fset_process_coding_system): Inherit system's eol
6058 format if necessary.
6059
6060 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6061
6062 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
6063
6064 2008-02-01 Kenichi Handa <handa@m17n.org>
6065
6066 * coding.c (decode_eol): Pay attention to buffer relocation in
6067 del_range_2.
6068 (decode_coding): Call decode_eol before restoring undo_list.
6069
6070 2008-02-01 Kenichi Handa <handa@m17n.org>
6071
6072 * charset.c (Fdefine_charset_internal): Fix setting of
6073 emacs_mule_bytes.
6074
6075 2008-02-01 Kenichi Handa <handa@m17n.org>
6076
6077 * keyboard.c (read_char): Check if C is a character or not before
6078 looking up Vkeyboard_translate_table.
6079
6080 2008-02-01 Kenichi Handa <handa@m17n.org>
6081
6082 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
6083 condition to terminate the loop.
6084
6085 2008-02-01 Kenichi Handa <handa@m17n.org>
6086
6087 * coding.c (produce_composition): Compare charbuf[i] instead of
6088 args[i] against 0.
6089 (Fterminal_coding_system): Use EQ to compare Lisp objects.
6090
6091 2008-02-01 Kenichi Handa <handa@m17n.org>
6092
6093 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
6094 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
6095 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
6096 detect_coding.
6097 (emacs_mule_char): Handle old style (Emacs 20) component character
6098 of a composition.
6099 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
6100 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
6101 composition rule.
6102 (decode_coding_emacs_mule): Handle invalid bytes correctly.
6103
6104 2008-02-01 Kenichi Handa <handa@m17n.org>
6105
6106 * coding.c (encode_coding_ccl): Allocate destination dynamically
6107 when necessary.
6108
6109 2008-02-01 Kenichi Handa <handa@m17n.org>
6110
6111 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
6112 the loop. When quitted, show a proper error message.
6113
6114 2008-02-01 Kenichi Handa <handa@m17n.org>
6115
6116 * xterm.c (x_set_glyph_string_clipping_exactly): Set
6117 src->clip_head and src->clip_tail temporarily instead of src->hl.
6118
6119 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
6120 character sequence.
6121 (Fccl_execute_on_string): Use ASET, not XSET.
6122
6123 2008-02-01 Kenichi Handa <handa@m17n.org>
6124
6125 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
6126
6127 2008-02-01 Kenichi Handa <handa@m17n.org>
6128
6129 * coding.c (decode_coding): Fix the condition of terminating the
6130 decoding loop.
6131
6132 2008-02-01 Kenichi Handa <handa@m17n.org>
6133
6134 * data.c (Faset): On setting a character bigger than 255 in a
6135 unibyte string, signal an error instead of make the string multibyte.
6136
6137 2008-02-01 Kenichi Handa <handa@m17n.org>
6138
6139 * charset.c (map_charset_chars): Fix for ascii-compatible charset
6140 made by a mapping table.
6141
6142 2008-02-01 Kenichi Handa <handa@m17n.org>
6143
6144 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
6145 not.
6146 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
6147 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
6148
6149 * xterm.c (x_draw_composite_glyph_string_foreground): Check
6150 s->face is NULL or not.
6151
6152 2008-02-01 Kenichi Handa <handa@m17n.org>
6153
6154 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
6155 (x_draw_glyph_string): Fix drawing of right_overhang and
6156 left_overhang around/on cursor.
6157
6158 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
6159
6160 2008-02-01 Kenichi Handa <handa@m17n.org>
6161
6162 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
6163
6164 2008-02-01 Kenichi Handa <handa@m17n.org>
6165
6166 * coding.c (Fdefine_coding_system_internal)
6167 (Fdefine_coding_system_alias): Avoid a duplicated element in
6168 Vcoding_system_alist.
6169
6170 2008-02-01 Kenichi Handa <handa@m17n.org>
6171
6172 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6173
6174 * coding.c (Qcoding_system_define_form): New variable.
6175 (syms_of_coding): Intern and staticpro it.
6176 (Fcoding_system_p): Check Qcoding_system_define_form.
6177 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
6178
6179 * coding.h (CODING_SYSTEM_P): If ID is not available, call
6180 Fcoding_system_p.
6181 (CHECK_CODING_SYSTEM): If ID is not available, call
6182 Fcheck_coding_system.
6183 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
6184 Try also Fcheck_coding_system.
6185
6186 2008-02-01 Kenichi Handa <handa@m17n.org>
6187
6188 * coding.c (code_conversion_restore): GCPRO arg.
6189
6190 2008-02-01 Kenichi Handa <handa@m17n.org>
6191
6192 * character.c (lisp_string_width): Check multibyteness of STRING.
6193
6194 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6195
6196 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
6197 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
6198 (decode_mac_font_name): Use decode_coding_c_string instead of
6199 decode_coding.
6200 (x_load_font): Initialize fontp->fontset to -1. Set
6201 fontp->encoding_type.
6202
6203 2008-02-01 Kenichi Handa <handa@m17n.org>
6204
6205 * search.c (search_buffer): Give up BM search on case-fold-search
6206 if one of a target character has a case-equivalence of different
6207 byte length even if that target charcter is an ASCII.
6208 (simple_search): Fix calculation of byte length of matched text.
6209 (boyer_moore): Fix handling of case-equivalent multibyte characters.
6210
6211 2008-02-01 Kenichi Handa <handa@m17n.org>
6212
6213 * coding.c (decode_coding): Fix handling of invalid bytes.
6214
6215 2008-02-01 Kenichi Handa <handa@m17n.org>
6216
6217 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6218 Unicode characters.
6219
6220 2008-02-01 Kenichi Handa <handa@m17n.org>
6221
6222 * coding.c (encode_coding_object): If a pre-write-conversion
6223 function makes a new buffer, kill it.
6224
6225 2008-02-01 Kenichi Handa <handa@m17n.org>
6226
6227 * coding.c (QCascii_compatible_p): New variable.
6228 (syms_of_coding): Initialize it.
6229 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
6230 calling string_char.
6231 (record_conversion_result): Add `default:' case.
6232 (coding_charset_list): Delete unused variable `coding_type'.
6233 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
6234 property in the plist of the coding system.
6235 (Fcoding_system_put): Check QCascii_compatible_p.
6236
6237 2008-02-01 Miles Bader <miles@gnu.org>
6238
6239 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
6240 removed calculation of frame `f', as it's now used.
6241
6242 2008-02-01 Kenichi Handa <handa@m17n.org>
6243
6244 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
6245 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
6246 (UNIDATA): New variable.
6247 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
6248 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
6249 $(RUN_TEMACS) unconditionally.
6250
6251 2008-02-01 Kenichi Handa <handa@m17n.org>
6252
6253 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
6254 (admindir): New variable.
6255 ($(lispsource)international/charprop.el): New target.
6256
6257 2008-02-01 Miles Bader <miles@gnu.org>
6258
6259 * character.c (chars-in-region): Remove obsolete function.
6260 (syms_of_character): Remove its initialization.
6261
6262 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
6263
6264 * w32select.c (validate_coding_system)
6265 (setup_windows_coding_system): New functions.
6266 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
6267 setup_windows_coding_system.
6268 (setup_config, Fw32_get_clipboard_data): Use
6269 validate_coding_system.
6270 (Fx_selection_exists): Move call to setup_config to a place
6271 where signals are allowed.
6272
6273 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
6274 (Fcheck_coding_system): Add declarations.
6275
6276 2008-02-01 Kenichi Handa <handa@m17n.org>
6277
6278 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
6279
6280 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6281
6282 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
6283 string as the second argument for x_new_fontset.
6284
6285 2008-02-01 Kenichi Handa <handa@m17n.org>
6286
6287 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
6288 (encode_coding_object): Use safe_call instead of call2.
6289
6290 2008-02-01 Kenichi Handa <handa@m17n.org>
6291
6292 * fontset.c (Fset_fontset_font): Check family element of a given vector.
6293
6294 * Makefile.in (lisp): Include charprop.el.
6295
6296 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6297
6298 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
6299 Not sure if it's unnecessary.
6300
6301 2008-02-01 Steven Tamm <steventamm@mac.com>
6302
6303 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
6304 some possibly unnecessary fontset checking code that crashed
6305 when creating a new frame.
6306
6307 2008-02-01 Kenichi Handa <handa@m17n.org>
6308
6309 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
6310 lookup_face.
6311
6312 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
6313
6314 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
6315
6316 2008-02-01 Kenichi Handa <handa@m17n.org>
6317
6318 * coding.c: Cancel the change done in HEAD on 2008-02-01.
6319 (coding_charset_list): New function.
6320
6321 * coding.h (coding_charset_list): Extern it.
6322
6323 2008-02-01 Kenichi Handa <handa@m17n.org>
6324
6325 * fontset.c (Fset_fontset_font): Call find_font_encoding with
6326 concatenation of family and registry.
6327
6328 2008-02-01 Kenichi Handa <handa@m17n.org>
6329
6330 * character.h (BYTE8_STRING): Fix typo.
6331
6332 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
6333 string to multibyte (sync to HEAD).
6334
6335 * casefiddle.c (casify_region): Handle changes in byte-length
6336 using replace_range_2 (sync to HEAD).
6337
6338 2008-02-01 Andreas Schwab <schwab@suse.de>
6339
6340 * chartab.c (map_char_table): GCPRO table and arg.
6341
6342 2008-02-01 Kenichi Handa <handa@m17n.org>
6343
6344 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
6345 already at limit.
6346
6347 2008-02-01 Kenichi Handa <handa@m17n.org>
6348
6349 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
6350 instead of fast_c_string_match_ignore_case.
6351 (find_font_encoding): Change argument to Lisp_Object. Use
6352 fast_string_match_ignore_case instead of
6353 fast_c_string_match_ignore_case. Change caller.
6354
6355 2008-02-01 Kenichi Handa <handa@m17n.org>
6356
6357 * xdisp.c (get_next_display_element): In unibyte case, decide to
6358 display in octal form by checking a chacter by
6359 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
6360
6361 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
6362
6363 * character.c (unibyte_has_multibyte_table): New variable.
6364
6365 * character.h (unibyte_has_multibyte_table): Extern it.
6366 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
6367
6368 2008-02-01 Kenichi Handa <handa@m17n.org>
6369
6370 * coding.c (encode_coding_iso_2022): Fix handling of charset
6371 annotation.
6372
6373 2008-02-01 Kenichi Handa <handa@m17n.org>
6374
6375 * coding.c (setup_coding_system): If coding_system is nil, use
6376 Qundecided.
6377 (Fterminal_coding_system): Return nil if terminal coding system is
6378 `undecided'.
6379 (syms_of_coding): Define coding-system `undecided' here. Setup
6380 terminal_coding as `undecided'.
6381
6382 2008-02-01 Kenichi Handa <handa@m17n.org>
6383
6384 * xdisp.c (message_dolog, set_message_1): Call
6385 unibyte_char_to_multibyte with arg type int.
6386
6387 * lread.c (read1): Fix reading of a char-table.
6388
6389 * print.c (print_object): Include sub char-table in cicularities
6390 detection.
6391
6392 2008-02-01 Kenichi Handa <handa@m17n.org>
6393
6394 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
6395 cons. Append the found sequences in car of ARGS instead of prepending.
6396
6397 2008-02-01 Kenichi Handa <handa@m17n.org>
6398
6399 * fileio.c (report_file_error): Make a unibyte string from
6400 strerror (errorno).
6401 (Fsubstitute_in_file_name): Fix the arg to
6402 unibyte_char_to_multibyte. It is evaluated twice.
6403
6404 2008-02-01 Kenichi Handa <handa@m17n.org>
6405
6406 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
6407
6408 2008-02-01 Kenichi Handa <handa@m17n.org>
6409
6410 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
6411 BOM is not found.
6412 (detect_coding, detect_coding_system): Optimization for ISO-2022
6413 when no 8-bit data is found.
6414
6415 2008-02-01 Jason Rumney <jasonr@gnu.org>
6416
6417 * w32fns.c (x_to_w32_font): Update to use new coding struct.
6418
6419 2008-02-01 Kenichi Handa <handa@m17n.org>
6420
6421 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
6422 CHARS.
6423
6424 2008-02-01 Steven Tamm <steventamm@mac.com>
6425
6426 * macterm.c (mac_encode_char): Add charset argument and update
6427 to use encoding_type.
6428 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
6429 switch to pure fontset.
6430 (decode_mac_font_name): Temporarily remove decoding.
6431 (x_font_name_to_mac_font_name): Temporarily remove encoding.
6432 (x_load_font): Temporarily remove encoding.
6433
6434 2008-02-01 Kenichi Handa <handa@m17n.org>
6435
6436 * xfaces.c (Fface_font): If frame is not on a window system,
6437 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
6438 refer to face->font.
6439 (split_font_name_into_vector, build_font_name_from_vector)
6440 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
6441 whne HAVE_WINDOW_SYSTEM is defined.
6442
6443 2008-02-01 Kenichi Handa <handa@m17n.org>
6444
6445 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
6446 (x_produce_glyphs): Fix setting of members of cmp in case
6447 cmp->glyph_len is zero.
6448
6449 * fontset.c (Fset_fontset_font): Fix docstring.
6450 (Ffontset_info): Make it backward compatible. New arg ALL.
6451
6452 2008-02-01 Kim F. Storm <storm@cua.dk>
6453
6454 * process.c (read_process_output): Grow decoding_buf when needed;
6455 this could cause a crash in allocate_string and compact_small_strings.
6456
6457 2008-02-01 Kenichi Handa <handa@m17n.org>
6458
6459 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
6460
6461 2008-02-01 Kenichi Handa <handa@m17n.org>
6462
6463 * coding.c (setup_coding_system): Set coding->common_flags
6464 correctly for raw-text.
6465 (consume_chars): On encoding unibyte text by raw-text, don't check
6466 multibyte form.
6467 (encode_coding): On encoding by raw-text, never use translation tables.
6468
6469 * fileio.c (e_write): Short cut for the case of no encoding.
6470
6471 2008-02-01 Kenichi Handa <handa@m17n.org>
6472
6473 * coding.c (detect_coding, detect_coding_system): Delete unused
6474 variables.
6475
6476 2008-02-01 Kenichi Handa <handa@m17n.org>
6477
6478 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
6479 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
6480
6481 2008-02-01 Kenichi Handa <handa@m17n.org>
6482
6483 * coding.c (Ffind_coding_systems_region_internal): Include
6484 raw-text and no-conversion in the result.
6485
6486 2008-02-01 Kenichi Handa <handa@m17n.org>
6487
6488 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
6489 (load_font_get_repertory): Delete unnecessary check of ENCODING of
6490 FONT_DEF.
6491 (font_def_arg, add_arg, from_arg, to_arg): New args.
6492 (set_fontset_font): Change argument.
6493 (Fset_fontset_font): Fix for the case that TARGET is a script
6494 name and charset name.
6495 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
6496
6497 2008-02-01 Kenichi Handa <handa@m17n.org>
6498
6499 * fontset.c (fontset_font): Rename from fontset_face. Change return
6500 value.
6501 (face_suitable_for_char_p, face_for_char): Adjust for the change
6502 of fontset_font.
6503 (make_fontset_for_ascii_face): Fix setting of the fontset element
6504 for ASCII.
6505 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
6506 to get a font name.
6507 (Ffontset_info): Adjust for the change of fontset_font.
6508
6509 * coding.c (emacs_mule_char): Check invalid code more regidly.
6510
6511 * character.h (LEADING_CODE_LATIN_1_MIN)
6512 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
6513
6514 2008-02-01 Kenichi Handa <handa@m17n.org>
6515
6516 * editfns.c (check_translation): New function.
6517 (Ftranslate_region_internal): Handle M:N mapping.
6518
6519 2008-02-01 Kenichi Handa <handa@m17n.org>
6520
6521 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
6522
6523 2008-02-01 Kenichi Handa <handa@m17n.org>
6524
6525 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
6526 goto invalid_code.
6527 (decode_coding_iso_2022): Fix handling of invalid designation.
6528
6529 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
6530 after calling code_conversion_save.
6531
6532 2008-02-01 Kenichi Handa <handa@m17n.org>
6533
6534 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
6535
6536 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
6537
6538 * fontset.c: Include "intervals.h".
6539 (fontset_face): Fix comparing of Lisp_Objects.
6540 (free_face_fontset, new_fontset_from_font_name): Fix
6541 Lisp_Object/int mixup.
6542
6543 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
6544
6545 * coding.c: Add many prototypes for static functions.
6546 (get_translation_table): Allow max_lookup to be NULL.
6547 (decode_coding, Ffind_coding_systems_region_internal)
6548 (Funencodable_char_position, Fcheck_coding_systems_region): Call
6549 get_translation_table with max_lookup NULL.
6550
6551 2008-02-01 Kenichi Handa <handa@m17n.org>
6552
6553 * coding.c (get_translation_table): Declare it as Lisp_Object.
6554 (LOOKUP_TRANSLATION_TABLE): New macro.
6555 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
6556 instead of CHAR_TABLE_REF.
6557
6558 2008-02-01 Kenichi Handa <handa@m17n.org>
6559
6560 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
6561 annotation data format.
6562 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
6563 Change arguments FROM and TO to single argument NCHARS. Change caller.
6564 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
6565 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6566 (decode_coding_ccl, decode_coding_charset): Pay attention to
6567 coding->charbuf_used.
6568 (get_translation): New function.
6569 (produce_chars): New arguments translation_table and last_block.
6570 Translate characters here. Return number of carryover chars.
6571 Change caller.
6572 (produce_composition): New argument pos. Change caller.
6573 Adjust for the change of annotation data format.
6574 (produce_charset, produce_annotation): Likewise.
6575 (decode_coding, encode_coding): Don't call translate_chars.
6576 (consume_chars): New arg translation_table. Change caller.
6577 (translate_chars): Delete.
6578 (syms_of_coding): Make translation-table's number of extra slots 2.
6579
6580 2008-02-01 Kenichi Handa <handa@m17n.org>
6581
6582 * search.c (simple_search): Fix setting this_pos_byte in backward
6583 search.
6584
6585 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
6586 byte sequence.
6587 (detect_coding_ccl): Fix setting of the variable valids.
6588
6589 2008-02-01 Kenichi Handa <handa@m17n.org>
6590
6591 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
6592
6593 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
6594
6595 * editfns.c (Ftranslate_region_internal): Rename from
6596 Ftranslate_region. Accept a char-table in TABLE.
6597 (syms_of_editfns): Defsubr Stranslate_region_internal.
6598
6599 * xfaces.c (set_lface_from_font_name): If a font is specified for
6600 a frame, generate a fontset from the font.
6601 (build_scalable_font_name): If the scalable font is requested for
6602 a specific size, don't change that size.
6603 (try_font_list): Try a scalable font also in the case that a
6604 pattern string is specified.
6605
6606 2008-02-01 Kenichi Handa <handa@m17n.org>
6607
6608 * xfaces.c (Fface_font): New optional arg CHARACTER.
6609
6610 2008-02-01 Kenichi Handa <handa@m17n.org>
6611
6612 * charset.h (CHARSET_OFFSET): New macro.
6613
6614 2008-02-01 Kenichi Handa <handa@m17n.org>
6615
6616 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
6617
6618 * fontset.c (fontset_face): Handle the case that repertory is a
6619 char-table.
6620 (find_font_encoding): Return nil for unknown encoding.
6621 (Fset_fontset_font): Ignore a font of unknown encoding.
6622
6623 2008-02-01 Kenichi Handa <handa@m17n.org>
6624
6625 * keymap.c (describe_vector): Handle default value of a char table.
6626
6627 * fontset.c (fontset_face): Handle fallback fonts correctly.
6628 (Ffontset_info): Return infomation about fallback fonts.
6629
6630 2008-02-01 Kenichi Handa <handa@m17n.org>
6631
6632 * fontset.c (FONTSET_DEFAULT): New macro.
6633 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
6634 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
6635 the case that it is nil.
6636 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
6637 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
6638
6639 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
6640 subset or superset.
6641
6642 2008-02-01 Kenichi Handa <handa@m17n.org>
6643
6644 * emacs.c (main): Call init_charset after syms_of_XXX.
6645
6646 * charset.c (Vcharset_map_directory): Delete.
6647 (Vcharset_map_path): New variable.
6648 (load_charset_map_from_file): Use Vcharset_map_path instead.
6649 (init_charset): Initialize Vcharset_map_path.
6650 (syms_of_charset): Delete declaration of "charset-map-directory",
6651 add declaration of "charset-map-path".
6652
6653 2008-02-01 Kenichi Handa <handa@m17n.org>
6654
6655 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
6656 ASCII only string.
6657
6658 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
6659
6660 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6661 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
6662
6663 2008-02-01 Kenichi Handa <handa@m17n.org>
6664
6665 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
6666
6667 * coding.c (QCmnemonic, QCdefalut_char)
6668 (QCdecode_translation_table, QCencode_translation_table)
6669 (QCpost_read_conversion, QCpre_write_conversion): New variables.
6670 (get_translation_table): Return a list of translation tables if
6671 necessary.
6672 (decode_coding): Call get_translation_table with ENCODEP 0.
6673 (char_encodable_p): If translation_table is non-nil, always call
6674 translate_char.
6675 (Fdefine_coding_system_internal): Accept list of translation
6676 tables as :encode-translation-table and :decode-translation-table.
6677 (Fcoding_system_put): New function.
6678 (syms_of_coding): Declare new symbols. Defsubr
6679 Scoding_system_put.
6680 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
6681 typically JISX0212.
6682
6683 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
6684 when the charset is superset type.
6685
6686 * character.c (translate_char): Accept list of translation tables.
6687
6688 2008-02-01 Kenichi Handa <handa@m17n.org>
6689
6690 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
6691 (CODING_ATTR_TRANS_TBL): New macro.
6692
6693 * coding.c (get_translation_table): New function.
6694 (translate_chars): Fix the bug of skipping annotation data.
6695 (decode_coding, encode_coding): Utilize get_translation_table.
6696 (char_encodable_p, Funencodable_char_position): Translate char if
6697 necessary.
6698 (Ffind_coding_systems_region_internal)
6699 (Fcheck_coding_systems_region): Setup translation table for encode
6700 in a coding system attribute vector in advance.
6701 (Fdefine_coding_system_internal): Allow a symbol as translation
6702 table. For shift-jis type coding system, allow 4th charset.
6703
6704 2008-02-01 Kenichi Handa <handa@m17n.org>
6705
6706 * coding.c (decode_coding_sjis): Check the first byte rigidly.
6707
6708 * xdisp.c (get_next_display_element): Pass -1 as POS to
6709 FACE_FOR_CHAR if displaying a C-string.
6710
6711 2008-02-01 Kenichi Handa <handa@m17n.org>
6712
6713 * composite.c (get_composition_id): Handle xoff and yoff in a
6714 composition rule.
6715
6716 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6717 (struct composition): New member lbearing and rbearing.
6718
6719 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6720 (x_get_glyph_overhangs): Handle a composition glyph.
6721 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
6722
6723 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6724 composition glyph.
6725
6726 2008-02-01 Kenichi Handa <handa@m17n.org>
6727
6728 * print.c: Include charset.h.
6729 (Vprint_charset_text_property): New variable.
6730 (Qdefault): Extern it.
6731 (PRINT_STRING_NON_CHARSET_FOUND)
6732 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6733 (print_check_string_result): New variable.
6734 (print_check_string_charset_prop): New function.
6735 (print_prune_charset_plist): New variable.
6736 (print_prune_string_charset): New function.
6737 (print_object): Call print_prune_string_charset if
6738 Vprint_charset_text_property is not t.
6739 (print_interval): Print nothing if itnerval->plist is nil.
6740 (syms_of_print): Declare Vprint_charset_text_property as a lisp
6741 variable. Init and staticpro print_prune_charset_plist.
6742
6743 2008-02-01 Kenichi Handa <handa@m17n.org>
6744
6745 * fontset.c (new_fontset_from_font_name): Use the specified font
6746 for all characters in the new fontset.
6747
6748 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6749 OBJECT args.
6750
6751 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
6752 OBJECT args for composition too.
6753
6754 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6755 OBJECT args.
6756
6757 2008-02-01 Kenichi Handa <handa@m17n.org>
6758
6759 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
6760
6761 * fontset.c (reorder_font_vector): Adjust for the change of
6762 FONT_DEF format.
6763 (fontset_face): New arg id. Change caller.
6764 (face_for_char): New args pos and object.
6765 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
6766 (fs_query_fontset): Check NAME by Fassoc too.
6767 (Fset_fontset_font): Allow non-XLFD font name.
6768 (Ffontset_info): Adjust for the change of FONT_DEF format.
6769
6770 * fontset.h (face_for_char): Adjust prototype.
6771
6772 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
6773 (append_space, extend_face_to_end_of_line)
6774 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6775 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
6776
6777 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
6778 POS and OBJECT args.
6779
6780 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
6781 POS and OBJECT args.
6782
6783 2008-02-01 Jason Rumney <jasonr@gnu.org>
6784
6785 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
6786 of GlobalAlloc'ed memory.
6787
6788 2008-02-01 Kenichi Handa <handa@m17n.org>
6789
6790 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
6791
6792 * charset.h (charset_table_used): Delete extern.
6793
6794 * charset.c (charset_table_used): Make it static.
6795 (map_charset_chars): Fix args to c_function with.
6796
6797 * chartab.c (map_sub_char_table_for_charset): Fix args to
6798 c_function with.
6799
6800 * coding.h (enum coding_result_code): Delete
6801 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
6802
6803 * coding.c (Qinsufficient_source, Qinconsistent_eol)
6804 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
6805 (Vlast_code_conversion_error): New variables.
6806 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
6807 (ONE_MORE_BYTE): Record error if any instead of signaling an
6808 error. If non-ASCII multibyte char is found, return the negative
6809 value of the code. All callers changed to check it.
6810 (ONE_MORE_BYTE_NO_CHECK): Likewise.
6811 (record_conversion_result): New function. Change all codes setting
6812 coding->result to call this function.
6813 (detect_coding_utf_8, decode_coding_utf_8)
6814 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
6815 Don't use the local variable incomplete.
6816 (emacs_mule_char): Change the second arg to `const'.
6817 (decode_coding): Fix of flushing out unprocessed data.
6818 (make_conversion_work_buffer): Fix making of a work buffer.
6819 (decode_coding_object): Return coding->dst_object.
6820
6821 * fontset.c (set_fontset_font): Fix args.
6822
6823 * lisp.h (CHARACTERBITS): Define as 22.
6824
6825 * process.c (send_process): Be sure to set coding->src_multibyte.
6826
6827 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
6828
6829 2008-02-01 Kenichi Handa <handa@m17n.org>
6830
6831 * xdisp.c (handle_auto_composed_prop): Give limit to
6832 Fnext_single_char_property_change.
6833
6834 2008-02-01 Kenichi Handa <handa@m17n.org>
6835
6836 * composite.c (syms_of_composite): Don't make the composition hash
6837 table weak.
6838
6839 * fontset.c (Fset_fontset_font): Fix docstring.
6840
6841 * lisp.h (detect_coding_system): Adjust prototype.
6842
6843 * fileio.c (kill_workbuf_unwind): Delete this function.
6844 (Finsert_file_contents): Adjust the call of detect_coding_system.
6845 Get conversion_buffer by code_conversion_save. Use the macor
6846 CODING_MAY_REQUIRE_DECODING. After decoding, update
6847 coding_system.
6848
6849 * coding.h (make_conversion_work_buffer): Delete extern.
6850 (code_conversion_save): Extern it.
6851
6852 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
6853 (CODING_GET_INFO): Delete argument eol_type. Change callers.
6854 (decode_coding_utf_8): Don't do eol converion.
6855 (detect_coding_utf_16): Check coding->src_chars, not
6856 coding->src_bytes. Add heuristics for those that have no signature.
6857 (decode_coding_emacs_mule, decode_coding_iso_2022)
6858 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6859 Don't do eol converion.
6860 (adjust_coding_eol_type): Return a new coding system.
6861 (detect_coding): Don't detect eol. Fix for utf-16 detection.
6862 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
6863 each change.
6864 (decode_coding): Pay attention to undo_list. Do eol convesion for
6865 all types of coding-systems (if necessary).
6866 (Vcode_conversion_work_buf_list): Delete it.
6867 (Vcode_conversion_reused_workbuf): Rename from
6868 Vcode_conversion_reused_work_buf.
6869 (Vcode_conversion_workbuf_name): New variable.
6870 (reused_workbuf_in_use): New variable.
6871 (make_conversion_work_buffer): Delete the arg DEPTH.
6872 (code_conversion_restore): Change argument to cons.
6873 (code_conversion_save): Delete the argument BUFFER. Change callers.
6874 (detect_coding_system): New argument src_chars. Change callers.
6875 Fix for utf-16 detection.
6876 (init_coding_once): Don't use ISO_carriage_return.
6877 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
6878 reused_workbuf_in_use.
6879
6880 2008-02-01 Kenichi Handa <handa@m17n.org>
6881
6882 * keymap.c (store_in_keymap): Pay attention to the case that idx
6883 is a cons specifying a character range.
6884
6885 2008-02-01 Kenichi Handa <handa@m17n.org>
6886
6887 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
6888 HANDLED_RECOMPUTE_PROPS.
6889
6890 * coding.c (Fdefine_coding_system_internal): Fix checking of
6891 ascii compatibility.
6892
6893 2008-02-01 Kenichi Handa <handa@m17n.org>
6894
6895 * charset.c (find_charsets_in_text): Delete unused locale variable.
6896 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
6897
6898 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
6899 Resync charset_list to Vemacs_mule_charset_list.
6900
6901 * keymap.c (store_in_keymap): Pay attention to the case that idx
6902 is a cons specifying a character range.
6903
6904 2008-02-01 Kenichi Handa <handa@m17n.org>
6905
6906 * composite.c (update_compositions): Bind inhibit-read-only, etc
6907 to t before calling remove-list-of-text-properties.
6908
6909 * print.c (print_object): Always print ASCII chars as is.
6910
6911 2008-02-01 Kenichi Handa <handa@m17n.org>
6912
6913 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
6914
6915 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
6916 is a char table.
6917
6918 2008-02-01 Kenichi Handa <handa@m17n.org>
6919
6920 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
6921
6922 2008-02-01 Kenichi Handa <handa@m17n.org>
6923
6924 * xfaces.c (set_lface_from_font_name): Fix for the case that
6925 FONTNAME is not fontset name.
6926
6927 2008-02-01 Kenichi Handa <handa@m17n.org>
6928
6929 * fns.c (base64_encode_1): Fix previous change.
6930
6931 2008-02-01 Kenichi Handa <handa@m17n.org>
6932
6933 * fontset.c (set_fontset_font): New function.
6934 (Fset_fontset_font): If a font is specified for a charset, use
6935 map_charset_chars to store the font spec in a fontset.
6936
6937 2008-02-01 Kenichi Handa <handa@m17n.org>
6938
6939 * fontset.c (fontset_face): Create a fallback fontset on demand.
6940 (make_fontset): Don't create a fallback fontset here.
6941 (free_face_fontset): Free a fallback fontset (if any) too.
6942 (n_auto_fontsets): Delete this variable.
6943 (auto_fontset_alist): New variable.
6944 (new_fontset_from_font_name): Check auto_fontset_alist.
6945 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
6946 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
6947 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
6948 Defsubr Sfontset_list_all.
6949
6950 2008-02-01 Kenichi Handa <handa@m17n.org>
6951
6952 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6953
6954 2008-02-01 Kenichi Handa <handa@m17n.org>
6955
6956 * fontset.c (Fnew_fontset): Check NAME more rigidly.
6957
6958 2008-02-01 Kenichi Handa <handa@m17n.org>
6959
6960 * editfns.c (Fgoto_char): Fix docstring.
6961
6962 2008-02-01 Kenichi Handa <handa@m17n.org>
6963
6964 * insdel.c (insert_from_gap): Adjust intervals correctly.
6965
6966 2008-02-01 Jason Rumney <jasonr@gnu.org>
6967
6968 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
6969 (pfnGetFontUnicodeRanges): New dynamically loaded function.
6970 (w32_initialize): Try to load it.
6971 (x_get_font_repertory): Use it if available.
6972 (w32_encode_char): Add shortcut for unicode output.
6973
6974 * w32fns.c (w32_load_system_font): Default charset to -1.
6975 (x_to_w32_charset): Match all fonts for unicode.
6976 (w32_to_x_charset): New parameter matching. Don't return partial
6977 or wildcard charsets.
6978 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
6979 (w32_codepage_for_font): Return CP_UNICODE for unicode.
6980 (w32_to_x_font): Match charset to real charset.
6981 (enum_font_cb2): Always list unicode versions.
6982
6983 * makefile.w32-in (temacs): Increase EMHEAP.
6984
6985 2008-02-01 Jason Rumney <jasonr@gnu.org>
6986
6987 * w32term.c (w32_encode_char): New charset parameter.
6988 font_info.encoding becomes encoding_type.
6989 (x_get_font_repertory): New function. Warning: stub only!
6990 (x_new_font): Return quickly if font already set.
6991 (x_new_fontset): fontsetname parameter is Lisp_Object.
6992 Use new fs_query_fontset. Try new_fontset_from_font_name.
6993 Use fontset_name for return value.
6994
6995 * w32term.h: Declare x_get_font_repertory.
6996
6997 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
6998 place of find_charset_in_text. Use encode_coding_object in place
6999 of encode_coding.
7000 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
7001 decode_coding.
7002
7003 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
7004 of x_new_fontset.
7005 (w32_load_system_font): Initialize charset as unicode.
7006 font_info.encoding becomes encoding_type.
7007 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
7008 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
7009 (syms_of_w32fns): Set get_font_repertory_func.
7010
7011 * w32console.c: Include character.h. Use terminal_encode_buffer
7012 from term.c.
7013 (write_glyphs): Use new version of encode_terminal_code. Use
7014 encode_coding_object in place of encode_coding.
7015
7016 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
7017 encoding becomes encoding_type.
7018
7019 * term.c (terminal_encode_buffer): Make externally visible.
7020
7021 * makefile.w32-in: Add character.h dependancies.
7022 (character.o, chartab.o): New targets.
7023
7024 2008-02-01 Kenichi Handa <handa@m17n.org>
7025
7026 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
7027 CODING_ID_EOL_TYPE.
7028
7029 2008-02-01 Andreas Schwab <schwab@suse.de>
7030
7031 * coding.c (produce_chars): Revert last change.
7032
7033 2008-02-01 Kenichi Handa <handa@m17n.org>
7034
7035 * charset.h (charset_unicode): Extern it.
7036
7037 * charset.c (string_xstring_p): Check by (C >= 0x100).
7038 (find_charsets_in_text): Change format of the arc CHARSETS. New
7039 arg MULTIBYTE.
7040 (Ffind_charset_region, Ffind_charset_string): Adjust for the
7041 change of find_charsets_in_text.
7042 (Fsplit_char): Fix doc. Never return unknown.
7043
7044 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
7045
7046 * coding.c (Fdefine_coding_system_alias): Update
7047 Vcoding_system_list.
7048
7049 * fontset.c (load_font_get_repertory): Pay attention to the case
7050 that ENCODING of a font is specified by a char-table.
7051
7052 * xterm.c (x_get_font_repertory): Handle the case that the
7053 encoding of font is other than Unicode.
7054
7055 2008-02-01 Kenichi Handa <handa@m17n.org>
7056
7057 * term.c (encode_terminal_code): Don't handle glyph-table. Check
7058 if a character is encodable by the terminal coding system. If
7059 not, produces proper number of `?'s. Update
7060 terminal_encode_buffer and terminal_encode_buf_size if necessary.
7061 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
7062
7063 2008-02-01 Kenichi Handa <handa@m17n.org>
7064
7065 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
7066 variables.
7067 (encode_terminal_code): Change argument. Encode multiple
7068 characters at once. Store the result of encoding in
7069 terminal_encode_buffer.
7070 (write_glyphs, insert_glyphs): Adjust for the change of
7071 encode_terminal_code.
7072 (term_init): Initialize terminal_encode_buffer and
7073 terminal_encode_buf_size.
7074
7075 * coding.c (consume_chars): If coding->src_object is nil, don't
7076 check annotation.
7077
7078 2008-02-01 Kenichi Handa <handa@m17n.org>
7079
7080 * character.c (char_string): Use ASCII_CHAR_P instead of
7081 SINGLE_BYTE_CHAR_P.
7082
7083 2008-02-01 Kenichi Handa <handa@m17n.org>
7084
7085 * xdisp.c (handle_auto_composed_prop): Check if the last
7086 characters of auto-composed region is newly composed with the
7087 following characters.
7088 (handle_composition_prop): Fix checking of point being inside
7089 composition.
7090
7091 2008-02-01 Kenichi Handa <handa@m17n.org>
7092
7093 * fns.c (concat): Don't change multibyteness of the result by
7094 concatenating an 8-bit character.
7095
7096 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
7097 multibyteness of the result when newelt is an 8-bit character.
7098
7099 2008-02-01 Dave Love <fx@gnu.org>
7100
7101 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
7102 EMACS_INT.
7103
7104 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
7105
7106 * xfaces.c (face_numeric_value): Declare dim size_t.
7107 (Finternal_lisp_face_equal_p): Remove unused f.
7108
7109 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
7110 (MATRIX_ROW): Remove unused vars.
7111 (draw_glyphs, x_insert_glyphs, fast_find_position)
7112 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
7113 byte/char counts.
7114
7115 * regex.c (regex_compile): Remove unused var.
7116
7117 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7118
7119 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7120 (Faccessible_keymaps, where_is_internal): Remove unused vars.
7121
7122 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
7123
7124 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
7125
7126 * fileio.c (Fwrite_region): Remove unused var.
7127
7128 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
7129 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
7130
7131 * composite.c (Fremove_list_of_text_properties): Declare.
7132
7133 * coding.c (inhibit_pre_post_conversion): Remove (unused).
7134 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
7135 (coding_inherit_eol_type): Remove unused attrs.
7136 (detect_coding): Cast arg of detect_eol.
7137
7138 * charset.c (syms_of_charset): Remove unused var p.
7139 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
7140 byte/char counts.
7141
7142 * casetab.c (set_case_table): Remove unused var.
7143
7144 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
7145 unused vars.
7146
7147 2008-02-01 Dave Love <fx@gnu.org>
7148
7149 * xterm.c (x_bitmap_mask): Declare.
7150
7151 2008-02-01 Dave Love <fx@gnu.org>
7152
7153 * xterm.c (x_term_init): Fix type error.
7154
7155 * lisp.h: Add Funibyte_char_to_multibyte.
7156
7157 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
7158 (Fset_coding_system_priority): Doc fix.
7159
7160 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
7161
7162 * indent.c (check_composition): Make start and end EMACS_INT.
7163
7164 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
7165
7166 * xdisp.c (handle_composition_prop, check_point_in_composition):
7167 Make buffer positions EMACS_INT.
7168
7169 * composite.c (find_composition, run_composition_function)
7170 (update_compositions, Ffind_composition_internal): Make buffer
7171 positions EMACS_INT.
7172
7173 * composite.h (find_composition, update_compositions): Make
7174 position args EMACS_INT.
7175
7176 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
7177
7178 * intervals.c (get_property_and_range):
7179 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
7180
7181 * unexalpha.c: Don't include varargs.h.
7182
7183 2008-02-01 Dave Love <fx@gnu.org>
7184
7185 * coding.h (ENCODE_UTF_8): New.
7186
7187 * Makefile.in (gtkutil.o): Depend on coding.h.
7188
7189 * coding.c (Fset_coding_system_priority): Doc fix.
7190
7191 2008-02-01 Kenichi Handa <handa@m17n.org>
7192
7193 * fileio.c (Finsert_file_contents): Call setup_coding_system in
7194 the case of auto saving.
7195
7196 2008-02-01 Andreas Schwab <schwab@suse.de>
7197
7198 * chartab.c (map_char_table, map_char_table_for_charset): Protect
7199 `range' from GC.
7200
7201 2008-02-01 Kenichi Handa <handa@m17n.org>
7202
7203 * coding.c (decode_coding_sjis): Check bytes more rigidly.
7204
7205 2008-02-01 Kenichi Handa <handa@m17n.org>
7206
7207 * fileio.c (choose_write_coding_system): Return a decided coding system.
7208 (Fwrite_region): Set Vlast_coding_system_used to the return value
7209 of choose_write_coding_system.
7210
7211 2008-02-01 Kenichi Handa <handa@m17n.org>
7212
7213 * charset.c (Fset_charset_priority): Pay attention to duplicated
7214 arguments.
7215
7216 * coding.c (QCcategory): New variable.
7217 (syms_of_coding): Defsym it. Set all elements of
7218 Vcoding_category_table and their symbol values.
7219 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
7220 coding-category-XXX, and coding-category-list.
7221 (Fdefine_coding_system_internal): Add category in the plist.
7222
7223 2008-02-01 Kenichi Handa <handa@m17n.org>
7224
7225 * callproc.c (Fcall_process): Handle carryover correctly.
7226
7227 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
7228 (raw_text_coding_system): Check NILP (coding_system).
7229 (coding_inherit_eol_type): Check NILP (coding_system) and
7230 NILP (parent).
7231 (consume_chars): Fix for the case of raw-text.
7232
7233 * process.c (read_process_output): Handle carryover correctly.
7234
7235 2008-02-01 Dave Love <fx@gnu.org>
7236
7237 * regex.c (re_search_2): Fix last change.
7238
7239 2008-02-01 Kenichi Handa <handa@m17n.org>
7240
7241 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
7242 target_multibyte. Even in a unibyte case, return a converted
7243 multibyte char.
7244 (GET_CHAR_AFTER): New macro.
7245 (PATFETCH): Translate via multibyte char.
7246 (HANDLE_UNIBYTE_RANGE): Delete this macro.
7247 (SETUP_MULTIBYTE_RANGE): New macro.
7248 (regex_compile): Setup compiled code so that its multibyteness
7249 matches that of a target. Fix the handling of "[X-YZ]" using
7250 SETUP_MULTIBYTE_RANGE.
7251 (analyse_first) <charset>: For filling fastmap for all multibyte
7252 characters, don't check by BASE_LEADING_CODE_P.
7253 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
7254 the same as RE_MULTIBYTE_P (bufp) now.
7255 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
7256 (TARGET_CHAR_AND_LENGTH): Delete this macro.
7257 (TRANSLATE_VIA_MULTIBYTE): New macro.
7258 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
7259 It is the same as RE_MULTIBYTE_P (bufp) now.
7260 <exactn>: Translate via multibyte.
7261 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
7262 translate it.
7263 <charset, charset_not>: Fetch a character by
7264 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
7265 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
7266 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
7267 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
7268 by GET_CHAR_AFTER.
7269 (bcmp_translate): Likewise.
7270
7271 * search.c (compile_pattern): Check the member target_multibyte,
7272 not the member multibyte of buf.
7273
7274 * lread.c (read1): While reading a string, set force_singlebyte
7275 and force_multibyte correctly.
7276
7277 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
7278 up of unibyte_to_multibyte_table.
7279
7280 2008-02-01 Kenichi Handa <handa@m17n.org>
7281
7282 * coding.c (setup_coding_system): If coding has
7283 post-read-conversion or pre-write-conversion, set
7284 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
7285 respectively.
7286 (decode_coding_gap): Run post-read-conversion if any.
7287
7288 * fileio.c (Finsert_file_contents): Even if we read into a
7289 unibyte buffer, check if we must decode the result or not.
7290
7291 2008-02-01 Kenichi Handa <handa@m17n.org>
7292
7293 * coding.c (make_conversion_work_buffer): Change the work buffer
7294 name to the same one as that of Emacs 21.
7295
7296 2008-02-01 Kenichi Handa <handa@m17n.org>
7297
7298 * coding.h (make_conversion_work_buffer): Adjust prototype.
7299 (code_conversion_restore): Don't extern it.
7300
7301 * coding.c (detected_mask): Delete unused variable.
7302 (decode_coding_iso_2022): Pay attention to the byte sequence of
7303 CTEXT extended segment, and retain those bytes as is.
7304 (decode_coding_ccl): Delete unused variable `valids'.
7305 (setup_coding_system): Delete unused variable `category'.
7306 (consume_chars): Delete unused variable `category'. Make it work
7307 for non-multibyte case.
7308 (make_conversion_work_buffer): Change argument.
7309 (saved_coding): Delete unused variable.
7310 (code_conversion_restore): Don't check saved_coding->destination.
7311 (code_conversion_save): New function.
7312 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
7313 instead of record_unwind_protect.
7314 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
7315 (detect_coding_system): Delete unused variable `mask'.
7316 (Fdefine_coding_system_internal): Delete unused vaiable id.
7317
7318 * fileio.c (kill_workbuf_unwind): New function.
7319 (Finsert_file_contents): On replacing, call
7320 make_conversion_work_buffer with correct args, and call
7321 record_unwind_protect with the first arg kill_workbuf_unwind.
7322
7323 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
7324
7325 2008-02-01 Kenichi Handa <handa@m17n.org>
7326
7327 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
7328 (fontset_add): Fix for the case that TO is less than TO1.
7329 (Ffontset_info): Don't use fallback fontset on checking the
7330 default fontset.
7331 (dump_fontset): New function for debugging.
7332
7333 * coding.c (Fdefine_coding_system_internal): Fix for the case that
7334 coding_type is Qcharset.
7335
7336 2008-02-01 Kenichi Handa <handa@m17n.org>
7337
7338 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
7339 (map_char_table): Don't inherit the value from the parent on
7340 initializing VAL. Adjust for the above change.
7341
7342 2008-02-01 Kenichi Handa <handa@m17n.org>
7343
7344 * coding.c (Qsignature, Qendian): Delete these variables.
7345 (syms_of_coding): Don't initialize them.
7346 (CATEGORY_MASK_UTF_16_AUTO): New macro.
7347 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
7348 detect_info->found.
7349 (decode_coding_utf_16): Don't detect BOM here.
7350 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
7351 is NOT utf_16_without_bom.
7352 (setup_coding_system): For a coding system of type utf-16, check
7353 if the attribute :endian is Qbig or not (not nil or not), and set
7354 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
7355 (detect_coding): If coding type is utf-16 and BOM detection is
7356 required, detect it.
7357 (Fdefine_coding_system_internal): For a coding system of type
7358 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
7359
7360 2008-02-01 Kenichi Handa <handa@m17n.org>
7361
7362 * coding.c (coding_set_source): Fix for the case that the current
7363 buffer is different from coding->src_object.
7364 (decode_coding_object): Don't use the conversion work buffer if
7365 DST_OBJECT is a buffer.
7366
7367 2008-02-01 Dave Love <fx@gnu.org>
7368
7369 * lread.c (read_emacs_mule_char) [len==2]: Index
7370 emacs_mule_charset correctly.
7371
7372 2008-02-01 Dave Love <fx@gnu.org>
7373
7374 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
7375 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
7376 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
7377 treated specially.)
7378 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
7379 (detected_mask): Remove Big5 bits.
7380
7381 2008-02-01 Kenichi Handa <handa@m17n.org>
7382
7383 The following changes are to make the font rescaling facility
7384 compatible with Emacs 21.
7385
7386 * xfaces.c (Vface_font_rescale_alist): Rename from
7387 Vface_resizing_fonts.
7388 (struct font_name): Rename member resizing_ratio to rescale_ratio.
7389 (font_rescale_ratio): Rename from font_resizing_ratio.
7390 (split_font_name): Set font->rescale_ratio.
7391 (better_font_p): Pay attention to font->rescale_ratio.
7392 (build_scalable_font_name): Likewise. Change RESX, and RESY
7393 fields.
7394 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
7395
7396 2008-02-01 Kenichi Handa <handa@m17n.org>
7397
7398 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
7399 (Qutf_16_le): Remove these variables.
7400 (syms_of_coding): Don't DEFSYM them.
7401 (decode_coding_utf_16): Fix handling of BOM.
7402 (encode_coding_utf_16): Fix handling of BOM.
7403
7404 2008-02-01 Kenichi Handa <handa@m17n.org>
7405
7406 * fileio.c (Finsert_file_contents): On replacing, before decoding
7407 the file into the work buffer, set point of the work buffer to the end.
7408
7409 2008-02-01 Dave Love <fx@gnu.org>
7410
7411 * coding.c (Fcheck_coding_systems_region): Fix type errors.
7412
7413 2008-02-01 Dave Love <fx@gnu.org>
7414
7415 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7416 and fix C types.
7417
7418 2008-02-01 Kenichi Handa <handa@m17n.org>
7419
7420 * xdisp.c (SKIP_GLYPHS): New macro.
7421 (set_cursor_from_row): Pay attention to string display properties.
7422
7423 * category.c (copy_category_entry): Fix for the case that RANGE
7424 is an integer.
7425
7426 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
7427
7428 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
7429
7430 2008-02-01 Kenichi Handa <handa@m17n.org>
7431
7432 * charset.c (Fcharset_id_internal): New function.
7433 (syms_of_charset): Defsubr it.
7434
7435 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
7436 with the last arg charset_list acquired from coding.
7437 (Fdefine_coding_system_internal): For ccl-based coding system, fix
7438 the attribute coding_attr_ccl_valids.
7439
7440 * coding.h (enum define_coding_ccl_arg_index): Set the first
7441 member coding_arg_ccl_decoder to coding_arg_max.
7442
7443 * ccl.h (ccl_driver): Adjust prototype.
7444
7445 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
7446 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
7447 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
7448 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
7449 last arg Qnil.
7450
7451 2008-02-01 Kenichi Handa <handa@m17n.org>
7452
7453 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
7454 call encode_char.
7455
7456 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
7457
7458 2008-02-01 Dave Love <fx@gnu.org>
7459
7460 * composite.c (syms_of_composite): Make composition_hash_table weak.
7461
7462 2008-02-01 Kenichi Handa <handa@m17n.org>
7463
7464 * dispextern.h (check_face_attributes, generate_ascii_font_name)
7465 (font_name_registry): Don't extern them.
7466 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
7467
7468 * fontset.h (Qfontset): Don't extern it.
7469 (new_fontset_from_font_name): Extern it.
7470
7471 * fontset.c: Give 8 extra slots to fontset objects.
7472 (Qfontset_info): New variable.
7473 (syms_of_fontset): Defsym it.
7474 (FONTSET_FALLBACK): New macro.
7475 (fontset_face): Try also the default fontset.
7476 (make_fontset): Realize a fallback fontset from the default fontset.
7477 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
7478 using split_font_name_into_vector and build_font_name_from_vector.
7479 (Fset_fontset_font): Access the elements of font_spec by enum
7480 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
7481 name by using split_font_name_into_vector.
7482 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
7483 generate a proper font name from the fontset name. Update
7484 Vfontset_alias_alist.
7485 (n_auto_fontsets): New variable.
7486 (new_fontset_from_font_name): New function.
7487 (Ffont_info): Store the information about fonts generated from the
7488 default fontset in the first extra slot of the returned char-table.
7489
7490 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
7491 (font_name_registry): Delete function.
7492 (split_font_name_into_vector): New function.
7493 (build_font_name_from_vector): New function.
7494 (font_list): The argument REGISTRY is now a list of registry names.
7495 (choose_face_font): If we are choosing an ASCII font, and ATTRS
7496 specifies an explicit font name, return the name as is. Make a
7497 list of registy names.
7498
7499 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
7500 of x_new_fontset.
7501 (Fx_create_frame): Don't call x_new_fontset here. Just use
7502 x_list_fonts to check the existence of fonts.
7503
7504 * xterm.h (x_new_fontset): Adjust prototype.
7505
7506 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
7507 string. Use new_fontset_from_font_name to create a fontset from a
7508 font name.
7509
7510 2008-02-01 Kenichi Handa <handa@m17n.org>
7511
7512 * syntax.c (Vfind_word_boundary_function_table): New name for
7513 Vnext_word_boundary_function_table.
7514 (find-word-boundary-function-table): New name for
7515 next-word-boundary-function-table.
7516
7517 2008-02-01 Dave Love <fx@gnu.org>
7518
7519 * Makefile.in: Fix some dependencies.
7520
7521 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
7522 set it to nil before returning.
7523
7524 * composite.c (update_compositions): Fix type error.
7525
7526 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
7527
7528 2008-02-01 Kenichi Handa <handa@m17n.org>
7529
7530 * xterm.c (x_new_font): Optimize for the case that the font is
7531 already set for the frame.
7532
7533 2008-02-01 Kenichi Handa <handa@m17n.org>
7534
7535 * chartab.c (char_table_ascii): Check if the char table contents
7536 is sub-char-table or not.
7537 (char_table_set, char_table_set_range): Fix argument to
7538 char_table_ascii.
7539
7540 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
7541 (detect_coding_utf_8, detect_coding_utf_16)
7542 (detect_coding_emacs_mule, detect_coding_iso_2022)
7543 (detect_coding_sjis, detect_coding_big5)
7544 (detect_coding_ccl, detect_coding_charset): Change argument MASK
7545 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
7546 sequence is valid in this coding system. Change callers.
7547 (MAX_ANNOTATION_LENGTH): New macro.
7548 (ADD_ANNOTATION_DATA): New macro.
7549 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
7550 ADD_ANNOTATION_DATA. Change the format of annotation data.
7551 (ADD_CHARSET_DATA): New macro.
7552 (emacs_mule_char): New argument ID. Change callers.
7553 (decode_coding_emacs_mule, decode_coding_iso_2022)
7554 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7555 Produce charset annotation data in coding->charbuf.
7556 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
7557 to charset annotation data in coding->charbuf.
7558 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
7559 coding->common_flags if the coding system is iso-2022 based and
7560 uses designation.
7561 (produce_composition): Adjust for the new annotation data format.
7562 (produce_charset): New function.
7563 (produce_annotation): Handle charset annotation.
7564 (handle_composition_annotation, handle_charset_annotation): New
7565 functions.
7566 (consume_chars): Handle charset annotation. Utilize the above two
7567 functions.
7568 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
7569 buffer, get the deleted text as a string and set
7570 coding->src_object to that string.
7571 (detect_coding, detect_coding_system): Use the new struct
7572 coding_detection_info.
7573
7574 * coding.h (struct coding_detection_info): New structure.
7575 (struct coding_system): Adjust prototype of the member `detector'.
7576 (CODING_ANNOTATE_CHARSET_MASK): New macro.
7577
7578 2008-02-01 Kenichi Handa <handa@m17n.org>
7579
7580 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
7581
7582 2008-02-01 Dave Love <fx@gnu.org>
7583
7584 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
7585 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
7586 to new local and nullify apropos_accumulate before returning.
7587 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
7588
7589 2008-02-01 Kenichi Handa <handa@m17n.org>
7590
7591 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
7592 correctly.
7593
7594 2008-02-01 Dave Love <fx@gnu.org>
7595
7596 * fns.c (Flanginfo): Call synchronize_system_time_locale.
7597
7598 2008-02-01 Kenichi Handa <handa@m17n.org>
7599
7600 The following changes are to make character composition happen
7601 automatically on displaying.
7602
7603 * Makefile.in (lisp, shortlisp): Add composite.elc.
7604
7605 * composite.h (Qauto_composed, Vauto_composition_function)
7606 (Qauto_composition_function): Extern them.
7607
7608 * composite.c (Vcomposition_function_table)
7609 (Qcomposition_function_table): Delete variables.
7610 (Qauto_composed, Vauto_composition_function)
7611 (Qauto_composition_function): New variables.
7612 (run_composition_function): Don't call
7613 compose-chars-after-function.
7614 (update_compositions): Clear `auto-composed' text property.
7615 (compose_chars_in_text): Delete this function.
7616 (syms_of_composite): Staticpro Qauto_composed and
7617 Qauto_composition_function. Declare Vauto_composition_function as
7618 a Lisp variable.
7619
7620 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
7621
7622 * xdisp.c (it_props): Add an entry for Qauto_composed.
7623 (handle_auto_composed_prop): New function.
7624
7625 * xselect.c (selection_data_to_lisp_data): Don't call
7626 compose_chars_in_text.
7627
7628 2008-02-01 Dave Love <fx@gnu.org>
7629
7630 * keyboard.c (read_char): Modify checking around use of
7631 Vkeyboard_translate_table.
7632
7633 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7634 and fix C types.
7635
7636 2008-02-01 Kenichi Handa <handa@m17n.org>
7637
7638 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
7639 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7640 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
7641 the case that the last byte is '\r' correctly.
7642 (decode_coding): Flush out the unprocessed data correctly.
7643 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
7644
7645 2008-02-01 Dave Love <fx@gnu.org>
7646
7647 * xterm.c (XTread_socket): Fix changes for defined keysyms.
7648 Add XK_ISO... case.
7649 (xaw_scroll_callback): Revert last change.
7650
7651 2008-02-01 Kenichi Handa <handa@m17n.org>
7652
7653 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
7654
7655 2008-02-01 Kenichi Handa <handa@m17n.org>
7656
7657 * xfaces.c (Vface_resizing_fonts): New variable.
7658 (struct font_name): New member `resizing_ratio'.
7659 (font_resizing_ratio): New function.
7660 (split_font_name): Set font->resizing_ratio.
7661 (better_font_p): Pay attention to font->resizing_ratio.
7662 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
7663 RESX, and RESY fields.
7664 (try_alternative_families): Try scalable fonts if
7665 Vscalable_fonts_allowed is not Qt.
7666 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
7667
7668 2008-02-01 Dave Love <fx@gnu.org>
7669
7670 * xterm.c (xaw_scroll_callback): Cast correctly.
7671
7672 2008-02-01 Dave Love <fx@gnu.org>
7673
7674 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
7675 (lispy_kana_keys): Comment out.
7676 (make_lispy_event) [XK_kana_A]: Comment out.
7677
7678 * xterm.c (xaw_scroll_callback): Cast call_data.
7679 (XTread_socket): Deal with ASCII keysyms.
7680 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
7681
7682 2008-02-01 Dave Love <fx@gnu.org>
7683
7684 * xterm.c (Vx_keysym_table): New.
7685 (syms_of_xterm): Initialize it.
7686 (XTread_socket): Use it.
7687 From head: Eliminate incorrect optimization that tried to avoid
7688 decoding the output of X*LookupString.
7689 (x_get_font_repertory): Delete charset declaration.
7690
7691 2008-02-01 Kenichi Handa <handa@m17n.org>
7692
7693 * coding.c (detect_coding_charset): If only ASCII bytes are found,
7694 return 0.
7695 (Fdefine_coding_system_internal): Setup
7696 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
7697
7698 2008-02-01 Dave Love <fx@gnu.org>
7699
7700 * coding.c (Fcheck_coding_system): Doc fix.
7701
7702 * editfns.c (Finsert_byte): Return a proper value.
7703
7704 2008-02-01 Kenichi Handa <handa@m17n.org>
7705
7706 * coding.c (decode_coding): Fix args to translate_chars. Pay
7707 attention to Vstandard_translation_table_for_decode.
7708 (encode_coding): Fix args to translate_chars. Pay attention to
7709 Vstandard_translation_table_for_encode.
7710
7711 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7712 SINGLE_BYTE_CHAR_P.
7713
7714 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7715 not by SINGLE_BYTE_CHAR_P.
7716
7717 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7718 SINGLE_BYTE_CHAR_P.
7719
7720 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7721 SINGLE_BYTE_CHAR_P.
7722
7723 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7724 by SINGLE_BYTE_CHAR_P.
7725
7726 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7727 SINGLE_BYTE_CHAR_P.
7728
7729 2008-02-01 Dave Love <fx@gnu.org>
7730
7731 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7732
7733 2008-02-01 Dave Love <fx@gnu.org>
7734
7735 * fns.c (Flanginfo): Fix typo.
7736
7737 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
7738
7739 2008-02-01 Kenichi Handa <handa@m17n.org>
7740
7741 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
7742 (detect_coding_emacs_mule, detect_coding_iso_2022)
7743 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
7744 incomplete byte sequence. Don't update *mask when correctly detected.
7745 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
7746 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
7747 (detect_coding, detect_coding_system): Adjust for the changes above.
7748
7749 2008-02-01 Kenichi Handa <handa@m17n.org>
7750
7751 * character.c (char_string): Rename from
7752 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
7753 (string_char): Rename from string_char.
7754
7755 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
7756 if C is greater than MAX_3_BYTE_CHAR.
7757 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
7758 string_char instead of string_char_with_unification.
7759
7760 2008-02-01 Dave Love <fx@gnu.org>
7761
7762 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
7763
7764 2008-02-01 Kenichi Handa <handa@m17n.org>
7765
7766 * keymap.c (push_key_description): Pay attention to force_multibyte.
7767
7768 * regex.c (re_search_2): Fix for the case of unibyte buffer.
7769
7770 2008-02-01 Dave Love <fx@gnu.org>
7771
7772 * charset.c (define_charset_internal): Rename `supprementary'.
7773
7774 * Makefile.in (lisp, shortlisp): Remove latin-N.
7775
7776 2008-02-01 Dave Love <fx@gnu.org>
7777
7778 * xfns.c (x_window, x_window): Use use_xim.
7779
7780 * xterm.c (use_xim): Initialize.
7781 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7782 (x_term_init): Maybe set use_xim.
7783
7784 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7785
7786 2008-02-01 Kenichi Handa <handa@m17n.org>
7787
7788 * search.c (search_buffer): Fix case-fold-search of multibyte
7789 characters.
7790 (boyer_moore): Rename the last argument to char_high_bits.
7791
7792 2008-02-01 Kenichi Handa <handa@m17n.org>
7793
7794 * xdisp.c (display_string): Fix for the case of zero width glyph.
7795
7796 * xfns.c (x_set_font): Change the error message of the case that
7797 x_new_fontset returns Qt.
7798
7799 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
7800 (Finternal_set_lisp_face_attribute): Use signal_error for the
7801 error of invalid fontset.
7802
7803 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
7804 fontset, return Qt.
7805
7806 2008-02-01 Dave Love <fx@gnu.org>
7807
7808 * unexelf.c (unexec): Make .got handling not SGI-specific.
7809
7810 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
7811
7812 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
7813
7814 * keyboard.c (read_key_sequence): Fix type error.
7815
7816 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
7817 type error.
7818
7819 * fontset.c (fontset_add): Return Lisp_Object.
7820
7821 2008-02-01 Dave Love <fx@gnu.org>
7822
7823 * charset.h (charset_ordered_list_tick): Declare extern.
7824
7825 2008-02-01 Kenichi Handa <handa@m17n.org>
7826
7827 The following changes (and some of 2008-02-01 changes of mine) are
7828 for handling syntax, category, and case conversion for unibyte
7829 characters by converting them to multibyte on the fly. With these
7830 changes, we don't have to setup syntax and case tables for unibyte
7831 characters in each language environment.
7832
7833 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
7834 multibyte if necessary.
7835
7836 * bytecode.c (Fbyte_code): Likewise.
7837
7838 * character.h (LEADING_CODE_LATIN_1_MIN)
7839 (LEADING_CODE_LATIN_1_MAX): New macros.
7840 (unibyte_to_multibyte_table): Extern it.
7841 (unibyte_char_to_multibyte): New macro.
7842 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
7843 (CHAR_LEADING_CODE): New macro.
7844 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
7845
7846 * character.c (unibyte_to_multibyte_table): New variable.
7847 (unibyte_char_to_multibyte): Move to character.h and define as macro.
7848 (multibyte_char_to_unibyte): If C is an eight-bit character,
7849 convert it to the corresponding byte value.
7850
7851 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
7852 not 1, singals an error. Update the elements of
7853 unibyte_to_multibyte_table.
7854 (init_charset_once): Initialize unibyte_to_multibyte_table.
7855 (syms_of_charset): Define the charset `iso-8859-1'.
7856
7857 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
7858 as is without converting it to unibyte. In a unibyte buffer,
7859 convert C to multibyte before checking the syntax.
7860
7861 * lisp.h (unibyte_char_to_multibyte): Delete extern.
7862
7863 * minibuf.c (Fminibuffer_complete_word): Use the macro
7864 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
7865
7866 * regex.h (struct re_pattern_buffer): New member target_multibyte.
7867
7868 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
7869 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
7870 that is zero, convert an eight-bit char to multibyte.
7871 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
7872 non-emacs case.
7873 (PATFETCH): Convert an eight-bit char to multibyte.
7874 (HANDLE_UNIBYTE_RANGE): New macro.
7875 (regex_compile): Setup the compiled pattern for multibyte chars
7876 even if the given regex string is unibyte. Use PATFETCH_RAW
7877 instead of PATFETCH in many places. To handle `charset'
7878 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
7879 only for ASCII chars.
7880 (analyse_first) <exactn>: Simplify because the compiled pattern
7881 is multibyte.
7882 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
7883 <charset>: Use CHAR_LEADING_CODE to get leading codes.
7884 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
7885 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
7886 multibyte always 1.
7887 (re_search_2): In emacs, set the locale variable multibyte to 1,
7888 otherwise to 0. New local variable target_multibyte. Check it
7889 to decide the multibyteness of STR1 and STR2. If
7890 target_multibyte is zero, convert unibyte chars to multibyte
7891 before translating and checking fastmap.
7892 (TARGET_CHAR_AND_LENGTH): New macro.
7893 (re_match_2_internal): In emacs, set the locale variable multibyte
7894 to 1, otherwise to 0. New local variable target_multibyte. Check
7895 it to decide the multibyteness of STR1 and STR2. Use
7896 TARGET_CHAR_AND_LENGTH to fetch a character from D.
7897 <charset, charset_not>: If multibyte is nonzero, check fastmap
7898 only for ASCII chars. Call bcmp_translate with
7899 target_multibyte, not with multibyte.
7900 <begline>: Declare the local variable C as `unsigned'.
7901 (bcmp_translate): Change the last arg name to target_multibyte.
7902
7903 * search.c (compile_pattern_1): Don't adjust the multibyteness of
7904 the regexp pattern and the matching target. Set cp->buf.multibyte
7905 to the multibyteness of the regexp pattern. Set
7906 cp->but.target_multibyte to the multibyteness of the matching target.
7907 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
7908 FETCH_STRING_CHAR_ADVANCE.
7909 (Freplace_match): Convert unibyte chars to multibyte.
7910
7911 * syntax.c (char_quoted, back_comment, scan_words)
7912 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
7913 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
7914 unibyte chars to multibyte.
7915 (skip_chars): Delete the arg syntaxp, and move the code for
7916 handling syntaxes to skip_syntaxes. Change callers.
7917 Fix the case that the multibyteness of STRING and the current
7918 buffer doesn't match.
7919 (skip_syntaxes): New function.
7920 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
7921 SINGLE_BYTE_CHAR_P.
7922
7923 2008-02-01 Kenichi Handa <handa@m17n.org>
7924
7925 * xfaces.c (QCfontset): New variable.
7926 (LFACE_FONTSET): New macro.
7927 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
7928 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
7929 (Finternal_set_lisp_face_attribute)
7930 (Finternal_get_lisp_face_attribute): Handle QCfontset.
7931 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
7932 check also LFACE_FONTSET_INDEX.
7933 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
7934 attrs[LFACE_FONT_INDEX].
7935 (syms_of_xfaces): Intern and staticpro QCfontset.
7936
7937 * dispextern.h (enum lface_attribute_index): New member
7938 LFACE_FONTSET_INDEX.
7939
7940 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
7941
7942 2008-02-01 Kenichi Handa <handa@m17n.org>
7943
7944 * coding.c (coding_set_destination): Fix coding->destination for
7945 the case converting a region.
7946 (encode_coding_utf_8): Encode eight-bit chars as single byte.
7947 (encode_coding_object): Fix coding->dst_pos and
7948 coding->dst_pos_byte for the case converting a region.
7949
7950 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
7951
7952 * character.h (BYTE8_STRING): New macro.
7953
7954 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
7955
7956 2008-02-01 Kenichi Handa <handa@m17n.org>
7957
7958 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
7959 characters by octal form.
7960
7961 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
7962
7963 * buffer.h (_fetch_multibyte_char_len): Delete extern.
7964 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
7965 _fetch_multibyte_char_len.
7966 (FETCH_CHAR_AS_MULTIBYTE): New macro.
7967
7968 * casetab.c (set_canon, set_identity, shuffle): Simplify.
7969
7970 * casefiddle.c (casify_object): Simplify. Handle the case that
7971 the case conversion change the byte length.
7972 (casify_region): Likewise.
7973
7974 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
7975
7976 * character.c (_fetch_multibyte_char_len): Delet this variable.
7977 (syms_of_character): Setup Vprintable_chars.
7978
7979 * editfns.c (Fchar_equal): Fix for the unibyte case.
7980 (Finsert_byte): New function.
7981 (syms_of_editfns): Defsubr it.
7982
7983 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
7984 of direct code 0x3ffff.
7985
7986 * search.c (Freplace_match): Fix for the unibyte case.
7987
7988 2008-02-01 Kenichi Handa <handa@m17n.org>
7989
7990 * lread.c (safe_to_load_p): Fix the logic.
7991
7992 * syntax.c (scan_words): Don't treat characters belonging to
7993 different scripts as constituting a word.
7994
7995 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7996
7997 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
7998
7999 * emacs.c (main): In the case of --unibyte, instead of aborting on
8000 finding non-empty buffer, make it unibyte.
8001
8002 2008-02-01 Kenichi Handa <handa@m17n.org>
8003
8004 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
8005 to create a fontset.
8006
8007 2008-02-01 Dave Love <fx@gnu.org>
8008
8009 * character.c (Funibyte_char_to_multibyte): Doc fix.
8010
8011 * xfns.c [HAVE_STDLIB_H]: Fix last change.
8012
8013 2008-02-01 Kenichi Handa <handa@m17n.org>
8014
8015 * fontset.c (fontset_add): Make the type `int'.
8016 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
8017
8018 * character.c (unibyte_char_to_multibyte)
8019 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
8020 charset_unibyte, not charset_primary.
8021
8022 * charset.h (charset_unibyte): Extern it instead of charset_primary.
8023
8024 * charset.c (charset_unibyte): Rename from charset_primary.
8025 (Funibyte_charset): Rename from Fprimary_charset.
8026 (Fset_unibyte_charset): Rename from Fset_primary_charset.
8027 (syms_of_charset): Adjust for the above changes.
8028
8029 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8030 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8031 it->multibyte_p is zero.
8032
8033 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
8034 Delete extern.
8035
8036 2008-02-01 Kenichi Handa <handa@m17n.org>
8037
8038 * coding.c (Fdefine_coding_system_internal): Fix category setting
8039 for a coding system of type iso-2022.
8040
8041 2008-02-01 Kenichi Handa <handa@m17n.org>
8042
8043 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
8044
8045 2008-02-01 Kenichi Handa <handa@m17n.org>
8046
8047 * syntax.c (Vnext_word_boundary_function_table): New variable.
8048 (next-word-boundary-function-table): Declare it as a Lisp variable
8049 in syms_of_syntax.
8050 (scan_words): Call functions in Vnext_word_boundary_function_table
8051 if any.
8052
8053 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
8054
8055 * fontset.c (fs_load_font): If fontp->charset is not negative,
8056 return fontp without setting its members.
8057
8058 2008-02-01 Dave Love <fx@gnu.org>
8059
8060 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
8061
8062 * m/sparc.h (HAVE_ALLOCA): Delete.
8063
8064 * s/irix6-5.h: Don't include strings.h.
8065 (bcopy, bzero, bcmp): Don't undef.
8066
8067 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
8068
8069 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
8070 (TIOCSIGSEND): Don't test IRIX6.
8071 (bcopy, bzero, bcmp): Define conditionally.
8072
8073 2008-02-01 Kenichi Handa <handa@m17n.org>
8074
8075 * buffer.c (Qas, Qmake, Qto): New variables.
8076 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
8077 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
8078
8079 * callproc.c (Fcall_process): Don't call insert_1_both directly if
8080 we are inserting a process output into a multibyte buffer.
8081
8082 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
8083 multibyte_char_to_unibyte.
8084
8085 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
8086 by the primary charset, make it eight-bit char.
8087 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
8088
8089 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
8090 (charset_8_bit__control, charset_8_bit_graphic)
8091 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
8092 (define_charset_internal): New function.
8093 (syms_of_charset): Call define_charset_internal for pre-defined
8094 charsets.
8095
8096 * charset.h (charset_8_bit): Extern it.
8097
8098 * coding.c (make_conversion_work_buffer): Adjust for the change
8099 of Fset_buffer_multibyte.
8100 (encode_coding_raw_text): Increment p0 in the loop.
8101
8102 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
8103
8104 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
8105 for the change of Fset_buffer_multibyte.
8106
8107 * fns.c (Fstring_to_multibyte): New function.
8108 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
8109
8110 2008-02-01 Dave Love <fx@gnu.org>
8111
8112 * xfns.c (x_put_x_image): Declare args.
8113
8114 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
8115 (try_font_list): Declare an arg.
8116
8117 * xdisp.c (message2_nolog, set_message): Declare an arg.
8118
8119 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
8120
8121 * syntax.c (scan_sexps_forward): Declare an arg.
8122
8123 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8124 Declare an arg.
8125
8126 * lisp.h (Fnew_fontset): Declare.
8127
8128 * keymap.c (push_key_description): Call CHARACTERP correctly.
8129
8130 * fontset.c (fontset_add): Declare args. Call make_number correctly.
8131 (face_for_char): Delete unused vars.
8132 (Fset_fontset_font): Doc fix. Delete unused vars.
8133
8134 * doc.c (Fsubstitute_command_keys): Delete unused vars.
8135
8136 * composite.c (update_compositions): Declare arg.
8137
8138 * cm.c (calccost, cmgoto): Declare args.
8139
8140 * charset.c: Remove `emacs' conditional. Doc fixes.
8141 (map_char_table_for_charset): Declare.
8142
8143 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
8144
8145 * ccl.c: Remove `emacs' conditional.
8146
8147 2008-02-01 Kenichi Handa <handa@m17n.org>
8148
8149 The following changes are to allow specifying multiple font
8150 patterns for a character range (specified by script or charset).
8151
8152 * Makefile.in (abbrev.o): Depend on syntax.h.
8153 (xfaces.o): Depend on charset.h.
8154
8155 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
8156 SINGLE_BYTE_CHAR_P.
8157
8158 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
8159
8160 * character.h (Vchar_script_table): Extern it.
8161
8162 * character.c (Vscript_alist): Delete.
8163 (Vchar_script_table, Qchar_script_table): New variable.
8164 (syms_of_character): Declare Vchar_script_table as a lisp variable
8165 and initialize it.
8166
8167 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
8168 have property char-table-extra-slots, make no extra slot.
8169
8170 * dispextern.h (struct face): Delete member `charset'.
8171 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
8172 SINGLE_BYTE_CHAR_P.
8173 (choose_face_font, lookup_non_ascii_face, font_name_registry):
8174 Add prototypes.
8175 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
8176 (generate_ascii_font_name): Rename from generate_ascii_font.
8177
8178 * fontset.h (get_font_repertory_func): New prototype.
8179 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
8180 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
8181
8182 * fontset.c (Qprepend, Qappend): New variables.
8183 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
8184 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
8185 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
8186 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
8187 (fontset_ref_and_range, fontset_add, reorder_font_vector)
8188 (load_font_get_repertory): New functions.
8189 (fontset_set): Delete.
8190 (fontset_face): New arg FACE. Return face ID, not face.
8191 Complete re-write to handle new fontset structure. Change caller.
8192 (free_face_fontset): Use ASET istead of AREF (X) = Y.
8193 (face_for_char): Don't call lookup_face.
8194 (make_fontset_for_ascii_face): New arg FACE.
8195 (fs_load_font): New arg CHARSET_ID. Don't check
8196 Vfont_encoding_alist here.
8197 (find_font_encoding): New function.
8198 (list_fontsets): Use STRINGP, not ! NILP.
8199 (accumulate_script_ranges): New function.
8200 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
8201 re-written to handle new fontset structure.
8202 (Ffontset_font): Return a copy of element.
8203 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
8204 docstring of font-encoding-alist.
8205
8206 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
8207 (Fset_fotset_font): Fix arguments to 5.
8208
8209 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
8210
8211 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
8212 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8213 (highlight_trailing_whitespace): Adjust for the change of
8214 lookup_named_face.
8215
8216 * xfaces.c: Include charset.h.
8217 (load_face_font): Delete argument C. Change caller.
8218 (generate_ascii_font_name): Rename from generate_ascii_font.
8219 (font_name_registry): New function.
8220 (cache_face): Store ascii faces before non-ascii faces in buckets.
8221 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
8222 Lookup only ascii faces.
8223 (lookup_non_ascii_face): New function.
8224 (lookup_named_face): Delete argument C. Change caller.
8225 (lookup_derived_face): Delete argument C. Change caller.
8226 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
8227 a string, just call font_list with it.
8228 (choose_face_font): Delete arguments FACE and C. New arg
8229 FONT_SPEC. Change caller.
8230 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
8231 Change caller.
8232 (realize_non_ascii_face): New function.
8233 (realize_x_face): Call load_face_font here.
8234 (realize_tty_face): Delete argument C. Change caller.
8235 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
8236 get a face ID.
8237 (dump_realized_face): Don't print charset of FACE.
8238
8239 * xfns.c (x_set_font): Always call x_new_fontset and
8240 store_frame_parameter.
8241 (Fx_create_frame): Call x_new_fontset, not x_new_font.
8242 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
8243
8244 * xterm.h (x_get_font_repertory): Extern it.
8245
8246 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8247 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8248 it->multibyte_p is zero.
8249 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8250 (x_new_fontset): If FONTSETNAME doesn't match any existing
8251 fontsets, create a new one.
8252 (x_get_font_repertory): New function.
8253
8254 2008-02-01 Kenichi Handa <handa@m17n.org>
8255
8256 * coding.c (Ffind_coding_systems_region_internal): Detect an
8257 ASCII only string correctly.
8258
8259 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
8260 version is 0.
8261
8262 2008-02-01 Kenichi Handa <handa@m17n.org>
8263
8264 * lread.c: Include "coding.h".
8265 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
8266 (load_each_byte, unread_char): New variables.
8267 (readchar_backlog): Delete.
8268 (readchar): Return a character unless load_each_byte is nonzero.
8269 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
8270 cons. If unread_char is not -1, simply return it.
8271 (unreadchar): Handle the case that readcharfun is
8272 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
8273 (read_multibyte): Delete.
8274 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
8275 (read_emacs_mule_char): New functions.
8276 (Fload): Even if the file doesn't have the extention ".elc", if
8277 safe_to_load_p returns a positive version number, assume that the
8278 file contains bytecompiled code. If the version is less than 22,
8279 load the file while decoding multibyte sequences by emacs-mule.
8280 (readevalloop): Don't use readchar_backlog.
8281 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
8282 (Fread_from_string): Pay attention to the case that STREAM is a cons.
8283 (read_escape): Delete the arg BYTEREP.
8284 (read1): Set load_each_byte to 1 temporarily while handling
8285 #@NUMBER. Don't call read_multibyte.
8286 (read_vector): Call Fread with a cons. If readcharfun is
8287 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
8288 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
8289 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
8290 and Qload_force_doc_strings.
8291
8292 2008-02-01 Kenichi Handa <handa@m17n.org>
8293
8294 * xdisp.c (face_before_or_after_it_pos): Call
8295 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8296
8297 2008-02-01 Kenichi Handa <handa@m17n.org>
8298
8299 * character.h (TRAILING_CODE_P): New macro.
8300 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
8301 (string_char_with_unification): Fix prototype.
8302 (Vscript_alist): Extern it.
8303
8304 * character.c (Vscript_alist): New variable.
8305 (string_char_with_unification, str_as_unibyte)
8306 (string_escape_byte8): Add `const' to local variables.
8307 (syms_of_character): Declare script-alist as a Lisp variable.
8308
8309 * charset.h (Vcharset_ordered_list): Extern it.
8310 (charset_ordered_list_tick): Extern it.
8311 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
8312 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
8313 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
8314 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
8315 (Funify_charset): Adjust for the change of Funify_charset.
8316
8317 * charset.c (charset_ordered_list_tick): New variable.
8318 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
8319 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
8320 deunify intead of unify a charset.
8321 (string_xstring_p): Add `const' to local variables.
8322 (find_charsets_in_text): Add `const' to arguemnts and local variables.
8323 (encode_char): Adjust for the change of Funify_charset. Fix
8324 detecting of invalid code.
8325 (Fset_charset_priority): Increment charset_ordered_list_tick.
8326 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
8327 and TO_CODE.
8328
8329 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
8330 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
8331 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
8332 (decode_coding_ccl, consume_chars)
8333 (Ffind_coding_systems_region_internal)
8334 (Fcheck_coding_systems_region): Add `const' to local variables.
8335
8336 * print.c (print_object): Use octal form for printing the
8337 contents of a bool vector.
8338
8339 2008-02-01 Dave Love <fx@gnu.org>
8340
8341 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
8342 <version == 20>: Refuse to load.
8343
8344 2008-02-01 Dave Love <fx@gnu.org>
8345
8346 * fns.c: Move coding.h.
8347 (Qcodeset, Qdays, Qmonths): New.
8348 (concat): Use CHARACTERP instead of INTERGERP.
8349 (Flocale_codeset): Delete.
8350 (Flanginfo): New function.
8351 (syms_of_fns): Change accordingly.
8352
8353 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
8354
8355 2008-02-01 Dave Love <fx@gnu.org>
8356
8357 * casetab.c (init_casetab_once, init_casetab_once): Fix
8358 CHAR_TABLE_SET call.
8359
8360 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
8361
8362 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
8363
8364 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
8365 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
8366 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
8367
8368 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
8369
8370 * coding.c (ENCODE_DESIGNATION, decode_eol)
8371 (make_conversion_work_buffer, code_conversion_restore)
8372 (Fdefine_coding_system_internal): Convert Lisp types.
8373 (code_conversion_restore): Use EQ, not ==.
8374 (Fencode_coding_string): Fix code_convert_string call.
8375
8376 * coding.h (code_convert_region): Fix prototype.
8377
8378 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
8379
8380 * fontset.c (fontset_ref, fontset_set, fs_load_font)
8381 (Ffontset_info): Convert Lisp types.
8382
8383 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
8384
8385 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
8386
8387 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
8388
8389 * chartab.c: Include "...h", not <...h> in some cases.
8390
8391 * callproc.c (Fcall_process): Remove unused variables.
8392
8393 2008-02-01 Dave Love <fx@gnu.org>
8394
8395 * coding.c (Fset_coding_system_priority): Allow null arg list.
8396
8397 2008-02-01 Dave Love <fx@gnu.org>
8398
8399 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8400 (Fself_insert_and_exit): Use CHARACTERP.
8401
8402 * callproc.c (Fcall_process): Remove unused vars.
8403
8404 * xterm.c (XTread_socket): Add extra dead keysyms.
8405
8406 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
8407
8408 * dispextern.h: Remove prototypes for redraw_frame,
8409 redraw_garbaged_frames.
8410
8411 * cmds.c (Fself_insert_command): Use CHARACTERP.
8412
8413 * chartab.c (make_sub_char_table): Remove unused var.
8414 (Fset_char_table_default, Fmap_char_table): Doc fix.
8415
8416 * keymap.c (access_keymap): Remove generic char code.
8417 (push_key_description): Use CHARACTERP.
8418
8419 2008-02-01 Dave Love <fx@gnu.org>
8420
8421 * charset.c: Doc fixes.
8422 (Funify_charset): Extra checking.
8423
8424 2008-02-01 Dave Love <fx@gnu.org>
8425
8426 * lread.c: Remove some unused variables.
8427 (safe_to_load_p): If safe, return the magic number version byte.
8428 (Fload): Maybe use load-with-code-conversion.
8429
8430 2008-02-01 Kenichi Handa <handa@m17n.org>
8431
8432 * category.c (Fmodify_category_entry): Don't modify the contents
8433 of category_set for characters out of the range. Avoid
8434 unnecessary modification.
8435
8436 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
8437 Vchar_unify_table. The default value of the table is now nil.
8438
8439 * character.c (syms_of_character): Setup Vchar_width_table for
8440 eight-bit-control and raw-byte chars.
8441
8442 * charset.h (enum define_charset_arg_index): Delete
8443 charset_arg_parents and add charset_arg_subset and
8444 charset_arg_superset.
8445 (enum charset_attr_index): Delete charset_parents and add
8446 charset_subset and charset_superset.
8447 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
8448 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
8449 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
8450 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
8451 (CHARSET_SUPERSET): New macros.
8452 (charset_work): Extern it.
8453 (ENCODE_CHAR): Use charset_work.
8454 (CHAR_CHARSET_P): Adjust for the change of encoder format.
8455 (map_charset_chars): Extern it.
8456
8457 * charset.c (load_charset_map): Set the default value of encoder
8458 and deunifier char-tables to nil.
8459 (map_charset_chars): Change argument. Change callers. Use
8460 map_char_table_for_charset instead of map_char_table.
8461 (Fmap_charset_chars): New optional args from_code and to_code.
8462 (Fdefine_charset_internal): Adjust for the change of
8463 `define-charset' (:parents -> :subset or :superset).
8464 (charset_work): New variable.
8465 (encode_char, syms_of_charset): Adjust for the change of
8466 Fdefine_charset_internal.
8467 (Ffind_charset_string): Setup the vector `charsets' correctly.
8468
8469 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
8470 the previous change.
8471 (char_table_ref_and_range): Adjust for the above change.
8472 (map_sub_char_table_for_charset): New function.
8473 (map_char_table_for_charset): New function.
8474
8475 * keymap.c (describe_vector): Handle a char-table directly here.
8476 (describe_char_table): Delete.
8477
8478 * lisp.h (map_charset_chars): Delete.
8479
8480 2008-02-01 Dave Love <fx@gnu.org>
8481
8482 * fns.c (count_combining): Comment out (unused).
8483 (Flocale_codeset): New.
8484 (syms_of_fns): Defsubr it.
8485
8486 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
8487 (size_t): Remove.
8488
8489 2008-02-01 Dave Love <fx@gnu.org>
8490
8491 * Makefile.in (chartab.o): Depend on charset.h.
8492
8493 2008-02-01 Kenichi Handa <handa@m17n.org>
8494
8495 * character.c (syms_of_character): Set the default value of
8496 Vprintable_chars to Qnil.
8497
8498 2008-02-01 Dave Love <fx@gnu.org>
8499
8500 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
8501
8502 2008-02-01 Kenichi Handa <handa@m17n.org>
8503
8504 * charset.c (load_charset_map): Handle the case that from < to
8505 correctly.
8506
8507 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
8508 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
8509 Pay attention to raw-8-bit chars.
8510
8511 2008-02-01 Kenichi Handa <handa@m17n.org>
8512
8513 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
8514 It is not bytecompiled now.
8515
8516 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
8517 (charset_jisx0208): New variables.
8518 (Fdefine_charset_internal): Setup them if appropriate.
8519 (init_charset_once): Initialize them to -1.
8520
8521 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
8522 (charset_jisx0208): Extern them.
8523
8524 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
8525 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
8526 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
8527 (setup_iso_safe_charsets): Fix arguments to Fassq.
8528 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
8529 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
8530 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
8531 (encode_coding_iso_2022): Change the 1st arg to
8532 ENCODE_ISO_CHARACTER to a variable.
8533
8534 2008-02-01 Kenichi Handa <handa@m17n.org>
8535
8536 * charset.h (enum define_charset_arg_index): New enums
8537 charset_arg_min_code and charset_arg_max_code.
8538 (struct charset): New member char_index_offset.
8539
8540 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
8541 Take charset->char_index_offset into account.
8542 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
8543 args[charset_arg_max_code]. Setup charset.char_index_offset.
8544 (syms_of_charset): Fix args to Fdefine_charset_internal.
8545
8546 2008-02-01 Dave Love <fx@gnu.org>
8547
8548 * coding.c (decode_coding_utf_8): Reject overlong sequences.
8549
8550 2008-02-01 Dave Love <fx@gnu.org>
8551
8552 * coding.c: Doc fixes.
8553 (Fcoding_system_aliases): Fix return value.
8554 (Qmac): Remove (duplicated) definition.
8555
8556 2008-02-01 Dave Love <fx@gnu.org>
8557
8558 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
8559 functions.
8560
8561 * character.c (Fstring): Doc fix.
8562
8563 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
8564
8565 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
8566 ids.
8567 (font-encoding-alist): Doc fix.
8568
8569 2008-02-01 Dave Love <fx@gnu.org>
8570
8571 * term.c (costs_set): Declare static, non-initialized for pcc.
8572 (encode_terminal_code): Remove unused var.
8573
8574 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
8575 for K&R.
8576
8577 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
8578
8579 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
8580 (suffixes): Move out of make_subsidiaries for K&R.
8581
8582 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
8583
8584 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
8585
8586 2008-02-01 Dave Love <fx@gnu.org>
8587
8588 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
8589
8590 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
8591
8592 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
8593
8594 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
8595
8596 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
8597
8598 2008-02-01 Kenichi Handa <handa@m17n.org>
8599
8600 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
8601 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
8602
8603 2008-02-01 Kenichi Handa <handa@m17n.org>
8604
8605 * coding.c (decode_coding_charset): Adjust for the change of
8606 Fdefine_coding_system_internal.
8607 (Fdefine_coding_system_internal): For a coding system of
8608 `charset' type, store a list of charset IDs in
8609 `charset_attr_charset_valids' element of coding attributes.
8610
8611 2008-02-01 Kenichi Handa <handa@m17n.org>
8612
8613 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
8614 (emacs_mule_char): New arg src. Delete arg `composition'. Change
8615 caller. Handle 2-byte and 3-byte charsets correctly.
8616 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
8617 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
8618 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
8619 (DECODE_EMACS_MULE_21_COMPOSITION): Call
8620 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
8621 sequence.
8622 (decode_coding_emacs_mule): Handle composition correctly. Rewind
8623 `src' and `consumed_chars' correctly before calling emacs_mule_char.
8624 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
8625 and alt&rule composition.
8626 (decode_coding_iso_2022): Handle composition correctly.
8627 (init_coding_once): Setup emacs_mule_bytes for private charsets.
8628
8629 * charset.c (Fdefine_charset_internal): Fix bug for the case of
8630 re-defining a charset. If the charset has :emacs-mule-id, setup
8631 emacs_mule_bytes.
8632 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
8633
8634 2008-02-01 Kenichi Handa <handa@m17n.org>
8635
8636 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
8637 (encode_coding_big5, encode_coding_charset): If coding requires safe
8638 encoding, produce a character specified by
8639 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8640
8641 2008-02-01 Dave Love <fx@gnu.org>
8642
8643 * xterm.c (XSetIMValues): Declare.
8644
8645 * process.c: Conditionally include sys/wait.h, pty.h.
8646
8647 * print.c (print_object): Fix print format for 64-bit systems.
8648
8649 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
8650
8651 * buffer.c (emacs_strerror): Declare.
8652
8653 * fontset.c (Fclear_face_cache): Declare.
8654 (accumulate_font_info): Comment-out (unused).
8655 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
8656 variables.
8657
8658 * character.h (string_escape_byte8): Declare.
8659
8660 * charset.c (load_charset_map, load_charset_map_from_file): Remove
8661 unused vars.
8662 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
8663 (Fmap_charset_chars): Doc fix.
8664
8665 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
8666 (Fset_coding_system_priority, Fset_coding_system_priority)
8667 (Fdefine_coding_system_internal): Doc fix.
8668
8669 2008-02-01 Dave Love <fx@gnu.org>
8670
8671 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
8672
8673 2008-02-01 Kenichi Handa <handa@m17n.org>
8674
8675 * character.c (string_escape_byte8): Make multibyte string with
8676 correct size.
8677
8678 * charset.c (Fmake_char): Delete unnecessary code.
8679
8680 2008-02-01 Kenichi Handa <handa@m17n.org>
8681
8682 * xfns.c (x_encode_text): Allocate coding.destination here, and
8683 call encode_coding_object with dst_object Qnil.
8684
8685 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
8686 multibyte form correctly.
8687
8688 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
8689 against Vfont_encoding_alist.
8690
8691 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
8692 handling of charset list.
8693 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8694 (decode_coding_object): Move point to coding->dst_pos before
8695 calling post-read-conversion function.
8696 (encode_coding_object): Give correct arguments to
8697 pre-write-conversion. Ignore the return value of
8698 pre-write-conversion function. Pay attention to the case that
8699 pre-write-conversion changes the current buffer. If dst_object is
8700 Qt, even if coding->src_bytes is zero, allocate at least one byte
8701 to coding->destination.
8702
8703 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
8704
8705 * charset.c (Fmake_char): Make it more backward compatible.
8706 (Fmap_charset_chars): Fix docstring.
8707
8708 2008-02-01 Dave Love <fx@gnu.org>
8709
8710 * coding.c: Doc fixes.
8711 (Fdefine_coding_system_alias): Use names, not symbols, in
8712 coding-system-alist.
8713
8714 2008-02-01 Kenichi Handa <handa@m17n.org>
8715
8716 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8717 of calling free_realized_face.
8718
8719 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
8720
8721 * charset.c (read_hex): Don't treat SPC as a comment starter.
8722 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
8723 (Fdecode_char): Fix typo.
8724
8725 2008-02-01 Kenichi Handa <handa@m17n.org>
8726
8727 * charset.h (struct charset): New member `code_space_mask'.
8728
8729 * coding.c (coding_set_source): Delete the local variable beg_byte.
8730 (encode_coding_charset, Fdefine_coding_system_internal):
8731 Delete the local variable charset.
8732 (Fdefine_coding_system_internal): Setup
8733 attrs[coding_attr_charset_valids] correctly.
8734
8735 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
8736 member to check if CODE is valid or not.
8737 (Fdefine_charset_internal): Initialize `code_space_mask' member.
8738 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
8739 is within the range of charset->min_code and carset->max_code.
8740
8741 2008-02-01 Dave Love <fx@gnu.org>
8742
8743 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
8744
8745 * dispextern.h (generate_ascii_font): Fix return type.
8746
8747 * xfaces.c (generate_ascii_font): Fix arg declaration.
8748
8749 * coding.c (coding_inherit_eol_type)
8750 (Fset_terminal_coding_system_internal)
8751 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
8752
8753 2008-02-01 Kenichi Handa <handa@m17n.org>
8754
8755 * coding.c (decode_coding_charset, encode_coding_charset): Handle
8756 multiple charsets correctly.
8757
8758 2008-02-01 Kenichi Handa <handa@m17n.org>
8759
8760 * search.c (boyer_moore): Fix handling of mulitbyte character
8761 translation.
8762
8763 * xdisp.c (display_mode_element): When the variable `elt' is
8764 changed, update `this' and `lisp_string'.
8765
8766 2008-02-01 Kenichi Handa <handa@m17n.org>
8767
8768 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
8769
8770 * callproc.c (Fcall_process): Be sure to give the current buffer
8771 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
8772
8773 * charset.c (struct charset_map_entries): New struct.
8774 (load_charset_map): Rename from parse_charset_map. New args
8775 entries and n_entries. Change caller.
8776 (load_charset_map_from_file): Rename from load_charset_map.
8777 Change caller. New arg control_flag. Call load_charset_map at
8778 the tail.
8779 (load_charset_map_from_vector): New function.
8780 (Fdefine_charset_internal): Setup charset.compact_codes_p.
8781 (encode_char): If the charset is compact, change a character index
8782 to a code point.
8783
8784 * coding.c (coding_alloc_by_making_gap): Check the case that the
8785 source and destination are the same correctly.
8786 (decode_coding_raw_text): Set coding->consumed_char and
8787 coding->consumed to 0.
8788 (produce_chars): If coding->chars_at_source is nonzero, update
8789 coding->consumed_char and coding->consumed before calling
8790 alloc_destination.
8791 (Fdefine_coding_system_alias): Register ALIAS in
8792 Vcoding_system_alist.
8793 (syms_of_coding): Define `no-convesion' coding system at the tail.
8794
8795 * fileio.c (Finsert_file_contents): Set coding_system instead of
8796 val. If the current buffer is multibyte, always call
8797 decode_coding_gap.
8798
8799 * xfaces.c (try_font_list): Give higher priority to fontset's
8800 family than face's family.
8801
8802 2008-02-01 Kenichi Handa <handa@m17n.org>
8803
8804 * callproc.c (Fcall_process): Be sure to give the current buffer
8805 to decode_coding_c_string.
8806
8807 * xfaces.c (try_font_list): Give a family specified in a fontset
8808 higher priority than a family specified in a face.
8809
8810 2008-02-01 Kenichi Handa <handa@m17n.org>
8811
8812 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
8813 Fix arguments to insert_from_buffer.
8814
8815 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
8816
8817 2008-02-01 Kenichi Handa <handa@m17n.org>
8818
8819 * coding.c (produce_chars): Set the variable `multibytep' correctly.
8820 (decode_coding_gap): Set coding->dst_multibyte correctly.
8821
8822 2008-02-01 Kenichi Handa <handa@m17n.org>
8823
8824 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
8825 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
8826 (encode_coding_utf_16): Substitute coding->default_char for
8827 non-Unicode characters.
8828 (decode_coding): Don't call record_insert here.
8829 (setup_coding_system): Initialize `surrogate' of
8830 coding->spec.utf_16 to 0.
8831 (EMIT_ONE_BYTE): Fix for multibyte case.
8832
8833 * insdel.c (insert_from_gap): Call record_insert.
8834
8835 2008-02-01 Kenichi Handa <handa@m17n.org>
8836
8837 * casefiddle.c (casify_region): Fix multibyte case.
8838
8839 * character.c (c_string_width): Add return type `int'.
8840 (char_string_with_unification): Delete arg ADVANCED.
8841
8842 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
8843 (CHAR_STRING): Adjust for the change of char_string_with_unification.
8844 (CHAR_STRING_ADVANCE): Make it do-while statement.
8845
8846 * chartab.c (sub_char_table_set_range): Optimize for the case
8847 DEPTH == 3. Add workaround code for a GCC optimization bug.
8848
8849 * charset.c (parse_charset_map): Remove an unused variable.
8850
8851 * coding.c: Delete unused variables.
8852
8853 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
8854 earlier. If inserted is zero and the coding system doesn't
8855 require flushing, don't call decode_coding_gap.
8856
8857 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
8858
8859 2008-02-01 Kenichi Handa <handa@m17n.org>
8860
8861 The following changes are for using Unicode as an internal
8862 character model, and use UTF-8 format for buffer/string
8863 representation.
8864
8865 * .gdbinit (xchartable): Adjust for the change of char table structure.
8866 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
8867
8868 * Makefile.in (obj): Add character.o and chartab.o.
8869 (lisp, shortlisp): Remove utf-8.elc.
8870 (*.o): For many files, change dependency on charset.h to
8871 character.h, and add dependency on character.h.
8872 (character.o, chartab.o): New targets.
8873
8874 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
8875 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
8876 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
8877 of "charset.h".
8878
8879 * dired.c, filelock.c: Include "character.h".
8880
8881 * alloc.c: Include "character.h" instead of "charset.h".
8882 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
8883 (syms_of_alloc): Remove defsubr for Smake_char_table.
8884
8885 * buffer.c: Include "character.h" instead of "charset.h", don't
8886 include "coding.h".
8887 (Fset_buffer_multibyte): Adjust for UTF-8.
8888
8889 * buffer.h: EXFUN Fbuffer_live_p.
8890
8891 * callproc.c: Include "character.h" instead of "charset.h".
8892 (Fcall_process): Big change for the new code-conversion APIs.
8893
8894 * casetab.c: Include "character.h" instead of "charset.h".
8895 (set_canon, set_identity, shuffle): Adjust for the new
8896 map_char_table spec.
8897 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
8898 accessing the char table structure.
8899
8900 * chartab.c: New file that implements char table.
8901
8902 * category.c: Include "character.h".
8903 (copy_category_entry): New function.
8904 (copy_category_table): Call map_char_table and copy_category_entry.
8905 (Fmake_category_table): Initialize all top-vel slots.
8906 (char_category_set): New function.
8907 (modify_lower_category_set): Delete.
8908 (Fmodify_category_entry): Call char_table_ref_and_range.
8909
8910 * category.h (CATEGORY_SET): Just call char_category_set.
8911
8912 * ccl.c: Include "character.h".
8913 (Qccl, Qcclp): New variables.
8914 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
8915 it's less than 256.
8916 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
8917 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
8918 and DST type.
8919 (ccl_driver): Change types of argument, adjust code accordingly.
8920 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
8921 ccl_driver.
8922 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
8923
8924 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
8925 New members src_multibyte, dst_multibyte, consumed, and produced.
8926 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
8927 (CODING_SPEC_CCL_PROGRAM): New macro.
8928 (ccl_driver): Update prototype.
8929 (Qccl, Qcclp, Fccl_program_p): Extern them.
8930 (CHECK_CCL_PROGRAM): New macro.
8931
8932 * character.c, character.h, chartab.c: New files.
8933
8934 * charset.c: Mostly re-written. Move character and multibyte sequence
8935 handling codes to character.c.
8936
8937 * charset.h: Mostly re-written. Move character and multibyte sequence
8938 handling codes to character.h.
8939
8940 * coding.c, coding.h: Mostly re-written.
8941
8942 * composite.c: Include "character.h" instead of "charset.h".
8943 (CHAR_WIDTH): Move to character.h.
8944 (HASH_KEY, HASH_VALUE): Delete.
8945
8946 * composite.h (enum composition_method): Change order of enumeration
8947 symbols.
8948
8949 * data.c: Include "character.h" instead of "charset.h".
8950 (Faref): Call CHAR_TABLE_REF for a char table.
8951 (Faset): Call CHAR_TABLE_SET for a char table.
8952
8953 * dispextern.h (free_realized_face, check_face_attribytes)
8954 (generate_ascii_font): Extern them.
8955 (free_realized_multibyte_face): Delete extern.
8956
8957 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
8958 table structure.
8959
8960 * editfns.c: Include "character.h" instead of "charset.h".
8961 (Fchar_to_string): Always call CHAR_STRING.
8962
8963 * emacs.c (main): Call init_charset_once, init_charset,
8964 syms_of_chartab, and syms_of_character.
8965
8966 * fileio.c: Include "character.h" instead of "charset.h".
8967 (Finsert_file_contents): Big change for the new code-conversion API.
8968 (choose_write_coding_system, Fwrite_region): Likewise.
8969 (build_annotations_2): Delete.
8970 (e_write): Big change for the new code-conversion API.
8971
8972 * fns.c: Include "character.h" instead of "charset.h".
8973 (copy_sub_char_table): Move to chartab.c.
8974 (Fcopy_sequence): Call copy_char_table for a char table.
8975 (concat): Delete codes calling count_multibyte.
8976 (string_char_to_byte, string_byte_to_char): Adjust for the new
8977 multibyte form.
8978 (internal_equal): Adjust for the change of char table structure.
8979 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
8980 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
8981 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
8982 (char_table_translate, optimize_sub_char_table)
8983 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
8984 chartab.c.
8985 (char_table_ref_and_index): Delete.
8986 (HASH_KEY, HASH_VALUE): Move to lisp.h.
8987 (Fmd5): Call preferred_coding_system instead of accessing
8988 Vcoding_category_list. Adjust for the new code-conversion API.
8989 (syms_of_fns): Move defsubr for char table related functions to
8990 chartab.c.
8991
8992 * fontset.c: Mostly re-written.
8993
8994 * fontset.h (struct font_info): Change type of the member encoding_type.
8995 (enum FONT_SPEC_INDEX): New enum.
8996 (fontset_font_pattern, fs_load_font): Update prototype.
8997 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
8998
8999 * indent.c: Include "character.h" instead of "charset.h".
9000 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
9001
9002 * insdel.c: Include "character.h" instead of "charset.h".
9003 (copy_text): Don't refer to Vnonascii_translation_table.
9004 (insert_from_gap): New function.
9005
9006 * keyboard.c: Include "character.h" instead of "charset.h".
9007 (command_loop_1): Never call direct_output_forward_char before
9008 a non-ASCII character.
9009 (read_char): If Vkeyboard_translate_table is a char table, always
9010 translate a character.
9011
9012 * keymap.c: Include "character.h".
9013 (store_in_keymap): Handle the case that IDX is a cons.
9014 (Fdefine_key): Handle the case that KEY is a cons and the car part
9015 is also a cons (range).
9016 (push_key_description): Adjust for the new character code.
9017 (describe_vector): Call describe_char_table for a char table.
9018 (describe_char_table): New function.
9019
9020 * keymap.h (describe_char_table): Extern it.
9021
9022 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
9023 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
9024 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
9025 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
9026 Delete.
9027 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
9028 structure.
9029 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
9030 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
9031 (CHARTAB_SIZE_BITS_3): New macros.
9032 (chartab_size): Extern it.
9033 (struct Lisp_Char_Table): Re-design.
9034 (struct Lisp_Sub_Char_Table): New structure.
9035 (HASH_KEY, HASH_VALUE): Move from fns.c.
9036 (CHARACTERBITS): Define as 22.
9037 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
9038 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
9039 (GC_SUB_CHAR_TABLE_P): New macro.
9040 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
9041 (code_convert_string_norecord): Deleted extern.
9042 (init_character_once, syms_of_character, init_charset)
9043 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
9044
9045 * lread.c: Include "character.h".
9046 (read_multibyte): New arg NBYTES.
9047 (read_escape): Change the meaning of returned *BYTEREP.
9048 (to_multibyte): Delete.
9049 (read1): Adjust the handling of char table and string.
9050
9051 * print.c: Include "character.h" instead of "charset.h".
9052 (print_string): Convert 8-bit raw bytes to octal form by
9053 string_escape_byte8.
9054 (print_object): Adjust for the new multibyte form. Print 8-bit
9055 raw bytes always in octal form. Handle sub char table correctly.
9056
9057 * process.c: Include "character.h" instead of "charset.h".
9058 (read_process_output, send_process): Adjust for the new
9059 code-conversion API.
9060
9061 * puresize.h (BASE_PURESIZE): Increase.
9062
9063 * regex.c: Include "character.h" instead of "charset.h".
9064 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
9065 (regex_compile): Accept a range whose starting and ending
9066 character have different leading bytes.
9067 (analyse_first): Adjust for the above change.
9068
9069 * search.c: Include "character.h" instead of "charset.h".
9070 (search_buffer, boyer_moore): Adjust for the new multibyte form.
9071 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
9072
9073 * syntax.c: Include "character.h" instead of "charset.h".
9074 (syntax_parent_lookup): Delete.
9075 (Fmodify_syntax_entry): Accept a cons as CHAR.
9076 (skip_chars): Adjust for the new multibyte form.
9077 (init_syntax_once): Call char_table_set_range instead of directly
9078 accessing the structure of a char table.
9079
9080 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
9081 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
9082 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
9083 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
9084
9085 * term.c: Include "buffer.h" and "character.h".
9086 (encode_terminal_code, write_glyphs): Adjust for the new
9087 code-conversion API.
9088 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
9089
9090 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
9091
9092 * xdisp.c: Include "character.h".
9093 (get_next_display_element): Adjust for the new multibyte form.
9094 (disp_char_vector): Adjust for the new char table structure.
9095 (decode_mode_spec_coding): Adjust for the new structure of
9096 coding system.
9097 (decode_mode_spec): Adjust for the new code-conversion API.
9098
9099 * xfaces.c: Include "character.h" instead of "charset.h".
9100 (load_face_font): Adjust for the change of choose_face_font and
9101 FS_LOAD_FONT.
9102 (generate_ascii_font): New function.
9103 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
9104 (set_font_frame_param): Adjust for the change of choose_face_font.
9105 (free_realized_face): Make it public.
9106 (free_realized_faces_for_fontset): Rename from
9107 free_realized_multibyte_face. Free also faces realized for ASCII.
9108 (choose_face_font): Change arguments. Adjust for the change of
9109 fontset_font_pattern and FS_LOAD_FONT.
9110
9111 * xfns.c: Include "character.h".
9112 (x_encode_text): Adjust for the new code-conversion API.
9113
9114 * xselect.c: Don't include "charset.h".
9115 (selection_data_to_lisp_data): Adjust for the new code conversion API.
9116
9117 * xterm.c: Include "character.h".
9118 (x_encode_char): New argument CHARSET. Change caller.
9119 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
9120 Call ENCODE_CHAR instead of SPLIT_CHAR.
9121 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
9122 CHAR_WIDTH instead of CHARSET_WIDTH.
9123 (XTread_socket): Adjust for the new code-conversion API.
9124 (x_new_font): Adjust for the change of FS_LOAD_FONT.
9125 (x_load_font): Adjust for the change of struct font.
9126
9127 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9128
9129 * xfaces.c (face_at_buffer_position): Remove unused vars.
9130
9131 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9132
9133 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
9134 Fix overflow checking.
9135
9136 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9137
9138 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
9139 Cancel previous change.
9140
9141 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9142
9143 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
9144 ccl->eight_bit_control. Fix check for buffer overflow.
9145 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
9146 (ccl_driver): Initialize extra_bytes to 0.
9147
9148 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9149
9150 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
9151 return it ORed with ctrl_modifier.
9152
9153 2008-01-29 Miles Bader <miles@gnu.org>
9154
9155 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
9156
9157 2008-01-28 Jason Rumney <jasonr@gnu.org>
9158
9159 * w32.c (stat): Don't double check for networked drive.
9160
9161 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9162
9163 * window.c (run_window_configuration_change_hook): New function.
9164 Code extracted from set_window_buffer. Set the selected frame.
9165 (set_window_buffer): Use it.
9166 * window.h (run_window_configuration_change_hook): Declare.
9167 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
9168
9169 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
9170
9171 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
9172
9173 * Makefile.in: Remove references to unused macros.
9174
9175 2008-01-26 Eli Zaretskii <eliz@gnu.org>
9176
9177 * w32.c (g_b_init_get_sid_sub_authority)
9178 (g_b_init_get_sid_sub_authority_count): New static variables.
9179 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
9180 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
9181 (init_user_info): Use them to retrieve uid and gid.
9182 Use 500/513, the Windows defaults, as Administrator's uid/gid.
9183 (fstat): Use pw_uid and pw_gid from the_passwd structure for
9184 st_uid and st_gid of the file.
9185
9186 2008-01-26 Jason Rumney <jasonr@gnu.org>
9187
9188 * w32.c (logon_network_drive): New function.
9189 (stat): Use it.
9190
9191 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
9192
9193 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
9194 invisible text covered with an ellipsis.
9195
9196 2008-01-25 Richard Stallman <rms@gnu.org>
9197
9198 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
9199 jump back to beginning. Move some other initializations after that.
9200 (Qwindow_text_change_functions, Vwindow_text_change_functions):
9201 New variables.
9202 (syms_of_xdisp): Init them.
9203
9204 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
9205
9206 * buffer.c (reset_buffer_local_variables):
9207 Implement `permanent-local-hook'.
9208 (Qpermanent_local_hook): New variable.
9209 (syms_of_buffer): Init and staticpro it.
9210
9211 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
9212
9213 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
9214
9215 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
9216
9217 * fns.c (Fclrhash): Return TABLE.
9218
9219 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9220
9221 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
9222 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
9223 is set even without positional changes.
9224 (x_scroll_bar_clear): Set bar->redraw_needed_p.
9225
9226 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
9227
9228 2008-01-23 Jason Rumney <jasonr@gnu.org>
9229
9230 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
9231
9232 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
9233 the unicode range available in MULE by locale-coding-system.
9234 Improve dbcs lead byte detection. Set event timestamp and modifiers
9235 earlier.
9236
9237 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9238
9239 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
9240 [MAC_OSX] (init_mac_osx_environment): Initialize it.
9241 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
9242 when used on child processes.
9243
9244 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
9245
9246 * dbusbind.c (Fdbus_method_return_internal): Rename from
9247 Fdbus_method_return.
9248 (Fdbus_unregister_object): Move to dbus.el.
9249 (Fdbus_call_method, Fdbus_method_return_internal)
9250 (Fdbus_send_signal): Improve debug messages.
9251
9252 2008-01-20 Martin Rudalics <rudalics@gmx.at>
9253
9254 * undo.c (undo_inhibit_record_point): New variable.
9255 (syms_of_undo): Initialize it.
9256 (record_point): Don't record point when undo_inhibit_record_point
9257 is set.
9258
9259 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
9262
9263 * xdisp.c (Qauto_hscroll_mode): New var.
9264 (syms_of_xdisp): Initialize it.
9265 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
9266 window's buffer.
9267 (hscroll_windows): Don't check automatic_hscrolling_p here.
9268
9269 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
9270 vscroll if we're setting window-buffer to the value it already has.
9271
9272 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
9273
9274 * m/intel386.h: Remove references to XENIX.
9275
9276 2008-01-17 Andreas Schwab <schwab@suse.de>
9277
9278 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
9279 instead of HAVE_X86_64_LIB64_DIR.
9280 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
9281
9282 2008-01-17 Glenn Morris <rgm@gnu.org>
9283
9284 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
9285 to HAVE_X86_64_LIB64_DIR.
9286
9287 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
9288
9289 * s/irix3-3.h:
9290 * s/irix4-0.h:
9291 * s/386-ix.h:
9292 * s/domain.h:
9293 * s/hpux9-x11r4.h:
9294 * s/hpux9shxr4.h: Remove files for systems no longer supported.
9295
9296 * sysdep.c: Remove code containing references to symbols defined
9297 by unsupported systems.
9298
9299 2008-01-16 Glenn Morris <rgm@gnu.org>
9300
9301 * coding.c (select-safe-coding-system-function): Doc fix.
9302
9303 2008-01-15 Glenn Morris <rgm@gnu.org>
9304
9305 * config.in: Revert 2008-01-13 change: this is a generated file.
9306
9307 2008-01-13 Tom Tromey <tromey@redhat.com>
9308
9309 * lisp.h: Fix typo.
9310
9311 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9312
9313 * m/sequent-ptx.h:
9314 * m/sequent.h:
9315 * s/ptx.h:
9316 * s/ptx4-2.h:
9317 * s/ptx4.h: Remove files for systems no longer supported.
9318
9319 * callproc.c (Fcall_process): Fix previous change.
9320
9321 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9322
9323 * unexsunos4.c: Remove file, system not supported anymore.
9324
9325 * m/mips.h:
9326 * m/intel386.h:
9327 * callproc.c:
9328 * config.in:
9329 * ecrt0.c:
9330 * emacs.c:
9331 * fileio.c:
9332 * frame.c:
9333 * getpagesize.h:
9334 * keyboard.c:
9335 * lread.c:
9336 * process.c:
9337 * puresize.h:
9338 * sysdep.c:
9339 * systty.h:
9340 * syswait.h:
9341 * unexec.c:
9342 * xdisp.c:
9343 * alloc.c: Remove code containing references to symbols defined by
9344 unsupported systems.
9345
9346 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
9347
9348 * coding.c (detect_coding_mask): Fix previous change.
9349
9350 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
9351
9352 * coding.c (detect_coding_iso2022): New arg
9353 latin_extra_code_state. Allow Latin extra codes only
9354 when *latin_extra_code_state is nonzero.
9355 (detect_coding_mask): If there is a NULL byte, detect the encoding
9356 as UTF-16 or binary. If Latin extra codes exist, detect the
9357 encoding as ISO-2022 only when there's no other proper encoding is
9358 found.
9359
9360 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9361
9362 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
9363 #ifdef MAC_OS.
9364
9365 2008-01-08 Richard Stallman <rms@gnu.org>
9366
9367 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
9368
9369 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
9370
9371 * keyboard.c (parse_menu_item): Don't enclose key bindings on
9372 menu bar in parentheses.
9373
9374 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
9375
9376 * m/7300.h:
9377 * m/acorn.h:
9378 * m/alliant-2800.h:
9379 * m/alliant.h:
9380 * m/alliant1.h:
9381 * m/alliant4.h:
9382 * m/altos.h:
9383 * m/amdahl.h:
9384 * m/apollo.h:
9385 * m/att3b.h:
9386 * m/aviion-intel.h:
9387 * m/aviion.h:
9388 * m/celerity.h:
9389 * m/clipper.h:
9390 * m/cnvrgnt.h:
9391 * m/convex.h:
9392 * m/cydra5.h:
9393 * m/delta88k.h:
9394 * m/dpx2.h:
9395 * m/dual.h:
9396 * m/elxsi.h:
9397 * m/f301.h:
9398 * m/gould-np1.h:
9399 * m/gould.h:
9400 * m/i860.h:
9401 * m/ibmps2-aix.h:
9402 * m/ibmrt-aix.h:
9403 * m/ibmrt.h:
9404 * m/irist.h:
9405 * m/is386.h:
9406 * m/isi-ov.h:
9407 * m/mega68.h:
9408 * m/mg1.h:
9409 * m/news-r6.h:
9410 * m/news-risc.h:
9411 * m/news.h:
9412 * m/nh3000.h:
9413 * m/nh4000.h:
9414 * m/ns16000.h:
9415 * m/ns32000.h:
9416 * m/nu.h:
9417 * m/orion.h:
9418 * m/orion105.h:
9419 * m/paragon.h:
9420 * m/pfa50.h:
9421 * m/plexus.h:
9422 * m/pyramid.h:
9423 * m/pyrmips.h:
9424 * m/sh3el.h:
9425 * m/sps7.h:
9426 * m/sr2k.h:
9427 * m/stride.h:
9428 * m/sun1.h:
9429 * m/sun2.h:
9430 * m/sun3-68881.h:
9431 * m/sun3-fpa.h:
9432 * m/sun3-soft.h:
9433 * m/sun3.h:
9434 * m/sun386.h:
9435 * m/symmetry.h:
9436 * m/tad68k.h:
9437 * m/tahoe.h:
9438 * m/targon31.h:
9439 * m/tek4300.h:
9440 * m/tekxd88.h:
9441 * m/tower32.h:
9442 * m/tower32v3.h:
9443 * m/ustation.h:
9444 * m/wicat.h:
9445 * m/xps100.h:
9446 * s/cxux.h:
9447 * s/cxux7.h:
9448 * s/dgux.h:
9449 * s/dgux4.h:
9450 * s/dgux5-4-3.h:
9451 * s/dgux5-4r2.h:
9452 * s/esix.h:
9453 * s/esix5r4.h:
9454 * s/hiuxmpp.h:
9455 * s/hiuxwe2.h:
9456 * s/iris3-5.h:
9457 * s/iris3-6.h:
9458 * s/isc2-2.h:
9459 * s/isc3-0.h:
9460 * s/isc4-0.h:
9461 * s/isc4-1.h:
9462 * s/newsos5.h:
9463 * s/newsos6.h:
9464 * s/osf1.h:
9465 * s/osf5-0.h:
9466 * s/riscix1-1.h:
9467 * s/riscix12.h:
9468 * s/sco4.h:
9469 * s/sco5.h:
9470 * s/sunos4-0.h:
9471 * s/sunos4-1.h:
9472 * s/sunos413.h:
9473 * s/sunos4shr.h:
9474 * s/umax.h:
9475 * s/unipl5-2.h:
9476 * s/xenix.h:
9477 * cxux-crt0.s:
9478 * unexapollo.c:
9479 * unexconvex.c:
9480 * unexenix.c:
9481 * unexsni.c: Remove files for systems no longer supported.
9482
9483 * m/intel386.h: Remove references to unsupported systems.
9484
9485 * w32.c (get_emacs_configuration): Remove reference to i860.
9486
9487 * sysdep.c: Remove dead code.
9488
9489 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
9490
9491 * s/rtu.h:
9492 * m/masscomp.h: Remove files. Platform is obsolete.
9493
9494 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
9495
9496 * dbusbind.c (Fdbus_method_return): New function.
9497 (xd_read_message): Add the serial number to the event.
9498 (Fdbus_register_method): Activate the function.
9499
9500 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
9501
9502 * keyboard.c (read_key_sequence): Fix typo.
9503
9504 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
9505
9506 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
9507 (xd_signature, xd_append_arg): Handle element type detection for
9508 empty arrays.
9509 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
9510 SDATA () calls; this must be solved more general.
9511 (Fdbus_register_signal): Use SBYTES instead of strlen.
9512
9513 2008-01-03 Magnus Henoch <magnus@zemdatav>
9514
9515 * dbusbind.c (xd_append_arg): Use unsigned char instead of
9516 unsigned int for byte values (necessary for big-endian platform).
9517 (Fdbus_call_method): Handle the case of no returned arguments.
9518
9519 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
9520
9521 * dbusbind.c (xd_read_message): Use non-static input_event struct.
9522
9523 2007-12-31 Magnus Henoch <mange@freemail.hu>
9524
9525 * dbusbind.c (xd_signature): Signature of variant is just "v".
9526
9527 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
9528
9529 * dbusbind.c: Fix several errors and compiler warnings.
9530 Reported by Tom Tromey <tromey@redhat.com>.
9531 (XD_ERROR, XD_DEBUG_MESSAGE)
9532 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
9533 (xd_append_arg): Part for basic D-Bus types rewitten.
9534 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
9535 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
9536 appropriate.
9537 (xd_read_message): Return Qnil. Don't signal an error; it is not
9538 useful during event reading.
9539 (Fdbus_register_signal): Signal an error if the check for
9540 FUNCTIONP fails.
9541 (Fdbus_register_method): New function. The implementation is not
9542 complete, the call of the function signals an error therefore.
9543 (Fdbus_unregister_object): New function, renamed from
9544 Fdbus_unregister_signal. The initial check signals an error, if
9545 the object is not well formed.
9546
9547 2007-12-30 Richard Stallman <rms@gnu.org>
9548
9549 * textprop.c (get_char_property_and_overlay):
9550 Signal error if POSITION is out of range in a buffer.
9551
9552 2007-12-29 Martin Rudalics <rudalics@gmx.at>
9553
9554 * w32fns.c (Fx_create_frame): Make copy of frame parameters
9555 because the original parameters are in pure storage now.
9556
9557 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9558
9559 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
9560
9561 2007-12-22 Eli Zaretskii <eliz@gnu.org>
9562
9563 * callint.c (syms_of_callint) <command-history>: Add reference to
9564 history-length in the doc string.
9565
9566 2007-12-17 Jason Rumney <jasonr@gnu.org>
9567
9568 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
9569 before passing as wParam.
9570
9571 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
9572
9573 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
9574 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
9575 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
9576 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
9577 as number.
9578 (Fdbus_call_method): Fix docstring.
9579
9580 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
9581
9582 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
9583 New macros.
9584 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
9585 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
9586 Simplify.
9587 (xd_signature): New function.
9588 (xd_append_arg): Compute also signatures. Major rewrite.
9589 (xd_retrieve_arg): Make debug messages friendly.
9590 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
9591 Check for signatures of arguments.
9592
9593 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
9594
9595 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
9596 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
9597 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
9598 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
9599 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
9600 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
9601 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
9602 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
9603 (xd_retrieve_value): Remove. Functionality included in ...
9604 (xd_append_arg): New function.
9605 (Fdbus_call_method, Fdbus_send_signal): Apply it.
9606
9607 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
9608
9609 * dbusbind.c (top): Include <stdio.h>.
9610 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
9611 dbus_message_new_method_call and dbus_message_new_signal.
9612 (Fdbus_register_signal): Rename unique_name to uname.
9613 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
9614 non-existing unique name. Fix typos in matching rule. Return an
9615 object which is useful in Fdbus_unregister_signal.
9616 (Fdbus_unregister_signal): Reimplementation, in order to remove
9617 only the corresponding entry.
9618 (Vdbus_registered_functions_table): Change the order of entries.
9619 Apply these changes in xd_read_message and Fdbus_register_signal.
9620
9621 2007-12-16 Andreas Schwab <schwab@suse.de>
9622
9623 * fileio.c (Finsert_file_contents): Fix overflow check to not
9624 depend on undefined integer overflow.
9625
9626 2007-12-14 Jason Rumney <jasonr@gnu.org>
9627
9628 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
9629 for characters above 127.
9630
9631 2007-12-13 Jason Rumney <jasonr@gnu.org>
9632
9633 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
9634 before dereferencing array.
9635 (lookup_vk_code): Remove zero comparison.
9636
9637 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
9638
9639 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
9640 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
9641 Use `unsigned int' instead of `uint'.
9642 (xd_read_message, Fdbus_register_signal): Split expressions into
9643 multiple lines before operators "&&" and "||", according to the
9644 GNU Coding Standards.
9645
9646 2007-12-14 Eli Zaretskii <eliz@gnu.org>
9647
9648 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
9649
9650 2007-12-12 Juri Linkov <juri@jurta.org>
9651
9652 * buffer.c (Frename_buffer): In interactive spec replace
9653 `read-buffer' with `read-string' that uses `buffer-name-history'
9654 as history, and the current buffer's name as default.
9655
9656 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
9657
9658 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
9659 manipulating the backtrace manually.
9660 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
9661 (struct backtrace, backtrace_list): Remove.
9662 (command_loop_1): Remove dead var `no_direct'.
9663
9664 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
9665 preserve non-built-in buffer-local variables.
9666 (Fkill_all_local_variables): Don't re-create&re-set permanent
9667 buffer-local variables.
9668
9669 2007-12-09 Juri Linkov <juri@jurta.org>
9670
9671 * buffer.c (Frename_buffer): Change interactive spec from "s" to
9672 Lisp code that uses `read-buffer' with current buffer as default.
9673
9674 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
9675
9676 * dbusbind.c (xd_read_message): Generate an event for every
9677 registered handler. There might be several handlers registered
9678 for the same signal.
9679 (Fdbus_register_signal): Don't overwrite a registration for the
9680 same signal. Add a new registration if handlers are different.
9681 (Vdbus_registered_functions_table): Rework doc string.
9682
9683 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
9684
9685 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
9686 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
9687 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
9688 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
9689 Unify argument lists.
9690 (xd_read_message, Fdbus_register_signal): Reorder and extend event
9691 arguments and hash table keys. Use unique name for service.
9692 (Fdbus_unregister_signal): Remove checks.
9693 (Vdbus_registered_functions_table): Fix doc string.
9694
9695 2007-12-05 Magnus Henoch <mange@freemail.hu>
9696
9697 * process.c (make_process): Initialize pty_flag to 0.
9698
9699 2007-12-05 Jason Rumney <jasonr@gnu.org>
9700
9701 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
9702 specified XBMs.
9703
9704 2007-12-05 Richard Stallman <rms@gnu.org>
9705
9706 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
9707
9708 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9709
9710 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9711 New variable.
9712 (mac_try_close_socket) [MAC_OSX]: New function.
9713 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9714 Update cfsockets_for_select. Replace invalid CFRunLoop source.
9715
9716 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9717 Use mac_try_close_socket.
9718
9719 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9720
9721 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9722 reloc_base.
9723 (copy_dysymtab): Compute relocation base here.
9724 (rebase_reloc_address) [__ppc64__]: New function.
9725 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9726 changed.
9727
9728 2007-12-05 Jason Rumney <jasonr@gnu.org>
9729
9730 * w32proc.c (sys_spawnve): Quote args with wildcards.
9731
9732 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9733
9734 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
9735 __objc_* sections.
9736 (unrelocate) [_LP64]: Set relocation base to address of data segment.
9737
9738 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
9739
9740 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
9741 Move check for Vdbus_registered_functions_table to
9742 xd_read_queued_messages.
9743 (xd_read_queued_messages): Protect xd_read_message calls by
9744 internal_condition_case_1.
9745
9746 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
9747
9748 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
9749 Qdbus_system_bus and Qdbus_session_bus, respectively.
9750 (Vdbus_intern_symbols): Remove.
9751 (Vdbus_registered_functions_table): New hash table.
9752 (XD_SYMBOL_INTERN_SYMBOL): Remove.
9753 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
9754 Rewrite in order to manage registered functions by hash table
9755 Vdbus_registered_functions_table.
9756
9757 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
9758
9759 * xterm.c: Update URL to Window Manager Specification in comment.
9760
9761 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
9762
9763 * config.in (HAVE_DBUS): Add.
9764
9765 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
9766 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
9767 (obj): Add $(DBUS_OBJ).
9768 (LIBES): Add $(DBUS_LIBS).
9769 (dbusbind.o): New target.
9770
9771 * dbusbind.c: New file.
9772
9773 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
9774
9775 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
9776 (Qdbus_event): New Lisp symbol.
9777 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
9778 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
9779 (keys_of_keyboard ): Define dbus-event.
9780
9781 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
9782
9783 2007-12-01 Richard Stallman <rms@gnu.org>
9784
9785 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
9786
9787 2007-11-30 Jason Rumney <jasonr@gnu.org>
9788
9789 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
9790 (w32con_reset_terminal_modes): Clear screen buffer.
9791 (w32_face_attributes): Don't use color indexes that are out of range.
9792 Only reverse the default colors.
9793
9794 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
9795 WINDOWSNT.
9796
9797 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
9798
9799 2007-11-29 Jason Rumney <jasonr@gnu.org>
9800
9801 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
9802 (w32_face_attributes): Use Vtty_defined_color_alist to determine
9803 if the terminal colors are initialized.
9804 (unspecified_fg, unspecified_bg): Remove unused declarations.
9805
9806 2007-11-29 Andreas Schwab <schwab@suse.de>
9807
9808 * keyboard.c (apply_modifiers): Fix typo.
9809
9810 2007-11-29 Richard Stallman <rms@gnu.org>
9811
9812 * keymap.c (Fcurrent_local_map): Doc fix.
9813
9814 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
9815
9816 * s/gnu-kfreebsd.h: New file.
9817
9818 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
9819
9820 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
9821 Don't cast redundantly.
9822
9823 * keyboard.c (KEY_TO_CHAR): New macro.
9824 (parse_modifiers, apply_modifiers): Accept integer arguments.
9825 (read_key_sequence): Use them to unify the "shift->unshift" mapping
9826 for chars and symbol keys.
9827 After doing such remapping, apply function-key-map again.
9828
9829 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
9830
9831 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
9832 compiled anymore.
9833
9834 2007-11-26 Andreas Schwab <schwab@suse.de>
9835
9836 * process.c (list_processes_1): Fix indentation level of the
9837 command column.
9838
9839 2007-11-23 Andreas Schwab <schwab@suse.de>
9840
9841 * editfns.c (Fformat): Handle %c specially since it requires the
9842 argument to be of type int.
9843
9844 2007-11-23 Markus Triska <markus.triska@gmx.at>
9845
9846 * emacs.c (main): Call init_editfns before init_process, since
9847 init_process sets Vprocess_connection_type depending on OS release.
9848
9849 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9850
9851 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
9852 (find_symbol_value): Use do_symval_forwarding.
9853
9854 * data.c (set_internal): Set the value in the `cons-cell' (for
9855 Buffer_Local_values) not only for frame-local variables.
9856
9857 2007-11-22 Andreas Schwab <schwab@suse.de>
9858
9859 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
9860 values to sprintf.
9861 * keymap.c (Fsingle_key_description): Likewise.
9862 * print.c (print_object): Likewise.
9863
9864 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
9865
9866 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
9867 file for image is nil.
9868
9869 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
9870
9871 * term.c: Include stdarg.h.
9872 (fatal): Implement using varargs.
9873 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
9874
9875 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9876
9877 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
9878 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
9879 Update call to buffer_slot_type_mismatch.
9880 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
9881 (buffer_slot_type_mismatch): Update.
9882 * buffer.c (buffer_local_types): Remove.
9883 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
9884 (defvar_per_buffer): Set the type in the buffer_objfwd.
9885
9886 2007-11-21 Jason Rumney <jasonr@gnu.org>
9887
9888 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
9889 CreateFileMapping returns NULL on failure.
9890
9891 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9892
9893 * search.c (Fset_match_data): Remove the `evaporate' feature.
9894 (unwind_set_match_data): Don't use the `evaporate' feature.
9895
9896 2007-11-21 Jason Rumney <jasonr@gnu.org>
9897
9898 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
9899
9900 * w32console.c (w32con_write_glyphs): Remove unused variables.
9901
9902 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
9903
9904 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
9905
9906 * s/darwin.h (MULTI_KBOARD): Remove.
9907
9908 * macfns.c (x_create_tip_frame, Fx_create_frame)
9909 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
9910
9911 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9912
9913 * buffer.c (Fbuffer_local_value): Remove redundant test.
9914 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
9915 than in `current-buffer' to match the comment.
9916 Do the swap using swap_in_global_binding.
9917
9918 * data.c (store_symval_forwarding, set_internal):
9919 * eval.c (specbind): Remove dead code.
9920
9921 * coding.c (detect_coding, Fupdate_coding_systems_internal):
9922 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
9923 Since we do not want to see internal Lisp_*fwd objects here.
9924
9925 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
9926
9927 * sysdep.c (init_system_name): Use getaddrinfo if available.
9928
9929 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
9930 (x_scroll_bar_note_movement): start, end, with, height in struct
9931 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
9932
9933 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
9934
9935 * puresize.h (BASE_PURESIZE): Increase to 1190000.
9936
9937 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9938
9939 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
9940 This undoes Richard's change of 14-Oct-2002.
9941
9942 * alloc.c (allocate_other_vector):
9943 * lisp.h (allocate_other_vector): Remove.
9944
9945 * window.c (struct save_window_data): Move non-lisp data to the end
9946 and make it `int' rather than Lisp_Object.
9947 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
9948 Done wrap/unwrap integer values.
9949 (Fset_window_configuration, compare_window_configurations):
9950 Update use of fields to their new types.
9951
9952 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
9953 Turn integer fields into `int'. Merge x_window_low and x_window_high.
9954 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
9955 (SET_SCROLL_BAR_X_WINDOW): Remove.
9956 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
9957 Access the new x_window field directly.
9958 * xterm.c (x_scroll_bar_create): Use a pseudovector.
9959 Don't wrap/unwrap integers into Lisp_Objects.
9960 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
9961 (x_scroll_bar_report_motion):
9962 Don't wrap/unwrap integers into Lisp_Objects.
9963 (x_term_init): Use SDATA.
9964 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
9965 (x_scroll_bar_set_handle, x_scroll_bar_remove)
9966 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
9967 (x_scroll_bar_report_motion, x_scroll_bar_clear):
9968 * xfns.c (x_set_background_color):
9969 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
9970 Access the new x_window field directly.
9971
9972 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
9973 (allocate_pseudovector): Make non-static.
9974
9975 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
9976 (allocate_pseudovector): Declare.
9977 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
9978
9979 2007-11-15 Andreas Schwab <schwab@suse.de>
9980
9981 * editfns.c (Fformat): Correctly format EMACS_INT values.
9982 Also take precision into account when formatting an integer.
9983
9984 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
9985
9986 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
9987
9988 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
9989 (syms_of_keyboard): Defsubr it.
9990
9991 * data.c (swap_in_global_binding): Fix longstanding bug where
9992 store_symval_forwarding was not called with the right second argument,
9993 thus causing objfwd-ing from being dropped.
9994
9995 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
9996
9997 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
9998 (Fx_display_pixel_height, Fx_display_planes)
9999 (Fx_display_color_cells, Fx_server_max_request_size)
10000 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10001 (Fx_display_visual_class, Fx_display_save_under):
10002 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
10003 (Fx_display_pixel_height, Fx_display_planes)
10004 (Fx_display_color_cells, Fx_server_max_request_size)
10005 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10006 (Fx_display_mm_height, Fx_display_mm_width)
10007 (Fx_display_backing_store, Fx_display_visual_class)
10008 (Fw32_select_font, Fx_display_save_under):
10009 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
10010 (Fx_display_pixel_height, Fx_display_planes)
10011 (Fx_display_color_cells, Fx_server_max_request_size)
10012 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10013 (Fx_display_save_under): Fix typos in docstrings.
10014
10015 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
10016
10017 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
10018 corresponding to deleted entries; they are an implementation detail.
10019 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
10020 Remove variables.
10021 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
10022 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
10023 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
10024 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
10025 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
10026 (Fw32_define_rgb_color, Fw32_load_color_file)
10027 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
10028 Fix typos in docstrings.
10029 (Fx_server_version): Reflow docstring.
10030 (Fw32_shell_execute): Doc fixes.
10031
10032 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
10033
10034 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
10035 if w32_parse_hot_key returned nil.
10036
10037 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10038
10039 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
10040
10041 2007-11-09 Jason Rumney <jasonr@gnu.org>
10042
10043 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
10044
10045 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
10046
10047 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
10048 Remove W32_SCROLL_BAR_CLICK_EVENT.
10049
10050 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
10051 Add MULTIMEDIA_KEY_EVENT.
10052
10053 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
10054 (lispy_multimedia_keys) [WINDOWSNT]: New array.
10055 (make_lispy_event) [WINDOWSNT]: Use it to translate
10056 MULTIMEDIA_KEY_EVENT.
10057
10058 * w32term.h (WM_APPCOMMAND): Define if not already.
10059 (GET_APPCOMMAND_LPARAM): Likewise.
10060
10061 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
10062 WM_APPCOMMAND.
10063
10064 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
10065 (syms_of_w32fns): Export and initialize it.
10066 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
10067
10068 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
10069
10070 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
10071 twice.
10072
10073 * xdisp.c (handle_face_prop): Fix last change.
10074
10075 2007-11-09 Richard Stallman <rms@gnu.org>
10076
10077 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
10078 not just for after-strings and before-strings.
10079 Call face_for_overlay_string and pass the overlay to it.
10080 (handle_display_prop): Determine whether property came from an overlay.
10081 Pass OVERLAY arg to handle_single_display_spec.
10082 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
10083 (load_overlay_strings): Fill in it->string_overlays.
10084 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
10085
10086 * xfaces.c (face_for_overlay_string): Function renamed from
10087 face_at_buffer_position_no_overlays, and add arg OVERLAY.
10088
10089 * dispextern.h (struct it): New elt string_overlays.
10090 New elt from_overlay, also in stack.
10091 Rearrange a few elements.
10092 (face_for_overlay_string): Decl renamed from
10093 face_at_buffer_position_no_overlays, and add argument.
10094
10095 2007-11-09 Richard Stallman <rms@gnu.org>
10096
10097 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
10098 to get the base face for an overlay string.
10099
10100 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
10101
10102 * xfaces.c (face_at_buffer_position_no_overlays): New function.
10103
10104 * xdisp.c (handle_stop): Move some code out of loop.
10105
10106 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10107
10108 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
10109 Fix conversion from Lisp object to ATSUFontID.
10110
10111 2007-11-09 Jason Rumney <jasonr@gnu.org>
10112
10113 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
10114
10115 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10116
10117 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
10118 Don't assume regions are aligned to page boundary.
10119 (print_load_command_name): Add LC_UUID if defined.
10120
10121 2007-11-09 Richard Stallman <rms@gnu.org>
10122
10123 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
10124
10125 2007-11-07 Jason Rumney <jasonr@gnu.org>
10126
10127 * s/windows95.h: Remove.
10128
10129 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
10130
10131 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
10132 abort with a message on unhandled store_type values.
10133
10134 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
10135
10136 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
10137 Remove HAVE_X11R5 and HAVE_X11R4.
10138
10139 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10140
10141 * Makefile.in: Remove references to sunfns.c and sunfns.o.
10142
10143 2007-11-01 Johan Bockgård <bojohan@gnu.org>
10144
10145 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
10146 Don't set s->stippled_p here, since it has already been set by
10147 x_set_glyph_string_gc from x_draw_glyph_string.
10148
10149 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10150
10151 * sunfns.c: Remove file.
10152
10153 * m/sun386.h:
10154 * m/sun2.h:
10155 * m/sparc.h: Remove Sun windows code.
10156
10157 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
10158
10159 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
10160 (init_keyboard): Set current_kboard's window-system to nil.
10161 (tty_read_avail_input): Typo.
10162 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
10163
10164 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
10165
10166 * s/usg5-4.h:
10167 * s/usg5-3.h:
10168 * s/ptx.h:
10169 * m/is386.h:
10170 * m/ibmps2-aix.h:
10171 * Makefile.in: Remove all mentions of X10.
10172
10173 * dispnew.c (syms_of_display): Don't mention version 10.
10174
10175 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
10176
10177 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
10178 ($(BLD)/abbrev.$(O)): Remove.
10179
10180 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10181
10182 Rewrite abbrev.c in Elisp.
10183 * image.c (Qcount): Don't declare as extern.
10184 (syms_of_image): Initialize and staticpro `Qcount'.
10185 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
10186 * emacs.c (main): Don't call syms_of_abbrev.
10187 * Makefile.in (obj): Remove abbrev.o.
10188 (abbrev.o): Remove.
10189 * abbrev.c: Remove.
10190
10191 2007-10-26 Martin Rudalics <rudalics@gmx.at>
10192
10193 * window.c (window_min_size_2): Don't count header-line.
10194
10195 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
10196
10197 * frame.h (struct frame): Move all bit fields after the first bit
10198 field to take advantage of the available space. Group all the
10199 chars together to reduce wasted space due to padding.
10200
10201 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
10202
10203 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
10204
10205 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
10206 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
10207 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
10208 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
10209 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
10210 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
10211 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
10212 (last_marked, mark_object_loop_halt): Make static.
10213
10214 * frame.c (syms_of_frame) <delete-frame-functions>:
10215 Fix typo in docstring.
10216
10217 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
10218
10219 * w32.c (init_environment): Fix tiny memory leak.
10220 (w32_get_resource): Remove unused variable `ok'.
10221
10222 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
10223
10224 Make `window-system' into a keyboard-local variable (rather than
10225 frame-local as done originally by multi-tty).
10226
10227 * keyboard.h (struct kboard): Add Vwindow_system.
10228 * keyboard.c (init_kboard): Set a default for Vwindow_system.
10229 (mark_kboards): Mark Vwindow_system.
10230
10231 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
10232 (init_display): Don't set the obsolete `window-system' frame-param.
10233
10234 * xterm.c (x_term_init):
10235 * w32term.c (w32_create_terminal):
10236 * term.c (init_tty): Set Vwindow_system.
10237 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
10238 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
10239
10240 * xfns.c (Fx_create_frame, x_create_tip_frame):
10241 * w32fns.c (Fx_create_frame, x_create_tip_frame):
10242 * macfns.c (Fx_create_frame):
10243 Don't set the obsolete `window-system' frame-param.
10244
10245 * frame.h (Qwindow_system): Remove.
10246 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
10247 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
10248
10249 2007-10-24 Richard Stallman <rms@gnu.org>
10250
10251 * frame.c (x_figure_window_size): For fullscreen case,
10252 set USPosition | PPosition without clobbering rest of window_prompting.
10253
10254 * keyboard.c (Fcurrent_idle_time): Doc fix.
10255
10256 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10257
10258 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10259
10260 * process.c (unwind_request_sigio): Only define if __ultrix__.
10261
10262 * callproc.c (child_setup): Remove spurious *.
10263
10264 * lisp.h (Fget_text_property): Declare.
10265 (have_menus_p): Declare it here rather than in sys-dep header files.
10266 * macterm.h (have_menus_p):
10267 * msdos.h (have_menus_p):
10268 * xterm.h (have_menus_p): Remove.
10269
10270 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10271 (Fmake_variable_frame_local): Just check the variable's const-ness
10272 rather than checking nil or t.
10273
10274 2007-10-22 Jason Rumney <jasonr@gnu.org>
10275
10276 * w32fns.c: Include math.h.
10277 (w32_abort): Declaration moved to nt/config.nt.
10278
10279 * s/ms-w32.h (HAVE_STDLIB_H): Define.
10280 (abort): Redefinition moved to nt/config.nt.
10281
10282 * m/windowsnt.h: Remove.
10283
10284 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
10285
10286 * emacs.c (Fdump_emacs): Fix typo in message.
10287 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
10288 <installation-directory>: Reflow docstring.
10289
10290 2007-10-22 Juri Linkov <juri@jurta.org>
10291
10292 * minibuf.c: Allow minibuffer default to be a list of default values.
10293 With empty input use the first element of this list as returned default.
10294 (string_to_object)
10295 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
10296 (read_minibuf): If defalt is cons, set histstring to its car.
10297 (Fread_string): If default_value is cons, set val to its car.
10298 (Fread_buffer): If def is cons, use its car.
10299 (Fcompleting_read): If defalt is cons, set val to its car.
10300
10301 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
10302
10303 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
10304
10305 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
10306
10307 * doc.c (Fdocumentation): Check for advice in all cases.
10308
10309 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
10310
10311 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
10312
10313 2007-10-19 Richard Stallman <rms@gnu.org>
10314
10315 * doc.c (Fdocumentation): Check for and handle an advised function.
10316
10317 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
10318
10319 * process.c (Fset_process_filter): Doc fix.
10320
10321 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10322
10323 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
10324 which caused key-translation-map to applied repeatedly (thus breaking
10325 double-mode).
10326
10327 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10328
10329 * xselect.c (x_own_selection, x_handle_selection_clear)
10330 (x_clear_frame_selections):
10331 * w32menu.c (list_of_panes, list_of_items):
10332 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
10333 * textprop.c (validate_plist, interval_has_all_properties)
10334 (interval_has_some_properties, interval_has_some_properties_list)
10335 (add_properties, text_property_list):
10336 * process.c (Fget_buffer_process, list_processes_1, status_notify):
10337 * minibuf.c (Fassoc_string):
10338 * macselect.c (x_own_selection, x_clear_frame_selections)
10339 (Fx_disown_selection_internal):
10340 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
10341 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
10342
10343 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
10344
10345 * process.c: Link to libs for calling res_init() if available.
10346 (Fmake_network_process): Call res_init() before getaddrinfo or
10347 gethostbyname, if possible.
10348
10349 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10350
10351 * lread.c (read1): Set pvectype for char_tables.
10352
10353 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
10354 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
10355 Add type checks.
10356 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
10357
10358 * alloc.c (free_misc): Use XMISCTYPE.
10359 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
10360
10361 2007-10-17 Glenn Morris <rgm@gnu.org>
10362
10363 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
10364 (syms_of_minibuf): Add Qcompletion_ignore_case.
10365 * dired.c (Qcompletion_ignore_case): Change to external.
10366 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
10367 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
10368 (Fread_file_name): Use it rather than intern'ing.
10369
10370 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
10371 (Fread_coding_system): Ignore case of user input.
10372
10373 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10374
10375 * xdisp.c (handle_display_prop): Ignore display specs after
10376 replacing one when string text is being replaced.
10377 (handle_single_display_spec): Pretend as if characters with display
10378 property haven't been consumed only when buffer text is being replaced.
10379
10380 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
10381
10382 * xfns.c (Fx_create_frame, Fx_display_list):
10383 * window.c (window_fixed_size_p, enlarge_window)
10384 (shrink_window_lowest_first):
10385 * macterm.c (init_font_name_table):
10386 * macfns.c (Fx_create_frame, Fx_display_list):
10387 * lread.c (close_load_descs):
10388 * keyboard.c (read_char_x_menu_prompt):
10389 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
10390 * coding.c (code_convert_region_unwind): Test the type of an object
10391 rather than just !NILP before extracting data from it.
10392
10393 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
10394
10395 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
10396 (XMISCANY): New macro.
10397 (XMISCTYPE): Use it.
10398 (struct Lisp_Misc_Any): New type.
10399 (union Lisp_Misc): Use it.
10400 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
10401 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
10402 (find_symbol_value, set_internal, default_value, Fset_default)
10403 (Fmake_variable_buffer_local, Fmake_local_variable)
10404 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
10405 (Flocal_variable_if_set_p, Fvariable_binding_locus):
10406 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
10407 * alloc.c (allocate_buffer): Set the size and tag.
10408 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
10409 Use XMISCANY.
10410 (die): Follow the GNU convention for error messages.
10411 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
10412 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
10413 tag any more.
10414 (set_buffer_internal_1):
10415 * frame.c (store_frame_param):
10416 * eval.c (specbind):
10417 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
10418
10419 * doc.c (Fsnarf_documentation): Simplify.
10420
10421 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10422
10423 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
10424 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
10425
10426 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
10427
10428 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
10429
10430 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10431
10432 * eval.c (do_autoload): Don't save autoloads.
10433
10434 * data.c (Ffset): Save autoload of the function being set.
10435
10436 2007-10-07 John Paul Wallington <jpw@pobox.com>
10437
10438 * xfns.c (x_create_tip_frame): Set the `display-type' frame
10439 parameter before setting up faces.
10440
10441 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10442
10443 * ccl.c (Fregister_code_conversion_map):
10444 * keyboard.c (append_tool_bar_item): Reformat last change.
10445
10446 * lisp.h (eabs): Rename from `abs'. All callers changed.
10447
10448 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
10449
10450 * buffer.c (add_overlay_mod_hooklist):
10451 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
10452 * fontset.c (make_fontset):
10453 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
10454 (append_tool_bar_item):
10455 * macmenu.c (grow_menu_items):
10456 * w32menu.c (grow_menu_items):
10457 * xmenu.c (grow_menu_items): Use larger_vector.
10458
10459 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10460
10461 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
10462 selected frame'' on MSDOS).
10463
10464 2007-10-12 Martin Rudalics <rudalics@gmx.at>
10465
10466 * frame.c (Qexplicit_name): New variable.
10467 (x_report_frame_params): Report it in parameter alist.
10468 (syms_of_frame): Intern and staticpro it.
10469
10470 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
10471
10472 * macfns.c (x_create_tip_frame): Set terminal for frame.
10473
10474 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
10475
10476 * frame.c (Qenvironment): Remove.
10477 (syms_of_frame) <Qenvironment>: Don't initialize.
10478 (Fdelete_frame): Don't treat the `environment' param specially.
10479 * frame.h (Qenvironment): Don't declare.
10480 * callproc.c (set_initial_environment): Don't set unused frame param.
10481
10482 * frame.c (Fframe_with_environment): Remove.
10483 (syms_of_frame) <Sframe_with_environment>: Don't declare.
10484
10485 * lisp.h (Fframe_with_environment): Don't declare.
10486
10487 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
10488
10489 * indent.c (indent_tabs_mode, last_known_column)
10490 (last_known_column_modified): Make static.
10491 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
10492
10493 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
10494
10495 * puresize.h (BASE_PURESIZE): Increase to 1170000.
10496
10497 2007-10-09 Jason Rumney <jasonr@gnu.org>
10498
10499 * w32term.c (x_set_window_size): Disable code that attempts to tell
10500 Lisp code about a size change before it actually happens.
10501
10502 2007-10-09 Richard Stallman <rms@gnu.org>
10503
10504 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
10505 return HANDLED_RETURN.
10506
10507 2007-10-08 Martin Rudalics <rudalics@gmx.at>
10508
10509 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
10510 when there's an unread command event.
10511
10512 * frame.c (focus_follows_mouse): Move here from frame.el to allow
10513 window autoselection act appropriately when leaving selected frame.
10514 (syms_of_frame): Initialize focus_follows_mouse.
10515 * frame.h (focus_follows_mouse): Extern it.
10516 * macterm.c (XTread_socket): When focus_follows_mouse is nil
10517 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
10518 * msdos.c (dos_rawgetc): Likewise.
10519 * w32term.c (w32_read_socket): Likewise.
10520 * xterm.c (handle_one_xevent): Likewise.
10521 * xdisp.c (syms_of_xdisp): In doc-string of
10522 mouse-autoselect-window mention focus-follows-mouse.
10523
10524 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10525
10526 * macterm.c (mac_load_query_font): Fix missing return value.
10527 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
10528 Add BLOCK_INPUT.
10529
10530 2007-10-08 Richard Stallman <rms@gnu.org>
10531
10532 * xdisp.c (get_window_cursor_type): Implement documented behavior
10533 for cursor-in-non-selected-windows = t.
10534
10535 2007-10-08 Jason Rumney <jasonr@gnu.org>
10536
10537 * w32.c (w32_get_resource): Always close registry keys.
10538
10539 2007-10-08 Jason Rumney <jasonr@gnu.org>
10540
10541 * makefile.w32-in (LIBS): Add COMCTL32.
10542
10543 * w32fns.c (globals_of_w32fns): Init common controls.
10544
10545 2007-10-08 Richard Stallman <rms@gnu.org>
10546
10547 * image.c (our_memory_buffer): Rename from omfib_buffer.
10548
10549 2007-10-08 Richard Stallman <rms@gnu.org>
10550
10551 * buffer.c (Foverlays_at): Doc fix.
10552
10553 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
10554
10555 * fns.c (Fplist_put): Preserve uneven tail data.
10556
10557 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
10558
10559 * termhooks.h (enum event_kind): Remove trailing comma.
10560
10561 * frame.h (enum): Remove trailing comma.
10562
10563 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
10564
10565 * w32proc.c (delete_child): Don't terminate threads of zombies.
10566
10567 2007-10-08 Martin Rudalics <rudalics@gmx.at>
10568
10569 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
10570
10571 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
10572 last-repeatable-command.
10573 (init_kboard): Initialize Vlast_repeatable_command.
10574 (command_loop_1): Set it to real_this_command unless that was
10575 bound to an input event.
10576 (mark_kboards): Mark it.
10577
10578 2007-10-08 Richard Stallman <rms@gnu.org>
10579
10580 * eval.c (condition-case): Doc fix.
10581
10582 2007-10-08 Masatake YAMATO <jet@gyve.org>
10583
10584 * xfaces.c (tty_supports_face_attributes_p): Fix code
10585 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
10586 was copied and not edited.
10587
10588 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
10589
10590 Add new `input-decode-map' keymap and use it for terminal
10591 escape sequences.
10592 * keyboard.h (struct kboard): Add Vinput_decode_map.
10593 Remove Vlocal_key_translation_map.
10594 * keyboard.c (read_key_sequence): Add support for input-decode-map.
10595 (init_kboard): Init input-decode-map.
10596 Replace local-key-translation-map back with key-translation-map.
10597 (syms_of_keyboard): Declare input-decode-map.
10598 Remove local-key-translation-map. Update docstrings.
10599 (mark_kboards): Mark Vinput_decode_map.
10600 Don't mark Vlocal_key_translation_map.
10601 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
10602 Replace local-key-translation-map back with key-translation-map.
10603 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
10604 Bind in input-decode-map rather than function-key-map.
10605
10606 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
10607 This was made redundant by the previous introduction of XSETPVECTYPE.
10608
10609 2007-10-09 Richard Stallman <rms@gnu.org>
10610
10611 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
10612
10613 2007-09-29 Richard Stallman <rms@gnu.org>
10614
10615 * eval.c (internal_condition_case_2, internal_condition_case_1)
10616 (internal_condition_case): Reenable abort if x_catching_errors ()
10617 to see if that really happens and why.
10618
10619 2007-10-06 Andreas Schwab <schwab@suse.de>
10620
10621 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
10622
10623 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
10624
10625 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
10626
10627 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
10628
10629 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
10630
10631 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
10632
10633 * window.h (struct window):
10634 * window.c (struct save_window_data, struct saved_window):
10635 * termhooks.h (struct terminal):
10636 * process.h (struct Lisp_Process):
10637 * frame.h (struct frame):
10638 * buffer.h (struct buffer):
10639 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
10640 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
10641 The size field of (pseudo)vectors is now unsigned.
10642 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
10643
10644 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
10645 Turn `count' into an integer.
10646
10647 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
10648 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
10649 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
10650 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
10651 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
10652
10653 * alloc.c (allocate_pseudovector): New fun.
10654 (ALLOCATE_PSEUDOVECTOR): New macro.
10655 (allocate_window, allocate_terminal, allocate_frame)
10656 (allocate_process): Use it.
10657 (mark_vectorlike): New function.
10658 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
10659 (mark_terminals): Use it.
10660 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
10661 (Fmake_byte_code): Use XSETPVECTYPE.
10662
10663 * frame.c (Fframe_parameters): Minor simplification.
10664
10665 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
10666
10667 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
10668
10669 * buffer.c (Fget_buffer_create, init_buffer_once):
10670 * lread.c (defsubr):
10671 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
10672
10673 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
10674 defined differently in the m/*.h files.
10675 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
10676 (XSETPVECTYPE): New macro.
10677 (XSETPSEUDOVECTOR): Use it.
10678
10679 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
10680 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
10681
10682 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
10683 * lread.c (defvar_per_buffer):
10684 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
10685
10686 * window.c (candidate_window_p): Only consider as visible frames that
10687 are on the same terminal.
10688
10689 * m/ibms390x.h (MARKBIT): Remove unused macro.
10690
10691 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
10692
10693 * lread.c (Fload): Fix typo in docstring.
10694
10695 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
10696
10697 * floatfns.c (Fexpt): Manually check for overflows, so that a power
10698 of a non-zero value can't yield zero.
10699
10700 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
10701
10702 * term.c (term_clear_mouse_face, term_mouse_highlight)
10703 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
10704
10705 * print.c (safe_debug_print): Use XHASH.
10706
10707 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10708 Lisp elements such as tags.
10709 (XHASH): New macro.
10710 (EQ): Use it.
10711 (SREF, SSET, STRING_COPYIN): Use SDATA.
10712 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10713
10714 * alloc.c (mark_terminal): Remove left-over declaration.
10715 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10716 (allocate_vectorlike): Remove type argument. Adjust callers.
10717 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10718 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10719
10720 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10721 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10722 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10723 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10724 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10725 Use them.
10726
10727 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10728 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10729 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10730
10731 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10732
10733 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10734 loaded by default.
10735
10736 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10737
10738 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
10739 on this tty.
10740 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
10741
10742 * term.c (mouse_face_window): Rename from Qmouse_face_window.
10743 Update all users.
10744 (handle_one_term_event): Use Gpm_DrawPointer.
10745 (Fgpm_mouse_start): Rename from Fterm_open_connection.
10746 Signal errors instead of returning nil. Always return nil.
10747 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
10748 Make it a noop if gpm-mouse was not activated.
10749 (syms_of_term): Update names.
10750
10751 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
10752
10753 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
10754 (init_sys_modes): Check that gpm_tty is the current tty.
10755
10756 * alloc.c (allocate_terminal): Set the vector size to only count the
10757 lisp fields. Initialize those to nil.
10758 (mark_object): Don't treat terminals specially.
10759 (mark_terminal): Remove.
10760 (mark_terminals): Use mark_object instead.
10761
10762 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
10763 the GC to the beginning.
10764
10765 * indent.h:
10766 * indent.c: Use EMACS_INT for ints coming from Elisp data.
10767
10768 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
10769
10770 2007-09-25 Jason Rumney <jasonr@gnu.org>
10771
10772 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
10773
10774 * w32console.c (create_w32cons_output): Remove.
10775
10776 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
10777
10778 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
10779 (reset_sys_modes): Use reset_terminal_modes_hook.
10780
10781 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
10782
10783 * eval.c (do_autoload): Don't output any message.
10784
10785 2007-09-24 Juri Linkov <juri@jurta.org>
10786
10787 * emacs.c (standard_args): Change priority of "--no-splash"
10788 from 40 to 3. Add "--no-desktop" with the same priority.
10789
10790 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
10791
10792 * alloc.c (gc_sweep): Check cons cell mark bits word by word
10793 and optimize the case where they are all 1.
10794
10795 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
10796
10797 * lisp.h (abs): Define if not defined.
10798 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
10799 Don't define `abs', since it's defined in lisp.h.
10800
10801 2007-09-22 Eli Zaretskii <eliz@gnu.org>
10802
10803 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
10804 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
10805 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
10806 (init_tty): Use DEV_TTY instead of "/dev/tty".
10807 [WINDOWSNT]: No need to protect from NAME arg being null.
10808
10809 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10810
10811 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
10812 up the tty state.
10813
10814 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10815
10816 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
10817 (gpm_tty): Change its type.
10818 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
10819 (gpm_tty): Change its type and initialize it.
10820 (Fterm_open_connection): Check the frame is indeed a tty.
10821 Use the new gpm_tty.
10822 (Fterm_close_connection): Use the new gpm_tty.
10823 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
10824 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
10825
10826 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
10827
10828 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
10829 underline_color, to draw strike-through.
10830
10831 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10832
10833 * lisp.h (allocate_terminal): Declare.
10834
10835 * window.c (candidate_window_p): Consider frames that are being placed
10836 by the user as somewhere between visible and iconified.
10837 (window_loop): Prefer windows on the current frame.
10838 (Fselect_window): Move the use of select-frame to the beginning so we
10839 can just delegate all the work (it'll call us back anyway).
10840
10841 * frame.c (Qdisplay_environment_variable):
10842 * frame.h (Qdisplay_environment_variable): Delete.
10843
10844 * .gdbinit (xbacktrace): Print the arg's address rather than the value
10845 of the first arg, since that value may be a union.
10846
10847 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
10848 parameter rather than Qdisplay_environment_variable. If all else
10849 fails, look for DISPLAY in initial-environment.
10850
10851 2007-09-21 Glenn Morris <rgm@gnu.org>
10852
10853 * Makefile.in (emacstool): Remove target.
10854 (lisp, shortlisp): Remove termdev.elc.
10855
10856 2007-09-21 Markus Triska <markus.triska@gmx.at>
10857
10858 * xterm.c (x_delete_display): Compile session management conditionally.
10859
10860 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
10861
10862 * callproc.c (getenv_internal_1): New function.
10863 (getenv_internal): Use it.
10864 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
10865
10866 * terminal.c (get_terminal): Don't accept ints to represent terminals.
10867 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
10868 (Fset_terminal_parameter): Work with dead terminals as well.
10869 (Fmodify_terminal_parameters): Remove.
10870
10871 * terminal.c (get_terminal): Handle terminals.
10872 Make sure the terminal returned is live.
10873 (create_terminal): Use allocate_terminal.
10874 (mark_terminals): Move to alloc.c.
10875 (delete_terminal): Use terminal->name as liveness status.
10876 NULL out fields after freeing their contents.
10877 Don't deallocate the object.
10878 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
10879 rather than an int.
10880 (Fterminal_live_p): Accept non-integer arguments.
10881 (Fterminal_list): Return terminal objects rather than an ints.
10882
10883 * alloc.c (enum mem_type): New member for `terminal' objects.
10884 (allocate_terminal): New function.
10885 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
10886 Handle terminals.
10887 (mark_terminal): New fun.
10888 (mark_terminals): Move from terminal.c.
10889
10890 * term.c (get_tty_terminal): Don't treat output_initial specially.
10891 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
10892 (delete_tty): Use terminal->name as liveness status.
10893
10894 * termhooks.h (struct terminal): Make it into a pseudovector.
10895 Remove `deleted' replaced by checking `name's nullness.
10896
10897 * print.c (print_object): Handle terminals.
10898
10899 * lisp.h (enum pvec_type): New `terminal' pseudovector.
10900 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
10901
10902 * frame.c (make_terminal_frame):
10903 * keyboard.c (tty_read_avail_input):
10904 * w32term.c (x_delete_terminal):
10905 * xfns.c (Fx_create_frame, x_create_tip_frame):
10906 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
10907
10908 2007-09-20 Glenn Morris <rgm@gnu.org>
10909
10910 * process.c (Fmake_network_process): Doc fix.
10911
10912 2007-09-19 Jason Rumney <jasonr@gnu.org>
10913
10914 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
10915
10916 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
10917
10918 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
10919 Fix a C warning regarding variable constness.
10920
10921 * xterm.c (handle_one_xevent): Fix a C warning.
10922
10923 2007-09-18 Jason Rumney <jasonr@gnu.org>
10924
10925 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
10926
10927 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
10928
10929 * gtkutil.c (gdpy_def): New variable.
10930 (xg_initialize): Initialize gdpy_def.
10931 (xg_display_close): If no other display exists, set gdpy_def to a
10932 new connection.
10933
10934 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
10935
10936 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
10937 when we have no file name for the icon.
10938 (xg_tool_bar_expose_callback): Remove.
10939 (xg_create_tool_bar): Don't connect expose signal to
10940 xg_tool_bar_expose_callback.
10941 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
10942
10943 2007-09-16 Andreas Schwab <schwab@suse.de>
10944
10945 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
10946 values instead of zapping them.
10947
10948 2007-09-14 Glenn Morris <rgm@gnu.org>
10949
10950 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
10951 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
10952 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
10953 scope and rename to omfib_buffer for clarity.
10954 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
10955
10956 2007-09-14 Kenichi Handa <handa@m17n.org>
10957
10958 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
10959
10960 2007-09-13 Jason Rumney <jasonr@gnu.org>
10961
10962 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
10963
10964 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
10965
10966 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
10967 (mac_term_init): Call here instead, passing rif.
10968
10969 2007-09-13 Glenn Morris <rgm@gnu.org>
10970
10971 * s/hpux.h: No longer define `static' as nothing.
10972
10973 2007-09-13 Johan Bockgård <bojohan@gnu.org>
10974
10975 * callint.c (Fcall_interactively): Remove unused var `fun'.
10976
10977 2007-09-12 Romain Francoise <romain@orebokech.com>
10978
10979 * window.c (prefer_window_split_horizontally, display_buffer):
10980 Revert 2007-09-08 change.
10981
10982 2007-09-12 Glenn Morris <rgm@gnu.org>
10983
10984 * alloca.c: Remove file.
10985 * Makefile.in (alloca): Do not undef.
10986 (allocaobj, alloca.o): Remove.
10987 (otherobj): Remove allocaobj.
10988 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
10989 * regex.c (C_ALLOCA): Remove all references and code that was only
10990 used when this was defined.
10991 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
10992 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
10993 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
10994
10995 * Makefile.in (SOURCES, unlock, relock): Delete.
10996
10997 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
10998 (menu_grab_callback): All uses changed.
10999
11000 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
11001 (x_reply_selection_request): All uses changed.
11002
11003 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11004
11005 * lread.c (load_warn_old_style_backquotes): Change message to look
11006 better when it appears in the middle of byte-compiler messages.
11007
11008 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
11009
11010 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
11011
11012 * xterm.c (x_create_terminal): Add comment.
11013
11014 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
11015
11016 2007-09-10 Richard Stallman <rms@gnu.org>
11017
11018 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
11019
11020 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
11021
11022 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
11023 (DEFUN): Document `intspec', use it instead of `prompt'.
11024
11025 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
11026
11027 * data.c (Finteractive_form): If the interactive specification starts
11028 with a `(', use it as a Lisp form.
11029
11030 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
11031 name and file modes.
11032
11033 * callint.c (Fcall_interactively): Comment fixes.
11034
11035 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11036
11037 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
11038 and compiled functions.
11039
11040 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
11041
11042 * window.c (prefer_window_split_horizontally): New variable.
11043 (display_buffer): Consider splitting window horizontally depending
11044 on prefer_window_split_horizontally.
11045
11046 2007-09-08 Eli Zaretskii <eliz@gnu.org>
11047
11048 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
11049
11050 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11051
11052 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
11053
11054 * frame.c (x_set_frame_parameters): Check number is positive before
11055 using XFASTINT.
11056
11057 * window.c (freeze_window_start): Don't presume selected_window holds
11058 a window object.
11059 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
11060
11061 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
11062
11063 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
11064
11065 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11066
11067 * window.c (Vsplit_window_preferred_function): New var.
11068 (Fdisplay_buffer): Use it.
11069 (syms_of_window): Export, and initialize it.
11070
11071 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
11072
11073 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
11074
11075 2007-09-06 Glenn Morris <rgm@gnu.org>
11076
11077 * gtkutil.c (menu_grab_callback) <cnt>:
11078 * xselect.c (x_reply_selection_request) <cnt>: Move static
11079 variable to file scope.
11080
11081 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
11082
11083 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
11084 consistent values of selected_frame and selected_window.
11085
11086 2007-09-04 Jason Rumney <jasonr@gnu.org>
11087
11088 * w32console.c (initialize_w32_display): Zero unused hooks.
11089
11090 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11091
11092 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
11093 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
11094
11095 2007-09-04 Jason Rumney <jasonr@gnu.org>
11096
11097 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
11098 in w32console.c. Set up input. Remove XXX comments that have been
11099 confirmed as correct.
11100
11101 * s/ms-w32.h (MULTI_KBOARD): Define.
11102
11103 * w32console.c (one_and_only_w32cons): Remove.
11104 (initialize_w32_display): Take terminal argument.
11105
11106 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
11107 initialize_w32_display.
11108 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
11109
11110 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
11111
11112 * keyboard.c (discard_mouse_events): Discard it.
11113 (make_lispy_event): Translate it to a lisp event.
11114 (lispy_wheel_names): Add wheel-left and right events.
11115 (syms_of_keyboard): Enlarge wheel_syms.
11116
11117 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
11118 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
11119
11120 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
11121
11122 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
11123 from WM_MOUSEHWHEEL.
11124 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
11125
11126 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
11127 terminal.
11128
11129 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
11130 keyboard for the terminal.
11131
11132 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11133
11134 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
11135 (Vresume_tty_hook): Rename from Vresume_tty_functions.
11136 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
11137 and resume-tty-function to resume-tty-hook.
11138 (Fsuspend_tty, Fresume_tty): Use new names.
11139
11140 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
11141
11142 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
11143 if it starts with "n:".
11144
11145 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
11146
11147 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
11148
11149 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11150
11151 * frame.h:
11152 * frame.c (Qterm_environment_variable): Remove.
11153 (syms_of_frame): Don't init and staticpro it.
11154
11155 * callproc.c (getenv_internal): Remove special case for $TERM.
11156
11157 * callproc.c (Vinitial_environment): New variable.
11158 (set_initial_environment): Initialize it.
11159 (syms_of_callproc): Declare it.
11160 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
11161 TERM under which a process runs is never related to the TERM in which
11162 Emacs is running.
11163
11164 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11165
11166 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
11167 * s/darwin.h: ... do it here.
11168
11169 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11170
11171 * lisp.h (set_initial_environment): Rename from set_global_environment.
11172
11173 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
11174 removed by mistake on the multi-tty branch.
11175
11176 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
11177 (Fmodify_frame_parameters): Return a value.
11178
11179 * image.c (png_load): Comment-out var only used in commented-out code.
11180
11181 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
11182 before passing it to mark_object.
11183
11184 * xfaces.c (internal_resolve_face_name): Return a value.
11185 (internal_resolve_face_name, resolve_face_name_error): Comment out.
11186
11187 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
11188 (x_icon): Comment-out var only used in commented-out code.
11189
11190 2007-08-29 Romain Francoise <romain@orebokech.com>
11191
11192 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
11193 QUIT hasn't been provided.
11194
11195 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11196
11197 * callproc.c (child_setup, getenv_internal): Use the
11198 display-environment-variable and term-environment-variable frame params.
11199 (set_initial_environment): Initialise Vprocess_environment.
11200
11201 * config.in: Disable multi-keyboard support on a mac.
11202
11203 * frame.c (Qterm_environment_variable)
11204 (Qdisplay_environment_variable): New variables.
11205 (syms_of_frame): Intern and staticpro them.
11206 (Fmake_terminal_frame): Disable output method test.
11207
11208 * frame.h: Declare them here.
11209
11210 * macfns.c (x_set_mouse_color): Get rif from the frame.
11211 (x_set_tool_bar_lines): Don't use updating_frame.
11212 (mac_window): Add 2 new parameters for consistency with other systems.
11213 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
11214 frame parameters following what is done in X11 and w32. Don't use
11215 FRAME_MAC_DISPLAY_INFO.
11216 (Fx_open_connection, start_hourglass): Remove window-system check.
11217 (x_create_tip_frame): Get the keyboard from the terminal.
11218
11219 * macmenu.c: Reorder includes.
11220 (Fx_popup_menu): Use terminal specific mouse_position_hook.
11221
11222 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
11223 terminal parameter.
11224 (x_clear_frame): Add a frame parameter.
11225 (note_mouse_movement): Get rif from the frame.
11226 (mac_term_init): Initialize the terminal.
11227 (mac_initialize): Make static and move terminal initialization ...
11228 (mac_create_terminal): ... to this new function.
11229
11230 * macterm.h (struct mac_display_info): Add terminal.
11231 (mac_initialize): Delete declaration.
11232
11233 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
11234
11235 * sysdep.c: Comment out text after #endif.
11236
11237 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
11238 is defined. Better initialize ttys in windows. Use terminal
11239 specific mouse_position_hook.
11240
11241 * termhooks.h (union display_info): Add mac_display_info.
11242
11243 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
11244 Set the default minibuffer frame, window_system and the rest of the
11245 frame parameters following what is done in X11.
11246
11247 * w32term.c (w32_initialize): Make static.
11248
11249 * xselect.c (x_handle_selection_clear): Only access
11250 terminal->kboard when MULTI_KBOARD is defined.
11251
11252 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
11253 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
11254
11255 2007-08-29 Jason Rumney <jasonr@gnu.org>
11256
11257 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
11258 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
11259
11260 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
11261 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
11262
11263 * keyboard.c (restore_kboard_configuration): Only define when
11264 MULTI_KBOARD defined.
11265
11266 * makefile.w32-in: Update dependancies from Makefile.in.
11267 (OBJ1): Add terminal.$(O)
11268
11269 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
11270 Don't define function body.
11271 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
11272
11273 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
11274
11275 * w32.c (request_sigio, unrequest_sigio): Remove.
11276
11277 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
11278 (w32con_clear_frame, w32con_clear_end_of_line)
11279 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
11280 (w32con_delete_glyphs, w32con_set_terminal_window)
11281 (scroll_line, w32_sys_ring_bell): Add frame arg.
11282 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
11283 Add terminal arg.
11284 (PICK_FRAME): Remove.
11285 (w32con_write_glyphs): Use frame specific terminal coding.
11286 (one_and_only_w32cons): New global variable.
11287 (initialize_w32_display): Use it for storing hooks.
11288 (create_w32cons_output): New function.
11289
11290 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
11291 arg a frame.
11292
11293 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
11294 Set window_system.
11295 (x_set_tool_bar_lines): Don't use updating_frame.
11296 (Fx_create_frame): Set terminal and ref count.
11297 (Fx_open_connection): Remove window-system check.
11298
11299 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
11300
11301 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
11302 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
11303 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
11304 Add frame arg.
11305 (x_delete_terminal, w32_create_terminal): New functions.
11306 (w32_term_init): Create a terminal.
11307 (w32_initialize): Move terminal specific initialization to
11308 w32_create_terminal.
11309
11310 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
11311 (w32_clear_rect, w32_clear_area): Use background from frame.
11312 (w32_display_info): Add terminal.
11313 (w32_sys_ring_bell, x_delete_display): Declare here.
11314
11315 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
11316
11317 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
11318
11319 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
11320
11321 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
11322 Fix get_named_tty calls for the controlling tty.
11323
11324 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
11325
11326 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
11327
11328 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
11329
11330 * term.c (tty_insert_glyphs): Add missing first parameter.
11331
11332 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
11333
11334 * buffer.c (Fbuffer_list, Fbury_buffer):
11335 Take frame->buried_buffer_list into account.
11336
11337 * cm.c (current_tty): New variable, for cmputc().
11338 (cmputc): Use it.
11339 (cmcheckmagic): Add tty parameter, look up terminal streams there.
11340 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
11341 (cmgoto): Add tty parameter. Pass it on to calccost().
11342 Use emacs_tputs() instead of tputs().
11343
11344 * cm.h (emacs_tputs): New macro to set current_tty, and then call
11345 tputs().
11346 (current_tty): New variable, for cmputc().
11347 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
11348
11349 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
11350 (internal_condition_case, internal_condition_case_1)
11351 (internal_condition_case_2): Don't abort when x_catching_errors.
11352
11353 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
11354 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
11355 prevent crashes caused by bogus longjmps in read_char.
11356
11357 * keymap.h (Fset_keymap_parent): Add EXFUN.
11358
11359 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
11360 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11361 Remove redundant definition.
11362
11363 * macfns.c (x_set_mouse_color, x_make_gc):
11364 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11365
11366 * w32term.c (x_free_frame_resources):
11367 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11368 (w32_initialize): Use the accessor macros for terminal characteristics.
11369
11370 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
11371 Use the accessor macros for terminal characteristics.
11372 * msdos.c (internal_terminal_init): Use the accessor macros for
11373 terminal characteristics.
11374 (ScreenVisualBell, internal_terminal_init):
11375 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11376
11377 * termopts.h (no_redraw_on_reenter): Declare.
11378
11379 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
11380 (mark_terminals, mark_ttys): Declare.
11381 (Fgarbage_collect): Call them.
11382 (mark_object): Mark buried_buffer_list.
11383
11384 * prefix-args.c: Include stdlib.h for exit.
11385
11386 * syssignal.h: Add comment.
11387
11388 * indent.c: Include stdio.h.
11389
11390 * window.h (Vinitial_window_system): Declare.
11391 (Vwindow_system): Delete declaration.
11392
11393 * fontset.c (Finternal_char_font): Use FRAME_RIF.
11394
11395 * image.c (lookup_image): Don't initialize `c' until the xasserts
11396 have been run.
11397
11398 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
11399 FRAME_FOREGROUND_PIXEL.
11400
11401 * print.c (print_preprocess): Don't lose print_depth levels while
11402 iterating.
11403
11404 * widget.c (update_from_various_frame_slots):
11405 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11406
11407 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
11408 frames.
11409 (window_internal_height): Remove bogus make_number call.
11410 (init_window_once): Call make_terminal_frame with two zero parameters.
11411
11412 * fileio.c (Fread_file_name): Update comment.
11413
11414 * callint.c (Fcall_interactively):
11415 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
11416 Make sure it is correctly unwound.
11417
11418 * xsmfns.c (x_session_close): New function.
11419
11420 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
11421 Delete declarations.
11422
11423 * xterm.h: Remove declaration for x_fully_uncatch_errors.
11424 (x_output): Remove background_pixel and foreground_pixel fields.
11425 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
11426 (x_delete_device, x_session_close): Declare.
11427
11428 * lread.c: Include setjmp.h. Update declaration of `read_char'.
11429 (read_filtered_event): Call `read_char' with a local
11430 `wrong_kboard_jmpbuf'.
11431
11432 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
11433 Don't call single_kboard_state. Use FRAME_RIF.
11434
11435 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
11436 systems.
11437
11438 * lisp.h (set_process_environment): Rename to `set_global_environment'.
11439 (Fframe_with_environment, Fset_input_meta_mode)
11440 (Fset_quit_char): EXFUN.
11441 (x_create_device, tty_output, terminal, tty_display_info): Declare.
11442 (init_sys_modes, reset_sys_modes): Update prototypes.
11443 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
11444
11445 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
11446 Vlocal_key_translation_map, and Vkeyboard_translate_table.
11447 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
11448 Delete declarations.
11449 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
11450 (temporarily_switch_to_single_kboard, tty_read_avail_input):
11451 New declarations.
11452
11453 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
11454 already does that during init_display(). Call syms_of_keymap
11455 before syms_of_keyboard. Call `syms_of_terminal'.
11456 Call set_initial_environment, not set_process_environment.
11457 (shut_down_emacs): Call reset_all_sys_modes() instead of
11458 reset_sys_modes().
11459
11460 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
11461 (internal_resolve_face_name, resolve_face_name_error): New functions.
11462 (resolve_face_name): Protect against loops and errors thrown by Fget.
11463 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
11464 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
11465
11466 * scroll.c: Replace CURTTY() with local variables throughout the
11467 file (where applicable).
11468 (calculate_scrolling, calculate_direct_scrolling)
11469 (scrolling_1, scroll_cost): Use the accessor macros for terminal
11470 characteristics.
11471
11472 * keymap.c (Vfunction_key_map): Remove.
11473 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
11474 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
11475 (Vkey_translation_map): Remove.
11476 (syms_of_keymap): Remove DEFVAR for key-translation-map.
11477 (Fdescribe_buffer_bindings)
11478 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
11479 Update for terminal-local key-translation-map.
11480
11481 * Makefile.in (callproc.o): Update dependencies.
11482 (lisp, shortlisp): Add termdev.elc.
11483 (obj): Add terminal.o.
11484 (terminal.o): Add dependencies.
11485 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
11486 (data.o, fns.o): Add termhooks.h dependency.
11487 (SOME_MACHINE_LISP): Add dnd.elc.
11488 (minibuf.o): Fix typo.
11489 Update dependencies.
11490
11491 * data.c (do_symval_forwarding, store_symval_forwarding)
11492 (find_symbol_value): Use the selected frame's keyboard, not
11493 current_kboard.
11494
11495 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
11496 Vwindow_system.
11497
11498 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
11499 Fmenu_bar_open.
11500 (syms_of_xmenu): Update defsubr.
11501 (mouse_position_for_popup, Fx_popup_menu)
11502 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
11503 (set_frame_menubar, free_frame_menubar)
11504 (create_and_show_popup_menu, xmenu_show, )
11505 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
11506 an X frame.
11507
11508 * xselect.c (x_own_selection): Abort if not an X frame.
11509 (some_frame_on_display): Check if it is an X frame.
11510 (x_handle_selection_clear): Deal with MULTI_KBOARD.
11511
11512 * coding.c: Include frame.h and termhooks.h.
11513 (terminal_coding, keyboard_coding): Delete.
11514 (Fset_terminal_coding_system_internal)
11515 (Fset_keyboard_coding_system_internal)
11516 (Fkeyboard_coding_system)
11517 (Fterminal_coding_system): Add a terminal parameter.
11518 Get terminal_coding from the terminal.
11519 (init_coding_once): Don't call setup_coding_system here.
11520
11521 * dispextern.h (set_scroll_region, turn_off_insert)
11522 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
11523 (tty_clear_end_of_line, tty_setup_colors)
11524 (delete_tty, updating_frame)
11525 (produce_special_glyphs, produce_glyphs, write_glyphs)
11526 (insert_glyphs): Remove.
11527 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
11528 (tty_turn_off_highlight, get_tty_size): Add declaration.
11529 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
11530
11531 * frame.h (enum output_method): Add output_initial.
11532 (struct x_output): Delete.
11533 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11534 Access foreground_pixel and background_pixel directly from the frame.
11535 (tty_display): Delete.
11536 (struct frame): Add buried_buffer_list, foreground_pixel,
11537 background_pixel and terminal. Delete kboard.
11538 (union output_data): Add tty.
11539 (FRAME_KBOARD): Get the kboard from the terminal.
11540 (FRAME_INITIAL_P): New macro.
11541 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
11542 (Qterm_environment_variable, Qdisplay_environment_variable)
11543 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
11544 New declarations.
11545
11546 * termchar.h (tty_output, tty_display_info): New structures.
11547 (tty_list): Declare.
11548 (FRAME_TTY, CURTTY): New macros.
11549 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
11550 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
11551 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
11552 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
11553
11554 * callproc.c: Include frame.h and termhooks.h, for terminal
11555 parameters.
11556 (add_env): New function.
11557 (child_setup): Use it.
11558 (child_setup, getenv_internal): Handle the new Vprocess_environment.
11559 (getenv_internal): Fix get_terminal_param call.
11560 (Fgetenv_internal, egetenv): Update doc.
11561 (syms_of_callproc): Initialize Vprocess_environment to nil.
11562 Register and initialize them. Remove obsolete defvars. Update doc
11563 strings.
11564 (child_setup): Handle Vlocal_environment_variables.
11565 (getenv_internal): Add terminal parameter.
11566 Handle Vlocal_environment_variables.
11567 (Fgetenv_internal): Add terminal parameter.
11568 (child_setup, getenv_internal, Fgetenv_internal): Store the local
11569 environment in a frame (not terminal) parameter. Update doc strings.
11570 (set_initial_environment): Rename from set_global_environment.
11571 Store Emacs environment in initial frame parameter.
11572
11573 * xdisp.c (redisplay_internal): Update references to
11574 `previous_terminal_frame'.
11575 (display_mode_line, Fformat_mode_line): Replace calls to
11576 `push_frame_kboard' with `push_kboard'.
11577 (get_glyph_string_clip_rects): Add extra parentheses and
11578 braces to prevent compiler warnings.
11579 (calc_pixel_width_or_height): Add xassert to check that the
11580 frame is alive. Don't call `lookup_image' on a termcap frame.
11581 (message2_nolog, message3_nolog, redisplay_internal)
11582 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
11583 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
11584 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
11585 (Fx_display_pixel_width, Fx_display_pixel_height)
11586 (Fx_display_planes, Fx_display_color_cells)
11587 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
11588 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
11589 (Fx_display_backing_store, Fx_display_visual_class)
11590 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
11591 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
11592
11593 * xfns.c (x_set_foreground_color x_set_background_color)
11594 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
11595 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11596 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
11597 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
11598 terminal that is being deleted.
11599 (Fx_create_frame): Use `store_frame_param' to set `window-system'
11600 frame parameter, and make sure it overrides any user-supplied setting.
11601 (Fx_close_connection, Fx_synchronize): Unify argument names with
11602 the rest of the DEFUNs.
11603
11604 * dispnew.c (Fsend_string_to_terminal): Update call to
11605 `get_tty_terminal'.
11606 (Fredraw_frame, Fsend_string_to_terminal)
11607 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
11608 FRAME_TERMCAP_P and FRAME_TTY.
11609 (window_change_signal): Don't believe width/height values that are
11610 impossibly small.
11611 (Vinitial_window_system): Rename from Vwindow_system.
11612 (termscript, Wcm, rif): Delete.
11613
11614 * termhooks.h (struct terminal): New struct containing the
11615 previously global text display hooks and new members NAME,
11616 DELETED and PARAM_ALIST.
11617 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
11618 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
11619 (FRAME_RIF): New macros.
11620 (get_terminal_param, get_device): New declarations.
11621 (termscript): Delete declaration.
11622
11623 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
11624 (XTflash, x_free_frame_resources, x_scroll_bar_create)
11625 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
11626 FRAME_FOREGROUND_PIXEL.
11627 (x_fully_uncatch_errors): Disable definition.
11628 (x_scroll_bar_expose): Fix reference to foreground pixel.
11629 (XTread_socket): Disable loop on all X displays.
11630 (x_delete_terminal): Don't set terminal->deleted and let
11631 delete_terminal delete the frames on the terminal.
11632 (x_delete_display): Doc update to reflect changes in
11633 delete_terminal.
11634 (x_display_info) <terminal>: Move member earlier in the struct.
11635 (deleting_tty): Remove old variable.
11636 (Fsuspend_tty): Call clear_tty_hooks.
11637 (Fresume_tty, init_tty): Call set_tty_hooks.
11638 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
11639 errors on X frames.
11640 (x_catch_errors_unwind): Abort if x_error_message is NULL.
11641 (handle_one_xevent): Initialize `f' to NULL.
11642 (x_delete_terminal, x_create_terminal): New functions.
11643 (XTset_terminal_modes, XTreset_terminal_modes)
11644 (XTread_socket, x_connection_closed, x_term_init)
11645 (x_term_init, x_delete_display): Add terminal parameter.
11646 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
11647 X connections.
11648
11649 * frame.c: Include termchar.h.
11650 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
11651 (Qwindow_system, Qenvironment, Qterm_environment_variable)
11652 (Qdisplay_environment_variable): New vars.
11653 (Fframep): Deal with output_initial.
11654 (Fframe-live-p): Doc fix.
11655 (Fwindow-system): New function.
11656 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
11657 (make_terminal_frame): Don't create frames on a terminal that is
11658 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11659 (store_frame_param): Check for found_for_frame before calling XFRAME.
11660 (Fmake_terminal_frame): Handle NULL tty names correctly.
11661 (syms_of_frame): Enhance doc string of `default-frame-alist'.
11662 (Fdelete_frame): Remove unused variable `count'. Don't allow other
11663 frames to refer to a deleted frame in their 'environment parameter.
11664 (Fframe_with_environment): New function.
11665 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
11666 (get_future_frame_param): New function.
11667 (Fmake_terminal_frame): Use it.
11668 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
11669
11670 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
11671 * sysdep.c (reset_sys_modes): Update for renames.
11672
11673 * keyboard.c (tty_read_avail_input): New function.
11674 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
11675 (syms_of_keyboard): Defsubr them.
11676 (Fset_input_meta_mode, Fset_quit_char): New functions.
11677 (Fset_input_mode): Split to above functions.
11678 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
11679 parameter. Use it in call to `read_char'.
11680 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
11681 Set wrong_kboard_jmpbuf correctly in recursive calls.
11682 Use current_kboard to access Vkeyboard_translate_table.
11683 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
11684 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
11685 Update longjmp invocations. Remember the original current_kboard,
11686 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
11687 changes it. Comment out unnecessary calls to
11688 `record_single_kboard_state' and `any_kboard_state'.
11689 Update recursive calls.
11690 (wrong_kboard_jmpbuf): Remove global variable.
11691 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
11692 Handle deleted interrupted_kboards correctly; that is a legal
11693 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
11694 and read_char calls. Abort if interrupted_kboard died in read_char.
11695 (any_kboard_state, single_kboard_state)
11696 (push_frame_kboard): Remove function.
11697 (pop_kboard): Switch out of single_kboard mode if the kboard has
11698 been deleted. Remove unused variable. Help debugging by not
11699 changing current_kboard unnecessarily. Set current_kboard to the
11700 kboard of the selected frame when the stored kboard object has
11701 been deleted before pop_kboard.
11702 (temporarily_switch_to_single_kboard): Change first parameter to a
11703 frame pointer. Throw an error when caller wants to change kboards
11704 while in single_kboard mode. Don't push_kboard if we weren't in
11705 single kboard state. Don't pop_kboard if we popped into any
11706 kboard state.
11707 (restore_kboard_configuration): Abort if pop_kboard changed the
11708 kboard in single_kboard mode. Call pop_kboard only after setting
11709 up single_kboard mode.
11710 (Frecursive_edit): Switch to single_kboard mode only in nested
11711 command loops.
11712 (cmd_error, command_loop, command_loop_1, timer_check):
11713 Comment out unnecessary call to `any_kboard_state' and
11714 `record_single_kboard_state'.
11715 (delete_kboard): Exit single_kboard mode if we have just deleted
11716 that kboard. Use FRAME_KBOARD.
11717 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11718 `fatal_error_signal'.
11719 (record_single_kboard_state): Don't push_kboard if we weren't in
11720 single kboard state. Don't pop_kboard if we popped into any
11721 kboard state.
11722 (push_frame_kboard): Rename to push_kboard.
11723 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11724 (read_avail_input): Read input from all terminals.
11725 (mark_kboards): Also mark Vkeyboard_translate_table.
11726 (kbd_buffer_store_event_hold): Simplify condition.
11727 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11728 (Vkeyboard_translate_table): Move to struct kboard.
11729 (init_kboard): Initialize Vkeyboard_translate_table.
11730 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11731 Vkeyboard_translate_table. Update doc strings. Update docs of
11732 local-function-key-map and function-key-map.
11733
11734 * terminal.c: New file.
11735
11736 * term.c: Include errno.h.
11737 (Vring_bell_function, device_list, initial_device)
11738 (next_device_id, ring_bell, update_begin, update_end)
11739 (set_terminal_window, cursor_to, raw_cursor_to)
11740 (clear_to_end, clear_frame, clear_end_of_line)
11741 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
11742 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
11743 (syms_of_term): Move their initialization to terminal.c.
11744 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
11745 (Ftty_display_color_cells)
11746 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
11747 (clear_tty_hooks, set_tty_hooks)
11748 (init_tty, maybe_fatal): New functions.
11749 (Ftty_type): Return nil if terminal is not on a tty instead of
11750 throwing an error. Doc update.
11751 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
11752 Doc update. Initialize new subrs and variables.
11753 (delete_tty): Use terminal->deleted.
11754 (tty_set_terminal_modes): Rename from set_terminal_modes.
11755 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
11756 (set_scroll_region): Rename to `tty_set_scroll_region'.
11757 (turn_on_insert): Rename to `tty_turn_on_insert'.
11758 (turn_off_insert): Rename to `tty_turn_off_insert'.
11759 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
11760 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
11761 (toggle_highligh): Rename to `tty_toggle_highlight'.
11762 (background_highlight): Rename to `tty_background_highlight'.
11763 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
11764 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
11765 (tty_set_scroll_region, tty_background_highlight)
11766 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
11767 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
11768 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
11769 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
11770 Add static modifier.
11771 (tty_reset_terminal_modes, tty_set_terminal_window)
11772 (tty_set_scroll_region, tty_background_highlight)
11773 (tty_highlight_if_desired, tty_cursor_to)
11774 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
11775 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
11776 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
11777 renames.
11778
11779 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
11780
11781 * keyboard.c: Qrtl is new.
11782 (parse_tool_bar_item): Handle :rtl keyword.
11783 (syms_of_keyboard): Intern :rtl keyword.
11784
11785 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
11786
11787 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
11788 so no Lisp code is executed.
11789 (file_for_image, find_rtl_image): New functions.
11790 (xg_get_image_for_pixmap): Use file_for_image.
11791 (update_frame_tool_bar): If direction is RTL, use RTL image if
11792 defined. Use Gtk stock images if defined.
11793
11794 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11795
11796 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
11797 for nonexistent or zero-width glyph in composition glyph.
11798
11799 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
11800
11801 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
11802
11803 * xdisp.c (Finvisible_p): New function.
11804 (syms_of_xdisp): defsubr it.
11805
11806 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
11807
11808 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
11809 Doc fixes.
11810
11811 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11812
11813 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
11814
11815 2007-08-24 Martin Rudalics <rudalics@gmx.at>
11816
11817 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
11818 whether decoding has modified buffer contents.
11819
11820 2007-08-24 Jason Rumney <jasonr@gnu.org>
11821
11822 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
11823 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
11824 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
11825 (init_svg_functions) [HAVE_NTGUI]: New function.
11826 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
11827 (svg_load_image): Use them.
11828 (svg_load_image) [HAVE_NTGUI]: Implement background.
11829
11830 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11831
11832 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
11833 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
11834 (LIBX): Remove @RSVG_LIBS@.
11835 (LIBES): Add $(RSVG_LIBS).
11836
11837 * image.c (svg_load_image): Blend with specified background if exists.
11838 Use IMAGE_BACKGROUND. Add Mac OS Support.
11839
11840 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
11841 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
11842 Remove macros.
11843 [MAC_OSX] (socket_callback): Do nothing.
11844 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
11845 ReceiveNextEvent.
11846 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
11847 socket_callback.
11848 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
11849
11850 2007-08-22 Glenn Morris <rgm@gnu.org>
11851
11852 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
11853
11854 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
11855
11856 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
11857
11858 * image.c: Add support for SVG images. Some additional comments
11859 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
11860 (svg_image_p): New function to test for SVG image.
11861 (svg_load): New function to load SVG image.
11862 (svg_load_image): New function, helper for svg_load.
11863 (Qsvg): New Lisp_object.
11864 (svg_keyword_index): New enum.
11865 (svg_format): New static `image_keyword' struct.
11866 (svg_type): New static `image_type' struct.
11867 (librsvg/rsvg.h): Include it.
11868
11869 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
11870
11871 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
11872
11873 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
11874
11875 * lread.c (Qold_style_backquotes): New var.
11876 (syms_of_lread): Init and staticpro it.
11877 (load_warn_old_style_backquotes): New fun.
11878 (Fload): Use them to warn about old style backquotes.
11879 (end_of_file_error, Fload): Remove unused vars.
11880
11881 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
11882
11883 * lread.c (Vold_style_backquotes): New var.
11884 (syms_of_lread): Init and export it to Elisp.
11885 (read1): Set it when we find an old-style (back)quote.
11886
11887 2007-08-22 Jason Rumney <jasonr@gnu.org>
11888
11889 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
11890
11891 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
11892
11893 * puresize.h (BASE_PURESIZE): Increase to 1140000.
11894
11895 2007-08-19 Richard Stallman <rms@gnu.org>
11896
11897 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
11898
11899 2007-08-19 Andreas Schwab <schwab@suse.de>
11900
11901 * alloc.c (pure): Round PURESIZE up.
11902
11903 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
11904
11905 * xterm.c (handle_one_xevent): Remove check that mouse click is in
11906 active frame.
11907
11908 2007-08-16 Richard Stallman <rms@gnu.org>
11909
11910 * eval.c (Fcommandp): Add parens to clarify.
11911
11912 * minibuf.c (Fall_completions): Use enum for type of table.
11913
11914 * emacs.c (USAGE2): Improve text.
11915
11916 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
11917
11918 * term.c (tty_default_color_capabilities): Declare static
11919 variables in file scope, to avoid HPUX compiler problem.
11920
11921 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
11922
11923 * gtkutil.c (update_frame_tool_bar): Use -1 as index
11924 to gtk_toolbar_insert.
11925
11926 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11927
11928 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
11929
11930 * insdel.c (reset_var_on_error): New fun.
11931 (signal_before_change, signal_after_change):
11932 Use it to reset (after|before)-change-functions to nil in case of error.
11933 Bind inhibit-modification-hooks to t.
11934 Don't bind (after|before)-change-functions to nil while they run.
11935
11936 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11937
11938 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
11939 filling pixmap with stippled background.
11940
11941 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11942
11943 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
11944 Don't use invisible frame as parent window for repositioning.
11945
11946 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
11947
11948 * print.c (new_backquote_output): Rename from old_backquote_output.
11949 (print): Inverse its logic (according to its name) so as to match the
11950 behavior of new_backquote_flag in lread.c.
11951
11952 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11953
11954 * gmalloc.c (posix_memalign): New function.
11955
11956 * macterm.c (frame_highlight, frame_unhighlight): Don't call
11957 ActivateControl/DeactivateControl here.
11958 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
11959 frame-notice-user-settings is non-nil.
11960 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
11961 for kEventParamFMFontStyle.
11962 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
11963 mac_pass_command_to_system and mac_pass_control_to_system here.
11964 (XTread_socket): Call ActivateControl/DeactivateControl here.
11965 (XTread_socket) [TARGET_API_MAC_CARBON]:
11966 Check mac_pass_command_to_system and mac_pass_control_to_system here.
11967 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
11968 for window repositioning.
11969
11970 2007-08-08 Glenn Morris <rgm@gnu.org>
11971
11972 * Replace `iff' in doc-strings and comments.
11973
11974 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
11975
11976 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
11977
11978 2007-08-07 Martin Rudalics <rudalics@gmx.at>
11979
11980 * fileio.c (Finsert_file_contents): Run format-decode and
11981 after_insert_file_functions on entire buffer when REPLACE is
11982 non-nil and inhibit modification_hooks and point_motion_hooks.
11983 For consistency, run after_insert_file_functions iff something
11984 got inserted. Move signal_after_change and update_compositions
11985 after code running after_insert_file_functions. Make sure that
11986 undo_list doesn't record intermediate steps of the decoding process.
11987
11988 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11989
11990 * emacs.c (main)
11991 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
11992 Call malloc_enable_thread on interactive startup.
11993
11994 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
11995 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
11996 [USE_PTHREAD]: Conditionalize with it.
11997 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11998 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
11999 New functions.
12000
12001 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
12002
12003 * xdisp.c (redisplay_window): When restoring original buffer
12004 position, make sure it is still valid.
12005
12006 * image.c (png_load): Ignore png-supplied background color.
12007
12008 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12009
12010 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
12011 Use kCFAbsoluteTimeIntervalSince1970.
12012
12013 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
12014 New variable.
12015 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
12016 event loop should be quit.
12017 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
12018 Quit dialog event loop if quit_dialog_event_loop is set.
12019
12020 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
12021 (Selection): New typedef. Use instead of ScrapRef.
12022 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
12023 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
12024 (mac_clear_selection): Rename from clear_scrap.
12025 (get_flavor_type_from_symbol): New argument SEL and subsume function of
12026 scrap_has_target_type. All uses changed.
12027 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12028 (mac_selection_has_target_p): New functions.
12029 (mac_put_selection_value): Rename from put_scrap_string.
12030 (mac_get_selection_value): Rename from get_scrap_string.
12031 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
12032 (put_scrap_private_timestamp, scrap_has_target_type)
12033 (get_scrap_private_timestamp): Remove functions.
12034 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
12035 (x_own_selection, x_get_local_selection):
12036 Use mac_valid_selection_value_p.
12037 (x_own_selection): Don't use put_scrap_private_timestamp.
12038 Record OWNERSHIP-INFO into Vselection_alist instead.
12039 (x_get_local_selection): Don't check type if request is local.
12040 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
12041 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
12042
12043 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
12044
12045 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
12046 add comment explaining why.
12047
12048 2007-08-03 Richard Stallman <rms@gnu.org>
12049
12050 * fileio.c (Fvisited_file_modtime): Use make_time.
12051
12052 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
12053
12054 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
12055 build.
12056
12057 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
12058
12059 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
12060
12061 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
12062
12063 * puresize.h (BASE_PURESIZE): Increase to 1130000.
12064
12065 2007-07-30 Richard Stallman <rms@gnu.org>
12066
12067 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
12068
12069 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
12070
12071 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
12072
12073 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
12074
12075 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
12076 remote default-directory.
12077
12078 * buffer.c (mode-line-format): Update doc string.
12079
12080 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12081
12082 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
12083 scroll bar gap.
12084 (x_scroll_bar_create): Set bar->fringe_extended_p.
12085 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
12086 on frame edge. Check fringe background extension. Don't clear
12087 extended fringe background area.
12088
12089 * w32term.h (struct scroll_bar): New member fringe_extended_p.
12090 (w32_fill_area): Enclose multiple statements with do ... while (0).
12091
12092 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
12093 Extend fringe background to scroll bar gap.
12094 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
12095 Set bar->fringe_extended_p.
12096 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12097 Put leftmost/rightmost scroll bars on frame edge. Check fringe
12098 background extension. Don't clear extended fringe background area.
12099
12100 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12101 New member fringe_extended_p.
12102
12103 2007-07-25 Glenn Morris <rgm@gnu.org>
12104
12105 * Relicense all FSF files to GPLv3 or later.
12106
12107 * COPYING: Switch to GPLv3.
12108
12109 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
12110
12111 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
12112
12113 * data.c (Finteractive_form): Check for the presence of an
12114 `interactive-form' symbol property more thoroughly.
12115
12116 * data.c (Finteractive_form): Use an `interactive-form' property if
12117 present, analogous to the function-documentation property.
12118
12119 2007-07-24 Jason Rumney <jasonr@gnu.org>
12120
12121 * w32fns.c (x_real_positions): Get real position from OS instead of
12122 calculating it.
12123
12124 2007-07-23 Jason Rumney <jasonr@gnu.org>
12125
12126 * filelock.c (current_lock_owner): Allow for @ sign in username.
12127
12128 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
12129
12130 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
12131 remote default-directory.
12132
12133 * buffer.c (mode-line-format): Describe above case in doc string.
12134
12135 2007-07-20 Eli Zaretskii <eliz@gnu.org>
12136
12137 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
12138 Define if not defined.
12139
12140 2007-07-18 Jason Rumney <jasonr@gnu.org>
12141
12142 * w32proc.c (w32_executable_type): Handle 64 bit executables.
12143
12144 2007-07-18 Richard Stallman <rms@gnu.org>
12145
12146 * data.c (Fsetq_default): Doc fix.
12147
12148 * eval.c (Fsetq): Doc fix.
12149
12150 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
12151
12152 * coding.c (Ffind_operation_coding_system):
12153 * eval.c (For, Fand): Doc fixes.
12154 Reported by Johan Bockgård.
12155
12156 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
12157
12158 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
12159
12160 * xterm.h: Declare x_ewmh_activate_frame.
12161
12162 * xterm.c (x_ewmh_activate_frame): New function.
12163 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
12164
12165 2007-07-17 Martin Rudalics <rudalics@gmx.at>
12166
12167 * window.c (Fdisplay_buffer): If largest or LRU window is the
12168 only window, split it even if it is not eligible for splitting.
12169 This restores the original behavior broken by the 2007-07-15
12170 change.
12171
12172 2007-07-17 Glenn Morris <rgm@gnu.org>
12173
12174 * abbrev.c (abbrev_check_chars): New function.
12175 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12176 Call abbrev_check_chars to check abbrev characters are word
12177 constituents. Doc fix.
12178
12179 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12180
12181 * process.c (Fstart_process, Fmake_network_process)
12182 (read_process_output): Fix up last changes.
12183
12184 2007-07-16 Eli Zaretskii <eliz@gnu.org>
12185
12186 * makefile.w32-in (clean): Don't delete *~.
12187
12188 2007-07-16 Andreas Schwab <schwab@suse.de>
12189
12190 * window.c (Fdisplay_buffer): Use NILP.
12191 (Fset_window_scroll_bars): Likewise.
12192
12193 2007-07-15 Martin Rudalics <rudalics@gmx.at>
12194
12195 * window.c (window_min_size_2): New function.
12196 (window_min_size_1, size_window, Fdisplay_buffer)
12197 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
12198 windows without mode- or header-lines when window-min-height is
12199 too small.
12200 (size_window): Reset nodelete_p after testing it, following an
12201 earlier note by Kim F. Storm.
12202 (display_buffer): Do not set split_height_threshold to twice the
12203 value of window_min_height to avoid changing the value of a
12204 customizable variable. Rather explicitly check whether the
12205 height of the window that shall be splitted is at least as large
12206 as split_height_threshold.
12207 (Fwindow_full_width_p): New defun.
12208 (syms_of_window): Defsubr it.
12209
12210 * window.h: Add EXFUN for Fwindow_full_width_p.
12211
12212 2007-07-14 Jason Rumney <jasonr@gnu.org>
12213
12214 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
12215
12216 2007-07-14 Richard Stallman <rms@gnu.org>
12217
12218 * eval.c (maybe_call_debugger): New function.
12219 (find_handler_clause): Use maybe_call_debugger.
12220 Call it when the handler says `debug'.
12221 Eliminate DEBUGGER_VALUE_PTR.
12222 (Fsignal): Eliminate debugger_value.
12223 (Qdebug): New variable.
12224 (syms_of_eval): Initialize it.
12225
12226 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
12227
12228 * eval.c (Fprogn):
12229 * keyboard.c (Ftrack_mouse):
12230 * print.c (Fwith_output_to_temp_buffer):
12231 * window.c (Fsave_window_excursion): Doc fix.
12232
12233 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
12234
12235 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
12236
12237 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
12238
12239 * process.h (struct Lisp_Process): Turn slots infd, outfd,
12240 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
12241 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
12242 read_output_delay, and read_output_skip from Lisp_Objects to ints.
12243 Remove unused encoding_carryover.
12244 * process.c: Adjust all functions accordingly.
12245
12246 2007-07-12 Richard Stallman <rms@gnu.org>
12247
12248 * term.c: Include unistd.h only if HAVE_UNISTD_H.
12249
12250 2007-07-11 Jason Rumney <jasonr@gnu.org>
12251
12252 * makefile.w32-in (LIBS): Include OLE32.
12253
12254 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
12255 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
12256
12257 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
12258
12259 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
12260 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
12261 from a Lisp_Object into a bare pointer.
12262 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12263 Adjust the code correspondingly.
12264
12265 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
12266
12267 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
12268 (term_show_mouse_face): Remove unused var `j'.
12269 (handle_one_term_event): Remove unused vars `i' and `j'.
12270 Don't cast return value of ttyname since it's not necessary.
12271
12272 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
12273
12274 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
12275 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
12276
12277 * fns.c (map_char_table): Use an array of int for `indices' rather than
12278 an array of Lisp_Objects (which are only ever integers anyway).
12279 (Fmap_char_table): Update caller.
12280 * lisp.h: Update prototype.
12281 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
12282 * fontset.c (Ffontset_info):
12283 * casetab.c (set_case_table): Update callers.
12284
12285 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
12286
12287 * keymap.c (struct accessible_keymaps_data)
12288 (struct where_is_internal_data): New structures.
12289 (accessible_keymaps_1, where_is_internal_1): Use them to change
12290 interface to adhere to the one used by map_keymap.
12291 (Faccessible_keymaps, where_is_internal): Use map_keymap.
12292 (accessible_keymaps_char_table, where_is_internal_2): Remove.
12293
12294 * keymap.h (map_keymap_function_t): More informative prototype.
12295
12296 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
12297
12298 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
12299 (looking_at_1): Don't change search_regs and last_thing_searched
12300 if `inhibit-changing-match-data' is non-nil.
12301 (string_match_1, search_buffer, set_search_regs): Likewise.
12302 (syms_of_search): Add Lisp level definition for
12303 `inhibit-changing-match-data' and set it to nil.
12304 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
12305 start and end of the match, instead of using values in search_regs.
12306
12307 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
12308
12309 * minibuf.c (Fcompleting_read): New value `confirm-only'
12310 for `require-match'.
12311
12312 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
12313
12314 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
12315 part of the 2007-06-27 change to syms_of_fileio.
12316
12317 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12318
12319 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
12320 Check WINDOWP before using XWINDOW. Consolidate return statements.
12321
12322 2007-06-27 Richard Stallman <rms@gnu.org>
12323
12324 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12325
12326 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
12327
12328 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
12329
12330 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12331
12332 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
12333 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
12334 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
12335 (_free_internal, memalign): Use them.
12336 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
12337 Initialize to PTHREAD_MUTEX_INITIALIZER.
12338 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
12339 (morecore_nolock): Rename from morecore. All uses changed.
12340 Use only nolock versions of internal allocation functions.
12341 (_malloc_internal_nolock, _realloc_internal_nolock)
12342 (_free_internal_nolock): New functions created from
12343 _malloc_internal, _realloc_internal, and _free_internal.
12344 (_malloc_internal, _realloc_internal, _free_internal): Use them.
12345 Copy hook value to automatic variable before its use.
12346 (memalign): Copy hook value to automatic variable before its use.
12347
12348 2007-06-26 Kenichi Handa <handa@m17n.org>
12349
12350 * coding.c (Ffind_operation_coding_system): Docstring improved.
12351 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
12352
12353 2007-06-25 David Kastrup <dak@gnu.org>
12354
12355 * keymap.c (Fcurrent_active_maps): Add `position' argument.
12356 (Fwhere_is_internal): Adjust call to `current-active-maps' to
12357 cater for additional parameter.
12358
12359 * keymap.h: Adjust number of parameters to `current-active-maps'.
12360
12361 * doc.c (Fsubstitute_command_keys): Adjust call of
12362 `current-active-maps'.
12363
12364 2007-06-25 David Kastrup <dak@gnu.org>
12365
12366 * callint.c (Fcall_interactively): Make the parsing of interactive
12367 specs somewhat more readable.
12368
12369 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12370
12371 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
12372 to scroll bar gap also when bitmap fills fringe. Draw only foreground
12373 if extended background has already been filled.
12374
12375 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12376
12377 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
12378 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
12379
12380 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
12381 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
12382 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
12383 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
12384 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
12385 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
12386 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
12387 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
12388 Run timers during dialog popup.
12389 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
12390
12391 2007-06-21 Jason Rumney <jasonr@gnu.org>
12392
12393 * image.c (convert_mono_to_color_image): Swap fore and background.
12394
12395 2007-06-20 Jason Rumney <jasonr@gnu.org>
12396
12397 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
12398 (w32_free_bdf_font): Unmap memory not handle.
12399
12400 2007-06-20 Sam Steingold <sds@gnu.org>
12401
12402 * gmalloc.c (__morecore): Fix the declaration to comply with the
12403 definition.
12404
12405 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
12406
12407 * w32term.c (w32_delete_display): Remove leftover declaration.
12408 (w32_define_cursor, w32_initialize): Make static.
12409
12410 * w32.c (_wsa_errlist): Fix typo in error message.
12411 (init_environment): Ignore any environment variable from the
12412 registry having a null value.
12413
12414 2007-06-20 Glenn Morris <rgm@gnu.org>
12415
12416 * Makefile.in (LIBGIF): Default to -lgif.
12417
12418 2007-06-17 Jason Rumney <jasonr@gnu.org>
12419
12420 * w32menu.c (add_menu_item): Don't use multibyte string functions on
12421 unicode strings.
12422
12423 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
12424
12425 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
12426 Fix typo in docstring.
12427
12428 2007-06-16 Eli Zaretskii <eliz@gnu.org>
12429
12430 * w32menu.c (add_menu_item): Escape `&' characters in menu items
12431 and their keybindings.
12432
12433 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
12434
12435 * composite.c (update_compositions): Fix last fix.
12436
12437 2007-06-14 Jason Rumney <jasonr@gnu.org>
12438
12439 * w32.c (get_process_times_fn): New function pointer.
12440 (globals_of_w32): Intialize it if present in kernel32.dll.
12441 (w32_get_internal_run_time): New function.
12442
12443 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
12444
12445 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
12446
12447 * composite.c (update_compositions): Check the validness of
12448 compositions.
12449
12450 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12451
12452 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
12453 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
12454
12455 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
12456 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
12457
12458 * macgui.h (USE_MAC_TOOLBAR): New define.
12459
12460 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12461 Return immediately unless popup is activated.
12462
12463 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
12464 background to scroll bar gap.
12465 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
12466 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
12467 scroll bars on frame edge. Check fringe background extension.
12468 Don't clear extended fringe background area.
12469 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
12470 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
12471 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
12472 [USE_MAC_TOOLBAR]: New macros.
12473 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
12474 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
12475 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
12476 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
12477 [USE_MAC_TOOLBAR]: New functions.
12478 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
12479 manually if previous repositioning has failed.
12480 (mac_handle_keyboard_event): Use precomputed event kind.
12481 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
12482 as tool bar item click. Handle mouse movement over tool bar items.
12483
12484 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
12485 toolbar_win_gravity.
12486 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
12487 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
12488 Add externs.
12489
12490 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
12491 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
12492
12493 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
12494
12495 * image.c (search_image_cache): Remove unused variable.
12496
12497 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
12498
12499 * xfns.c, xmenu.c: Link to xaw3d if available.
12500
12501 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12502
12503 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
12504 frame_foreground and frame_background.
12505
12506 * image.c (lookup_image): Save frame foreground and background colors.
12507 (search_image_cache): Check if saved and current frame colors match.
12508
12509 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12510
12511 * regex.c (regex_compile): Remove the `regnum' counter.
12512 Use bufp->re_nsub instead. Add support for \(?N:RE\).
12513
12514 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12515
12516 * term.c: Include intervals.h to declare Fget_text_property.
12517
12518 2007-06-10 Jason Rumney <jasonr@gnu.org>
12519
12520 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
12521
12522 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
12523
12524 * callint.c (Fcall_interactively):
12525 * editfns.c (Fdelete_and_extract_region):
12526 * fileio.c (Fread_file_name):
12527 * fns.c (Fmapconcat):
12528 * keyboard.c (cmd_error_internal):
12529 * keymap.c (Fkey_description):
12530 * lread.c (openp):
12531 * minibuf.c (read_minibuf):
12532 * search.c (wordify):
12533 * sunfns.c (sel_read):
12534 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
12535 * xfns.c (x_default_scroll_bar_color_parameter):
12536 * xmenu.c (menu_help_callback):
12537 * xselect.c (Fx_get_atom_name):
12538 * xterm.c (x_term_init): Use empty_unibyte_string.
12539
12540 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
12541
12542 * alloc.c (init_strings): Initialize canonical empty strings.
12543 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
12544 canonical empty string when the requested size is 0.
12545
12546 * emacs.c (empty_unibyte_string): Rename from empty_string.
12547 (empty_multibyte_string): New canonical empty string.
12548 (syms_of_emacs): Don't initialize empty_string.
12549
12550 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
12551 string, if appropriate.
12552 (empty_unibyte_string, empty_multibyte_string): New externs.
12553 (empty_string): Remove extern.
12554
12555 * lread.c (syms_of_lread): Use empty_unibyte_string.
12556
12557 2007-06-07 Jason Rumney <jasonr@gnu.org>
12558
12559 * s/ms-w32.h: Don't define HAVE_TZNAME.
12560
12561 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
12562
12563 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12564
12565 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
12566
12567 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
12568 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
12569
12570 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12571 Don't call next handler.
12572 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
12573 Remove argument. Install handler to application.
12574 (set_frame_menubar): Don't change deep_p.
12575 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
12576 FRAME_OUTER_TO_INNER_DIFF_Y.
12577 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12578 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12579 [HAVE_DIALOGS]: New macros.
12580 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
12581 Use them.
12582 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
12583
12584 * macselect.c [MAC_OSX] (install_service_handler): Rename from
12585 init_service_handler. All callers changed. Return OSStatus value.
12586
12587 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
12588 All callers changed so as not to call SetPortWindowPort.
12589 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
12590 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
12591 mac_draw_string_common.
12592 (mac_draw_image_string_qd): Likewise.
12593 (mac_draw_string_common): Use them. Add INLINE.
12594 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
12595 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
12596 GetGlobalMouse.
12597 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
12598 and FRAME_OUTER_TO_INNER_DIFF_Y.
12599 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
12600 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
12601 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
12602 repositioning window to mac_handle_window_event.
12603 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
12604 saving window location to mac_handle_window_event
12605 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
12606 (install_menu_target_item_handler): Remove argument in extern.
12607 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
12608 Also accept command events.
12609 (do_keystroke): New function created from XTread_socket.
12610 (init_command_handler): Remove functions.
12611 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
12612 and save window location by kEventWindowShowing and kEventWindowHiding
12613 handlers here. Don't call next handler for window state change and
12614 focus events.
12615 (mac_handle_application_event, mac_handle_keyboard_event)
12616 [TARGET_API_MAC_CARBON]: New functions.
12617 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
12618 kEventWindowShowing and kEventWindowHiding events. Move installation
12619 of mouse, font, text input and menu target item handlers to
12620 install_application_handler.
12621 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
12622 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12623 New function.
12624 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12625 Register it.
12626 (XTread_socket) [TARGET_API_MAC_CARBON]:
12627 Consolidate SendEventToEventTarget calls.
12628 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
12629 Move application activation handler to mac_handle_application_event.
12630 Move keyboard handler to mac_handle_keyboard_event.
12631 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
12632 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12633 init_command_handler. Call install_application_handler.
12634
12635 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
12636 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
12637
12638 2007-06-07 Glenn Morris <rgm@gnu.org>
12639
12640 * emacs.c (main): Use `emacs-copyright' in --version output.
12641
12642 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
12643
12644 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
12645
12646 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12647
12648 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
12649
12650 * macgui.h: Replace WindowPtr with WindowRef.
12651
12652 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12653 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12654 Replace ControlHandle with ControlRef.
12655 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
12656
12657 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12658 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12659 Replace ControlHandle with ControlRef.
12660 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
12661 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
12662
12663 * macterm.h (struct scroll_bar): Rename member control_handle_low
12664 and control_handle_high to control_ref_low and control_ref_high.
12665 All uses changed.
12666 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
12667 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
12668 respectively. All uses changed.
12669 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
12670 (install_window_handler, remove_window_handler): Replace WindowPtr
12671 with WindowRef in externs.
12672
12673 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
12674
12675 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
12676
12677 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
12678
12679 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
12680
12681 * frame.c (Fmouse_position, Fmouse_pixel_position):
12682 Condition on HAVE_GPM too.
12683
12684 * term.c (term_mouse_highlight): Remove unused variables.
12685 (Fterm_open_connection): Set gpm_zerobased to 1.
12686 (term_mouse_movement, term_mouse_click, handle_one_term_event):
12687 Use zero based co-ordinates.
12688 (handle_one_term_event): Report a drag as mouse movement too.
12689
12690 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
12691
12692 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
12693
12694 * image.c (search_image_cache): New function. Require background
12695 color match if background color is unspecified in the image spec.
12696 (uncache_image, lookup_image): Use it.
12697
12698 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
12699
12700 * window.c (Fshrink_window): Reflow docstring.
12701
12702 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
12703
12704 * Version 22.1 released.
12705
12706 2007-06-01 Richard Stallman <rms@gnu.org>
12707
12708 * xfns.c (x_encode_text): Add GCPRO.
12709
12710 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12711
12712 * xfns.c (x_set_name_internal): Save encoded name before
12713 x_encode_text in case string data is relocated.
12714
12715 2007-05-31 Richard Stallman <rms@gnu.org>
12716
12717 * buffer.c (syms_of_buffer): Doc fix.
12718
12719 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
12720
12721 * sysdep.c (init_sys_modes): Add rather than replace with
12722 O_NONBLOCK.
12723
12724 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12725 term_mouse_moveto.
12726
12727 * termhooks.h (term_mouse_moveto): New extern.
12728
12729 * term.c (mouse_face_window): Rename...
12730 (Qmouse_face_window): ...to this.
12731 (term_show_mouse_face, term_clear_mouse_face)
12732 (term_mouse_highlight): Use Qmouse_face_window.
12733 (term_mouse_moveto): New function.
12734 (term_mouse_position): Make it work.
12735 (syms_of_term): Uncomment assignment to mouse_position_hook.
12736 Staticpro Qmouse_face_window.
12737
12738 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12739
12740 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
12741 around current_column call.
12742
12743 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
12744
12745 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
12746 * xdisp.c (next_element_from_buffer):
12747 * window.c (delete_window):
12748 * term.c (term_mouse_highlight):
12749 * msdos.c (getdefdir):
12750 * macterm.c (mac_create_bitmap_from_bitmap_data)
12751 (init_font_name_table):
12752 * fns.c (Fsxhash):
12753 * data.c (Fmake_local_variable):
12754 * ccl.c (ccl_driver): Likewise.
12755
12756 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12757
12758 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
12759 Call mac_wakeup_from_rne on window size change.
12760
12761 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
12762
12763 * image.c (uncache_image): Fix typo.
12764
12765 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
12766
12767 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
12768
12769 2007-05-22 Richard Stallman <rms@gnu.org>
12770
12771 * xterm.c (x_connection_closed): Remove NO_RETURN.
12772
12773 2007-05-22 Martin Rudalics <rudalics@gmx.at>
12774
12775 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
12776
12777 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
12778
12779 * image.c (uncache_image): New function.
12780 (Fimage_refresh): New function.
12781
12782 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
12783
12784 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
12785
12786 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
12787
12788 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
12789 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
12790
12791 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
12792
12793 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
12794 conditional on [HAVE_GPM_H].
12795
12796 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12797
12798 * syntax.c (skip_chars): Update syntax-table only after we checked that
12799 the new location is valid.
12800
12801 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12802
12803 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
12804 mac_get_window_bounds.
12805
12806 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
12807
12808 * Makefile.in (LIBGPM): Allow it to be set from configure.
12809 If set then link Emacs with it.
12810
12811 * config.in: Regenerate.
12812
12813 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
12814 New externs.
12815
12816 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
12817 Include gpm.h.
12818 (handle_one_term_event, term_gpm): New externs.
12819
12820 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
12821 and allow it to be interrupted by SIGIO.
12822
12823 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
12824 (wait_reading_process_output): Wait on gpm_fd too.
12825 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
12826 (add_gpm_wait_descriptor_called_flag): New variable.
12827 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
12828
12829 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
12830 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
12831 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
12832 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
12833 (make_lispy_event): Add case GPM_CLICK_EVENT.
12834 (read_avail_input): Handle mouse input.
12835
12836 * term.c (write_glyphs_with_face): New function.
12837 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
12838 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
12839 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
12840 (mouse_face_face_id, term_gpm, pos_x, pos_y)
12841 (last_mouse_x, last_mouse_y): New variables.
12842 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
12843 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
12844 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
12845 (Fterm_close_connection): New functions.
12846 (term_init): Initialise mouse_face_window.
12847
12848 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
12849
12850 * xdisp.c (redisplay_window): If first window line is a
12851 continuation line, recompute the new window start instead of
12852 recentering.
12853
12854 2007-05-18 Glenn Morris <rgm@gnu.org>
12855
12856 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
12857 Suggested by Alfred M. Szmidt <ams@gnu.org>.
12858
12859 2007-05-17 Glenn Morris <rgm@gnu.org>
12860
12861 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
12862
12863 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12864
12865 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
12866 dead key repeat and up events.
12867
12868 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
12869
12870 * image.c (pbm_load): Check image size for monochrome pbm.
12871
12872 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
12873
12874 * xterm.c (XTread_socket): Revert last change.
12875
12876 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
12877
12878 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12879
12880 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
12881
12882 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12883
12884 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
12885 mixup (YAILOM).
12886
12887 2007-05-07 Andreas Schwab <schwab@suse.de>
12888
12889 * keymap.c (Flookup_key): Fix typo in last change.
12890
12891 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12892
12893 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
12894 mapping for unibyte strings.
12895
12896 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12897
12898 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
12899 (Fx_popup_dialog) [MAC_OSX]: Likewise.
12900
12901 2007-04-29 Richard Stallman <rms@gnu.org>
12902
12903 * insdel.c (replace_range): For undo, record insertion first.
12904
12905 2007-04-29 Andreas Schwab <schwab@suse.de>
12906
12907 * lisp.h (VECSIZE): Use OFFSETOF.
12908
12909 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12910
12911 * xdisp.c (try_window_reusing_current_matrix): Fix number of
12912 disabled lines.
12913
12914 2007-04-28 Richard Stallman <rms@gnu.org>
12915
12916 * lread.c (read_escape): In a string, \s is always space.
12917
12918 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
12919
12920 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
12921
12922 * gtkutil.c (xg_update_menubar, create_menus): Create empty
12923 submenu for menu bar items.
12924
12925 See ChangeLog.10 for earlier changes.
12926
12927 ;; Local Variables:
12928 ;; coding: utf-8
12929 ;; add-log-time-zone-rule: t
12930 ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
12931 ;; End:
12932
12933 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
12934
12935 This file is part of GNU Emacs.
12936
12937 GNU Emacs is free software: you can redistribute it and/or modify
12938 it under the terms of the GNU General Public License as published by
12939 the Free Software Foundation, either version 3 of the License, or
12940 (at your option) any later version.
12941
12942 GNU Emacs is distributed in the hope that it will be useful,
12943 but WITHOUT ANY WARRANTY; without even the implied warranty of
12944 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12945 GNU General Public License for more details.
12946
12947 You should have received a copy of the GNU General Public License
12948 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
12949
12950 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40