Set bug-reference-url-format.
[bpt/emacs.git] / src / ChangeLog
1 2008-06-30 Kenichi Handa <handa@m17n.org>
2
3 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
4 XftDefaultSubstitute (they are called in XftFontMatch).
5 (xftfont_open): Fix args to ftfont_font_format.
6
7 * ftfont.c (fc_charset_table): New member lang.
8 (ftfont_resolve_generic_family): New arg pattern.
9 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
10 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11 (ftfont_open): Fix args to ftfont_font_format.
12 (ftfont_font_format): New arg filename.
13
14 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
15
16 * xfaces.c (Finternal_merge_in_global_face): If default face was
17 modified, realize it again. Update the font face attribute.
18
19 2008-06-29 Jason Rumney <jasonr@gnu.org>
20
21 * w32term.c (x_set_frame_alpha): Fix logic.
22
23 2008-06-29 Kenichi Handa <handa@m17n.org>
24
25 * fontset.c (Finternal_char_font): Return font-object instead of
26 font-name.
27
28 * composite.c (get_composition_id): Fix the width calculation for
29 TAB.
30
31 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
32
33 * indent.c (Fvertical_motion): Properly handle float column arg.
34
35 2008-06-28 Jason Rumney <jasonr@gnu.org>
36
37 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
38 (pfnSetLayeredWindowAttributes): New function pointer.
39 (w32_initialize): Initialize it when supported.
40 (x_set_frame_alpha): New function.
41
42 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
43 (w32_frame_parm_handlers): Set alpha handler.
44
45 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
46
47 2008-06-27 Jason Rumney <jasonr@gnu.org>
48
49 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
50 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
51 (w32_to_x_charset, x_to_w32_charset)
52 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
53 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
54 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
55 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
56 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
57 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
58 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
59 (Qw32_charset_unicode): Remove.
60 (syms_of_w32fns): Update for above changes.
61
62 * w32font.c (w32_to_x_charset, x_to_w32_charset)
63 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
64 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
65 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
66 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
67 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
68 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
69 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
70 (syms_of_w32font): Update for above changes.
71
72 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
73
74 * s/usg5-4.h: Fix previous change: keep the correct branch of a
75 removed #if.
76 (USG_SHARED_LIBRARIES): Remove duplicate definition.
77
78 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
79 Eli Zaretskii <eliz@gnu.org>
80
81 * makefile.w32-in (LOCAL_FLAGS):
82 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
83
84 * sysdep.c (_spawnlp, _getpid):
85 Declare with explicit _cdecl instead of _CRTAPI1.
86
87 * editfns.c (Fget_internal_run_time):
88 Check for WINDOWSNT with #ifdef, not #if.
89
90 2008-06-26 Jason Rumney <jasonr@gnu.org>
91
92 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
93
94 * w32term.c (x_draw_glyph_string_foreground)
95 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
96 Use FONT_HANDLE macro.
97 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
98
99 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
100 (uniscribe_encode_char): Use FONT_HANDLE macro.
101
102 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
103 (w32font_text_extents): Use precast w32_font.
104 (w32font_close): Free cached metrics.
105 (w32font_open_internal): Allocate space for name on stack.
106
107 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
108
109 * xdisp.c (extend_face_to_end_of_line): Fix last change.
110
111 2008-06-26 Jason Rumney <jasonr@gnu.org>
112
113 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
114 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
115
116 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
117
118 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
119
120 2008-06-26 Jason Rumney <jasonr@gnu.org>
121
122 * w32bdf.c, w32bdf.h: Remove obsolete files.
123
124 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
125
126 * w32gui.h: Don't include w32bdf.h.
127 (XCharStruct, enum w32_char_font_type, W32FontStruct):
128 Remove obsolete font support.
129
130 * w32font.h (struct w32font_info): Remove compat_w32_font.
131 Add hfont member.
132 (FONT_COMPAT): Remove obsolete macro.
133
134 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
135 (w32font_encode_char, w32font_text_extents): Use new hfont member.
136 (w32font_open_internal): Remove compat code. Set new hfont member.
137 (Fx_select_font): Use new hfont member.
138
139 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
140 (uniscribe_encode_char): Use new hfont member.
141
142 * w32term.c (x_draw_glyph_string_foreground)
143 (x_draw_composite_glyph_string_foreground): Use new hfont member.
144 (x_draw_glyph_string): Use metrics in w32font_info.
145
146 2008-06-26 Kenichi Handa <handa@m17n.org>
147
148 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
149
150 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
151
152 * unexnext.c:
153 * m/ews4800.h:
154 * m/hp9000s300.h:
155 * m/ibm370aix.h:
156 * m/mips-siemens.h:
157 * m/ncr386.h:
158 * m/next.h:
159 * m/pmax.h:
160 * m/powerpcle.h:
161 * m/tandem-s2.h:
162 * s/386bsd.h:
163 * s/bsd386.h:
164 * s/bsd4-1.h:
165 * s/bsd4-2.h:
166 * s/bsdos2-1.h:
167 * s/bsdos2.h:
168 * s/bsdos3.h:
169 * s/bsdos4.h:
170 * s/nextstep.h:
171 * s/ultrix4-3.h:
172 * s/usg5-0.h:
173 * s/usg5-2-2.h:
174 * s/usg5-2.h:
175 * s/usg5-4-3.h:
176 * s/ux4800.h:
177 * s/uxpds.h:
178 * s/uxpv.h: Remove support for obsolete systems.
179 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
180 Remove, insert contents in s/hpux-10.20.h
181 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
182 Remove, insert contents in s/aix-4.2.h
183 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
184 * s/bsd4-3.h: Rename to ..
185 * s/bsd-common.h: ... this.
186 * src/data.c:
187 * src/doc.c:
188 * src/ecrt0.c:
189 * src/emacs.c:
190 * src/fileio.c:
191 * src/floatfns.c:
192 * src/keyboard.c:
193 * src/mem-limits.h:
194 * src/print.c:
195 * src/process.c:
196 * src/sysdep.c:
197 * src/syssignal.h:
198 * src/systty.h:
199 * src/syswait.h:
200 * src/term.c:
201 * src/unexec.c:
202 * src/unexelf.c:
203 * src/unexhp9k800.c:
204 * src/m/hp800.h:
205 * src/m/ibmrs6000.h:
206 * src/m/mips.h:
207 * src/m/vax.h:
208 * src/s/darwin.h:
209 * src/s/freebsd.h:
210 * src/s/gnu.h:
211 * src/s/ms-w32.h:
212 * src/s/msdos.h:
213 * src/s/netbsd.h:
214 * src/s/template.h: Remove references to obsolete variables.
215
216 * Makefile.in: Add dependencies for all unexec files.
217 (admindir): Remove unused variable.
218 (UNEXEC_SRC): Remove references.
219
220 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
221
222 * xfns.c (x_default_font_parameter): If Xft is available, first
223 try Monospace-12 for the default font.
224
225 2008-06-25 Jason Rumney <jasonr@gnu.org>
226
227 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
228
229 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
230
231 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
232
233 * buffer.c (syms_of_buffer): Remove default-word-wrap.
234
235 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
236
237 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
238 <scroll-conservatively>: Fix typo in docstring.
239
240 * xselect.c (Fx_send_client_event): Doc fix.
241
242 2008-06-25 Kenichi Handa <handa@m17n.org>
243
244 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
245
246 * font.c (font_parse_fcname): Remove unused variables.
247 (font_sort_entites): Delete the arg SPEC. Caller changed.
248 Fix for the case of ! best_only.
249 (font_delete_unmatched): Check DPI and AVGWIDTH too.
250
251 * lisp.h (Fstring_to_unibyte): EXFUN it.
252
253 * character.h (str_to_unibyte): Extern it.
254
255 * character.c (str_to_unibyte): New function.
256
257 * fns.c (Fstring_to_unibyte): New function.
258 (syms_of_fns): Defsubr it.
259
260 2008-06-24 Kenichi Handa <handa@m17n.org>
261
262 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
263 DPI too.
264 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
265
266 2008-06-24 Andreas Schwab <schwab@suse.de>
267
268 * Makefile.in (${lispsource}loaddefs.el): Rename from
269 ../lisp/loaddefs.el.
270 (bootstrap-clean): Do what distclean does but don't remove
271 Makefile.
272 (distclean): Depend on bootstrap-clean and remove Makefile.
273
274 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
275
276 * buffer.h (struct buffer): New member word_wrap.
277
278 * buffer.c (syms_of_buffer): New variables default-word-wrap and
279 word-wrap.
280 (init_buffer_once): Initialize them.
281
282 * dispextern.h (struct it): Replace bool truncate_lines_p with a
283 line_wrap enum possessing three possible values.
284
285 * termopts.h: Replace truncate_partial_width_windows with
286 Vtruncate_partial_width_windows.
287
288 * dispnew.c (direct_output_for_insert): Avoid direct output when
289 inserting a space with word wrap on.
290
291 * indent.c (compute_motion): Obey integer values of
292 truncate-partial-width-windows.
293
294 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
295 replacing truncate_partial_width_windows.
296 (init_iterator): If Vtruncate_partial_width_windows is an integer,
297 truncate only if the window width is below that integer.
298 (start_display. resize_mini_window, produce_stretch_glyph)
299 (display_string, move_it_in_display_line_to): Use line_wrap.
300 (back_to_previous_visible_line_start, reseat_1): Reset
301 string_from_display_prop_p.
302 (display_line): Extend default face to end of line when wrapping.
303
304 2008-06-24 Kim F. Storm <storm@cua.dk>
305
306 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
307 to wrap continued lines at word boundaries.
308
309 2008-06-24 Jason Rumney <jasonr@gnu.org>
310
311 * font.c (Ffont_face_attributes): Multiply pixel size before point
312 conversion to avoid multiplying rounding error.
313
314 2008-06-23 Jason Rumney <jasonr@gnu.org>
315
316 * w32term.c (x_draw_glyph_string_background)
317 (x_draw_glyph_string): Remove old bdf font code.
318
319 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
320
321 2008-06-22 Kenichi Handa <handa@m17n.org>
322
323 * font.c (font_find_for_lface): Try the adstyle specified in
324 the property of LFACE_FONT of LFACE (if any).
325
326 2008-06-21 Seiji Zenitani <zenitani@mac.com>
327 Ryo Yoshitake <ryo@shiftmode.net>
328
329 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
330
331 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
332
333 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
334 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
335 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
336 (witness-emacs): Remove.
337 (lisp, shortlisp): Move loaddefs.el earlier.
338 (mostlyclean): Forget about witness-emacs.
339
340 2008-06-22 Glenn Morris <rgm@gnu.org>
341
342 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
343 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
344
345 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
346
347 * Makefile.in (PRECOMP): Remove.
348 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
349 (witness-emacs): Run `compile-first'.
350 (.el.elc): Use the new compile-onefile target.
351
352 2008-06-21 Kenichi Handa <handa@m17n.org>
353
354 * xftfont.c (xftfont_open): Handle QCembolden only when
355 FC_EMBOLDEN is defined.
356
357 2008-06-21 Andreas Schwab <schwab@suse.de>
358
359 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
360 (.el.elc): Likewise.
361
362 2008-06-21 Miles Bader <miles@gnu.org>
363
364 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
365 build dir, not the lisp source dir.
366
367 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
368
369 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
370 (bootstrapclean): Remove.
371 (.el.elc): New rule.
372 (PRECOMP): New var.
373 (../lisp/subdirs.el): Remove.
374 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
375 (witness-emacs): New target.
376 (mostlyclean): Remove witness-emacs as well.
377 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
378 Add witness-emacs dependency.
379
380 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
381
382 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
383 defined by the font.
384
385 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
386
387 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
388 (bootstrap-clean): New target that keeps TAGS around.
389 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
390 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
391
392 2008-06-20 Jason Rumney <jasonr@gnu.org>
393
394 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
395 Remove obsolete font code.
396
397 * w32font.c (font_matches_spec): Use csb bitfield from font signature
398 to determine language support.
399
400 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
401
402 * sysdep.c (cfsetspeed): New fun extracted from the code.
403 (cfmakeraw): Move before first use.
404
405 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
406
407 * sysdep.c (cfmakeraw): Provide fallback implementation.
408 (serial_configure): Provide fallback implementation of cfsetspeed.
409
410 2008-06-20 Kenichi Handa <handa@m17n.org>
411
412 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
413 the pattern.
414
415 * fontset.c (fontset_from_font): Copy font_spec before changing
416 the elements.
417
418 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
419
420 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
421
422 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
423 for explicit `font' parameters.
424
425 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
426
427 2008-06-19 Kenichi Handa <handa@m17n.org>
428
429 * frame.c: Include <ctype.h>.
430 (x_set_font_backend): Allow spacing characters in the X resource
431 for FontBackend.
432
433 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
434
435 * w32fns.c, xfns.c (Qfont_param): New var.
436 (syms_of_w32fns): Initialize it.
437 (x_default_font_parameter): Record explicit `font' into
438 `font-parameter'.
439
440 2008-06-18 Kenichi Handa <handa@m17n.org>
441
442 * font.c (font_parse_xlfd): Fix previous change.
443 (font_parse_fcname): Don't use :fc-unknown-spec.
444 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
445 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
446 (font_add_log): Prepend the driver name to the resulting fonts.
447
448 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
449 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
450 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
451
452 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
453 (QCembolden): New variables.
454 (syms_of_xftfont): DEFSYM them.
455 (xftfont_open): Call XftFontMatch. Don't trust the result of
456 XftTextExtents8 if the pixel_size is less than 5.
457
458 2008-06-18 Andreas Schwab <schwab@suse.de>
459
460 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
461 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
462
463 2008-06-18 Jason Rumney <jasonr@gnu.org>
464
465 * w32font.c (w32font_list, w32font_match): Add logging.
466
467 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
468
469 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
470
471 * font.c (font_parse_fcname): Store divider characters for
472 unknown-spec list. For known key symbols, intern using correct
473 symbol name.
474
475 2008-06-17 Kenichi Handa <handa@m17n.org>
476
477 * xfaces.c (realize_default_face): If the frame is not on window
478 system, set the fontset of face to nil.
479
480 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
481
482 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
483
484 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
485
486 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
487 (build_font_name_from_vector): Delete externs.
488
489 * xfaces.c (struct font_name): Don't declare.
490
491 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
492
493 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
494
495 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
496
497 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
498
499 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
500
501 * font.c (Ffont_spec): Fix usage in docstring.
502 (Ffont_face_attributes): Doc fix.
503
504 2008-06-16 Andreas Schwab <schwab@suse.de>
505
506 * font.c (Ffont_face_attributes): Fix definition.
507
508 2008-06-16 Jason Rumney <jasonr@gnu.org>
509
510 * font.h (font_style_symbolic_from_value): Remove.
511
512 * font.c (font_style_symbolic_from_value): Remove.
513 (font_style_symbolic): Revert to pre 2008-06-13 version.
514
515 * w32font.c (w32_to_fc_weight): New function.
516 (w32font_full_name, logfont_to_fcname): Use it.
517
518 2008-06-16 Kenichi Handa <handa@m17n.org>
519
520 * font.c (font_check_object): Delete it.
521 (font_clear_cache): Check if a font-object is alive.
522 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
523 font-object to nil.
524 (font_close_object): Don't check FONT_CLOSE_OBJECT.
525 (font_at): Don't call font_check_object.
526 (Ffont_get): Return a symbol for :weight, :slant, and :width.
527
528 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
529
530 * puresize.h (BASE_PURESIZE): Increase to 1230000.
531
532 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
533
534 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
535
536 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
537
538 * font.c (font_parse_fcname): Only one decimal point.
539 (font_unparse_fcname): Handle data in family and foundry indices
540 as symbols, not strings.
541 (font_unparse_gtkname, Ffont_face_attributes): New functions.
542
543 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
544
545 * font.h (font_unparse_gtkname): Add prototype.
546
547 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
548
549 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
550
551 2008-06-15 Andreas Schwab <schwab@suse.de>
552
553 * font.c (font_update_drivers): Fix crash when no drivers match.
554
555 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
556
557 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
558 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
559
560 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
561
562 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
563
564 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
565
566 * process.c (Fserial_process_configure, Fprocess_send_eof):
567 Use EQ to compare Lisp_Objects.
568
569 2008-06-13 Jason Rumney <jasonr@gnu.org>
570
571 * w32fns.c (Fw32_select_font): Remove old font API function.
572
573 * w32font.c (logfont_to_fcname): New function.
574 (Fx_select_font): New font dialog function compatible with
575 GTK/fontconfig version.
576
577 * font.c (font_style_symbolic_from_value): New function.
578 (font_style_symbolic): Use it.
579
580 * font.h (font_style_symbolic_from_value): Declare new function.
581
582 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
583
584 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
585 <font-width-table>: Fix typos in docstrings.
586
587 2008-06-13 Daniel Engeler <engeler@gmail.com>
588
589 These changes add serial port access.
590 * process.c: Add HAVE_SERIAL.
591 (Fdelete_process, Fprocess_status, Fset_process_buffer)
592 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
593 (list_processes_1, select_wrapper, Fstop_process)
594 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
595 (status_notify): Modify to handle serial processes.
596 [HAVE_SERIAL] (Fserial_process_configure)
597 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
598 New functions.
599 * process.h (struct Lisp_Process): Add `type'.
600 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
601 New functions.
602 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
603 serial ports.
604 (serial_open, serial_configure) New functions.
605 * w32.h: Add FILE_SERIAL.
606 (struct _child_process): Add ovl_read, ovl_write.
607
608 2008-06-13 Kenichi Handa <handa@m17n.org>
609
610 * dispextern.h (enum lface_attribute_index): New member
611 LFACE_FOUNDRY_INDEX.
612
613 * font.c (font_score): Delete arg alternate_families. Check only
614 weight, slant, width, and size. Ignore the difference of alias
615 style symbols.
616 (font_sort_entites): Adjust for the above change. Reflect the
617 order of font-driver to scores.
618 (font_list_entities): Don't check alternate_familes here.
619 (font_clear_prop): Handle foundry.
620 (font_update_lface): Don't parse "foundry-family" form here.
621 Handle FONT_FOUNDRY_INDEX.
622 (font_find_for_lface): Likewise. Handle alternate families here.
623 If registry is nil, try iso8859-1 and ascii-0.
624 (font_open_for_lface): Pay attention to size in ENTITY.
625 (font_open_by_name): Simplify by calling font_load_for_lface.
626 (free_font_driver_list): Delete it.
627 (font_update_drivers): Preserve the order of backends.
628 (syms_of_font): Setting of sort_shift_bits adjusted for the change
629 of font_score and font_sort_entites.
630 (font_update_sort_order): Likewise.
631
632 * xfaces.c (LFACE_FOUNDRY): New macro.
633 (check_lface_attrs): Check foundry.
634 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
635 (merge_face_vectors): Check foundry.
636 (merge_face_ref): Likewise.
637 (Finternal_set_lisp_face_attribute): Likewise.
638 (x_update_menu_appearance): Likewise.
639 (Finternal_get_lisp_face_attribute): Likewise.
640 (lface_hash): Likewise.
641 (lface_same_font_attributes_p): Likewise.
642 (x_supports_face_attributes_p): Likewise.
643 (tty_supports_face_attributes_p): Likewise.
644 (Finternal_set_alternative_font_family_alist): Intern strings.
645 (Finternal_set_alternative_font_registry_alist): Downcase strings.
646 (realize_default_face): Set LFACE_FOUNDRY (lface).
647
648 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
649 font-driver at first.
650
651 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
652
653 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
654
655 * lread.c (Fload): Use xfree, not free on saved_doc_string.
656
657 2008-06-12 Jim Meyering <meyering@redhat.com>
658
659 Make unexec_free handle NULL the same way free does.
660 * unexmacosx.c (unexec_free): Ignore a NULL argument.
661
662 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
663
664 * character.h (CHAR_TO_BYTE_SAFE): New macro.
665 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
666 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
667 (WEAK_ALIAS): Simplify.
668 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
669 when searching a unibyte buffer.
670
671 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
672
673 * xfns.c (Fx_select_font): Rename from x-font-dialog.
674
675 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
676
677 * w32font.c: Include ctype.h.
678
679 2008-06-11 Jason Rumney <jasonr@gnu.org>
680
681 * w32font.c (w32font_encode_char): Detect missing glyphs that are
682 misreported as space.
683 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
684 as aliases for registry iso10646-1.
685
686 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
687
688 * buffer.c (clone_per_buffer_values): Skip `name'.
689
690 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
691
692 * font.c (font_parse_fcname): Fix last change; accept decimal
693 points in font size.
694
695 2008-06-10 Jason Rumney <jasonr@gnu.org>
696
697 * w32uniscribe.c (add_opentype_font_name_to_list):
698 Skip non unicode fonts.
699
700 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
701
702 * xfns.c (Fx_font_dialog): New function.
703
704 * gtkutil.c (xg_dialog_response_cb): Rename from
705 xg_file_response_callback.
706 (pop_down_dialog): Rename from pop_down_file_dialog.
707 (xg_get_file_name): Callers changed.
708 (xg_get_font_name): New function.
709
710 * gtkutil.h (xg_get_font_name): Insert prototype.
711
712 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
713
714 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
715 x_underline_minimum_display_offset.
716 (syms_of_xdisp): Declare it here rather than in xterm.c.
717 * dispextern.h (underline_minimum_offset): Declare it.
718 * w32term.c (x_draw_glyph_string): Use it.
719 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
720 (syms_of_xterm): Don't declare it any more.
721 (x_draw_glyph_string): Adjust to the new name.
722
723 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
724
725 * xterm.c (x_underline_minimum_display_offset): New var.
726 (x_draw_glyph_string): Use it.
727 (syms_of_xterm): Declare it.
728
729 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
730
731 * font.c (font_parse_fcname): Accept GTK-style font names too.
732
733 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
734
735 * dired.c (file_name_completion): Don't return t if the match is exact
736 but with different capitalization.
737 * minibuf.c (Ftry_completion): Simplify.
738
739 * window.c (Vwindow_point_insertion_type): New var.
740 (set_window_buffer): Use it.
741 (syms_of_window): Init and export it to Lisp.
742
743 2008-06-10 Kenichi Handa <handa@m17n.org>
744
745 * font.h (font_intern_prop): Prototype adjusted.
746
747 * font.c (font_intern_prop): New arg force_symbol.
748 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
749 Adjust for the change of font_intern_prop.
750
751 * ftfont.c (ftfont_pattern_entity):
752 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
753 (w32_registry):
754 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
755 the change of font_intern_prop.
756
757 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
758
759 * w32menu.c (digest_single_submenu): Declare extern.
760
761 2008-06-09 Jason Rumney <jasonr@gnu.org>
762
763 * w32term.c (x_make_frame_visible): Use alternate restore flags.
764
765 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
766 (parse_single_submenu): Remove.
767 (digest_single_submenu): Remove.
768 (syms_of_w32menu): Don't initialise variables that have moved
769 to menu.c.
770 (set_frame_menubar): Sync with version in xmenu.c.
771 (w32_menu_show): Sync with xmenu_show in xmenu.c.
772
773 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
774 Make static again.
775
776 2008-06-09 Jason Rumney <jasonr@gnu.org>
777
778 Changes to w32 files related to the move of common menu code
779 to menu.c on 2008-06-08 by Chong Yidong.
780
781 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
782 defs to w32gui.h.
783 (single_keymap_panes, push_menu_item, push_menu_pane):
784 Make globally visible.
785
786 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
787 (local_free, malloc_widget_value, free_widget_value)
788 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
789 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
790 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
791 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
792 (menu_items, menu_items_allocated, menu_items_used)
793 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
794 (init_menu_items, finish_menu_items, discard_menu_items)
795 (grow_menu_items, push_submenu_start, push_submenu_end)
796 (push_left_right_boundary, push_menu_pane, push_menu_item)
797 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
798 (free_menubar_widget_tree_value, parse_single_submenu)
799 (update_submenu_strings): Remove functions.
800 (xmalloc_widget_value): Remove and declare extern.
801
802 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
803 (OBJ1): Build it.
804
805 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
806 (local_heap, local_alloc, local_free, malloc_widget_value)
807 (free_widget_value): Define here.
808
809 2008-06-09 Kenichi Handa <handa@m17n.org>
810
811 * font.h (Qascii_0): Extern it.
812
813 * font.c (Qascii_0): New variable.
814 (syms_of_font): DEFSYM it.
815 (font_open_by_name): If the registry "iso8859-1" fails, try also
816 "ascii-0".
817
818 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
819
820 2008-06-08 Kenichi Handa <handa@m17n.org>
821
822 * .gdbinit (xfont): New command.
823
824 2008-06-08 Andreas Schwab <schwab@suse.de>
825
826 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
827 * Makefile.in (menu.o): Update dependencies.
828
829 * Makefile.in (obj): Always add menu.o.
830 * emacs.c (main): Always call syms_of_menu.
831 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
832
833 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
834
835 * Makefile.in: Compile menu.c.
836
837 * lisp.h: Declare syms_of_menu.
838
839 * emacs.c (main): Call syms_of_menu.
840
841 * keyboard.h: Relocate platform-independent menu definitions from
842 xmenu.c.
843
844 * menu.c: New file. Relocate platform-independent menu
845 definitions from xmenu.c. Suggested by Adrian Robert.
846
847 * xmenu.c: Remove platform-independent menu definitions.
848 (menu_items menu_items_inuse, menu_items_allocated)
849 (menu_items_used, menu_items_n_panes)
850 (menu_items_submenu_depth): Move to keyboard.h.
851 (init_menu_items, finish_menu_items, unuse_menu_items)
852 (discard_menu_items, restore_menu_items, save_menu_items)
853 (grow_menu_items, push_submenu_start, push_submenu_end)
854 (push_left_right_boundary, push_menu_pane, push_menu_item)
855 (keymap_panes, single_keymap_panes, single_menu_item)
856 (list_of_panes, list_of_items, find_and_call_menu_selection)
857 (xmalloc_widget_value, free_menubar_widget_value_tree)
858 (parse_single_submenu, digest_single_submenu)
859 (update_submenu_strings): Move to menu.c.
860
861 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
862
863 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
864
865 2008-06-06 Miles Bader <miles@gnu.org>
866
867 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
868 face, not frame default.
869
870 2008-06-05 Martin Rudalics <rudalics@gmx.at>
871
872 * window.c (pop_up_windows, pop_up_frames)
873 (display_buffer_reuse_frames, Vpop_up_frame_function)
874 (Vdisplay_buffer_function, Veven_window_heights)
875 (Vspecial_display_buffer_names, Vspecial_display_regexps)
876 (Vspecial_display_function, Vsame_window_buffer_names)
877 (Vsame_window_regexps, split_height_threshold)
878 (Vsplit_window_preferred_function): Move those vars to window.el.
879 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
880 (Fdisplay_buffer): Move those functions to window.el.
881 (syms_of_window): Remove corresponding declarations.
882 (display_buffer): New function.
883 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
884 * dispnew.c (Flast_nonminibuf_frame): New function.
885 * buffer.c (Fpop_to_buffer): Move to window.el.
886
887 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
888
889 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
890
891 2008-06-05 Kenichi Handa <handa@m17n.org>
892
893 * coding.c (detect_coding): Fix previous change.
894 (detect_coding_system): Likewise.
895
896 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
897
898 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
899
900 * keymap.c (Vminibuffer_local_filename_must_match_map):
901 Rename from Vminibuffer_local_must_match_filename_map.
902 (syms_of_keymap):
903 * minibuf.c (Fcompleting_read): Adjust accordingly.
904 * commands.h: Rename declaration as well.
905
906 2008-06-05 Kenichi Handa <handa@m17n.org>
907
908 * font.c (Ffont_spec): Don't use font_parse_family_registry for
909 family name.
910 (Ffont_put): Likewise.
911
912 * fontset.c (fontset_find_font): Call font_open_for_lface with the
913 current font-spec.
914
915 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
916 is unspecified.
917
918 * xfaces.c (realize_x_face): If the font-related face attributes
919 are the same as those of default face, realize a new fontset from
920 default->fontset.
921 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
922
923 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
924
925 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
926 (move_it_in_display_line): New wrapper.
927
928 * window.c (window_scroll_pixel_based_preserve_x)
929 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
930 (window_scroll_pixel_based, window_scroll_line_based):
931 Use them to preserve column positions.
932 (syms_of_window): Initialize them.
933
934 * indent.c (Fvertical_motion): Extend first arg to allow passing an
935 (HPOS . VPOS) pair.
936
937 * dispextern.h (move_it_in_display_line): Declare.
938
939 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
940
941 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
942 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
943 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
944
945 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
946
947 * window.c (Fset_window_parameter): Doc fix.
948 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
949
950 2008-06-04 Joakim Verona <joakim@verona.se>
951
952 * window.h (struct window): Add new member window_parameters.
953
954 * window.c (Fwindow_parameters, Fwindow_parameter)
955 (Fset_window_parameter): New defuns.
956 (syms_of_window): Defsubr the new defuns.
957 (make_window): Initialize window_parameters to nil.
958
959 2008-06-04 John Paul Wallington <jpw@pobox.com>
960
961 * eval.c (Fdefmacro): Doc fix.
962
963 2008-06-04 Kenichi Handa <handa@m17n.org>
964
965 * coding.c (detect_coding): Fix handling of coding->head_ascii.
966 Be sure to call setup_coding_system when we find a proper coding system.
967 (detect_coding_system): Fix handling of coding->head_ascii.
968
969 2008-06-03 Andreas Schwab <schwab@suse.de>
970
971 * font.c (font_prop_validate_spacing): Fix last change.
972
973 2008-06-03 Kenichi Handa <handa@m17n.org>
974
975 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
976 (font_parse_fcname): Fix handling of unknown key.
977
978 * xfont.c (xfont_list): Try an alias.
979
980 * charset.c (char_charset): Return NULL if the arg charset_list is
981 specified and C doesn't belong to any of them.
982
983 2008-06-02 Chip Coldwell <coldwell@redhat.com>
984
985 * font.c (font_pixel_size): Don't take cdr of an integer.
986
987 2008-06-02 Jim Meyering <meyering@redhat.com>
988
989 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
990 * alloc.c (xfree): Return right away for a NULL arg.
991 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
992 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
993 * mac.c (create_apple_event_from_event_ref): Likewise.
994 (create_apple_event_from_drag_ref, cfstring_create_normalized):
995 Likewise.
996 * doprnt.c (doprnt1): Likewise.
997 * frame.c (frame): Likewise.
998 * keyboard.c (wipe_kboard): Likewise.
999 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
1000 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
1001 * term.c (tty_default_color_capabilities, maybe_fatal)
1002 (delete_tty): Likewise.
1003 * w16select.c (string): Likewise.
1004 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
1005 * w32bdf.c (w32_free_bdf_font): Likewise.
1006 * w32fns.c (w32_unload_font): Likewise.
1007 * w32font.c (w32font_close): Likewise.
1008 * window.c (size_window): Likewise.
1009 * xselect.c (receive_incremental_selection): Likewise.
1010 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
1011 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
1012 * w32.c (stat): Likewise.
1013
1014 Remove useless if-before-free tests.
1015 * editfns.c (Fset_time_zone_rule): Likewise.
1016 * lread.c (nosuffix): Likewise.
1017 * ralloc.c (get_bloc): Likewise.
1018 * regex.c (reg_free): Likewise.
1019 * xftfont.c (xftfont_open, xftfont_close): Likewise.
1020 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
1021 * xsmfns.c (smc_save_yourself_CB): Likewise.
1022
1023 2008-06-02 Kenichi Handa <handa@m17n.org>
1024
1025 * font.c (font_find_for_lface): Handle float font size.
1026 (font_open_for_lface): Likewise.
1027
1028 * xfaces.c (x_supports_face_attributes_p): Check face->font before
1029 comparing the properties.
1030
1031 2008-06-01 Jason Rumney <jasonr@gnu.org>
1032
1033 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
1034 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
1035 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
1036 Don't add empty script list.
1037 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
1038
1039 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1040
1041 * Makefile.in (dot, dotdot): Remove, update users.
1042 ".." has been used elsewhere in the file for a long time.
1043 (LIBXT_STATIC): Remove conditional based on unused variable.
1044
1045 2008-06-01 Miles Bader <miles@gnu.org>
1046
1047 * xfaces.c (Vface_remapping_alist): New variable.
1048 (syms_of_xfaces): Initialize it.
1049 (enum named_merge_point_kind): New type.
1050 (struct named_merge_point): Add `named_merge_point_kind' field.
1051 (push_named_merge_point): Make cycle detection respect different
1052 named-merge-point kinds.
1053 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
1054 Remove face-name alias resolution.
1055 (lface_from_face_name): New definition using
1056 `lface_from_face_name_no_resolve'.
1057 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
1058 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
1059 (get_lface_attributes): New definition that layers face-remapping on
1060 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
1061 (lookup_basic_face): New function.
1062 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
1063 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
1064 `get_lface_attributes'.
1065 (face_at_buffer_position): Use `lookup_basic_face' to lookup
1066 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
1067 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
1068
1069 * xdisp.c (init_iterator): Pass base_face_id through
1070 `lookup_basic_face' when we actually use it as a face-id.
1071 (handle_single_display_prop): Use `lookup_basic_face' to lookup
1072 DEFAULT_FACE_ID.
1073
1074 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
1075 lookup the initial face-id.
1076
1077 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
1078
1079 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
1080
1081 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
1082 (Fremove_text_properties): Fix typos in docstrings.
1083
1084 2008-05-31 Kenichi Handa <handa@m17n.org>
1085
1086 * font.c (font_list_entities): Fix the car part of data to be
1087 stored in the cache.
1088
1089 * ftfont.c (ftfont_font_format): Don't use strcasestr.
1090
1091 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1092
1093 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
1094 Add a `test' argument so another predicate than `equal' can be used.
1095 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
1096 (map_char_table): Remove unused vars `c' and `i'.
1097 * lisp.h (Foptimize_char_table): Adjust declaration.
1098 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
1099
1100 2008-05-30 Kenichi Handa <handa@m17n.org>
1101
1102 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
1103 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
1104 defined.
1105
1106 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1107
1108 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
1109 (Fmake_variable_frame_local): Disallow mixing buffer-local and
1110 frame-local settings for the same variable.
1111
1112 2008-05-30 Kenichi Handa <handa@m17n.org>
1113
1114 * fontset.c (Ffont_info): Move to font.c.
1115 (syms_of_fontset): Delete defsubr of Sfont_info.
1116
1117 * font.c (font_style_to_value, font_score): Delete casting of the
1118 args to xstcasecmp.
1119 (register_font_driver): Increment num_font_drivers only when
1120 registering the driver globally.
1121 (Ffont_info): Move from fontset.c. Handle a font object too.
1122 (syms_of_font): Defsubr Sfont_info.
1123
1124 2008-05-29 Kenichi Handa <handa@m17n.org>
1125
1126 * coding.h (enum define_coding_utf8_arg_index): New enum.
1127 (enum coding_attr_index): Change coding_attr_utf_16_bom to
1128 coding_attr_utf_bom.
1129 (enum utf_bom_type): Rename from utf_16_bom_type.
1130 (struct utf_16_spec): Adjust for the above change.
1131 (struct coding_system): Add utf_8_bom in `spec' union.
1132
1133 * coding.c (CODING_UTF_8_BOM): New macro.
1134 (enum coding_category): Delete coding_category_utf_8, add
1135 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
1136 coding_category_utf_8_sig.
1137 (CATEGORY_MASK_UTF_8): Delete it.
1138 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
1139 (CATEGORY_MASK_UTF_8_SIG): New macros.
1140 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
1141 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
1142 CATEGORY_MASK_UTF_8_SIG.
1143 (CATEGORY_MASK_UTF_8): New macro.
1144 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
1145 (detect_coding_utf_8): Check BOM.
1146 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
1147 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
1148 (encode_coding_utf_16): Likewise.
1149 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
1150 (detect_coding, detect_coding_system): Handle utf-8-auto.
1151 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
1152 (syms_of_coding): Fix setting up of Vcoding_category_table.
1153
1154 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
1155
1156 * process.c (Faccept_process_output): If `millisec' is non-nil,
1157 `seconds' default to 0.
1158 (wait_reading_process_output): Also return non-nil if we read output
1159 from a non-running process.
1160
1161 2008-05-29 Jason Rumney <jasonr@gnu.org>
1162
1163 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
1164 `raster' specified.
1165 (add_font_entity_to_list): Allow non-opentype truetype fonts back
1166 in the uniscribe backend, but disallow any font that has no
1167 unicode subrange support.
1168
1169 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
1170
1171 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
1172 Fix typos in docstrings.
1173
1174 2008-05-29 Kenichi Handa <handa@m17n.org>
1175
1176 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
1177 (Fx_family_fonts): Set frame correctly.
1178
1179 2008-05-28 Jason Rumney <jasonr@gnu.org>
1180
1181 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
1182
1183 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1184
1185 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
1186 calling build_annotations.
1187
1188 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
1189
1190 * coding.c (Fdecode_coding_region, Fencode_coding_region)
1191 (Fencode_coding_string):
1192 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
1193 <latin-extra-code-table>: Fix typos in docstrings.
1194 (syms_of_coding) <coding-system-alist>: Doc fix.
1195 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
1196
1197 2008-05-28 Kenichi Handa <handa@m17n.org>
1198
1199 * fontset.c (Ffont_info): Don't call font_close_object.
1200
1201 * font.c (font_parse_family_registry): Use Ffont_put to validate
1202 foundry and family.
1203 (font_delete_unmatched): Don't check spacing.
1204 (font_list_entities): Add spacing to the spec to list fonts.
1205
1206 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
1207 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
1208
1209 * coding.c (encode_coding_raw_text): Fix previous change.
1210 (encode_coding_object): When the dst_object is a buffer and is
1211 different from src_object, move gap to PT.
1212
1213 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1214
1215 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
1216
1217 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1218
1219 * coding.c (encode_coding_raw_text): Set coding->produced_char for
1220 all branches. Compute it differently.
1221
1222 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
1223
1224 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
1225
1226 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
1227 into "else if () ... else ...".
1228
1229 2008-05-27 Jason Rumney <jasonr@gnu.org>
1230
1231 * w32font.c (w32font_open_internal): Determine if glyph indices
1232 are likely to work here.
1233
1234 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1235
1236 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
1237 draw overlap glyphs with appropriate highlighting.
1238
1239 2008-05-27 Kenichi Handa <handa@m17n.org>
1240
1241 * xfont.c (xfont_open): Fix calculation of font->average_width.
1242
1243 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1244
1245 * casefiddle.c (casify_object): Try to guess better whether the
1246 argument is a byte or a char.
1247
1248 2008-05-26 Andreas Schwab <schwab@suse.de>
1249
1250 * xselect.c (x_reply_selection_request): Properly handle format == 32.
1251 Always send multiples of format size.
1252
1253 * xterm.c (x_set_frame_alpha): Fix type mismatch.
1254
1255 2008-05-26 Jason Rumney <jasonr@gnu.org>
1256
1257 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
1258 (compute_metrics): Don't set failure if we just cleared the cache.
1259 (w32_weight_table): Remove unused variable.
1260 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
1261 backwards compatibility.
1262
1263 2008-05-25 Kenichi Handa <handa@m17n.org>
1264
1265 * w32term.c (x_draw_glyph_string):
1266 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
1267
1268 * xfaces.c: Delete unused function prototypes.
1269 (xstrlwr, font_frame): Delete them.
1270 (clear_face_cache): Delete unused variable.
1271
1272 * xftfont.c (xftfont_open): Delete unused variable.
1273 If underline_thickness is not 1, adjust underline_position.
1274
1275 * ftxfont.c (ftxfont_open): Delete unused variable.
1276
1277 * fontset.c (face_for_char): Optimize for the case of no charset
1278 property.
1279
1280 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
1281 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
1282 (otf_open, font_otf_capability, generate_otf_features)
1283 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1284 Comment out by surrounding "#if 0" and "#endif" for the moment.
1285 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
1286 (syms_of_font): Codes for accessing above commented out.
1287
1288 2008-05-24 Eli Zaretskii <eliz@gnu.org>
1289
1290 * w32proc.c: Include dispextern.h.
1291
1292 * w32.c: Include dispextern.h.
1293
1294 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
1295
1296 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
1297 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
1298 Fix typos in docstrings.
1299
1300 2008-05-23 Jason Rumney <jasonr@gnu.org>
1301
1302 * xsmfns.c: Remove includes that are already included by config.h.
1303
1304 2008-05-23 Kenichi Handa <handa@m17n.org>
1305
1306 * charset.c (Qemacs, charset_emacs): New variables.
1307 (char_charset): Fix for non-Unicode characters.
1308 (syms_of_charset): Define charset_emacs.
1309
1310 * w32term.c (x_draw_glyph_string): Be sure to update
1311 s->underline_thickness and s->underline_position. Be sure to draw
1312 underline within the current line area.
1313
1314 * xterm.c (x_draw_glyph_string): Be sure to update
1315 s->underline_thickness and s->underline_position. Be sure to draw
1316 underline within the current line area.
1317
1318 * fontset.c: Delete unused variables and add casting for char *
1319 throughout the file.
1320 (fontset_font): Try the fallback fonts of the current fontset
1321 before consulting the default fontset.
1322
1323 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
1324
1325 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
1326
1327 2008-05-22 Jason Rumney <jasonr@gnu.org>
1328
1329 * font.c: Don't include strings.h.
1330
1331 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
1332
1333 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
1334 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
1335 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
1336 to call xstrcasecmp.
1337
1338 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
1339
1340 * fontset.c (fs_query_fontset): Use xstrcasecmp.
1341
1342 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
1343
1344 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
1345
1346 2008-05-22 Kenichi Handa <handa@m17n.org>
1347
1348 * puresize.h (BASE_PURESIZE): Increase to 1220000.
1349
1350 * font.c (font_prop_validate_style): Adjust for the format
1351 change of font_style_table.
1352
1353 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
1354 two args.
1355
1356 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
1357 two args.
1358
1359 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
1360
1361 * minibuf.c (keys_of_minibuf): Delete.
1362 * lisp.h (keys_of_minibuf): Delete.
1363 * emacs.c (main): Don't call keys_of_minibuf.
1364
1365 2008-05-22 Kenichi Handa <handa@m17n.org>
1366
1367 * ftfont.c (ftfont_resolve_generic_family): Rename from
1368 ftfont_list_generic_family. Return a single family for each
1369 generic family.
1370 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
1371 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
1372 Call font_add_log.
1373 (ftfont_match): Call font_add_log.
1374
1375 * font.h (Ffont_xlfd_name): EXFUN adjusted.
1376 (FONT_DEBUG): Define it.
1377 (font_add_log): Extern it.
1378 (font_assert): Rename from xassert.
1379
1380 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
1381 (xfont_list_family): Call font_add_log.
1382 (xfont_match): Likewise.
1383 (memq_no_quit): Delete.
1384
1385 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
1386 call of Ffont_xlfd_name.
1387
1388 * xfaces.c (struct table_entry, slant_table, weight_table)
1389 (swidth_table): Move to font.c.
1390
1391 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
1392 xassert are changed to font_assert. Delete many unused variables.
1393 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
1394 New variables.
1395 (struct table_entry): Move from xfaces.c and modified.
1396 (weight_table, slant_table, width_table): Move from xfaces.c and
1397 contents adjusted for the change of struct table_entry.
1398 (font_style_to_value, font_style_symbolic): Adjust for the
1399 format change of font_style_table.
1400 (font_parse_family_registry): Don't overwrite existing foundry and
1401 family of font_spec.
1402 (font_score): Fix calculation of diff for sizes.
1403 (font_sort_entites): Call font_add_log.
1404 (font_delete_unmatched): Return a newly created list.
1405 (font_list_entities): Fix previous change. Call font_add_log.
1406 (font_matching_entity, font_open_entity, font_close_entity):
1407 Call font_add_log.
1408 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
1409 (Finternal_set_font_style_table): Delete.
1410 (BUILD_STYLE_TABLE): New macro.
1411 (build_style_table): New function.
1412 (Vfont_log, font_log_env_checked): New variables.
1413 (font_add_log): New function.
1414 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
1415 Declare Lisp variables "font-weight-table", "font-slant-table",
1416 "font-width-table", and "font-log". Initialize font_style_table.
1417
1418 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
1419
1420 * xterm.c (x_set_frame_alpha): Move declarations before statements.
1421
1422 2008-05-21 Seiji Zenitani <zenitani@mac.com>
1423 Ryo Yoshitake <ryo@shiftmode.net>
1424
1425 * frame.c (Qalpha): Add a new frame parameter `alpha'.
1426 (Vframe_alpha_lower_limit): New variable.
1427 (x_set_alpha): New function.
1428
1429 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
1430
1431 * xfns.c (x-create-frame, Qalpha):
1432 Initialize the frame parameter `alpha'.
1433 * xterm.c (OPAQUE, OPACITY): New.
1434 (x_set_frame_alpha): New function.
1435 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
1436
1437 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
1438 * w32fns.c (w32_frame_parm_handlers): Likewise.
1439
1440 2008-05-20 Jason Rumney <jasonr@gnu.org>
1441
1442 * w32font.c (add_font_entity_to_list): Don't add non-opentype
1443 truetype fonts to opentype list.
1444
1445 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
1446
1447 * fontset.c (Ffontset_info): Doc fix.
1448 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
1449 <ignore-relative-composition>: Fix typos in docstrings.
1450
1451 * font.c (syms-of-font) <font-encoding-alist>:
1452 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
1453 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
1454 (Ffont_otf_alternates): Doc fixes.
1455
1456 2008-05-20 Kenichi Handa <handa@m17n.org>
1457
1458 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
1459 font.h through out the file.
1460 (FONT_DRIVERS): Rename from FONTOBJ.
1461 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
1462 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
1463
1464 * emacs.c (main): Call syms_of_font unconditionally.
1465
1466 * font.h (find_font_encoding): Extern it.
1467
1468 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
1469 fontset.c.
1470 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
1471 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
1472 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
1473 only when HAVE_WINDOW_SYSTEM is defined.
1474 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
1475 when HAVE_WINDOW_SYSTEM is defined.
1476
1477 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
1478 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
1479
1480 * xfaces.c: Include font.h unconditionally.
1481 (merge_face_ref, merge_face_vectors)
1482 (Finternal_set_lisp_face_attribute): Cancel the previous change.
1483
1484 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
1485
1486 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
1487 indirect_variable.
1488 * eval.c (lisp_indirect_variable): New fun.
1489 (Fuser_variable_p): Use it.
1490
1491 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1492
1493 * lisp.h (indirect_variable):
1494 * data.c (indirect_variable, let_shadows_buffer_binding_p):
1495 Use Lisp_Symbol pointers rather than Lisp_Object.
1496 Adjust callers.
1497 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
1498 To this end, change calling-convention.
1499
1500 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
1501 if some non-hidden buffers are selected by string&pred.
1502
1503 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
1504
1505 * process.c (wait_reading_process_output): Always check status
1506 when in batch mode.
1507
1508 2008-05-19 Kenichi Handa <handa@m17n.org>
1509
1510 * font.c (font_list_entities): Fix handling of cache.
1511 (font_matching_entity): Likewise.
1512
1513 * ftfont.c (cs_iso8859_1): Delete.
1514 (ft_face_cache): New variable.
1515 (struct ftfont_info): New member fc_charset_idx.
1516 (ftfont_build_basic_charsets): Delete.
1517 (fc_charset_table): New variable.
1518 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
1519 . FC_CHARSET_IDX) as :font-entity property in the font entity.
1520 Callers changed.
1521 (ftfont_lookup_cache, ftfont_get_charset): New functions.
1522 (ftfont_spec_pattern): New argument fc_charset_idx.
1523 Check registry more rigidly. Change callers.
1524 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
1525 change of :font-entity property of the font.
1526
1527 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
1528 property of the font.
1529
1530 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
1531
1532 * coding.c (Fcoding_system_p): Rename argument to match docstring.
1533 (Funencodable_char_position, Fcheck_coding_systems_region)
1534 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
1535 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
1536 (Ffind_operation_coding_system, Fset_coding_system_priority)
1537 (Fcoding_system_eol_type): Doc fixes.
1538
1539 2008-05-17 Glenn Morris <rgm@gnu.org>
1540
1541 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
1542
1543 2008-05-16 Eli Zaretskii <eliz@gnu.org>
1544
1545 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
1546 and st_gid.
1547
1548 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1549 HAVE_WINDOW_SYSTEM is not defined.
1550
1551 * xfaces.c (merge_face_ref, merge_face_vectors)
1552 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
1553 HAVE_WINDOW_SYSTEM is defined.
1554 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
1555
1556 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
1557
1558 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
1559
1560 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1561
1562 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
1563
1564 2008-05-15 Kenichi Handa <handa@m17n.org>
1565
1566 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
1567 preference.
1568
1569 2008-05-15 Glenn Morris <rgm@gnu.org>
1570
1571 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
1572
1573 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
1574
1575 * fns.c (init_fns): Don't initialize weak_hash_tables here.
1576 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
1577
1578 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
1579
1580 2008-05-15 Kenichi Handa <handa@m17n.org>
1581
1582 * ftfont.c (ftfont_list): Downcase family name to check generic
1583 families.
1584
1585 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
1586 font-spec for QCfont value.
1587
1588 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
1589 buffer. Check the return value of it.
1590
1591 2008-05-14 Jason Rumney <jasonr@gnu.org>
1592
1593 * w32term.c (w32_get_glyph_overhangs): Remove.
1594 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
1595
1596 2008-05-14 Kenichi Handa <handa@m17n.org>
1597
1598 * font.c (font_prop_validate): Make nil a valid value.
1599 (font_clear_cache): Check if the cached vector of entities is nil
1600 or not.
1601
1602 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1603
1604 * emacs.c (main_thread): Conditionalize on
1605 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1606 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
1607
1608 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
1609 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
1610 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1611
1612 2008-05-14 Kenichi Handa <handa@m17n.org>
1613
1614 * coding.c (detect_coding_iso_2022): Ignore a coding category that
1615 has no corresponding coding system.
1616
1617 2008-05-14 Jason Rumney <jasonr@gnu.org>
1618
1619 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
1620
1621 * w32font.h (w32font_open_internal): Update declaration.
1622
1623 * w32font.c (w32font_open_internal): Change last argument from
1624 w32font_info struct to font object. Fill in font object from
1625 font_entity. Get Outline metrics if possible. Use them to
1626 calculate underline position and thickness. Use xlfd name as name
1627 property. Don't set codepage.
1628 (w32font_open): Pass font_object to w32font_open_internal. Don't
1629 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
1630 (w32font_draw): Use s->font.
1631 (clear_cached_metrics): Don't clear non-existent blocks.
1632
1633 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
1634 font was not found.
1635 (x_draw_glyph_string): Use underline position and thickness from font.
1636
1637 * w32uniscribe.c (uniscribe_open): Pass font_object to
1638 w32font_open_internal.
1639
1640 2008-05-14 Kenichi Handa <handa@m17n.org>
1641
1642 These changes are to delete all legacy font-handling codes, and
1643 make Emacs use only font-backends.
1644
1645 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
1646 (frame.o, image.o, print.o): Depend on $(FONTSRC).
1647
1648 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
1649
1650 * charset.h (Vcharset_non_preferred_head)
1651 (Vcurrent_iso639_language): Extern them.
1652
1653 * charset.c (Vcharset_non_preferred_head): New variable.
1654 (Vcurrent_iso639_language): New variable.
1655 (syms_of_charset): Declare it as a Lisp variable.
1656 (char_charset): Don't check non preferred charsets. As a last
1657 resort, return charset_unicode.
1658 (Fset_charset_priority): Update Vcharset_non_preferred_head.
1659
1660 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
1661 conditionals. Don't check enable_font_backend. Delete all codes
1662 used only when USE_FONT_BACKEND is not defined.
1663
1664 * dispextern.h (struct glyph_string): Change type of `font' to
1665 `struct font *'.
1666 (struct glyph_string): New member underline_position and
1667 underline_thickness.
1668 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
1669 (struct face): Change type of `font' to `struct font *'. Remove
1670 members `font_name', `font_info_id'.
1671 (per_char_metric, encode_char): Delete externs.
1672 (calc_pixel_width_or_height): Adjust the prototype.
1673
1674 * emacs.c (enable_font_backend): Delete extern.
1675 (main): Don't set enable_font_backend. Don't check the command
1676 line argument "-disable-font-backend".
1677
1678 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
1679 (enum font_property_index): New members FONT_DPI_INDEX,
1680 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
1681 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
1682 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
1683 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
1684 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
1685 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
1686 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1687 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1688 (struct font_spec, struct font_entity): New structs.
1689 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1690 (struct font): Many members from old "struct font_info" moved to
1691 here. Members font and entity deleted.
1692 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1693 the new font-related objects.
1694 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1695 (CHECK_FONT_GET_OBJECT): Likewise.
1696 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1697 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1698 (struct font_driver): New members case_sensitive anc check. Type
1699 of the member list and open changed.
1700 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1701 (font_symbolic_width, font_find_object, font_get_spec)
1702 (font_set_lface_from_name): Delete extern.
1703 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
1704
1705 * font.c: Include <strings.h>.
1706 (enable_font_backend): Delete it.
1707 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1708 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1709 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1710 (null_string): Delete it.
1711 (null_vector): Make it static.
1712 (font_family_alist): Delete it.
1713 (Qnormal): Extern it.
1714 (QCextra, QClanguage): Delete it.
1715 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
1716 (font_make_spec, font_make_entity, font_make_object)
1717 (font_intern_prop): Renamed from intern_downcase. Don't downcase
1718 the string. Callers changed.
1719 (font_pixel_size): Adjusted for the format change of font-related
1720 objects.
1721 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
1722 (font_style_to_value, font_style_symbolic): New function.
1723 (build_font_family_alist): Delete it.
1724 (font_registry_charsets): Use Fassoc_string instead of
1725 assq_no_quit.
1726 (font_prop_validate_symbol): Don't return null_string.
1727 (font_prop_validate_style): Adjusted for the change of
1728 style-related values in a font vector.
1729 (font_property_table): Delete entries for QClanguage and
1730 QCantialias, add entries for QCavgwidth.
1731 (get_font_prop_index): Delete the 2nd argument FROM.
1732 (font_prop_validate): Arguments changed.
1733 (font_put_extra): Adjusted for the change of font-related objects.
1734 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
1735 (font_parse_fcname, font_unparse_fcname)
1736 (font_prepare_composition): Likewise.
1737 (font_parse_family_registry): Renamed from font_merge_old_spec.
1738 (otf_open): Delete the 1st arg entity.
1739 (font_otf_capability): Adjusted for the above change.
1740 (font_score): New arg alternate_families. Adjusted for the change
1741 of font-related objects.
1742 (font_sort_entites): New arg best_only.
1743 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
1744 Delete them.
1745 (font_match_p): Check alternate families.
1746 (font_find_object): Delete it.
1747 (font_check_object): New function.
1748 (font_clear_cache): Adjusted for the change of font-related objects.
1749 (font_delete_unmatched): New arg.
1750 (font_list_entities): Call font_driver->list with a spec that
1751 doesn't specify style-related properties.
1752 (font_matching_entity): Arguments changed. Caller changed.
1753 (font_open_entity): Adjusted for the change of font-related objects.
1754 (font_close_object, font_has_char, font_encode_char)
1755 (font_get_name, font_get_spec): Likewise.
1756 (font_spec_from_name, font_clear_prop, font_update_lface):
1757 New functions.
1758 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
1759 (font_prepare_for_face, font_done_for_face, font_open_by_name)
1760 (font_at): Adjusted for the change of font-related objects.
1761 (font_range): New function.
1762 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
1763 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
1764 (Fcopy_font_spec, Fmerge_font_spec): New function.
1765 (Ffont_family_list): Renamed from list-families.
1766 (Finternal_set_font_style_table): Arguments changed.
1767 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
1768 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
1769 change of font-related objects.
1770 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
1771
1772 * fontset.h (struct font_info): Delete it. Most members go to
1773 struct font.
1774 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
1775 (enum FONT_SPEC_INDEX): Delete it.
1776 (font_info, list_fonts_func, load_font_func, query_font_func)
1777 (set_frame_fontset_func, find_ccl_program_func)
1778 (get_font_repertory_func, new_fontset_from_font_name): Delete
1779 externs.
1780 (fontset_from_font_name): Extern it.
1781 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
1782 (FONT_INFO_FROM_FACE): Deleted.
1783 (face_for_font): Adjust prototype.
1784
1785 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
1786 conditionals. Don't check enable_font_backend. Delete all codes
1787 used only when USE_FONT_BACKEND is not defined.
1788 (get_font_info_func, list_font_func, load_font_func)
1789 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
1790 (get_font_repertory_func): Delete them.
1791 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
1792 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
1793 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
1794 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
1795 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
1796 (fontset_compare_rfontdef): New function.
1797 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
1798 ront-defs by qsort. Adjusted for the change of font-group vector.
1799 (load_font_get_repertory): Deleted.
1800 (fontset_find_font): Use new macros to ref/set elements of
1801 font-def and rfont-def.
1802 (fontset_font): Fix the timing of remembering that no font for C.
1803 (free_face_fontset): Do nothing if the face has no fontset.
1804 (face_suitable_for_char_p): Use new macros to ref/set elements of
1805 rfont-def.
1806 (face_for_char): Likewise. Call face_for_char with font_object.
1807 (fs_load_font): Delete. Delete #pragma surrounding it.
1808 (fs_query_fontset): Use strcasecmp instead of strcmp.
1809 (generate_ascii_font_name): Adjusted for the format change of
1810 font-spec.
1811 (Fset_fontset_font): Likewise. Use new macros to set elements of
1812 font-def.
1813 (Fnew_fontset): Use font_unparse_xlfd to generate
1814 FONTSET_ASCII (fontset).
1815 (new_fontset_from_font_name): Deleted.
1816 (fontset_from_font): Renamed from new_fontset_from_font. Check if
1817 a fontset is already created for the font. FIx updating of
1818 Vfontset_alias_alist.
1819 (fontset_ascii_font): Deleted.
1820 (Ffont_info): Adjusted for the format change of font-spec.
1821 (Finternal_char_font): Likewise.
1822 (Ffontset_info): Likewise.
1823 (syms_of_fontset): Don't check load_font_func.
1824
1825 * fns.c (internal_equal): Handle PREV_FONT.
1826
1827 * frame.h: Delete USE_FONT_BACKEND conditional.
1828
1829 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
1830 conditionals. Don't check enable_font_backend. Delete all codes
1831 used only when USE_FONT_BACKEND is not defined.
1832 (x_set_font): Call x_new_font, not x_new_fontset2.
1833 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
1834 already set for the frame.
1835
1836 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
1837 a font-entity by font_make_entity. Use font_intern_prop instead
1838 of intern_downcase. Use FONT_SET_STYLE to set a style-related
1839 font property. If a font is scalable, set avgwidth property to 0.
1840 Set font-entity property by font_put_extra.
1841 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
1842 (ffont_driver): Adjusted for the change of struct font_driver.
1843 (ftfont_spec_pattern): New function.
1844 (ftfont_list): Return a list, not vector.
1845 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
1846 (ftfont_list_family): Don't downcase names.
1847 (ftfont_free_entity): Deleted.
1848 (ftfont_open): Return a font-ojbect. Adjusted for the change of
1849 struct font. Get underline_thickness and underline_position from
1850 font property. Don't update dpyinfo->smallest_font_height and
1851 dpyinfo->smallest_char_width.
1852 (ftfont_close): Don't free `struct font'.
1853 (ftfont_has_char): Adjusted for the format change of font-entity.
1854 (ftfont_encode_char, ftfont_text_extents): Likewise.
1855
1856 * ftxfont.c (ftxfont_list): Return a list, not vector.
1857 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
1858 struct font. Get underline_thickness and underline_position from
1859 font property. Don't update dpyinfo->smallest_font_height and
1860 dpyinfo->smallest_char_width.
1861 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
1862 (ftxfont_draw): Adjusted for the change of struct font.
1863
1864 * image.c (image_ascent): Don't include "charset.h". Include
1865 "character.h" and "font.h".
1866
1867 * lisp.h (enum pvec_type): New member PREV_FONT.
1868 (Fassoc_string): EXFUN it.
1869
1870 * print.c: Include font.h.
1871 (print_object): Handle font-related objects.
1872
1873 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
1874 conditionals. Don't check enable_font_backend. Delete all codes
1875 used only when USE_FONT_BACKEND is not defined.
1876 (handle_auto_composed_prop): Do nothing if it->f is not on a
1877 window system. Check how many following characters can be
1878 displayed by the same font.
1879 (calc_pixel_width_or_height): Type of the 4th arg is changed to
1880 'struct font *'.
1881 (get_char_face_and_encoding): Assign the whole encoding task to
1882 the `encode-char' method of a font driver.
1883 (fill_composite_glyph_string): Adjusted for the change of `struct
1884 face' and `struct glyph_string'.
1885 (fill_glyph_string): Likewise.
1886 (get_per_char_metric): Arguments changed.
1887 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
1888 and `struct glyph_string'.
1889 (produce_stretch_glyph, calc_line_height_property)
1890 (x_produce_glyphs): Likewise.
1891
1892 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
1893 conditionals. Don't check enable_font_backend. Delete all codes
1894 used only when USE_FONT_BACKEND is not defined. Use
1895 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
1896 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
1897 (Qp): Extern them.
1898 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
1899 Deleted.
1900 (struct font_name): Deleted.
1901 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
1902 (compare_fonts_by_sort_order): New function.
1903 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
1904 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
1905 Deleted.
1906 (Fx_family_fonts): Use font_list_entities, and sort fonts by
1907 compare_fonts_by_sort_order.
1908 (Fx_font_family_list): Call Ffont_family_list.
1909 (face_numeric_value, face_numeric_weight, face_numeric_slant)
1910 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
1911 (face_symbolic_slant, face_symbolic_swidth)
1912 (split_font_name_into_vector, build_font_name_from_vector)
1913 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
1914 (font_rescale_ratio, split_font_name, build_font_name)
1915 (free_font_names, sort_fonts, x_face_list_fonts)
1916 (face_font_available_p, sorted_font_list, cmp_font_names)
1917 (font_list_1, concat_font_list, font_list, remove_duplicates):
1918 Deleted.
1919 (Fx_list_fonts): Use Ffont_list.
1920 (LFACE_AVGWIDTH): Deleted.
1921 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
1922 by FONTP.
1923 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1924 (set_lface_from_font_name): Delete it.
1925 (set_lface_from_font): Renamed from
1926 set_lface_from_font_and_fontset. Caller changed. Don't set
1927 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
1928 for face.
1929 (merge_face_vectors): Copy font-spec if necessary.
1930 Clear properties of the font-spec if necessary.
1931 (merge_face_ref): Clear properties of the font-spec if necessary.
1932 (Finternal_set_lisp_face_attribute): Likewise.
1933 (set_font_frame_param): Use font_load_for_lface to load a
1934 font-object, and call Fmodify_frame_parameters with it.
1935 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
1936 font name by Ffont_xlfd_name.
1937 (Finternal_lisp_face_attribute_values): Don't check QCweight,
1938 QCslant, and QCwidth.
1939 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
1940 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
1941 Compare fonts by EQ.
1942 (lookup_non_ascii_face): Deleted.
1943 (face_for_font): The 2nd argument changed.
1944 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
1945 Check atomic font properties by case insensitive.
1946 (realize_non_ascii_face): Set face->overstrike correctly.
1947 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
1948 (dump_realized_face): Get font name from
1949 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
1950
1951 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
1952 conditionals. Don't check enable_font_backend. Delete all codes
1953 used only when USE_FONT_BACKEND is not defined.
1954 (xic_create_xfontset): Original code deleted and renamed from
1955 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
1956 (x_make_gc): Don't set GCFont in GCs.
1957 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
1958 opened by "fixed".
1959 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
1960 find_ccl_program_func, query_font_func, set_frame_fontset_func,
1961 get_font_repertory_func.
1962
1963 * xfont.c: Include <stdlib.h> and "ccl.h".
1964 (struct xfont_info): New structure.
1965 (xfont_query_font): Deleted.
1966 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
1967 moved from xterm.c.
1968 (xfont_driver): Adjusted for the change of struct font_driver.
1969 (compare_font_names): New function.
1970 (xfont_list_pattern): Sort font names case insensitively. Make
1971 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
1972 (xfont_list): Return a list, not vector.
1973 (xfont_match): If the font doesn't have QCname property, generate
1974 a name from the other font properties.
1975 (xfont_open): Return a font-ojbect. Adjusted for the change of
1976 struct font. Get underline_thickness and underline_position from
1977 font property. Don't update dpyinfo->smallest_font_height and
1978 dpyinfo->smallest_char_width.
1979 (xfont_close): Don't free struct font.
1980 (xfont_prepare_face): Adjusted for the change of struct font.
1981 (xfont_done_face): Deleted.
1982 (xfont_has_char): Adjusted for the change of struct font.
1983 (xfont_encode_char, xfont_draw): Likewise.
1984 (xfont_check): New function.
1985
1986 * xftfont.c (xftfont_list): Adjusted for the change of `list'
1987 callback function.
1988 (xftfont_match): Adjusted for the fontmat change of font-entity.
1989 (xftfont_open): Adjusted for the format change of font-entity and
1990 font-object. Adjusted for the change of struct font. Return a
1991 font-object. Don't update dpyinfo->smallest_font_height and
1992 dpyinfo->smallest_char_width.
1993 (xftfont_close): Block input while calling XftFontClose.
1994 (xftfont_prepare_face): Don't block input while calling
1995 xftfont_get_colors. Adjusted for the change of struct font.
1996 (xftfont_shape): Return value of error case fixed.
1997
1998 * xrdb.c (x_load_resources): Don't setup a fontset resource.
1999
2000 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
2001 conditionals.
2002 (FONT_WIDTH): Return (f)->max_width.
2003 (struct x_display_info): Delete member `font'.
2004 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
2005 (x_find_ccl_program, x_get_font_repertory): Delete externs.
2006 (struct x_output): Change type of `font' to `struct font *'.
2007
2008 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
2009 conditionals. Don't check enable_font_backend. Delete all codes
2010 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
2011 (x_per_char_metric, x_encode_char): Deleted.
2012 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
2013 (x_compute_glyph_string_overhangs): Adjusted for the change of
2014 `struct face'.
2015 (x_draw_glyph_string_foreground)
2016 (x_draw_composite_glyph_string_foreground): Likewise.
2017 (x_draw_glyph_string): Likewise. Use font->underline_position and
2018 font->underline_thickness.
2019 (x_new_font): Renamed from x_new_fontset2.
2020 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
2021 (x_check_font): Call `check' method of a font driver.
2022 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
2023 (x_query_font, x_get_font_repertory): Deleted.
2024 (x_find_ccl_program): Renamed and moved to xfont.c.
2025 (x_redisplay_interface): Adjusted for the change of `struct
2026 redisplay_interface'.
2027
2028 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
2029 conditionals. Don't check enable_font_backend. Delete all codes
2030 used only when USE_FONT_BACKEND is not defined. Surround non-used
2031 code by "#ifdef OLD_FONT" and "endif".
2032 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
2033
2034 * w32font.h (struct w32font_info): New member.
2035 (FONT_COMPAT): New macro.
2036 (w32font_open_internal): Prototype adjusted.
2037
2038 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
2039 OLD_FONT" and "endif".
2040
2041 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
2042 conditionals. Don't check enable_font_backend. Delete all codes
2043 used only when USE_FONT_BACKEND is not defined.
2044 (w32font_open): Return a font-object. Make a font-object by
2045 font_make_object. Adjusted for the change of struct w32font_info.
2046 (w32font_close): Don't free struct font. Adjusted for the change
2047 of struct w32font_info.
2048 (w32font_encode_char, w32font_text_extents, w32font_draw):
2049 Adjusted for the change of struct w32font_info.
2050 (w32font_draw): Likewise.
2051 (w32font_list_internal): Return a list, not vector.
2052 (w32font_open_internal): Change the 4th arg to font-object.
2053 Adjusted for the change of struct w32font_info and font-object format.
2054 (add_font_name_to_list): Don't downcase names.
2055 (w32_enumfont_pattern_entity): Make a font-entity by
2056 font_make_entity. Adjusted for the format change of font-entity.
2057 Use FONT_SET_STYLE to set a style-related font property. If a
2058 font is scalable, set avgwidth property to 0. Set font-entity
2059 property by font_put_extra.
2060 (font_matches_spec): Adjusted for the format change of font-entity.
2061 (w32_weight_table, w32_decode_weight): New variables.
2062 (w32_encode_weight): New function.
2063 (fill_in_logfont): Adjusted for the format change of font-spec.
2064 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
2065 weight value.
2066 (w32font_driver): Adjusted for the change of struct font_driver.
2067
2068 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
2069 conditionals. Don't check enable_font_backend. Surround non-used
2070 code by "#ifdef OLD_FONT" and "endif".
2071 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
2072 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
2073
2074 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
2075 conditionals. Don't check enable_font_backend. Delete all codes
2076 used only when USE_FONT_BACKEND is not defined. Surround non-used
2077 code by "#ifdef OLD_FONT" and "endif".
2078
2079 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
2080 (uniscribe_open): Return value changed to font-object.
2081 Adjusted for the format change of font-object.
2082 (uniscribe_otf_capability): Adjusted for the change of struct font.
2083 (add_opentype_font_name_to_list): Don't downcase names.
2084 (uniscribe_font_driver): Adjusted for the change of struct
2085 font_driver.
2086
2087 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
2088
2089 * dispnew.c (update_frame_1): Check if tty output is still valid
2090 before flushing it.
2091
2092 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
2093
2094 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
2095 to Gtk+ menus.
2096
2097 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2098
2099 * dired.c (file_name_completion): Tweak the code so as to always do it
2100 in a single pass. Tighten the scope of some variables.
2101
2102 * dired.c (Qdefault_directory): New var.
2103 (file_name_completion): Use it instead of Fexpand_file_name.
2104 (syms_of_dired): Initialize it.
2105
2106 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
2107
2108 * fileio.c (double_dollars): Remove dead code.
2109
2110 2008-05-10 Eli Zaretskii <eliz@gnu.org>
2111
2112 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
2113 Mention w32-get-true-file-attributes in doc string.
2114
2115 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2116
2117 2008-05-09 Glenn Morris <rgm@gnu.org>
2118
2119 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
2120 2008-04-23.
2121
2122 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2123
2124 Support for reporting owner and group of each file on MS-Windows:
2125 * dired.c (stat_uname, stat_gname): New functions, with special
2126 implementation for w32.
2127 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
2128
2129 * w32.c: Rename the_passwd_* to dflt_passwd_*.
2130 (dflt_group_name): New static variable.
2131 (dflt_group): Rename from the_group.
2132 (init_user_info): Init dflt_group fields. Get user's group name
2133 from LookupAccountSid.
2134 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
2135 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
2136 New initialization states.
2137 (globals_of_w32): Initialize them to zero. Initialize the default
2138 group name to "None".
2139 (GetFileSecurity_Name): New global var, the name of the function
2140 to call for GetFileSecurity.
2141 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
2142 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
2143 (get_file_security, get_security_descriptor_owner)
2144 (get_security_descriptor_group, is_valid_sid)
2145 (get_file_security_desc, get_rid, get_name_and_id)
2146 (get_file_owner_and_group): New functions.
2147 (stat): Use get_file_security_desc and get_file_owner_and_group to
2148 report the owner and primary group of each file. Don't ignore the
2149 high 32 bits of file's size, now that st_size is 64-bit wide.
2150 Fix test when to get true file attributes.
2151 (init_user_info): Use get_rid instead of equivalent inline code.
2152 (fstat): Don't ignore the high 32 bits of file's size.
2153
2154 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
2155
2156 * image.c (png_load): Use correct bit-depth for setting background
2157 color.
2158
2159 2008-05-08 Eli Zaretskii <eliz@gnu.org>
2160
2161 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
2162 epa-hook.elc.
2163
2164 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
2165
2166 * font.c (Ffont_match_p): Don't use `iff' in docstring.
2167
2168 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2169
2170 * macfns.c (Fx_create_frame): Make a copy of frame parameters
2171 because the original parameters are in pure storage now.
2172 (mac_window): Remove unused params. Update callers.
2173
2174 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2175
2176 * lread.c (substitute_object_recurse): Use lower-level primitives.
2177 Don't signal errors when traversing sub-char-tables.
2178 Don't loop over all the possible characters when traversing char-tables.
2179
2180 * print.c (print_preprocess): Add sub-char-tables to the print-table,
2181 just like we do in print.c.
2182
2183 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2184
2185 * minibuf.c (Ftry_completion): Remove code left over from when we used
2186 scmp instead of Fcompare_strings.
2187
2188 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
2189
2190 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
2191
2192 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2193
2194 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
2195 Create bitmap context in native byte order.
2196
2197 * macterm.c (XDrawLine)
2198 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
2199 context in native byte order.
2200
2201 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2202
2203 * config.in: Regenerate.
2204
2205 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
2206 New definitions for Image I/O support.
2207 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2208 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
2209 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2210 (mac_data_provider_release_data, image_load_image_io)
2211 [USE_MAC_IMAGE_IO]: New functions.
2212 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
2213 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
2214 (init_image_func_pointer) [MAC_OSX]: Remove function.
2215 (image_load_quartz2d) [MAC_OSX]: Check availability of
2216 CGImageCreateWithPNGDataProvider at compile time.
2217 Use lowercase `false' for boolean constant.
2218 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
2219 Use image_load_image_io.
2220 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
2221 Don't check MyCGImageCreateWithPNGDataProvider.
2222 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
2223 Don't call init_image_func_pointer.
2224
2225 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
2226
2227 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
2228 Make variable non-static.
2229 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2230 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2231
2232 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
2233 (RED_FROM_ULONG): Mask off higher bits.
2234 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
2235
2236 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
2237 Include AvailabilityMacros.h.
2238 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
2239 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
2240
2241 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
2242
2243 * chartab.c (Fset_char_table_range): If range is t, really set all
2244 chars to that value.
2245
2246 2008-05-03 Eli Zaretskii <eliz@gnu.org>
2247
2248 * dired.c (Ffile_attributes): Don't allow the device number become
2249 negative.
2250
2251 2008-05-02 Daiki Ueno <ueno@unixuser.org>
2252
2253 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
2254
2255 2008-05-02 Juri Linkov <juri@jurta.org>
2256
2257 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
2258 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
2259 DEFAULT argument as a list of default values in docstrings.
2260
2261 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
2262
2263 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2264
2265 2008-05-01 Martin Rudalics <rudalics@gmx.at>
2266
2267 * dispnew.c (change_frame_size_1): Preserve small windows when
2268 shrinking frames by calling set_window_height|width with third
2269 arg 2.
2270
2271 * window.h (struct window): Replace field too_small_ok by field
2272 resize_proportionally.
2273
2274 * window.c (make_window): Initialize resize_proportionally.
2275 (enlarge_window): Temporarily set resize_proportionally to make
2276 sure that shrink_windows does scale the window proportionally.
2277 (shrink_windows): When window has resize_proportionally set try
2278 to shrink it proportionally by stealing from other windows.
2279 (struct saved_window, Fset_window_configuration)
2280 (compare_window_configurations): Handle resize_proportionally.
2281 (WINDOW_TOTAL_SIZE): New macro.
2282 (window_min_size, shrink_windows, size_window): Use it.
2283 (check_min_window_sizes): Remove. Invalid values of
2284 window-min-height|width are handled by window_min_size_2 now.
2285 (size_window, Fsplit_window, enlarge_window)
2286 (adjust_window_trailing_edge, grow_mini_window): Don't call
2287 check_min_window_sizes.
2288 (window_min_size_2, window_min_size_1, window_min_size):
2289 New argument safe_p for retrieving "safe" minimum sizes.
2290 (Fdisplay_buffer, Fsplit_window, enlarge_window)
2291 (adjust_window_trailing_edge, grow_mini_window):
2292 Adjust arguments of window_min_size... functions.
2293 (shrink_windows): Argument min_size removed. New argument
2294 safe_p allows shrinking windows to their safe minimum sizes.
2295 Calculate minimum size and decide whether a window shall be
2296 deleted for each window individually.
2297 (size_window): When nodelete_p equals 2, tell shrink_windows to
2298 delete windows only if their new minimum size is no more safe.
2299 (shrink_window_lowest_first): Call window_min_size_1 to make
2300 sure to preserve modeline of bottom-most window when resizing
2301 the minibuffer.
2302 (Fset_window_configuration, Fcurrent_window_configuration)
2303 (compare_window_configurations): Do not handle
2304 window-min-height|width any more.
2305 (syms_of_window): Clarify window-min-height|width doc-strings.
2306
2307 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
2308
2309 * dired.c (file_name_completion): Fix up the encoding/decoding issue
2310 some more. Copy some of the code from Ftry_completions.
2311 Remove special case code that dates back to initial revision when the
2312 slash was only added when necessary and that can't trigger nowadays.
2313
2314 2008-04-27 Kenichi Handa <handa@m17n.org>
2315
2316 * font.c (font_prop_validate): Signal `error' instead of `font'.
2317
2318 2008-04-29 Jason Rumney <jasonr@gnu.org>
2319
2320 * w32fns.c (Fw32_battery_status): New defun.
2321 (syms_of_w32fns): Defsubr it.
2322
2323 2008-04-28 Andreas Schwab <schwab@suse.de>
2324
2325 * dired.c (file_name_completion): Fix another mixing of encoded
2326 and decoded names.
2327
2328 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
2329
2330 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
2331
2332 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
2333
2334 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2335
2336 2008-04-27 Andreas Schwab <schwab@suse.de>
2337
2338 * dired.c (file_name_completion): Fix inappropriate mixing of
2339 encoded and decoded names.
2340
2341 * xterm.c (XTread_socket): Fix use of uninitialized variable.
2342
2343 * puresize.h (BASE_PURESIZE): Increase to 1200000.
2344
2345 2008-04-26 Eli Zaretskii <eliz@gnu.org>
2346
2347 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
2348 2008-03-31, it's not needed anymore with `struct stat' definition
2349 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
2350 for the same reasons.
2351
2352 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
2353
2354 * m/sparc.h: Additional redefinitions for GNU/Linux.
2355
2356 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2357
2358 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
2359 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2360 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
2361 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
2362 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2363 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
2364 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2365 Likewise.
2366
2367 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
2368 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
2369 (mac_ax_number_of_characters): Add externs.
2370 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2371 [USE_MAC_TSM]: Likewise.
2372 (mac_handle_text_input_event) [MAC_OSX]:
2373 Handle kEventTextInputOffsetToPos for no active input area case.
2374 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2375 (mac_handle_document_access_event)
2376 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
2377 (install_application_handler) [MAC_OSX]: Register handlers for
2378 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2379 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2380 Register mac_handle_document_access_event.
2381
2382 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
2383 Make functions non-static.
2384
2385 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2386
2387 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
2388 (read_file_name_completion_ignore_case, insert_default_directory)
2389 (Qdefault_directory): Move to minibuffer.el.
2390 (Fread_file_name): Call the new `read-file-name' instead.
2391
2392 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2393
2394 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
2395 Make function non-static.
2396 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
2397 Remove function.
2398 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2399 Move to mactoolbox.c.
2400 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
2401
2402 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
2403 (mac_rect_make): New macro.
2404
2405 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
2406 instead of float.
2407 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2408 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
2409 (XSetBackground) [USE_CG_DRAWING]: Likewise.
2410 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
2411 CGRectMake.
2412 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2413 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
2414 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
2415 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2416 instead of WindowRef in argument type.
2417 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
2418 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
2419 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
2420 instead of DISPLAY. All uses changed.
2421 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
2422 (x_calc_absolute_position): Simplify so as not to use
2423 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
2424
2425 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2426 instead of WindowRef in argument type.
2427 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
2428 [TARGET_API_MAC_CARBON]: Remove externs.
2429 (create_apple_event, mac_event_parameters_to_lisp)
2430 [TARGET_API_MAC_CARBON]: Add externs.
2431
2432 * mactoolbox.c (Vmac_ts_script_language_on_focus)
2433 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
2434 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
2435 is clicked.
2436 (x_activate_menubar): Remove extern for saved_menu_event_location.
2437 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2438 Move from mac.c.
2439
2440 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2441
2442 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
2443 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
2444
2445 2008-04-23 Jason Rumney <jasonr@gnu.org>
2446
2447 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
2448 attributes only for local files.
2449
2450 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
2451 default to Qlocal.
2452
2453 2008-04-22 Juri Linkov <juri@jurta.org>
2454
2455 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
2456 read-buffer-to-switch instead of using the letter "B".
2457
2458 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2459
2460 * fileio.c (Qdefault_directory): New variable.
2461 (Fread_file_name): Use it to pass `dir' to the completion functions.
2462
2463 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
2464
2465 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
2466
2467 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2468
2469 * keyboard.c (Vpre_help_message): Remove.
2470 (show_help_echo): Remove default C code.
2471
2472 * dired.c (directory_files_internal, file_name_completion):
2473 Only call ENCODE_FILE if the string is indeed decoded.
2474
2475 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2476
2477 * Makefile.in (TOOLKIT_DEFINES): Remove.
2478 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
2479
2480 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2481
2482 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
2483 (mactoolbox.o): New target.
2484
2485 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
2486 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
2487
2488 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
2489 Use mac_set_frame_window_background instead of XSetWindowBackground.
2490 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
2491 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
2492 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
2493 instead of SetWindowTitleWithCFString.
2494 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
2495 Move function to mactoolbox.c.
2496 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2497 Use mac_set_window_modified instead of SetWindowModified.
2498 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
2499 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
2500 (Fx_focus_frame): Use mac_front_non_floating_window instead of
2501 FrontNonFloatingWindow. Use mac_activate_window instead of
2502 ActivateWindow. Use mac_active_non_floating_window instead of
2503 ActiveNonFloatingWindow.
2504 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
2505 Use mac_show_hourglass and mac_hide_hourglass.
2506 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
2507 instead of GetGlobalMouse.
2508 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
2509 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
2510 Use mac_bring_window_to_front instead of BringToFront.
2511 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
2512 mactoolbox.c.
2513 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
2514 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
2515 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
2516 mactoolbox.c.
2517
2518 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
2519 (XtPointer): Move typedef from macmenu.c.
2520 (enum button_type): Move enum from macmenu.c.
2521 (widget_value): Move typedef from macmenu.c.
2522 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
2523 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2524 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2525 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2526 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2527 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2528 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2529 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
2530 (Selection): Move typedef from macselect.c.
2531 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
2532 macterm.c.
2533 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
2534 (mac_is_window_collapsed, mac_bring_window_to_front)
2535 (mac_send_window_behind, mac_hide_window, mac_show_window)
2536 (mac_collapse_window, mac_front_non_floating_window)
2537 (mac_active_non_floating_window, mac_activate_window)
2538 (mac_move_window_structure, mac_move_window, mac_size_window)
2539 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
2540
2541 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
2542 (enum mac_menu_kind): Move enum to mactoolbox.c.
2543 (min_menu_id): Move variable to mactoolbox.c.
2544 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
2545 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
2546 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2547 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2548 [TARGET_API_MAC_CARBON]: Likewise.
2549 (XtPointer): Move typedef to macgui.h.
2550 (enum button_type): Move enum to macgui.h.
2551 (widget_value): Move typedef to macgui.h.
2552 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2553 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2554 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2555 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2556 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2557 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2558 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
2559 (popup_activated_flag): Make variable non-static.
2560 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
2561 (add_menu_item, fill_menu, dispose_menus):
2562 Move functions to mactoolbox.c.
2563 (restore_show_help_function, menu_target_item_handler)
2564 (install_menu_target_item_handler, mac_handle_dialog_event)
2565 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
2566 [TARGET_API_MAC_CARBON]: Likewise.
2567 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
2568 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2569 (find_and_call_menu_selection, name_is_separator): Make function
2570 non-static.
2571 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
2572 to mactoolbox.c.
2573 (set_frame_menubar): Don't call install_menu_quit_handler.
2574 (menu_item_selection): New variable.
2575 (mac_menu_show): Use create_and_show_popup_menu.
2576 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
2577 selection but set variable menu_item_selection. All uses changed.
2578 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
2579 Call install_menu_quit_handler. Move to mactoolbox.c.
2580
2581 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
2582 (Selection): Move typedef to macgui.h.
2583 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
2584 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
2585 Make variables non-static.
2586 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2587 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
2588 Make functions non-static.
2589 (Vmac_service_selection) [MAC_OSX]: Likewise.
2590 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
2591 (mac_valid_selection_target_p, mac_clear_selection)
2592 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2593 (mac_put_selection_value, mac_selection_has_target_p)
2594 (mac_get_selection_value, mac_get_selection_target_list)
2595 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
2596 Move functions to mactoolbox.c.
2597 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
2598 Likewise.
2599 (copy_scrap_flavor_data, mac_handle_service_event)
2600 (install_service_handler) [MAC_OSX]: Likewise.
2601 (syms_of_macselect) <Vmac_dnd_known_types>:
2602 Use mac_dnd_default_known_types.
2603
2604 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
2605 Move to mactoolbox.c.
2606 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
2607 (Fx_selection_owner_p): Add EXFUN.
2608 (install_window_handler, remove_window_handler, XSetWindowBackground):
2609 Remove externs.
2610 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
2611 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
2612 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
2613 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
2614 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
2615 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
2616 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
2617 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
2618 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
2619 (create_and_show_popup_menu, mac_get_selection_from_symbol)
2620 (mac_valid_selection_target_p, mac_clear_selection)
2621 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2622 (mac_put_selection_value, mac_selection_has_target_p)
2623 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
2624 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
2625 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
2626 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2627 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
2628 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2629 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
2630 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2631 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2632
2633 * mactoolbox.c: New file.
2634
2635 2008-04-18 Jason Rumney <jasonr@gnu.org>
2636
2637 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
2638
2639 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2640
2641 * character.c (Fmultibyte_char_to_unibyte):
2642 Return latin1 chars unchanged.
2643
2644 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
2645 relocated if it points to `name'.
2646
2647 2008-04-17 Kenichi Handa <handa@m17n.org>
2648
2649 * data.c (Faset): Allow setting a multibyte character in an
2650 ASCII-only unibyte string.
2651
2652 * lisp.h (STRING_SET_MULTIBYTE): New macro.
2653
2654 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2655
2656 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
2657 done in config.h.
2658
2659 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
2660
2661 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
2662 (Fchar_direction): Add usage in the docstring.
2663
2664 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
2665
2666 * keyboard.c (read_key_sequence): Remove always-true checks.
2667
2668 2008-04-14 Jason Rumney <jasonr@gnu.org>
2669
2670 * w32font.c (w32font_open_internal): Set max_bounds.descent in
2671 compatibility struct, for better underline positioning.
2672
2673 2008-04-13 David Hansen <david.hansen@gmx.net>
2674
2675 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
2676 string.
2677
2678 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2679
2680 * m/hp800.h (XUINT, XSET): Remove.
2681
2682 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
2683
2684 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
2685 previous change.
2686
2687 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2688
2689 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2690 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2691
2692 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2693
2694 * keymap.h (map_keymap_canonical): Declare.
2695 * xmenu.c (single_keymap_panes): Use it.
2696
2697 2008-04-11 Glenn Morris <rgm@gnu.org>
2698
2699 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2700 set the target's value to that of the alias.
2701
2702 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2703
2704 * term.c (set_tty_color_mode): Left over typo.
2705
2706 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
2707
2708 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
2709 only after check for file name handler functions. Signal, when
2710 native functionality is not supported.
2711 (syms_of_fileio): Declare it unconditionally.
2712
2713 2008-04-10 Jason Rumney <jasonr@gnu.org>
2714
2715 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
2716 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2717
2718 * w32.c (logon_network_drive): Also logon to remote drives that
2719 are mapped to drive letters.
2720
2721 2008-04-10 Glenn Morris <rgm@gnu.org>
2722
2723 * xdisp.c (truncate-partial-width-windows): Doc fix.
2724
2725 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
2726
2727 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
2728 Move functions to minibuffer.el.
2729 (syms_of_fileio): Don't declare them.
2730
2731 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2732
2733 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
2734 (syms_of_minibuf): Remove its initialization.
2735
2736 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
2737
2738 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
2739
2740 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
2741
2742 2008-04-09 Jason Rumney <jasonr@gnu.org>
2743
2744 * makefile.w32-in (distclean): Delete makefile too.
2745 (maintainer-clean): New target.
2746
2747 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
2748
2749 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
2750 for new font backend and composite cases.
2751
2752 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
2753
2754 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
2755 Most of the code moved to run_timers.
2756 (do_pending_atimers): Call run_timers.
2757 (run_timers): New function.
2758
2759 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
2760 run atimers.
2761
2762 * process.c (wait_reading_process_output): The same as above.
2763
2764 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2765
2766 * minibuf.c (last_exact_completion): Remove variable.
2767 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
2768 (complete_and_exit_1, complete_and_exit_2)
2769 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2770 (Fdisplay_completion_list, display_completion_list_1)
2771 (Fminibuffer_completion_help, Fself_insert_and_exit)
2772 (Fexit_minibuffer, Fminibuffer_message): Move functions to
2773 minibuffer.el.
2774 (syms_of_minibuf): Remove corresponding initializations.
2775
2776 * keyboard.c (Qdeactivate_mark): New var.
2777 (command_loop_1): Use it to call `deactivate-mark'.
2778 (syms_of_keyboard): Initialize it.
2779
2780 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
2781 to another frame.
2782 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
2783 Don't call set_tty_color_mode.
2784 (store_frame_param): Reset previous_frame rather than call
2785 set_tty_color_mode.
2786 * term.c (set_tty_color_mode): Rewrite.
2787 * dispextern.h (set_tty_color_mode): New type.
2788 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
2789
2790 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2791
2792 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
2793 for generic chars, which do not exist any more in emacs-unicode.
2794
2795 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
2796
2797 * coding.c (detect_coding_emacs_mule)
2798 (Ffind_operation_coding_system): Fix typo.
2799
2800 2008-04-08 Jason Rumney <jasonr@gnu.org>
2801
2802 * w32uniscribe.c (SNAME): Extract only symbol name.
2803
2804 * w32font.h (struct w32_metric_cache): New struct.
2805 (w32font_info): Use it.
2806 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
2807 (CACHE_BLOCKSIZE): New constants.
2808
2809 * w32font.c (Qja, Qko, Qzh): New symbols.
2810 (syms_of_w32font): Initialise them.
2811 (font_matches_spec): Use them to filter by language.
2812 (recompute_cached_metrics): Remove function.
2813 (compute_metrics, clear_cached_metrics): New functions.
2814 (w32font_encode_char): Use them to manage metric cache.
2815 (w32font_text_extents): Cache metrics for all glyphs on demand.
2816 Delay converting glyph indices to WORD until needed.
2817 (w32font_open_internal): Initialize metric cache to empty.
2818 (registry_to_w32_charset): Charset should always be a symbol.
2819 (fill_in_logfont, list_all_matching_fonts): Family should
2820 always be a symbol.
2821
2822 2008-04-06 Jason Rumney <jasonr@gnu.org>
2823
2824 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
2825 Give up if glyph indices not supported. Use uniscribe obtained
2826 ABC widths for individual metrics. Map glyph clusters back to
2827 characters using fClusterStart flag. Return number of glyphs
2828 produced, not chars processed.
2829 (uniscribe_shape): Map char at FROM to current glyph.
2830
2831 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2832
2833 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
2834 Use SetMenuItemHierarchicalMenu.
2835
2836 2008-04-05 Jason Rumney <jasonr@gnu.org>
2837
2838 * image.c (pbm_load): Allow color values up to 65535.
2839 Throw an error if max_color_idx is outside the supported range.
2840 Report an error when image size is invalid.
2841 Read two bytes at a time when raw images have max_color_idx above 255.
2842
2843 2008-04-05 Eli Zaretskii <eliz@gnu.org>
2844
2845 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2846 cFileName a file name that includes `?' characters, use the 8+3
2847 alias in cAlternateFileName instead.
2848
2849 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
2850
2851 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
2852 append "CCL: Quitted" when the CCL program is quitted.
2853 (setup_ccl_program): Initialize ccl->quit_silently to zero.
2854
2855 * ccl.h (struct ccl_program): New member quit_silently.
2856
2857 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
2858
2859 * search.c (compile_pattern_1): Treat non-nil and non-string of
2860 search-spaces-regexp as nil.
2861
2862 * minibuf.c (Fassoc_string): Tweak docstring.
2863
2864 2008-04-05 Eli Zaretskii <eliz@gnu.org>
2865
2866 * dired.c (Ffile_attributes): Support inode numbers wider than 32
2867 bits. Remove ugly WINDOWSNT-specific kludge introduced on
2868 2008-03-14 to force inode be positive.
2869
2870 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
2871 _S_* ones, since we now use our own sys/stat.h.
2872 (stat, fstat): Don't mangle the inode number.
2873 (init_user_info): Don't restrict UID and GID to 0-60000 range.
2874
2875 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2876
2877 * frame.h (struct frame): Give one more bit to `visible' since we use
2878 values larger than 1 to indicate obscured frames on ttys.
2879
2880 * keymap.c (Qkeymap_canonicalize): New var.
2881 (Fmap_keymap_internal): New fun.
2882 (describe_map): Use keymap-canonicalize.
2883
2884 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
2885 (Fundo_boundary): Set them.
2886 (syms_of_undo): Initialize them.
2887 (record_point): Use them instead of last_point_position*.
2888 (last_undo_buffer): Change type.
2889
2890 2008-04-04 Jason Rumney <jasonr@gnu.org>
2891
2892 * w32font.c (w32font_text_extents): Use font's ascent and descent.
2893 (recompute_cached_metrics): Don't set ascent and descent per char.
2894
2895 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
2896 (uniscribe_check_otf): Add GC protection before consing.
2897 Rearrange loop for counting features.
2898
2899 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2900
2901 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
2902 buffer with byte-size of source buffer.
2903
2904 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
2905
2906 * callint.c (Fcall_interactively): Handle temporary region even
2907 when shift-select-mode is off.
2908
2909 2008-04-03 Jason Rumney <jasonr@gnu.org>
2910
2911 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
2912
2913 2008-04-03 Kenichi Handa <handa@m17n.org>
2914
2915 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
2916 (CATEGORY_MASK_UTF_16): Likewise.
2917 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
2918 binary file.
2919 (detect_coding): Add null-byte detection for a binary file.
2920 (detect_coding_system): Likewise.
2921
2922 2008-04-03 Jason Rumney <jasonr@gnu.org>
2923
2924 * w32uniscribe.c: New file.
2925
2926 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
2927
2928 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
2929
2930 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
2931 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
2932 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
2933 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
2934 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
2935 (Qphonetic): New symbols.
2936 (syms_of_w32font): Initialize them.
2937 (font_supported_scripts): Use them.
2938 (w32font_list_family): List all charsets.
2939 (w32font_text_extents, recompute_cached_metrics): Fix metric
2940 calculations.
2941 (w32_enumfont_pattern_entity): Make full_type a DWORD.
2942 Give opentype fonts their own format.
2943 (font_matches_spec): New arguments backend and logfont.
2944 Handle :otf spec for uniscribe backend.
2945 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
2946 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
2947
2948 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
2949 font backend.
2950 (globals_of_w32fns): Initialize uniscribe font backend.
2951
2952 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
2953 dependencies.
2954 (w32uniscribe.$(O)): New file to build.
2955 (FONT_OBJ): Include w32uniscribe.$(O).
2956 (LIBS): Add uniscribe libraries.
2957
2958 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
2959
2960 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
2961
2962 * callint.c (Vshift_select_mode): New var.
2963 (Finteractive): Document new ^ spec.
2964 (Fcall_interactively): Call handle-shift-selection if the ^ spec
2965 is present.
2966
2967 * keyboard.c (Vthis_command_keys_shift_translated): New var.
2968 (command_loop_1): Avoid running the direct display versions of
2969 forward-char and backward-char if shift-selection may occur.
2970 (read_key_sequence): Set Vthis_command_keys_shift_translated if
2971 shift-translation takes place.
2972
2973 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
2974 avoid clobbering by define-minor-mode.
2975
2976 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
2977 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2978
2979 * syntax.c (Fforward_word): Add ^ interactive spec.
2980
2981 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
2982 (Fscroll_right): Add ^ interactive spec.
2983
2984 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
2985
2986 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
2987
2988 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
2989
2990 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
2991
2992 2008-03-31 Juri Linkov <juri@jurta.org>
2993
2994 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
2995
2996 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
2997
2998 * gtkutil.c (xg_set_geometry): Fix indentation.
2999 (xg_resize_outer_widget): Remove.
3000 (x_wm_size_hint_off): Fix indentation.
3001 (xg_frame_set_char_size): Call flush_and_sync after
3002 gtk_window_resize.
3003 (x_wm_set_size_hint): Pass NULL as geometry window to
3004 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
3005 Add menu bar and tool bar height to base height.
3006 (xg_update_frame_menubar, free_frame_menubar)
3007 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3008 (update_frame_tool_bar, free_frame_tool_bar):
3009 Change xg_resize_outer_widget to xg_frame_set_char_size.
3010
3011 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
3012
3013 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
3014 (Fdbus_call_method): New parameter TIMEOUT.
3015 (dbus-send-signal): Optimize UNGCPRO call.
3016
3017 2008-03-29 Juri Linkov <juri@jurta.org>
3018
3019 * window.c (Fdisplay_buffer): Move call to
3020 Vsplit_window_preferred_function out of conditions that check
3021 if window is eligible for vertical splitting.
3022 When Vsplit_window_preferred_function is non-nil, call it and use
3023 its non-nil return value as window. Otherwise, continue doing
3024 vertical splitting using Fsplit_window with arg horflag=nil.
3025 (syms_of_window) <Vsplit_window_preferred_function>: Change the
3026 default value from `split-window' to nil.
3027
3028 2008-03-29 Juri Linkov <juri@jurta.org>
3029
3030 * callint.c (Fcall_interactively): Revert 2008-03-16 change
3031 for interactive code letters 'b' and 'B'.
3032
3033 2008-03-29 Eli Zaretskii <eliz@gnu.org>
3034
3035 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
3036 multibyte string.
3037
3038 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3039
3040 * keyboard.c (pending_funcalls): New var.
3041 (timer_check): Run it.
3042 (syms_of_keyboard): Initialize it.
3043 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
3044 (Vdelete_terminal_functions): New vars.
3045 (syms_of_terminal): Initialize them.
3046 (Fdelete_terminal): Run delete-terminal-functions.
3047 * xdisp.c (safe_eval): Rewrite.
3048 (safe_call2): New fun.
3049 * frame.c (Qdelete_frame_functions): New var.
3050 (syms_of_frame): Initialize it.
3051 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
3052 * lisp.h (safe_call2, pending_funcalls): Declare.
3053
3054 2008-03-28 Andreas Schwab <schwab@suse.de>
3055
3056 * indent.c (Fmove_to_column): Move declaration before statements.
3057
3058 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
3059
3060 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
3061 (struct frame): Use bit fields for boolean vars.
3062
3063 * process.c (server_accept_connection): Simplify naming.
3064 (emacs_get_tty_pgrp): Use SDATA.
3065
3066 * coding.c (decode_coding_object): Fix last change.
3067
3068 2008-03-27 Jason Rumney <jasonr@gnu.org>
3069
3070 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
3071
3072 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
3073
3074 * charset.c (Fdefine_charset_internal): Change the way of
3075 registering charsets in Vcharset_order_list.
3076 (syms_of_charset): Make the charset `eight-bit' supplementary.
3077
3078 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
3079
3080 * regex.c (EXTEND_BUFFER): Change order of pointer addition
3081 operations, to avoid having the difference between pointers
3082 overflow.
3083
3084 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3085
3086 * indent.c (check_display_width): New fun.
3087 (scan_for_column): Use it.
3088
3089 * data.c (syms_of_data): Mark most-positive-fixnum and
3090 most-negative-fixnum as constants.
3091
3092 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
3093
3094 * indent.c (scan_for_column): Extract from current_column_1.
3095 Merge with the same code from Fmove_to_column.
3096 (current_column_1, Fmove_to_column): Use it.
3097
3098 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3099
3100 * keymap.c (map_keymap_internal): New fun.
3101 (map_keymap): Use it.
3102 (Fmap_keymap_internal): New fun.
3103 (Fmap_keymap): Remove left-out test from before make_save_value.
3104
3105 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
3106
3107 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
3108 Use XCAR/XCDR.
3109
3110 * process.h (struct Lisp_Process): Remove filter_multibyte.
3111 * process.c (QCfilter_multibyte): Remove.
3112 (setup_process_coding_systems): Don't use filter_multibyte.
3113 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
3114 (read_process_output): Don't adjust multibyteness to filter_multibyte.
3115 (Fset_process_filter_multibyte): Change the coding-system to
3116 approximate the previous behavior.
3117 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
3118 coding-system.
3119
3120 * coding.c (decode_coding_object): When not decoding into a buffer,
3121 obey the coding system's preference of (uni|multi)byte.
3122
3123 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3124
3125 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
3126 every char is changed and has a different byte-length.
3127 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
3128 Fix int -> EMACS_INT.
3129
3130 2008-03-23 David Hansen <david.hansen@gmx.net>
3131
3132 * dbusbind.c (xd_read_message): Remove extra copying of message
3133 strings. Check for NULL `interface' or `member'.
3134
3135 2008-03-22 Eli Zaretskii <eliz@gnu.org>
3136
3137 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3138 cFileName a file name that includes `?' characters, use the 8+3
3139 alias in cAlternateFileName instead.
3140
3141 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
3142
3143 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
3144
3145 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3146
3147 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
3148 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
3149 work on current_buffer only instead (that was already the case
3150 for some of the code anyway).
3151 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
3152 (temp_set_point, temp_set_point_both): Use EMACS_INT.
3153 (SET_PT, SET_PT_BOTH): Adjust.
3154 * intervals.h (set_point, temp_set_point, set_point_both)
3155 (temp_set_point_both): Remove redundant declarations.
3156
3157 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3158
3159 * fileio.c (Finsert_file_contents):
3160 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
3161 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
3162 when buffer != current_buffer anyway.
3163
3164 2008-03-20 Andreas Schwab <schwab@suse.de>
3165
3166 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
3167 as default.
3168
3169 2008-03-19 Jason Rumney <jasonr@gnu.org>
3170
3171 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
3172 (syms_of_w32fns): Initialize them.
3173 (HOURGLASS_ID): New constant.
3174 (x_window_to_frame): Don't check hourglass_window.
3175 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
3176 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
3177 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
3178 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
3179 Only change the cursor if hourglass is not active.
3180 (Fx_create_frame): Initialize frame's current_cursor.
3181 (hourglass_atimer): Remove.
3182 (hourglass_started): New function.
3183 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
3184 (show_hourglass): Adapt to w32, changing argument to frame.
3185
3186 * w32term.h (struct w32_output): Remove hourglass_window.
3187 Add current_cursor.
3188
3189 * eval.c (call_debugger, Fsignal):
3190 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
3191 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
3192 (Fexecute_extended_command, cancel_hourglass_unwind):
3193 * minibuf.c (read_minibuf):
3194 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
3195
3196 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3197
3198 * window.c (run_funs): New fun.
3199 (run_window_configuration_change_hook): Use it to run the buffer-local
3200 and the global part of the hook.
3201
3202 * xdisp.c (format_mode_line_unwind_data): Add window argument.
3203 (unwind_format_mode_line): Restore selected window.
3204 (x_consider_frame_title, Fformat_mode_line): Set selected window.
3205
3206 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3207
3208 * editfns.c (Fchar_equal): Check they are valid characters.
3209
3210 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
3211
3212 2008-03-17 Andreas Schwab <schwab@suse.de>
3213
3214 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
3215 against a charset.
3216
3217 * lisp.h (Fbuffer_list): Declare.
3218
3219 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
3220
3221 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
3222 handlebox_widget is != 0.
3223
3224 2008-03-16 Juri Linkov <juri@jurta.org>
3225
3226 * callint.c (Fcall_interactively): For interactive code letters
3227 'b' and 'B' put the buffer list into the list of default "future"
3228 values of the minibuffer.
3229
3230 2008-03-16 Andreas Schwab <schwab@suse.de>
3231
3232 * keyboard.c (read_key_sequence): Fix downcasing of letters with
3233 modifiers.
3234
3235 * regex.c (re_match_2_internal): Correct matching of a charset
3236 against latin-1 characters.
3237
3238 2008-03-16 Kenichi Handa <handa@m17n.org>
3239
3240 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
3241 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
3242 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
3243 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
3244 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
3245 CHAR_STRING_ADVANCE.
3246 (produce_chars): Fix for the case that the source and the
3247 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
3248 instead of CHAR_STRING_ADVANCE.
3249 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
3250 STRING_CHAR_ADVANCE.
3251
3252 2008-03-15 Andreas Schwab <schwab@suse.de>
3253
3254 * regex.c (re_match_2_internal): Correct matching of eight bit
3255 characters in unibyte strings.
3256
3257 2008-03-15 Martin Rudalics <rudalics@gmx.at>
3258
3259 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
3260 at end of range when it coincides with the end of the buffer.
3261
3262 2008-03-14 Eli Zaretskii <eliz@gnu.org>
3263
3264 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
3265
3266 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
3267
3268 2008-03-14 Jason Rumney <jasonr@gnu.org>
3269
3270 * editfns.c (initial_tz): New variable.
3271 (syms_of_editfns): Initialize it.
3272 (Fset_time_zone_rule): Set it when first called.
3273 Use it when TZSTRING is nil.
3274
3275 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
3276 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
3277 (monitor_from_point_fn, get_monitor_info_fn): New globals.
3278 (globals_of_w32fns): Initialize them.
3279 (compute_tip_xy): Use them to position tooltips.
3280
3281 2008-03-14 Glenn Morris <rgm@gnu.org>
3282
3283 * emacs.c (main): Revert previous change.
3284 (standard_args): Revert -internal-script back to -scriptload,
3285 and remove the long-option form.
3286
3287 2008-03-13 Glenn Morris <rgm@gnu.org>
3288
3289 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
3290 Remove option -enable-font-backend.
3291
3292 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3293
3294 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
3295
3296 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
3297
3298 * xterm.c (x_connection_closed): For GTK: If this is the last
3299 terminal just exit without closing the display.
3300
3301 2008-03-11 Jason Rumney <jasonr@gnu.org>
3302
3303 * w32font.c (w32font_full_name): Use floor to round.
3304
3305 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
3306
3307 * sound.c (alsa_configure): Declare vol at beginning of block.
3308
3309 * fontset.c (Ffontset_info): Remove extra semicolon.
3310
3311 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3312
3313 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
3314 size of resulting string.
3315
3316 2008-03-10 Jason Rumney <jasonr@gnu.org>
3317
3318 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
3319
3320 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3321
3322 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
3323 Don't pretend as if characters with display property haven't been
3324 consumed for string-replacing-string case.
3325
3326 2008-03-08 Kim F. Storm <storm@cua.dk>
3327
3328 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
3329 (get_next_display_element, next_element_from_string)
3330 (next_element_from_ellipsis, next_element_from_buffer): Use it.
3331
3332 2008-03-08 Andreas Schwab <schwab@suse.de>
3333
3334 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
3335
3336 2008-03-06 Jason Rumney <jasonr@gnu.org>
3337
3338 * w32font.c (w32_registry): Take font_type argument. Use ANSI
3339 when charset not specified. Only translate ANSI to unicode when
3340 font_type is truetype.
3341 (w32font_coverage_ok): New function.
3342 (add_font_entity_to_list): Use it to filter unsuitable fonts.
3343
3344 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
3345
3346 * lread.c (Fread_char): Resolve modifiers.
3347 (Fread_char_exclusive): Likewise.
3348
3349 * character.c (char_resolve_modifier_mask): New function.
3350 (char_string): Use char_resolve_modifier_mask.
3351 (Fchar_resolve_modifiers): New function.
3352 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
3353 function.
3354
3355 2008-03-04 Jason Rumney <jasonr@gnu.org>
3356
3357 * makefile.w32-in: Always include w32font.c in the build.
3358 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
3359
3360 2008-03-04 Andreas Schwab <schwab@suse.de>
3361
3362 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
3363 (versionclean): Likewise.
3364
3365 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
3366
3367 * .cvsignore: Add oo.
3368
3369 2008-03-03 Andreas Schwab <schwab@suse.de>
3370
3371 * coding.c (decode_coding_object): Inhibit gap shrinking while
3372 decoding in place.
3373
3374 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
3375
3376 * w32term.c: Remove unused include "gnu.h".
3377 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
3378
3379 * gnu.h: Rename to ...
3380 * emacs-icon.h: ... this.
3381 * xterm.c: Use emacs-icon.h instead of gnu.h.
3382 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
3383
3384 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
3385
3386 * w32font.c: Include math.h.
3387
3388 2008-03-03 Jason Rumney <jasonr@gnu.org>
3389
3390 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
3391 Compute options separately.
3392 (w32font_open_internal): Set glyph_idx before caching metrics.
3393
3394 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
3395 Define if system headers don't.
3396 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
3397 (w32font_encode_char): Don't declare here.
3398
3399 * w32font.c (Quniscribe, QCformat): New symbols.
3400 (syms_of_w32font): Define them.
3401 (w32font_has_char): Indicate uncertainty.
3402 (w32font_encode_char): Encode as glyph point. Make static.
3403 (recompute_cached_metrics): New function.
3404 (w32font_open_internal): Use it. Set font to use glyph points
3405 initially. Set format based on type of font.
3406 (w32font_text_extents, w32font_draw): Optionally use glyph points.
3407 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
3408 on it. Set format based on information available here.
3409 (add_font_entity_to_list): Identify backend based on opentype_only.
3410
3411 2008-03-02 Andreas Schwab <schwab@suse.de>
3412
3413 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
3414
3415 * coding.c (decode_coding_big5, produce_chars):
3416 Fix typos in last change.
3417
3418 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
3419
3420 * gnu.h: New icon.
3421
3422 2008-03-02 Kenichi Handa <handa@m17n.org>
3423
3424 * coding.c (decode_coding_utf_8): When eol-type of CODING is
3425 `dos', don't decode '\r' if that is the last in the source.
3426 (decode_coding_utf_16, decode_coding_emacs_mule)
3427 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3428 (decode_coding_raw_text, decode_coding_charset): Likewise.
3429 (produce_chars): Don't decode EOL here. Use EMACS_INT.
3430
3431 2008-03-01 Jason Rumney <jasonr@gnu.org>
3432
3433 * w32font.c (w32font_full_name): Report point size for scalable fonts.
3434
3435 2008-03-01 Kim F. Storm <storm@cua.dk>
3436
3437 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
3438
3439 2008-03-01 Jason Rumney <jasonr@gnu.org>
3440
3441 * w32font.c (w32font_full_name): New function.
3442 (w32font_open_internal): Use it.
3443
3444 2008-03-01 Kim F. Storm <storm@cua.dk>
3445
3446 * dispnew.c (line_draw_cost): Fix invalid glyph check.
3447
3448 2008-03-01 Jason Rumney <jasonr@gnu.org>
3449
3450 * font.c (font_unparse_fcname): Increase len when style is a symbol.
3451
3452 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
3453
3454 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
3455 xg_frame_resized when the event is for the edit widget.
3456
3457 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
3458
3459 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
3460 set_char_size.
3461 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
3462 operations on widgets here. Just set frame size if needed.
3463 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
3464 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
3465 (x_wm_set_size_hint): Set size hints on the edit widget only, not
3466 the whole frame.
3467 (xg_create_tool_bar): Move attachement of the tool bar to
3468 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
3469 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
3470
3471 2008-03-01 Jason Rumney <jasonr@gnu.org>
3472
3473 * w32fns.c (w32_msg_pump): Disable debug code.
3474
3475 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3476
3477 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
3478
3479 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
3480
3481 * xdisp.c (next_overlay_string): Don't set
3482 overlay_strings_at_end_processed_p if we're currently reading from
3483 a display string.
3484
3485 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
3486
3487 * xdisp.c (get_overlay_strings_1): Fix typo.
3488
3489 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
3490
3491 * xdisp.c (get_overlay_strings_1): Add missing argument type.
3492
3493 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
3494
3495 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
3496
3497 * xdisp.c (display_mode_element): Cancel the previous change.
3498 (decode_mode_spec): Likewise.
3499 (handle_auto_composed_prop): Don't make composition if it->string
3500 is a string.
3501
3502 2008-02-27 Kim F. Storm <storm@cua.dk>
3503
3504 * lisp.h (GLYPH): Change type from int to struct with separate char
3505 and face_id members.
3506 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
3507 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
3508 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
3509 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
3510 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
3511 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
3512 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
3513 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
3514 handle new Lisp glyph code encoding, either an integer or a cons.
3515
3516 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
3517 (GLYPH_ALIAS): Delete.
3518 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
3519 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
3520 (GLYPH_FROM_CHAR): Replace macro by ...
3521 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
3522
3523 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
3524 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
3525 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
3526 (GLYPH_INVALID_P): New macro.
3527 (spec_glyph_lookup_face): Update prototype.
3528
3529 * dispnew.c (line_draw_cost): Adapt to new glyph type.
3530 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
3531 new glyph code encoding.
3532 (spec_glyph_lookup_face): No return value; update passed glyph instead.
3533 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
3534
3535 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3536 Adapt to new glyph type and new glyph code encoding.
3537
3538 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
3539
3540 * indent.c (current_column, current_column_1, Fmove_to_column)
3541 (compute_motion): Adapt to new glyph code encoding.
3542
3543 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
3544
3545 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
3546
3547 * process.c (wait_reading_process_output): Check for window
3548 changes caused by timers.
3549 Suggested by Johan Bockgård.
3550
3551 2008-02-27 Glenn Morris <rgm@gnu.org>
3552
3553 * emacs.c (USAGE1): Add `--disable-font-backend'.
3554
3555 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
3556
3557 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
3558 is made to the buffer.
3559
3560 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3561
3562 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
3563 (face_at_string_position):
3564 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3565 (face_at_string_position):
3566 * xdisp.c (display_string, next_overlay_change):
3567 * buffer.h (overlays_at):
3568 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
3569 Update callers.
3570
3571 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
3572
3573 * editfns.c (Fformat): Doc fix.
3574
3575 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
3576
3577 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
3578 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
3579 (Ffont_otf_alternates, Fquery_font): Doc fixes.
3580
3581 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3582
3583 * buffer.c (Fbuffer_swap_text): New function.
3584 (syms_of_buffer): Defsubr it.
3585
3586 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
3587
3588 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
3589
3590 2008-02-25 Jason Rumney <jasonr@gnu.org>
3591
3592 * w32font.c (w32font_draw): Draw one character at a time when padding.
3593
3594 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3595
3596 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
3597 Handle a nil arg. Use run_window_configuration_change_hook.
3598 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
3599 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
3600 Use run_window_configuration_change_hook.
3601
3602 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3603
3604 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
3605 1-pixel width.
3606
3607 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3608
3609 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
3610 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
3611 if the glyph in the font is zero pixel with.
3612
3613 * dispextern.h (struct glyph_string): New member padding_p.
3614
3615 * w32font.c (w32font_draw): Pay attention to s->padding_p.
3616
3617 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
3618
3619 * xfont.c (xfont_draw): Pay attention to s->padding_p.
3620
3621 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
3622
3623 * font.c: If the font driver doesn't have `shape' function, return Qnil.
3624
3625 2008-02-25 Jason Rumney <jasonr@gnu.org>
3626
3627 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
3628
3629 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
3630
3631 Allow fine-grained image-cache flushing.
3632 * dispextern.h (struct image): Add `dependencies' field.
3633 (clear_image_caches): Change arg to Lisp_Object.
3634 * image.c (make_image): Initialize `dependencies' field.
3635 (clear_image_cache): Change arg to allow fine-grained flushing.
3636 Perform the flush even if image-cache-eviction-delay is nil.
3637 (clear_image_caches): Change arg to Lisp_Object.
3638 (Fclear_image_cache): Expand meaning of the argument.
3639 (mark_image): Mark `dependencies' field.
3640 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
3641 (lface_hash): Use XHASH rather than XFASTINT.
3642 (face_at_buffer_position): Fix int -> EMACS_INT position.
3643 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
3644 (select_frame_for_redisplay): Remove code duplication.
3645 (redisplay_internal): Adapt arg to call to clear_image_caches.
3646
3647 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
3648
3649 * s/vms4-0.h:
3650 * s/vms4-2.h:
3651 * s/vms4-4.h:
3652 * s/vms5-5.h: Remove, unused.
3653
3654 * s/irix5-2.h:
3655 * s/irix6-0.h:
3656 * s/riscos5.h:
3657 * s/mach-bsd4-3.h:
3658 * m/mips4.h: Remove files for obsolete systems.
3659
3660 * Makefile.in:
3661 * filelock.c:
3662 * unexmips.c:
3663 * m/hp9000s300.h:
3664 * m/iris4d.h:
3665 * s/aix3-1.h:
3666 * s/hpux.h:
3667 * s/msdos.h:
3668 * s/usg5-0.h:
3669 * s/usg5-2-2.h:
3670 * s/usg5-2.h:
3671 * s/usg5-3.h: Remove references to obsolete variables.
3672
3673 * s/irix5-0.h: Remove, move all the contents ...
3674 * s/irix6-5.h: ... here. Simplify.
3675 * config.in: Regenerate.
3676
3677 2008-02-24 Jason Rumney <jasonr@gnu.org>
3678
3679 * w32term.c (x_draw_glyph_string_background): Clear the background
3680 manually when cleartype is in use.
3681 (x_draw_glyph_string_foreground): Draw text transparently when
3682 cleartype is in use.
3683
3684 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
3685 a font into it unless we have to.
3686
3687 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3688
3689 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3690 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
3691
3692 2008-02-18 Jason Rumney <jasonr@gnu.org>
3693
3694 * w32fns.c (Fw32_shell_execute): Encode parameters.
3695
3696 2008-02-09 Eli Zaretskii <eliz@gnu.org>
3697
3698 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
3699
3700 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
3701
3702 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
3703
3704 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3705
3706 * xterm.c (x_set_offset): Don't change the gravity if
3707 CHANGE_GRAVITY is -1.
3708
3709 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
3710
3711 * fileio.c (auto_save_error_occurred): New var.
3712 (auto_save_error): Set it.
3713 (Fdo_auto_save): Don't overwrite the error message if an auto-save
3714 error occurred.
3715
3716 2008-02-23 Eli Zaretskii <eliz@gnu.org>
3717
3718 * w32.c (globals_of_w32): Add initializations for
3719 g_b_init_get_sid_sub_authority and
3720 g_b_init_get_sid_sub_authority_count.
3721
3722 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3723
3724 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
3725 (font_parse_xlfd): Use them for sanity check.
3726 (Finternal_set_font_style_table): Make sure the table is bijective.
3727
3728 Consolidate the image_cache to the terminal struct.
3729 * termhooks.h (P_): Remove redundant def.
3730 (struct terminal): New field `image_cache'.
3731 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
3732 of FRAME_X_IMAGE_CACHE.
3733 * xterm.h (struct x_display_info): Remove image_cache field.
3734 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3735 * w32term.h (struct w32_display_info): Remove image_cache field.
3736 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3737 * macterm.h (struct mac_display_info): Remove image_cache field.
3738 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3739 * xterm.c (x_term_init):
3740 * w32term.c (w32_term_init):
3741 * macterm.c (mac_term_init): Set the image_cache in the terminal.
3742 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
3743 Remove declarations.
3744 (clear_image_caches, mark_image_cache): New declarations.
3745 * xfaces.c (clear_face_cache):
3746 * xdisp.c (redisplay_internal): Use clear_image_caches.
3747 * image.c (clear_image_cache): Don't check that a frame is on
3748 a window-system before checking if it shares the same cache.
3749 (clear_image_caches): New function.
3750 (Fclear_image_cache): Use it.
3751 (mark_image): Move from allo.c.
3752 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
3753 * alloc.c (mark_image, mark_image_cache): Move to image.c.
3754 (mark_object): Don't call mark_image_cache for frames.
3755 (mark_terminals): Call mark_image_cache.
3756
3757 * lisp.h (Fdelete_terminal): Declare.
3758
3759 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
3760 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
3761 wrong_type_argument.
3762
3763 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
3764
3765 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
3766 malayalam.el, and tamil.el. Add sinhala.el.
3767
3768 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
3769
3770 * xterm.c (x_connection_closed): Consolidate identical tests.
3771 (x_delete_terminal): Don't crash if called via x_connection_closed.
3772
3773 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
3774
3775 * xdisp.c (decode_mode_spec): New arg string.
3776 (display_mode_element): Adjust for the above change.
3777
3778 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3779
3780 * callint.c (Fcall_interactively): Use AREF.
3781
3782 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3783
3784 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
3785
3786 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
3787
3788 * xfns.c (Fx_show_tip): Set string to " " if empty.
3789
3790 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
3791
3792 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
3793 with Qt.
3794
3795 2008-02-17 Kenichi Handa <handa@m17n.org>
3796
3797 * ftfont.c (ftfont_shape): Return Lispy number.
3798
3799 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
3800 for GCs.
3801 (Finternal_set_font_selection_order): Call font_update_sort_order
3802 only when enable_font_backend is set.
3803 (realize_x_face): Set face->font_info to that of default face only
3804 when enable_font_backend is set.
3805
3806 * xdisp.c (handle_composition_prop): Set it->c to the fist
3807 characte of the composed region.
3808 (fill_composite_glyph_string): Set base_face->font_info to
3809 s->font_info. Get a face for ascii from base_face->ascii_face.
3810 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
3811 with a face already decided.
3812 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
3813 non-negative.
3814 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
3815 call font_prepare_composition unconditionally.
3816
3817 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
3818
3819 * xterm.h (struct x_display_info): New member font.
3820
3821 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
3822 (x_set_mouse_face_gc, x_new_font): Likewise.
3823 (x_term_init): Setup display_info->font.
3824 (x_delete_terminal): Free display_info->font.
3825
3826 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
3827
3828 * ftxfont.c (ftxfont_default_fid): Delete it.
3829 (ftxfont_open): Set xfont->fid to 0.
3830 (ftxfont_end_for_frame): Clear data specific to the frame and the
3831 font-driver.
3832
3833 * xftfont.c (xftfont_default_fid): Delete it.
3834 (xftfont_open): Set xfont->fid to 0.
3835
3836 * fontset.c (FONTSET_OBJLIST): New macro.
3837 (fontset_find_font): Update font-object list of the fontset.
3838 (free_realized_fontset): New function.
3839 (free_face_fontset): Call free_realized_fontset.
3840 (Ffont_info): Call font_close_object only when enable_font_backend
3841 is set.
3842
3843 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
3844 [HAVE_NTGUI]: Include w32term.h.
3845 [MAC_OS]: Include macterm.ch.
3846 (font_otf_ValueRecord): Use make_number.
3847 (font_finish_cache): Fix handling of reference count.
3848 (font_clear_cache): Update num_fonts.
3849 (font_open_entity): Update smallest_char_width and
3850 smallest_font_height of the frame.
3851 (font_close_object): Update num_fonts.
3852 (Fclear_font_cache): Fix finding the target cache data.
3853
3854 2008-02-16 Glenn Morris <rgm@gnu.org>
3855
3856 * fontset.c (Finternal_char_font): Fix compilation warning.
3857
3858 2008-02-16 Eli Zaretskii <eliz@gnu.org>
3859
3860 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
3861 instead of char arrays. Enlarge the size of array passed to
3862 get_token_information.
3863
3864 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
3865 warnings.
3866
3867 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
3868
3869 * .gdbinit: Don't set `args', it breaks gdb --args.
3870
3871 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
3872
3873 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
3874 within a narrowed buffer.
3875
3876 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
3877
3878 * coding.c (decode_coding_object, encode_coding_object):
3879 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
3880
3881 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3882
3883 * coding.c (coding_set_destination): Use BEG_BYTE rather than
3884 hardcoding 1.
3885 (detect_coding_system):
3886 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
3887 (string_char_to_byte, string_byte_to_char, insert_from_gap):
3888 * insdel.c (insert_from_gap):
3889 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
3890 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
3891 (string_to_multibyte):
3892 * character.c (chars_in_text, multibyte_chars_in_text):
3893 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
3894
3895 * character.h (FETCH_STRING_CHAR_ADVANCE)
3896 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
3897 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
3898 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
3899
3900 * casefiddle.c (casify_region): Only call after-change and composition
3901 functions on the part of the region that was changed.
3902
3903 * keyboard.c (read_avail_input):
3904 * frame.c (Fdelete_frame): Call Fdelete_terminal.
3905
3906 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3907
3908 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
3909 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
3910
3911 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
3912
3913 * w32menu.c (push_submenu_start, push_submenu_end)
3914 (push_left_right_boundary, push_menu_pane, push_menu_item):
3915 * keyboard.c (read_key_sequence): Don't pass args with side effects
3916 to AREF, it fails when compiling with -DENABLE_CHECKING.
3917
3918 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
3919
3920 * Makefile.in (${lispsource}international/charprop.el):
3921 Delete this target.
3922
3923 * search.c (boyer_moore): Fix incorrect synching of the trunk and
3924 emacs-unicode-2.
3925
3926 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3927
3928 * terminal.c (Fdelete_terminal): Clean up the `force' path.
3929
3930 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3931
3932 * frame.c (Qnoelisp): New symbol.
3933 (syms_of_frame): Initialize it.
3934 (Fdelete_frame): Use it to distinguish a mere `force' passed from
3935 someharmles Elisp code, from a strong `force' from x_connection_closed.
3936 * frame.h (Qnoelisp): Declare.
3937 * xterm.c (x_connection_closed): Pass `noelisp'.
3938
3939 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
3940 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
3941 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
3942 rather than `int' for the type of `type'.
3943
3944 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
3945
3946 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
3947
3948 * Makefile.in (GNUC): Remove support for gcc-1.x.
3949
3950 2008-02-10 Richard Stallman <rms@gnu.org>
3951
3952 * lisp.h (ASET): Use AREF, not ASLOT.
3953
3954 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3955
3956 * lisp.h (ASET): Check bounds.
3957
3958 2008-02-10 Glenn Morris <rgm@gnu.org>
3959
3960 * buffer.c (mode-name): Doc fix.
3961
3962 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3963
3964 * Makefile.in:
3965 * emacs.c:
3966 * gmalloc.c:
3967 * keyboard.c:
3968 * lisp.h:
3969 * m/ibm370aix.h:
3970 * process.c:
3971 * regex.c:
3972 * s/hpux.h:
3973 * sysdep.c:
3974 * sysselect.h:
3975 * systty.h:
3976 * unexec.c:
3977 * w32term.c:
3978 * xsmfns.c:
3979 * xterm.c: Remove code that deals with obsolete variables.
3980
3981 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
3982
3983 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
3984 nothing else needs it anymore.
3985
3986 2008-02-09 Eli Zaretskii <eliz@gnu.org>
3987
3988 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
3989 instead of unibyte_char_to_multibyte.
3990
3991 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3992
3993 * s/gnu-linux.h: Remove commented out code.
3994
3995 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
3996
3997 * Makefile.in: Update what RMS says about using autoconf.
3998 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
3999 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
4000 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
4001 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
4002
4003 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4004
4005 * keymap.c (Fkey_description): Move side effect outside of macro call.
4006
4007 * xfaces.c (Finternal_make_lisp_face):
4008 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
4009
4010 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
4011 (syms_of_fontset): Use ASET.
4012
4013 * fns.c (concat): Move side effect outside of macro call.
4014 (hash_clear): Use ASET.
4015
4016 2008-02-08 Richard Stallman <rms@gnu.org>
4017
4018 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
4019 If FORCE, and frame has a surrogate minibuffer for another frame,
4020 delete the other frame first.
4021
4022 2008-02-07 Timo Savola <timo.savola@iki.fi>
4023
4024 * xterm.c (x_detect_focus_change): Handle embed client message.
4025 (handle_one_xevent): Ditto.
4026 (handle_one_xevent): If embedded and we get a button press/release,
4027 request focus.
4028 (xembed_set_info, xembed_send_message): New functions.
4029 (x_make_frame_visible): Call xembed_set_info if embedded.
4030 (x_make_frame_invisible): Call xembed_set_info if embedded.
4031 (x_term_init): Initialize Xatom_XEMBED.
4032 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
4033 (x_iconify_frame): Ditto.
4034
4035 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
4036 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
4037 (enum xembed_modifier, enum xembed_accelerator): New.
4038 (xembed_set_info, xembed_send_message): Declare.
4039 (FRAME_X_EMBEDDED_P): New.
4040
4041 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
4042 gtk_plug_new.
4043
4044 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
4045 window ID of a frame.
4046 (x_window): Reparent frame if embedded.
4047 (Fx_create_frame): Don't set border width if embedded.
4048
4049 * emacs.c (USAGE3): Add --parent-id.
4050 (standard_args): Ditto.
4051
4052 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
4053
4054 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
4055
4056 2008-02-07 Jim Meyering <meyering@redhat.com>
4057
4058 Use "do...while (0)", not "if (1)...else" in macro definitions.
4059 The latter provokes a warning from gcc about the empty else, when
4060 followed by ";". Also, without that trailing semicolon, it would
4061 silently swallow up any following statement.
4062 * syntax.h (SETUP_SYNTAX_TABLE)
4063 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
4064 * buffer.h (DECODE_POSITION): Likewise.
4065 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
4066 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
4067 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
4068 (FETCH_CHAR_ADVANCE): Likewise.
4069 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
4070
4071 2008-02-07 Jim Meyering <meyering@redhat.com>
4072
4073 * lread.c [lint]: Don't include <sys/inode.h>.
4074
4075 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
4076
4077 * xselect.c (x_handle_dnd_message):
4078 * xmenu.c (digest_single_submenu, xmenu_show):
4079 * xdisp.c (with_echo_area_buffer_unwind_data)
4080 (format_mode_line_unwind_data, unwind_format_mode_line)
4081 (display_menu_bar):
4082 * eval.c (Ffetch_bytecode):
4083 * doc.c (store_function_docstring):
4084 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
4085 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
4086 * buffer.c (add_overlay_mod_hooklist): Use ASET.
4087
4088 2008-02-07 Kenichi Handa <handa@m17n.org>
4089
4090 * ftxfont.c (ftxfont_open): Don't set
4091 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
4092
4093 * ftfont.c (ftfont_open): Fix previous change.
4094
4095 2008-02-06 Jason Rumney <jasonr@gnu.org>
4096
4097 * w32font.c (w32font_text_extents): Fill in lbearing metric.
4098 Use cached metrics for ASCII characters.
4099 (w32font_open_internal): Don't set font's owning_frame.
4100 Cache metrics for ASCII characters.
4101
4102 * w32font.h (struct w32font_info): Add ascii_metrics.
4103 Remove owning_frame.
4104
4105 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
4106
4107 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
4108 to negative value.
4109
4110 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
4111
4112 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
4113
4114 * charset.c (syms_of_charset): Set QCtest and Qeq.
4115
4116 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
4117
4118 * process.c (Fstart_process):
4119 * callproc.c (Fcall_process): Handle the case where
4120 Funhandled_file_name_directory returns nil.
4121
4122 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
4123 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
4124 * font.c (check_gstring): Use them and AREF to access the vector before
4125 we know it's really a gstring.
4126 (Ffont_shape_text): Fix typo.
4127 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
4128
4129 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
4130 Declare.
4131
4132 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
4133
4134 2008-02-05 Jason Rumney <jasonr@gnu.org>
4135
4136 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
4137 Set smallest_font_height and smallest_char_width in display info.
4138
4139 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
4140
4141 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
4142
4143 2008-02-05 Miles Bader <miles@gnu.org>
4144
4145 * xfaces.c (get_lface_attributes, merge_named_face)
4146 (lookup_named_face, lookup_derived_face, realize_named_face):
4147 Revert 2008-02-01 change by cyd@stupidchicken.com.
4148
4149 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
4150
4151 * fontset.c (Ffontset_info): Handle the case of inhibitting the
4152 fallback fonts.
4153 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
4154
4155 2008-02-04 Jason Rumney <jasonr@gnu.org>
4156
4157 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
4158 set full_name.
4159 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
4160
4161 2008-02-03 Jason Rumney <jasonr@gnu.org>
4162
4163 * makefile.w32-in (OBJ1): Include font.o here.
4164 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
4165
4166 2008-02-02 Jason Rumney <jasonr@gnu.org>
4167
4168 * makefile.w32-in (temacs): Bump EMHEAP to 21.
4169
4170 2008-02-01 Jason Rumney <jasonr@gnu.org>
4171
4172 * s/cygwin.h: Define VIRT_ADDR_VARIES.
4173
4174 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
4175
4176 2008-02-01 Andreas Schwab <schwab@suse.de>
4177
4178 * Makefile.in (shortlisp, lisp): Update for rename of
4179 ../lisp/language/myanmar.el.
4180
4181 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
4182
4183 * xfaces.c (get_lface_attributes): Delete function.
4184 (merge_named_face, lookup_named_face, lookup_derived_face)
4185 (realize_named_face): Call lface_from_face_name directly, and use
4186 the fact that merge_face_vectors does not alter its FROM argument.
4187
4188 2008-02-01 Jason Rumney <jasonr@gnu.org>
4189
4190 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
4191 input in the default locale. Handle non-Unicode multibyte input.
4192
4193 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4194
4195 * fontset.c (reorder_font_vector): Exclude nil elements from the
4196 font group. Don't try multiple fonts.
4197 (fontset_font): Adjust for the above change.
4198 (Finternal_char_font): Return nil if the found font doesn't
4199 contain the character ch.
4200
4201 * Makefile.in (lisp, shortlisp): Add cham.el.
4202
4203 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4204
4205 * font.h (FONTP): Make it return 1 also for a font-object.
4206
4207 * .gdbinit (xfontset): New function.
4208
4209 * font.c (font_find_for_lface): Check if the character C is
4210 supported or not only for the first font.
4211
4212 * fontset.c (reorder_font_vector): Fix typo.
4213 (fontset_find_font): Don't add a font-spec specifying a script.
4214 Use 0 (not Qt) for the indication of empty font-group. Change the
4215 format of RFONT-DEF. Return Qt if no font in the font-group
4216 support the character.
4217 (fontset_font): Adjust for the above change. If no font was
4218 found the character, remember that.
4219 (face_for_char): Adjust for the change of RFONT-DEF.
4220 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
4221 no font for the target.
4222 (Finternal_char_font): Adjust for the change of RFONT-DEF.
4223
4224 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4225
4226 * font.c (font_load_for_face): Handle the case that the font in
4227 face->lface is a string.
4228
4229 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4230
4231 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
4232
4233 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4234
4235 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
4236 Fix previous change. If the frame is not on a window system,
4237 signal an error.
4238
4239 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4240
4241 * coding.c (decode_coding_object, encode_coding_object): Adjust
4242 marker positions after conversion.
4243
4244 * lisp.h (struct Lisp_Marker): New member need_adjustment.
4245
4246 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4247
4248 * font.c (font_find_for_lface): Fix the handling of the return
4249 value of font_has_char.
4250 (Ffont_shape_text): Fix previous change.
4251
4252 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
4253 (fontset_ref_and_range): Delete it.
4254 (fontset_find_font): Call char_table_ref_and_range instead of
4255 FONTSET_REF_AND_RANGE.
4256 (make_fontset): Don't setup font groups of Latin here.
4257 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
4258 (new_fontset_from_font): Make the specified font the default for
4259 all Latin characters.
4260
4261 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4262
4263 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
4264 is on a window system before accessing the fontset of the frame.
4265
4266 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4267
4268 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
4269
4270 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
4271 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
4272
4273 * font.c (Ffont_shape_text): If the font driver doesn't have a
4274 shaper function, make zero-width glyphs to have at least one-pixel
4275 width. Fix setting of `to' field of glyphs.
4276
4277 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4278
4279 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
4280 glyphs.
4281
4282 * font.h (struct font_driver): Improve docstring of member `shape'.
4283
4284 2008-02-01 Kenichi Handa <handa@m17n.org>
4285
4286 * composite.c (syms_of_composite): Fix docstring of
4287 auto-composition-function.
4288
4289 * font.h (LGLYPH_SIZE): New macro.
4290
4291 * font.c (Ffont_fill_gstring): Stop filling when a character not
4292 supported by the font is found.
4293 (Ffont_shape_text): When a shape callback function returns nil,
4294 try at most two more times with larger gstring.
4295 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
4296
4297 * xdisp.c (handle_auto_composed_prop): Change the argument to
4298 auto-composition-function.
4299
4300 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
4301 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
4302 Lispy glyph and store it in the lgstring.
4303
4304 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
4305
4306 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
4307
4308 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4309
4310 * font.c (Ffont_shape_text): Avoid unnecessary composition.
4311
4312 * fontset.c (Vfont_encoding_charset_alist): New variable.
4313 (syms_of_fontset): DEFVAR it.
4314 (reorder_font_vector, fontset_find_font): Optimize for the case of
4315 no need of reordering.
4316 (face_for_char): Map the charset property by
4317 Vfont_encoding_charset_alist.
4318
4319 2008-02-01 Jason Rumney <jasonr@gnu.org>
4320
4321 * w32font.c (logfonts_match): Don't check adstyle here.
4322 (font_matches_spec): Check here against physical font instead.
4323 (add_font_entity_to_list): Avoid some substitutions.
4324
4325 * font.c (font_parse_fcname): Default weight and slant to normal.
4326 (font_score): Prefer normal fonts if weight or slant unspecified.
4327 (font_score) [WINDOWSNT]: Scale weight difference down to closer
4328 match freetype scores.
4329
4330 2008-02-01 Jason Rumney <jasonr@gnu.org>
4331
4332 * w32font.c (w32font_text_extents): Don't use the frame stored in the
4333 font, as it may have been deleted.
4334 (w32_enumfont_pattern_entity): Map generic family to adstyle using
4335 most common hyphenless variation.
4336 (logfonts_match): Check generic family.
4337 (font_matches_spec): Don't check generic family here.
4338 (fill_in_logfont): Set generic family based on adstyle.
4339
4340 * w32font.h (w32font_get_cache): Update declaration.
4341
4342 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4343
4344 * ftfont.c (ftfont_get_cache): Adjust the argument type.
4345
4346 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
4347 If none of the new drivers are available, call font_update_drivers
4348 with the old drivers.
4349
4350 * w32font.c (w32font_get_cache): Adjust the argument type.
4351
4352 * xfont.c (xfont_get_cache): Adjust the argument type.
4353
4354 * font.h (struct font_driver): Change argument type of get_cache.
4355
4356 * xftfont.c (xftfont_start_for_frame): Delete prototype.
4357
4358 * font.c (Ffont_get): Fix arguments to Fassoc.
4359 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
4360 (font_clear_cache): New function.
4361 (font_list_entities, font_matching_entity): Use font_get_cache.
4362 (font_update_drivers): Call font_clear_cache when finishing a driver.
4363
4364 * fontset.c (fontset_find_font): Fix previous change.
4365
4366 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4367
4368 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
4369 dpyinfo->font_table.
4370 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
4371 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
4372
4373 * font.c (font_at): Handle the case that the arg C is negative.
4374 Handle the unibyte case.
4375 (Ffont_at): Call font_at with the arg C -1.
4376
4377 * xdisp.c (handle_auto_composed_prop): Don't get a character at
4378 the position here, and call font_at with the arg C -1.
4379 Don't check the range of the existing composition at the point.
4380
4381 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4382
4383 * fontset.c (fontset_add): New args charset_id and family.
4384 Change caller.
4385 (load_font_get_repertory, fontset_find_font): Assume that
4386 font_spec is always a font-spec object.
4387 (Fset_fontset_font): Always store a font-spec object in a fontset.
4388
4389 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
4390 instead of get_property_and_range.
4391
4392 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4393
4394 * xftfont.c (struct xftfont_info): Delete the member ft_face.
4395 (xftfont_open): Don't keep locking face.
4396 (xftfont_close): Don't unlock face.
4397 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
4398
4399 * fontset.c (fontset_find_font): Don't prefer a font of
4400 supplementary charset.
4401
4402 2008-02-01 Kenichi Handa <handa@m17n.org>
4403
4404 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
4405 script, langsys_tag to langsys, new member script.
4406 (OTF_TAG_STR): Terminate by '\0'.
4407 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
4408 listing to the script specified in that property. Fix arg to
4409 OTF_check_features.
4410
4411 2008-02-01 Jason Rumney <jasonr@gnu.org>
4412
4413 * w32font.h: New file.
4414
4415 * w32font.c: Include it.
4416 (struct w32font_info): Add owning_frame field. Move to w32font.h.
4417 (w32font_open): Set owning_frame.
4418 (w32font_text_extents): Use owning_frame.
4419 (struct font_callback_data): Add opentype_only field.
4420 (add_font_entity_to_list): Use it to filter fonts.
4421 Don't check against full name.
4422 (w32font_list_internal): New function.
4423 (w32font_list): Use it.
4424 (w32font_match_internal): New function.
4425 (w32font_match): Use it.
4426 (w32font_open_internal): New function.
4427 (w32font_open): Use it.
4428 (w32font_get_cache, w32font_close, w32font_has_char)
4429 (w32font_encode_char, w32font_text_extents, w32font_draw):
4430 Make non-static.
4431
4432 * makefile.w32-in (w32font.o): Depend on w32font.h.
4433
4434 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4435
4436 * charset.c (Fdefine_charset_internal): Record a supplementary
4437 charset at the tail of Vcharset_order_list.
4438
4439 * font.c (Ffont_shape_text): Fix the return value.
4440
4441 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
4442
4443 * xdisp.c (handle_auto_composed_prop): Fix previous change.
4444
4445 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4446
4447 * ftfont.c (struct OpenTypeSpec): New struct.
4448 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
4449 (ftfont_get_open_type_spec): New function.
4450 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
4451
4452 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
4453
4454 2008-02-01 Jason Rumney <jasonr@gnu.org>
4455
4456 * w32font.c (add_font_entity_to_list): Compare only the beginning
4457 of full name.
4458
4459 2008-02-01 Kenichi Handa <handa@m17n.org>
4460
4461 * xdisp.c (handle_auto_composed_prop): Simplify the code.
4462 Never return HANDLED_RECOMPUTE_PROPS.
4463
4464 2008-02-01 Kenichi Handa <handa@m17n.org>
4465
4466 * font.c (font_gstring_produce): Delete it.
4467
4468 * composite.h (COMPOSITION_METHOD):
4469 Handle COMPOSITION_WITH_GLYPH_STRING.
4470
4471 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4472
4473 * xfont.c (Qx): Delete.
4474 (syms_of_xfont): Don't initialize Qx.
4475
4476 * composite.h (enum composition_method):
4477 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
4478
4479 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4480
4481 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
4482 (choose_face_font): Accept new form of font-spec.
4483
4484 * frame.h (font_driver_list): Declare it unconditionally.
4485 (struct frame): Define members font_driver_list and font_data_list
4486 unconditionally.
4487
4488 * fontset.c: Include "font.h" unconditionally.
4489 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
4490 (Fset_fontset_font): Accept a font-spec object.
4491
4492 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
4493 PIXEL_SIZE part a wild card.
4494
4495 * dispextern.h (struct glyph_string): Define members clip and
4496 num_clips unconditionally.
4497 (struct face): Define members font_info and extra unconditionally.
4498
4499 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
4500 ftfont_info only when HAVE_LIBOTF is defined.
4501
4502 2008-02-01 Andreas Schwab <schwab@suse.de>
4503
4504 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
4505 and end.
4506
4507 2008-02-01 Jason Rumney <jasonr@gnu.org>
4508
4509 * w32font.c (w32font_driver): Add new fields.
4510
4511 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4512
4513 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
4514 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
4515 (LIBES): Add @M17N_FLT_CFLAGS@.
4516
4517 * composite.c (compose_text): Don't treat the new style
4518 composition specially.
4519
4520 * emacs.c (main): Call syms_of_font unconditionally.
4521
4522 * font.h (FONT_ENTITY_NOT_LOADABLE)
4523 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
4524 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
4525 (struct font_driver): New member shape.
4526 (font_registry_charsets): Extern it.
4527 (font_find_for_lface, font_prepare_composition): Adjust prototype.
4528 (font_otf_capability, font_drive_otf): Delete their externs.
4529
4530 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4531 (font_charset_alist, font_registry_charsets): Move from xfont.c
4532 and rename.
4533 (font_prop_validate_otf): New function.
4534 (font_property_table): Register it for QCotf.
4535 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
4536 (font_drive_otf): Delete.
4537 (font_prepare_composition): New arg F. Adjust for the change of
4538 lispy gstring.
4539 (font_find_for_lface): New arg C.
4540 (font_load_for_face): Adjust for the change of font_find_for_lface.
4541 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
4542 lispy gstring.
4543 (Ffont_shape_text): New function.
4544 (Fopen_font): If the font size is not given, use 12-pixel.
4545 (Ffont_at): New arg STRING.
4546 (syms_of_font): Initalize font_charset_alist.
4547 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
4548 conditionally.
4549
4550 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
4551 fonts of the same font-spec. Change the format of RFONT-DEF.
4552 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
4553 Adjust for the change of RFONT-DEF.
4554 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
4555
4556 * ftfont.h: New file.
4557
4558 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
4559 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4560 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4561 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
4562 font_otf_capability and font_drive_otf, set ftfont_shape.
4563 (ftfont_list): Adjust for the change of :otf property value.
4564 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
4565 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
4566 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
4567 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
4568 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
4569 (otf_gstring, gstring, m17n_flt_initialized): New variables.
4570
4571 * w32term.c (x_draw_composite_glyph_string_foreground):
4572 Adjust for the change of lispy gstring.
4573
4574 * xdisp.c (handle_composition_prop): Adjust for the change of
4575 lispy gstring. Call a function for auto-composition with the
4576 third arg it->window.
4577 (fill_composite_glyph_string): Adjust for the change of lispy string.
4578 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
4579
4580 * xfaces.c (set_font_frame_param): Adjust for the change of
4581 font_find_for_lface.
4582
4583 * xfont.c (x_font_charset_alist): Move to font.c and rename.
4584 (xfont_registry_charsets): Likewise. Change caller.
4585 (syms_of_xfont): Don't handle x_font_charset_alist.
4586
4587 * xftfont.c: Include "ftfont.h".
4588 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4589 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4590 (xftfont_close) [HAVE_LIBOTF]: Close otf.
4591 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
4592 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
4593 Set xftfont_driver.shape to xftfont_shape.
4594
4595 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
4596 the change of lispy gstring.
4597
4598 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4599
4600 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
4601
4602 2008-02-01 Jason Rumney <jasonr@gnu.org>
4603
4604 * w32font.c (w32font_draw): Fill background manually.
4605
4606 2008-02-01 Jason Rumney <jasonr@gnu.org>
4607
4608 * font.c (Qfontp): Remove unused symbol.
4609 (QCantialias): New symbol.
4610 (syms_of_font): Define it.
4611 (font_property_table): Set a validator for QCantialias.
4612
4613 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
4614 Define if not already.
4615 (QCfamily): Share with xfaces.c.
4616 (Qstandard, Qsubpixel, Qnatural): New symbols.
4617 (syms_of_w32font): Define them. Don't define QCfamily here.
4618 (w32_antialias_type, lispy_antialias_type): New functions.
4619 (w32_enumfont_pattern_entity): New arg requested_font.
4620 Set antialias parameter if non-default was requested.
4621 (fill_in_logfont): Fill in lfQuality if :antialias specified.
4622
4623 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4624
4625 * lread.c (read1): Undo the previous change.
4626
4627 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
4628
4629 * frame.c (Fdelete_frame): Call font_update_drivers only when
4630 USE_FONT_BACKEND is defined.
4631
4632 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4633
4634 * font.h (struct font_bitmap): New member bits_per_pixel.
4635 (struct font_driver): New members start_for_frame and end_for_frame.
4636 (struct font_data_list): New struct.
4637 (font_put_frame_data, font_get_frame_data): Extern them.
4638
4639 * frame.h (struct frame): New member font_data_list.
4640
4641 * font.c (font_update_drivers): Call driver->start_for_frame and
4642 driver->end_for_frame at proper timings.
4643 (font_put_frame_data, font_get_frame_data): New functions.
4644 (Ffont_spec): Add usage in the docstring.
4645
4646 * frame.c (make_frame): Initialize f->font_data_list to NULL.
4647 (Fdelete_frame): Call font_update_drivers.
4648
4649 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4650 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
4651 (xftfont_get_xft_draw): New function.
4652 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
4653 (xftfont_end_for_frame): New function.
4654 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
4655
4656 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
4657 Change argument. Cache GCs in the per-frame data.
4658 (struct ftxfont_frame_data): New struct.
4659 (ftxfont_draw_bitmap): New arg gc_fore and flush.
4660 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
4661 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
4662 (ftxfont_end_for_frame): New function.
4663 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
4664
4665 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
4666
4667 2008-02-01 Kenichi Handa <handa@m17n.org>
4668
4669 * xselect.c (Vselection_coding_system)
4670 (Vnext_selection_coding_system): Delete them.
4671 (syms_of_xselect): Don't declare selection-coding-system and
4672 next-selection-coding-system. They are declared in select.el.
4673
4674 2008-02-01 Jason Rumney <jasonr@gnu.org>
4675
4676 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
4677
4678 * w32fns.c: Include imm.h.
4679 (get_composition_string_fn, get_ime_context_fn): New optional
4680 system functions.
4681 (globals_of_w32fns): Load them from imm32.dll.
4682 (ignore_ime_char): New flag.
4683 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
4684 WM_IME_ENDCOMPOSITION messages.
4685
4686 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4687 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4688
4689 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4690
4691 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4692 (READCHAR_REPORT_MULTIBYTE): New macro.
4693 (readchar): New 2nd arg MULTIBYTE.
4694 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4695 Make symbol's name multibyte according to the multibyteness of the
4696 source.
4697
4698 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4699
4700 * xfaces.c (face_for_overlay_string): Call lookup_face with
4701 correct arguments (fix of synching with the trunk).
4702
4703 2008-02-01 Kenichi Handa <handa@m17n.org>
4704
4705 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4706 (font_prop_validate_non_neg, font_prop_validate_spacing):
4707 Delete argument prop_index.
4708 (font_property_table): Change arguments to validater. Change Callers.
4709 (font_lispy_object): Delete.
4710 (font_at): Use font_find_object instead fo font_lispy_object.
4711
4712 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4713
4714 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
4715 and file names.
4716
4717 2008-02-01 Jason Rumney <jasonr@gnu.org>
4718
4719 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
4720 (font_matches_spec): Remove debug output.
4721 (add_font_entity_to_list): Avoid using substituted fonts.
4722
4723 2008-02-01 Jason Rumney <jasonr@gnu.org>
4724
4725 * doc.c (Fsnarf_documentation):
4726 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
4727
4728 2008-02-01 Miles Bader <miles@gnu.org>
4729
4730 * dispextern.h (struct glyph_row): Only define "clip" field if
4731 HAVE_WINDOW_SYSTEM is defined.
4732
4733 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
4734
4735 Fix up multi-tty merge.
4736
4737 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
4738 and indentation.
4739
4740 * xfaces.c (free_realized_face, clear_face_gcs):
4741 Include font_done_for_face in the input_blocked section, just in case.
4742
4743 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
4744 (get_char_face_and_encoding): Undo last change and remove the *other*
4745 duplicate definition (i.e. keep the one that's better scoped and that
4746 includes code for the font-backend).
4747
4748 * terminal.c (create_terminal): Default keyboard_coding to
4749 `no-conversion' and terminal_coding to `undecided'.
4750
4751 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
4752
4753 * fontset.c (free_realized_fontsets): Check that the table entry does
4754 contain a fontset before trying to compare it to `base'.
4755
4756 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
4757 syms_of_charset, and syms_of_coding earlier because init_window_once
4758 now needs Vcoding_system_hash_table to be setup.
4759
4760 * coding.h (default_buffer_file_coding): Remove.
4761
4762 * coding.c (default_buffer_file_coding): Remove.
4763 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
4764 than ->symbol, and use the terminal-local coding system.
4765 (syms_of_coding): Don't setup the coding-systems that are not
4766 terminal-local.
4767 (Fdefine_coding_system_internal): Use XCAR/XCDR.
4768
4769 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
4770 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
4771
4772 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
4773 in chartab.c and were re-added here by mistake.
4774 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
4775
4776 * doc.c (Fsnarf_documentation):
4777 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
4778 src to etc.
4779
4780 * ChangeLog.10: Add mistakenly removed entry.
4781
4782 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
4783
4784 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
4785
4786 2008-02-01 Miles Bader <miles@gnu.org>
4787
4788 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
4789 Add extra args to FACE_FOR_CHAR.
4790
4791 2008-02-01 Kenichi Handa <handa@m17n.org>
4792
4793 * keymap.c (where_is_internal_1): If key is a cons, store the copy
4794 in sequence.
4795
4796 * chartab.c (map_sub_char_table, map_char_table): If the range
4797 contains just one character, call the function with that character
4798 even if the depth is not 3.
4799
4800 2008-02-01 Jason Rumney <jasonr@gnu.org>
4801
4802 * w32font.c (w32font_text_extents): Calculate metrics for the
4803 whole string.
4804
4805 2008-02-01 Jason Rumney <jasonr@gnu.org>
4806
4807 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
4808
4809 2008-02-01 Jason Rumney <jasonr@gnu.org>
4810
4811 * w32term.c (x_set_glyph_string_clipping): Use
4812 get_glyph_string_clip_rects.
4813 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4814 Adjust for the change of struct glyph_string.
4815
4816 * w32font.c (w32font_draw): Do clipping here.
4817
4818 2008-02-01 Kenichi Handa <handa@m17n.org>
4819
4820 * xftfont.c (xftfont_draw): Adjust for the change of struct
4821 glyph_string.
4822
4823 * xterm.c (x_set_glyph_string_clipping): Use
4824 get_glyph_string_clip_rects.
4825 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4826 Adjust for the change of struct glyph_string.
4827
4828 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
4829 the resulting clip(s}.
4830 (expose_overlaps): Add arg r. Change callers. Set it to
4831 row->clip temporarily.
4832 (expose_window): Redraw rows overlapping the exposed area.
4833
4834 * dispextern.h (struct glyph_row): New member clip.
4835 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
4836 clip_height, new member clip, and num_clips.
4837
4838 2008-02-01 Kenichi Handa <handa@m17n.org>
4839
4840 * data.c (Fchar_or_string_p): Fix docstring.
4841
4842 2008-02-01 Kenichi Handa <handa@m17n.org>
4843
4844 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
4845 create a temporal XftDraw object.
4846
4847 2008-02-01 Kenichi Handa <handa@m17n.org>
4848
4849 * font.c (Ffontp): Fix docstring.
4850
4851 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
4852 strong evidence of ISO-2022.
4853
4854 2008-02-01 Kenichi Handa <handa@m17n.org>
4855
4856 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
4857 SYNTAX_ENTRY_FOLLOW_PARENT.
4858
4859 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
4860
4861 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
4862 its type.
4863 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
4864 Update to the new type of weak_hash_tables and next_weak.
4865
4866 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
4867 a plain C pointer to Lisp_Hash_Table.
4868
4869 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
4870 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
4871 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
4872 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
4873 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
4874 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
4875 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
4876 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
4877 (GC_EQ): Remove since they've been identical to their non-GC_
4878 alter-egos ever since the markbit was eradicated.
4879
4880 * alloc.c:
4881 * buffer.c:
4882 * buffer.h:
4883 * data.c:
4884 * fileio.c:
4885 * filelock.c:
4886 * fns.c:
4887 * frame.h:
4888 * lisp.h:
4889 * macterm.c:
4890 * print.c:
4891 * process.c:
4892 * w32fns.c:
4893 * w32menu.c:
4894 * w32term.c:
4895 * xfns.c:
4896 * xmenu.c:
4897 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
4898
4899 2008-02-01 Kenichi Handa <handa@m17n.org>
4900
4901 * chartab.c (map_sub_char_table): Make it work for the top-level
4902 char-table. Fix handling of parent char-table.
4903 (map_char_table): Adjust for the above change.
4904
4905 2008-02-01 Jason Rumney <jasonr@gnu.org>
4906
4907 * w32font.c (Qgdi): Rename from Qw32.
4908
4909 2008-02-01 Jason Rumney <jasonr@gnu.org>
4910
4911 * w32bdf.c (get_quoted_string): Make function static.
4912
4913 2008-02-01 Kenichi Handa <handa@m17n.org>
4914
4915 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
4916 bigger ascent and descent than those of the font, use them as
4917 font's ascent and descent.
4918
4919 2008-02-01 Kenichi Handa <handa@m17n.org>
4920
4921 * Makefile.in (${lispsource}international/charprop.el): Move this
4922 target within "#ifdef HAVE_UNIDATA" and "#endif".
4923
4924 2008-02-01 Kenichi Handa <handa@m17n.org>
4925
4926 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
4927 (shortlisp): Add ../lisp/language/tai-viet.el.
4928
4929 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
4930
4931 * Makefile.in (${lispsource}international/charprop.el): Depend on
4932 temacs${EXEEXT}.
4933
4934 2008-02-01 Jason Rumney <jasonr@gnu.org>
4935
4936 * w32font.c (w32font_close): Delete the GDI font object.
4937
4938 * w32menu.c: Include character.h.
4939
4940 * w32proc.c: Likewise.
4941
4942 * w32select.c: Likewise.
4943
4944 * makefile.w32-in (w32proc.o): Depend on character.h.
4945
4946 2008-02-01 Jason Rumney <jasonr@gnu.org>
4947
4948 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
4949
4950 * w32menu.c (syms_of_w32menu): Likewise.
4951
4952 * w32proc.c (syms_of_ntproc): Likewise.
4953
4954 * w32select.c (syms_of_w32select): Likewise.
4955
4956 * w32term.c (syms_of_w32term): Likewise.
4957
4958 2008-02-01 Jason Rumney <jasonr@gnu.org>
4959
4960 * w32font.c (w32font_draw): Delete brush after using it.
4961
4962 2008-02-01 Jason Rumney <jasonr@gnu.org>
4963
4964 * w32font.c (w32font_open): Don't set font_idx.
4965 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
4966 to font settings.
4967 (w32font_draw): Fill background explicitly.
4968
4969 2008-02-01 Jason Rumney <jasonr@gnu.org>
4970
4971 * w32term.c (w32_initialize): Don't call w32font_initialize.
4972
4973 * w32font.c (w32font_info): Remove subranges.
4974 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
4975 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
4976 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
4977 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
4978 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
4979 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
4980 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
4981 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
4982 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
4983 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
4984 New symbols.
4985 (font_callback_data): New struct.
4986 (w32font_list, w32font_match): Use it.
4987 (w32font_open): Don't populate subranges.
4988 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
4989 (w32font_encode_char): Always return unicode code-point as-is.
4990 (w32font_text_extents): Supply a tranformation matrix to
4991 GetGlyphOutline. Never look up by glyph index. Avoid looping
4992 twice. Use unicode version of GetTexExtentPoint32 instead of
4993 glyph index version.
4994 (set_fonts_frame): Remove.
4995 (w32_enumfont_pattern_entity): Add frame parameter, use it to
4996 set frame parameter. Use backward compatible fake foundries.
4997 Save generic family in extra slot under QCfamily. Make width slot
4998 constant. Save QCspacing value. Save list of scripts instead of
4999 binary subranges.
5000 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
5001 (add_font_entity_to_list): Use font_callback_data struct. Filter
5002 unwanted fonts.
5003 (add_one_font_entity_to_list): Use font_callback_data struct.
5004 (w32_registry): Default to iso10646_1.
5005 (fill_in_logfont): Use dpi from extra slot. Don't bother with
5006 string font registries. Don't fill in font name if it is a generic
5007 family name, fill family instead. Use spacing, family and script
5008 extra info to fill pitch, family and charset fields.
5009 (list_all_matching_fonts): Use font_callback_data struct.
5010 (unicode_range_for_char): Remove.
5011 (font_supported_scripts): New function.
5012 (w32font_initialize): Remove.
5013 (syms_of_w32font): Update which symbols are defined.
5014
5015 2008-02-01 Jason Rumney <jasonr@gnu.org>
5016
5017 * font.c (font_pixel_size): Reverse assq_no_quit args.
5018
5019 * w32term.h (FONT_WIDTH): Report max width, not average.
5020 (FONT_MAX_WIDTH): Remove.
5021 (FONT_AVG_WIDTH): New macro.
5022
5023 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
5024 redefinition of FONT_WIDTH.
5025
5026 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
5027 (w32_cache_char_metrics): Use FONT_WIDTH.
5028
5029 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
5030
5031 2008-02-01 Jason Rumney <jasonr@gnu.org>
5032
5033 * w32font.c (w32font_open): Make lfHeight negative.
5034
5035 * w32fns.c (x_default_font_parameter): Use new style font name.
5036 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
5037
5038 2008-02-01 Jason Rumney <jasonr@gnu.org>
5039
5040 * w32font.c (QCsubranges): New symbol.
5041 (w32font_open, w32font_has_char): Get subranges from subproperty
5042 of extra.
5043 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
5044 (syms_of_w32font): Define :subranges symbol.
5045
5046 * font.c (font_put_extra): Expose externally.
5047
5048 * font.h (font_put_extra): Move declaration from font.c.
5049
5050 * font.c (Ffont_get): Use font driver to determine otf capability.
5051 (adjust_anchor): Check if driver defines anchor_point before using.
5052
5053 * w32font.c (w32font_open): Handle size, height and pixel_size better.
5054 (w32font_draw): Use options.
5055 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
5056 Fix detection of truetype fonts.
5057 (registry_to_w32_charset): Handle charsets other than iso8859-1
5058 expressed as lisp symbols.
5059 (w32_registry): Express charset as lisp symbol.
5060 (fill_in_logfont): Reverse pixel and point height logic.
5061 Don't set width here. Set quality to default.
5062
5063 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
5064 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
5065
5066 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5067 Remove redundant loop and allocation.
5068
5069 * makefile.w32-in (font.o, w32font.o): New objects.
5070 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
5071 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
5072
5073 * xdisp.c (fill_composite_glyph_string): Make the first arg to
5074 STORE_XCHARB a valid l-value.
5075
5076 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
5077 calculations for non-Truetype fonts.
5078 (x_draw_glyph_string): Sync with xterm.c.
5079 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5080 Remove redundant code.
5081 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
5082
5083 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
5084 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
5085
5086 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
5087 (x_to_w32_charset, w32_to_x_charset): Expose externally.
5088
5089 * w32font.c: New file for w32 font backend.
5090
5091 2008-02-01 Kenichi Handa <handa@m17n.org>
5092
5093 * term.c: Don't include "buffer.h" twice.
5094
5095 2008-02-01 Kenichi Handa <handa@m17n.org>
5096
5097 * character.c (Funibyte_string): New function.
5098 (syms_of_character): Defsubr it.
5099
5100 2008-02-01 Jason Rumney <jasonr@gnu.org>
5101
5102 * w32term.c [USE_FONT_BACKEND]:
5103 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
5104 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
5105 (x_draw_glyph_string, x_draw_glyph_string_foreground)
5106 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
5107 (x_free_frame_resources): Sync with xterm.c.
5108
5109 2008-02-01 Andreas Schwab <schwab@suse.de>
5110
5111 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
5112 char-table size.
5113
5114 2008-02-01 Kenichi Handa <handa@m17n.org>
5115
5116 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
5117
5118 2008-02-01 Kenichi Handa <handa@m17n.org>
5119
5120 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
5121 font_otf_gpos, add font_drive_otf.
5122
5123 * fontset.c (fontset_find_font): Pay attention to font size
5124 specified for a font.
5125 (reorder_font_vector): Check contents of font_def.
5126
5127 * font.c (struct otf_list): Delete it.
5128 (otf_list): Make it a lisp variable.
5129 (otf_open): Use lispy otf_list.
5130 (generate_otf_features): Rename from parse_gsub_gpos_spec.
5131 (check_otf_features): New function.
5132 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5133 New functions.
5134 (font_drive_otf): New function merging font_otf_gsub and
5135 font_otf_gpos.
5136 (font_open_for_lface): New arg spec. Change argument order.
5137 (font_load_for_face): Adjust for the change of font_open_for_lface.
5138 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
5139 Ffont_otf_gpos.
5140 (syms_of_font): Staticpro otf_list. Delete defsubr of
5141 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
5142
5143 * xfaces.c (set_font_frame_param): Adjust for the change of
5144 font_open_for_lface.
5145
5146 * font.h (font_open_for_lface): Adjust prototype.
5147 (struct font_driver): Delete members otf_gsub and otf_gpos, add
5148 member otf_drive.
5149 (font_otf_gsub, font_otf_gpos): Delete externs.
5150 (font_drive_otf): Extern it.
5151
5152 2008-02-01 Kenichi Handa <handa@m17n.org>
5153
5154 * font.c (font_at): If the window W is not on a window system,
5155 return Qnil.
5156
5157 * coding.c (produce_chars, encode_coding): Don't call
5158 insert_from_gap if no characters to produce.
5159
5160 2008-02-01 Kenichi Handa <handa@m17n.org>
5161
5162 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
5163 Fclear_face_cache.
5164
5165 * xfaces.c (face_for_font): Check also face->font==font->font.font.
5166
5167 2008-02-01 Miles Bader <miles@gnu.org>
5168
5169 * emacs.c (main): Change default value of `enable_font_backend' to 1.
5170 Parse "--disable-font-backend" option.
5171 (standard_args): Add "--disable-font-backend" option.
5172
5173 2008-02-01 Kenichi Handa <handa@m17n.org>
5174
5175 * fontset.c (fontset_find_font): New function.
5176 (fontset_font): Use fontset_find_font.
5177 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
5178 Register the specified font for all Latin characters.
5179 (new_fontset_from_font): Register the specified font for all Latin
5180 characters.
5181 (dump_fontset): For a realized fontset, include the base fontset
5182 name in the returned vector.
5183
5184 2008-02-01 Kenichi Handa <handa@m17n.org>
5185
5186 * character.h (CHAR_STRING): Cast C to unsigned on calling
5187 char_string.
5188
5189 * character.c (char_string): Type of arg C changed to unsigned.
5190 Signal an error if C is an invalid character code.
5191
5192 * editfns.c (general_insert_function, Fchar_to_string):
5193 Use CHARACTERP, not INTEGERP.
5194
5195 2008-02-01 Kenichi Handa <handa@m17n.org>
5196
5197 * character.h (MIN_MULTIBYTE_LEADING_CODE)
5198 (MAX_MULTIBYTE_LEADING_CODE): New macros.
5199
5200 * regex.c (analyse_first): Fix for multibyte characters in "case
5201 charset:" and "case categoryspec:".
5202
5203 2008-02-01 Andreas Schwab <schwab@suse.de>
5204
5205 * Makefile.in (LIBES): Move standard libraries to the end.
5206
5207 2008-02-01 Kenichi Handa <handa@m17n.org>
5208
5209 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
5210 nonzero, don't shrink the buffer nextb.
5211
5212 * buffer.h (struct buffer_text): New member inhibit_shrinking.
5213
5214 * coding.c (coding_alloc_by_making_gap): New arg offset.
5215 (alloc_destination): Call coding_alloc_by_making_gap with the arg
5216 offset.
5217 (decode_coding_iso_2022): Update coding->safe_charsets.
5218 (decode_coding_gap): Temporarily set
5219 current_buffer->text->inhibit_shrinking to 1.
5220
5221 2008-02-01 Kenichi Handa <handa@m17n.org>
5222
5223 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
5224 indexing into elements of s->cmp and s->char2b.
5225
5226 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
5227
5228 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
5229
5230 2008-02-01 Kenichi Handa <handa@m17n.org>
5231
5232 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
5233 target_multibyte instead of multibyte.
5234 (re_match_2_internal): Call bcmp_translate with target_multibyte.
5235 (bcmp_translate): Change the argument name from multibyte to
5236 target_multibyte.
5237
5238 2008-02-01 Kenichi Handa <handa@m17n.org>
5239
5240 These changes are to compile a regexp into a pattern that can be
5241 used both for multibyte and unibyte targets.
5242
5243 * Makefile.in (search.o): Depend on charset.h.
5244
5245 * character.c (multibyte_char_to_unibyte_safe): New function.
5246
5247 * search.c: Include "charset.h".
5248 (compile_pattern_1): Delete argument multibyte. Don't set
5249 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
5250 (compile_pattern): Don't compare cp->buf.target_multibyte.
5251 Compare cp->buf.charset_unibyte.
5252 (compile_pattern): Set cp->buf.target_multibyte.
5253
5254 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
5255
5256 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
5257
5258 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
5259 multibyte. Change callers.
5260 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
5261 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
5262 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
5263 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
5264 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
5265 (regex_compile): Make the compiled pattern usable both for
5266 multibyte and unibyte targets.
5267 (analyse_first): Make the fastmap usable both for multibyte and
5268 unibyte targets.
5269 (TRANSLATE_VIA_MULTIBYTE): Delete.
5270 (re_match_2_internal): Pay attention to the case that the
5271 multibyteness of bufp and target may be different.
5272
5273 2008-02-01 Kenichi Handa <handa@m17n.org>
5274
5275 * xdisp.c (x_produce_glyphs): When a font is not found, make the
5276 empty box occupy at least one column width.
5277
5278 2008-02-01 Miles Bader <miles@gnu.org>
5279
5280 * Makefile.in: Remove redundant HAVE_XFT clause.
5281
5282 2008-02-01 Kenichi Handa <handa@m17n.org>
5283
5284 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
5285
5286 2008-02-01 Kenichi Handa <handa@m17n.org>
5287
5288 * fontset.c (Finternal_char_font): Fix for the case of POSITION
5289 being nil.
5290
5291 2008-02-01 Kenichi Handa <handa@m17n.org>
5292
5293 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
5294
5295 2008-02-01 Kenichi Handa <handa@m17n.org>
5296
5297 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
5298
5299 2008-02-01 Kenichi Handa <handa@m17n.org>
5300
5301 * search.c (simple_search): Fix previous change.
5302
5303 2008-02-01 Kenichi Handa <handa@m17n.org>
5304
5305 * xftfont.c (ftfont_font_format): Extern declaration.
5306
5307 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
5308
5309 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
5310 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
5311
5312 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
5313 (ftfont_font_format): Fix previous change.
5314
5315 * font.h (Ffont_xlfd_name): EXFUN it.
5316
5317 * font.c (font_parse_xlfd): Fix the array size of `f'.
5318 (register_font_driver): Use EQ to compare driver->type.
5319
5320 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
5321 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
5322 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
5323
5324 2008-02-01 Kenichi Handa <handa@m17n.org>
5325
5326 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
5327 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
5328
5329 2008-02-01 Kenichi Handa <handa@m17n.org>
5330
5331 * xfont.c (xfont_open): Set font->format.
5332
5333 * xftfont.c (xftfont_open): Set font->format.
5334
5335 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
5336 (ftfont_list): Include FC_FONTFORMAT in FcObject.
5337 (ftfont_open): Set font->format.
5338 (ftfont_font_format): New function.
5339
5340 * font.h (struct font): New memeber format.
5341
5342 * font.c (Qopentype): New variable.
5343 (syms_of_font): Defsym it.
5344 (Fquery_font): Change the format of the last element of the return
5345 value.
5346
5347 2008-02-01 Kenichi Handa <handa@m17n.org>
5348
5349 * xfns.c (xic_create_xfontset): Try the default fontset name as a
5350 last resort.
5351
5352 2008-02-01 Kenichi Handa <handa@m17n.org>
5353
5354 * coding.c (detect_coding_charset): Fix detection of multi-byte
5355 charset.
5356
5357 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
5358
5359 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
5360
5361 2008-02-01 Kenichi Handa <handa@m17n.org>
5362
5363 * xdisp.c (get_next_display_element): Set it->face_id for the
5364 first component of a composition.
5365 (x_produce_glyphs): Check if the font is changed or not for composition.
5366
5367 2008-02-01 Kenichi Handa <handa@m17n.org>
5368
5369 * fontset.c (Qlatin): New variable.
5370 (syms_of_fontset): Define it as a lisp symbol.
5371 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
5372
5373 2008-02-01 Kenichi Handa <handa@m17n.org>
5374
5375 * font.c (font_unparse_fcname): Pay attention to the case that
5376 some of font property is a null string.
5377
5378 2008-02-01 Kenichi Handa <handa@m17n.org>
5379
5380 * term.c: Include "composite.h".
5381 (encode_terminal_code): Output all components of composition.
5382 Check the size of encode_terminal_src.
5383 (produce_glyphs): For composition, call produce_composite_glyph.
5384 (append_composite_glyph, produce_composite_glyph): New functions.
5385
5386 * xdisp.c (x_produce_glyphs): In handling composition, if a font
5387 is not found, get font_info from the current ascii face.
5388
5389 2008-02-01 Kenichi Handa <handa@m17n.org>
5390
5391 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
5392 buffer-file-name to Qnil before calling insert_from_buffer.
5393
5394 * font.c (font_unparse_fcname): Pay attention to the case that
5395 foundry is a null string.
5396
5397 2008-02-01 Kenichi Handa <handa@m17n.org>
5398
5399 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
5400
5401 * font.c (Qunicode_sip): New variable.
5402 (syms_of_font): Declare it as a Lisp symbol.
5403
5404 * font.h (Qunicode_sip): Extern it.
5405
5406 2008-02-01 Kenichi Handa <handa@m17n.org>
5407
5408 * composite.c (get_composition_id): Pay attention to TAB component.
5409
5410 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
5411 TAB. Adjust for the change of s->char2b which always points to
5412 the first elememnt of allocated memory.
5413
5414 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
5415
5416 * xdisp.c (handle_composition_prop): Set it->c to the first
5417 non-TAB component.
5418 (fill_composite_glyph_string): Change argument.
5419 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
5420 (x_produce_glyphs): Fix handling of left/right padding.
5421
5422 2008-02-01 Kenichi Handa <handa@m17n.org>
5423
5424 * coding.c (detect_coding_system): Fix for handling off
5425 inhibit_iso_escape_detection. Fix for the case that no coding
5426 system is defined for a specific coding category.
5427
5428 2008-02-01 Kenichi Handa <handa@m17n.org>
5429
5430 * font.c (font_matching_entity): Delete unused local var.
5431
5432 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
5433 opening a font.
5434
5435 * fileio.c (Finsert_file_contents): On recovering a file, assume
5436 Unix-like eol.
5437 (choose_write_coding_system): On auto-saving a file, force
5438 Unix-like eol.
5439
5440 * coding.c (setup_coding_system): Fix setting of
5441 coding->common_flags based on eol_type.
5442 (coding_inherit_eol_type): If PARENT is not nil, be sure to
5443 inherit from it.
5444
5445 2008-02-01 Kenichi Handa <handa@m17n.org>
5446
5447 * alloc.c (NSTATICS): Increas to 0x600.
5448
5449 2008-02-01 Kenichi Handa <handa@m17n.org>
5450
5451 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
5452 (ftfont_list): Don't check :name property.
5453 (ftfont_match): New function.
5454 (ftfont_pattern_entity): If the pattern doesn't contain
5455 FC_SPACING, don't assuce FC_MONO.
5456
5457 * font.h (struct font_driver): New member `match'.
5458 (font_update_drivers): Adjust prototype.
5459
5460 * font.c (font_parse_fcname, font_parse_name): Don't change :name
5461 property of FONT.
5462 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
5463 them unconditionally.
5464 (font_matching_entity): New function.
5465 (font_open_by_name): Try font_matching_entity if exact match is
5466 not found.
5467 (font_update_drivers): Delete the arg FONT. Return a list of
5468 actually used backends. Don't free faces, font caches here.
5469 Don't store data in frame parameters. Don't call x_set_font.
5470 (Ffont_spec): Store :name property as is.
5471 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
5472 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
5473 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
5474 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
5475 Call font->driver->otf_gsub instead of font_otf_gsub.
5476
5477 * frame.c (x_set_font_backend): Do more works that were done in
5478 font_update_drivers before.
5479
5480 * xfont.c (xfont_match): New function.
5481 (xfont_driver): Set xfont_driver.match to xfont_match.
5482 (xfont_draw): Set font in GC if necessary.
5483
5484 * ftxfont.c (ftxfont_match): New function.
5485 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
5486
5487 * xftfont.c (xftfont_match): New function.
5488 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
5489
5490 2008-02-01 Kenichi Handa <handa@m17n.org>
5491
5492 * font.h (struct font): New member scalable.
5493 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
5494 (font_otf_gsub): Adjust prototype.
5495
5496 * font.c (font_otf_capability): Fix handling of the default langsys.
5497 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
5498 Check the contents of SPEC.
5499 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
5500 (check_gstring): New function.
5501 (REPLACEMENT_CHARACTER): New macro.
5502 (font_otf_gsub): New arg alternate_subst. Be sure to set all
5503 glyph codes of GSTRING.
5504 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
5505 (font_prepare_composition): Set cmp->glyph_len.
5506 (font_open_entity): Set font->scalable.
5507 (Ffont_get): Handle :otf property.
5508 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
5509 functions.
5510 (Fquery_font): Use font->font.full_name.
5511 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
5512 Sfont_otf_alternates.
5513
5514 * ftfont.c (ftfont_open): Set font->font.full_name and
5515 font->font.name properly. Fix calculation of font->font.height
5516 and font->min_width.
5517
5518 * ftxfont.c (ftxfont_create_gcs): New function.
5519 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
5520 (ftxfont_draw_backgrond): Fix filling region.
5521 (ftxfont_default_fid): New function.
5522 (ftxfont_open): Set xfotn->fid to the return value of
5523 ftxfont_default_fid.
5524 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
5525 (ftxfont_done_face): Free only GCs that are created by
5526 ftxfont_create_gcs.
5527 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
5528
5529 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
5530 Clip to src->width, etc (not src->clip_XXX).
5531
5532 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
5533 FontBackend frame parameter.
5534
5535 2008-02-01 Kenichi Handa <handa@m17n.org>
5536
5537 * font.h (struct font_driver_list): New member `on'.
5538 (Fclear_font_cache): EXFUN it.
5539 (font_update_drivers): Extern it.
5540
5541 * font.c (font_unparse_fcname): Fix typo (swidth->width).
5542 (font_list_entities): Check driver_list->on.
5543 (register_font_driver): Initalize `on' member to 0.
5544 (font_update_drivers): New function.
5545 (Fclear_font_cache): Check driver_list->on.
5546
5547 * frame.h (Qfont_backend): Extern it.
5548 (x_set_font_backend): Extern it.
5549
5550 * frame.c (Qfont_backend): New variable.
5551 (frame_parms): New element for font-backend.
5552 (x_set_font_backend): New function.
5553
5554 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
5555 FontBackend frame parameter.
5556 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
5557 x_set_font_backend.
5558
5559 * xfont.c (xfont_list): Don't try listing by :name property if the
5560 name is not for XLFD.
5561
5562 2008-02-01 Kenichi Handa <handa@m17n.org>
5563
5564 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
5565 (LGLYPH_SET_TO): New macros.
5566 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
5567 element of G is vector or not.
5568 (font_at): Extern it.
5569
5570 * font.c: Include window.h.
5571 (font_lispy_object): New function.
5572 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
5573 end of valid glyph.
5574 (font_close_object): Fix getting (struct font *).
5575 (font_at): New function.
5576 (Ffont_get): If FONT is a font-object, get entity from it.
5577 (Ffont_make_gstring): Initialize elements of glyphs with nil.
5578 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
5579 range check.
5580 (Ffont_at): New function.
5581 (syms_of_font): Defsubr Sfont_at.
5582
5583 * xdisp.c (it_props): Move the entry for Qauto_composed to just
5584 before the entry for Qcomposition.
5585 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
5586 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
5587 the font in gstring.
5588 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
5589 LGLYPH_FORM (g) to detect the end of valid glyph.
5590 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
5591 we are composing with gstring.
5592
5593 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
5594 Check if adjustment is vector or not.
5595
5596 * Makefile.in (font.o): Make it depends on window.h.
5597
5598 2008-02-01 Kenichi Handa <handa@m17n.org>
5599
5600 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
5601 adjustment is vector or not.
5602
5603 2008-02-01 Miles Bader <miles@gnu.org>
5604
5605 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
5606
5607 2008-02-01 Kenichi Handa <handa@m17n.org>
5608
5609 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
5610 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
5611 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
5612
5613 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
5614 (DEVICE_DELTA): Fix typo.
5615 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
5616 LGLYPH format.
5617
5618 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5619 the change of LGLYPH format.
5620
5621 2008-02-01 Kenichi Handa <handa@m17n.org>
5622
5623 * ftfont.c (ftfont_list): Fix typo.
5624 (ftfont_build_basic_charsets): Don't include letters with diacritics.
5625
5626 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5627
5628 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
5629
5630 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
5631 xftface_info is non-NULL.
5632
5633 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5634
5635 * ftfont.c (ftfont_list): Move misplaced #endif.
5636
5637 2008-02-01 Kenichi Handa <handa@m17n.org>
5638
5639 * ftfont.c (ftfont_list): Pay attention to the case that
5640 FC_CAPABILITY is not defined.
5641
5642 2008-02-01 Kenichi Handa <handa@m17n.org>
5643
5644 * xftfont.c (xftfont_open): Set charset related members to -1.
5645
5646 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
5647 QCname.
5648 (ftfont_open): Set charset related members to -1.
5649
5650 * fontset.c (Votf_script_alist): New variable.
5651 (syms_of_fontset): Initialize it.
5652 (fontset_font): Delete unused variable.
5653
5654 * fontset.h (Votf_script_alist): Extern it.
5655
5656 * font.c (font_find_for_lface): Optimize code.
5657
5658 * font.h (font_close_object, font_merge_old_spec): Extern them.
5659
5660 2008-02-01 Kenichi Handa <handa@m17n.org>
5661
5662 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
5663 (syms_of_font): Initialize them.
5664 (font_pixel_size): Allow float value in dpi.
5665 (font_prop_validate_type): Delete.
5666 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
5667 Change caller.
5668 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
5669 (font_prop_validate_extra): Delete.
5670 (font_prop_validate_spacing): New function.
5671 (font_property_table): Add elements for all known properties.
5672 (get_font_prop_index): Rename from check_font_prop_name. New
5673 argument FROM. Change caller.
5674 (font_prop_validate): Validate all known properties.
5675 (font_put_extra): Delete argument force. Change caller.
5676 (font_expand_wildcards): Make it static. Fix the way of shrinking
5677 the possible range.
5678 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
5679 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
5680 Change caller.
5681 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
5682 (font_parse_fcname): Delete argument merge. Fix parsing of point
5683 size. Don't validate properties values here. Change caller.
5684 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
5685 (font_open_by_name): Delete unused variable.
5686 (Ffont_spec): Likewise. Validate property values.
5687 (Ffont_match_p): New function.
5688
5689 * font.h (QCscalable): Extern it.
5690 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
5691
5692 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
5693
5694 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
5695 (xfont_list_pattern): New function.
5696 (xfont_list): Use xfont_list_pattern.
5697
5698 2008-02-01 Kenichi Handa <handa@m17n.org>
5699
5700 * font.h (Flist_fonts): EXFUN it.
5701
5702 2008-02-01 Jason Rumney <jasonr@gnu.org>
5703
5704 * w32term.c (w32_initialize): Add back smoothing_type and
5705 smoothing_enabled definitions.
5706
5707 2008-02-01 Kenichi Handa <handa@m17n.org>
5708
5709 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5710 s->face->font on determining underline position.
5711
5712 2008-02-01 Kenichi Handa <handa@m17n.org>
5713
5714 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
5715 (font_has_char): Accept font-object too.
5716 (font_find_for_lface): Try at first with a size specified in face.
5717
5718 2008-02-01 Kenichi Handa <handa@m17n.org>
5719
5720 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
5721 font_open_by_name.
5722
5723 2008-02-01 Kenichi Handa <handa@m17n.org>
5724
5725 * font.h (QCspacing, QCdpi): Extern them.
5726 (enum font_spacing): New enum.
5727 (FONT_PIXEL_SIZE_QUANTUM): New macro.
5728
5729 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
5730 (QCspacing, QCdpi): New variables.
5731 (syms_of_font): Initialize them.
5732 (font_pixel_size): New function.
5733 (font_put_extra): New function.
5734 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
5735 in FONT_EXTRA.
5736 (font_parse_fcname): Handle enumenrated values (e.g. bold).
5737 Fix handling font size. Add QCname property that contains only
5738 unknown properties.
5739 (font_score): Change argument. Change caller. Pay attention to
5740 FONT_PIXEL_SIZE_QUANTUM.
5741 (font_sort_entites, font_list_entities, font_find_for_lface)
5742 (font_open_for_lface, font_open_by_name): Fix handling of font size.
5743 (Ffont_spec): Add QCname property that contains only unknown properties.
5744
5745 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
5746 include weight in listing pattern, instead check weight of each
5747 listed font. Don't include scalable in pattern. Pay attention to
5748 FONT_PIXEL_SIZE_QUANTUM.
5749
5750 2008-02-01 Kenichi Handa <handa@m17n.org>
5751
5752 * font.c (font_parse_fcname): Fix parsing of point-size.
5753 (font_unparse_fcname): Produce symbolic names for style properties.
5754 (font_list_entities): Handle float size correctly.
5755 (font_open_by_name): Prefer `normal' property values if the name
5756 doesn't specify them.
5757
5758 * fontset.c (Finternal_char_font): Use font_get_name, not
5759 Ffont_xlfd_name.
5760
5761 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
5762 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
5763 pattern. Don't force scalable.
5764
5765 * xftfont.c (xftfont_open): For generating a name, start from
5766 96-byte buffer.
5767
5768 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
5769
5770 * frame.h (x_new_fontset2): Fix prototype.
5771
5772 2008-02-01 Kenichi Handa <handa@m17n.org>
5773
5774 * font.h (struct font_driver): Delete member parse_name.
5775 (font_match_p, font_get_spec, font_parse_fcname)
5776 (font_unparse_fcname): Extern them.
5777 (font_get_name): Adjust prototype.
5778
5779 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
5780 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
5781 (font_expand_wildcards): Fix handling ENCODING field. Avoid
5782 unnecessary checks for weight, slant, and swidth.
5783 (font_parse_fcname): New function.
5784 (font_unparse_fcname): New function.
5785 (font_parse_name): New function.
5786 (font_match_p): New function.
5787 (font_get_name): Change return value to Lisp string.
5788 (font_get_spec): New function.
5789 (Qunspecified, Qignore_defface): Don't extern them.
5790 (font_find_for_lface): Assume that LFACE is fully specified.
5791 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
5792 object, use it for FACE.
5793 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
5794 driver->parse_name.
5795 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
5796
5797 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
5798 prototype.
5799
5800 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
5801 argument F. Don't call Fnew_fontset. Instead, directly call
5802 make_fontset.
5803
5804 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
5805
5806 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
5807 of x_new_fontset2.
5808
5809 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
5810 (Qsans__serif): New variables.
5811 (ftfont_generic_family_list): New variable.
5812 (syms_of_ftfont): Initialize the above variables.
5813 (ftfont_pattern_entity): Delete argument NAME.
5814 (ftfont_list_generic_family): New function.
5815 (ftfont_parse_name): Delete this function.
5816 (ftfont_list): Try generic family only when FcFontList found no font.
5817 (ftfont_list_family): Fix args to FcObjectSetBuild.
5818
5819 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
5820 object in attrs[LFACE_FONT_INDEX].
5821 (set_lface_from_font_name): Cancel all changes for font-backend.
5822 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
5823 function.
5824 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
5825 font object in QCfont attribute.
5826 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
5827 (realize_default_face) [USE_FONT_BACKEND]: Call
5828 set_lface_from_font_and_fontset.
5829
5830 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
5831 "fixed", and signal error here if no suitable font was found.
5832
5833 * xfont.c (xfont_parse_name): Delete this function.
5834
5835 * xftfont.c (xftfont_open): Change coding style of error
5836 handling. Generate fontconfig's fontname pattern.
5837
5838 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
5839 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
5840
5841 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
5842 Both args FONTSET and FONT_OBJECT must be existing ones.
5843
5844 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5845
5846 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
5847
5848 2008-02-01 Kenichi Handa <handa@m17n.org>
5849
5850 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
5851
5852 * font.h (struct font): Fix typo.
5853
5854 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
5855 XLFD_XXX_INDEX.
5856 (enum xlfd_field_mask): New enum.
5857 (intern_font_field): Changed argument. Change caller. If digits
5858 are followed by non-digits, return a symbol.
5859 (font_expand_wildcards): New function.
5860 (font_parse_xlfd): Fix wildcard handling.
5861 (Ffont_spec): If :name is specified, reflect the info in the other
5862 properties.
5863
5864 * ftfont.c (ftfont_pattern_entity): Fix typo.
5865 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
5866 locale.
5867
5868 2008-02-01 Kenichi Handa <handa@m17n.org>
5869
5870 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
5871
5872 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
5873 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
5874 registry doesn't specify encoding part.
5875 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
5876 (font_open_by_name): At first try parsing the name.
5877 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
5878 as Lisp symbols.
5879
5880 * fontset.c (reorder_font_vector): Pay attention to the case that
5881 the 3rd element of font_def is nil.
5882 (fontset_font): For the default fontset, append one more fontset
5883 elements for a script-based font specification. Don't add script
5884 attribute on finding a font.
5885 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
5886 font name.
5887 (fontset_ascii_font): If a font can't be opened, return nil.
5888
5889 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
5890 (ftfont_pattern_entity): New function.
5891 (ftfont_get_cache): Assume that freetype_font_cache is already
5892 initialized.
5893 (ftfont_list): Handle the case that a file is specified in font
5894 name. Use ftfont_pattern_entity to generate entities.
5895 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
5896 (syms_of_ftfont): Initialize freetype_font_cache.
5897
5898 * xftfont.c (xftfont_open): Make the font name fontconfig's
5899 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
5900 (xftfont_close): Free font->font.name if not NULL.
5901
5902 * xfont.c (xfont_list): If script is specified for a font, return
5903 null_vector.
5904 (xfont_list_family): Declare argument type.
5905
5906 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
5907 name, set LFACE_FONT (lface) to nil.
5908
5909 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
5910 return Qnil.
5911
5912 2008-02-01 Kenichi Handa <handa@m17n.org>
5913
5914 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
5915 (standard_args): Add "-enable-font-backend".
5916
5917 2008-02-01 Kenichi Handa <handa@m17n.org>
5918
5919 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
5920 (struct xftdraw_list, xftdraw_list): Delete them.
5921 (register_xftdraw, check_xftdraw): Delete them.
5922 (xftfont_prepare_face): Don't call register_xftdraw.
5923 (xftfont_done_face): Don't call check_xftdraw.
5924 (xftfont_draw): Get backroudn color only when with_background is
5925 nonzero.
5926
5927 * xfont.c (xfont_encode_char): Fix calculation of char2b.
5928
5929 2008-02-01 Kenichi Handa <handa@m17n.org>
5930
5931 These changes are for the new font handling codes.
5932
5933 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
5934 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
5935 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
5936 (FONTSRC, FONTOBJ): New variables.
5937 (obj): Add $(FONTOBJ).
5938 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
5939 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
5940 @LIBOTF_LIBS@.
5941 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
5942 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
5943
5944 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
5945
5946 * character.h (Vscript_representative_chars): Extern it.
5947
5948 * character.c (Vscript_representative_chars): New variable.
5949 (syms_of_character): Declare it as a Lisp variable.
5950
5951 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
5952 enable_font_backend is nonzero, accept the composition method
5953 COMPOSITION_WITH_GLYPH_STRING.
5954
5955 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
5956 enumeration COMPOSITION_WITH_GLYPH_STRING.
5957
5958 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
5959 members clip_x, clip_y, clip_width, and clip_height.
5960 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
5961
5962 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
5963 --enable-font-backend. Call syms_of_font.
5964
5965 * fns.c (assoc_no_quit): New function.
5966
5967 * fontset.h (FONT_INFO_FROM_FACE): New macro.
5968 (face_for_font, new_fontset_from_font)
5969 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
5970
5971 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
5972 (fontset_font, fontset_ascii, face_for_char)
5973 (make_fontset_for_ascii_face, Ffont_info)
5974 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
5975 is nonzero, use font-backend mechanism.
5976 (find_font_encoding): Make it non-static.
5977 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
5978 New functions.
5979
5980 * frame.h (struct frame): New members resx and resy.
5981 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
5982 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
5983
5984 * frame.c [USE_FONT_BACKEND]: Include "font.h".
5985 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
5986
5987 * lisp.h (assoc_no_quit): Extern it.
5988
5989 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
5990 Through out the file, use FONT_INFO_FROM_FACE instead of
5991 FONT_INFO_FROM_ID, use get_per_char_metric instead of
5992 rif->per_char_metric.
5993 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
5994 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
5995 (get_glyph_face_and_encoding, fill_composite_glyph_string)
5996 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5997 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
5998 nonzero, use font-backend mechanism.
5999 (get_per_char_metric): New function.
6000
6001 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
6002 (set_lface_from_font_name)
6003 (set_font_frame_param, free_realized_face)
6004 (prepare_face_for_display, clear_face_gcs)
6005 (Finternal_set_font_selection_order, realize_x_face)
6006 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
6007 font-backend mechanism.
6008 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
6009 (load_face_font) [USE_FONT_BACKEND]: Abort.
6010 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
6011 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
6012
6013 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
6014 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
6015 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
6016 nonzero, register all available font drivers. Call
6017 x_default_font_parameter for deciding a font.
6018 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
6019
6020 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
6021 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
6022 (x_set_glyph_string_clipping_exactly)
6023 (x_compute_glyph_string_overhangs)
6024 (x_draw_glyph_string_foreground)
6025 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
6026 (x_free_frame_resources) [USE_FONT_BACKEND]: If
6027 enable_font_backend is nonzero, use font-backend mechanism.
6028 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
6029
6030 2008-02-01 Kenichi Handa <handa@m17n.org>
6031
6032 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
6033 system_eol_type.
6034 (syms_of_coding): Initialize system_eol_type.
6035
6036 * process.c (Fset_process_coding_system): Inherit system's eol
6037 format if necessary.
6038
6039 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6040
6041 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
6042
6043 2008-02-01 Kenichi Handa <handa@m17n.org>
6044
6045 * coding.c (decode_eol): Pay attention to buffer relocation in
6046 del_range_2.
6047 (decode_coding): Call decode_eol before restoring undo_list.
6048
6049 2008-02-01 Kenichi Handa <handa@m17n.org>
6050
6051 * charset.c (Fdefine_charset_internal): Fix setting of
6052 emacs_mule_bytes.
6053
6054 2008-02-01 Kenichi Handa <handa@m17n.org>
6055
6056 * keyboard.c (read_char): Check if C is a character or not before
6057 looking up Vkeyboard_translate_table.
6058
6059 2008-02-01 Kenichi Handa <handa@m17n.org>
6060
6061 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
6062 condition to terminate the loop.
6063
6064 2008-02-01 Kenichi Handa <handa@m17n.org>
6065
6066 * coding.c (produce_composition): Compare charbuf[i] instead of
6067 args[i] against 0.
6068 (Fterminal_coding_system): Use EQ to compare Lisp objects.
6069
6070 2008-02-01 Kenichi Handa <handa@m17n.org>
6071
6072 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
6073 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
6074 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
6075 detect_coding.
6076 (emacs_mule_char): Handle old style (Emacs 20) component character
6077 of a composition.
6078 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
6079 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
6080 composition rule.
6081 (decode_coding_emacs_mule): Handle invalid bytes correctly.
6082
6083 2008-02-01 Kenichi Handa <handa@m17n.org>
6084
6085 * coding.c (encode_coding_ccl): Allocate destination dynamically
6086 when necessary.
6087
6088 2008-02-01 Kenichi Handa <handa@m17n.org>
6089
6090 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
6091 the loop. When quitted, show a proper error message.
6092
6093 2008-02-01 Kenichi Handa <handa@m17n.org>
6094
6095 * xterm.c (x_set_glyph_string_clipping_exactly): Set
6096 src->clip_head and src->clip_tail temporarily instead of src->hl.
6097
6098 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
6099 character sequence.
6100 (Fccl_execute_on_string): Use ASET, not XSET.
6101
6102 2008-02-01 Kenichi Handa <handa@m17n.org>
6103
6104 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
6105
6106 2008-02-01 Kenichi Handa <handa@m17n.org>
6107
6108 * coding.c (decode_coding): Fix the condition of terminating the
6109 decoding loop.
6110
6111 2008-02-01 Kenichi Handa <handa@m17n.org>
6112
6113 * data.c (Faset): On setting a character bigger than 255 in a
6114 unibyte string, signal an error instead of make the string multibyte.
6115
6116 2008-02-01 Kenichi Handa <handa@m17n.org>
6117
6118 * charset.c (map_charset_chars): Fix for ascii-compatible charset
6119 made by a mapping table.
6120
6121 2008-02-01 Kenichi Handa <handa@m17n.org>
6122
6123 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
6124 not.
6125 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
6126 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
6127
6128 * xterm.c (x_draw_composite_glyph_string_foreground): Check
6129 s->face is NULL or not.
6130
6131 2008-02-01 Kenichi Handa <handa@m17n.org>
6132
6133 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
6134 (x_draw_glyph_string): Fix drawing of right_overhang and
6135 left_overhang around/on cursor.
6136
6137 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
6138
6139 2008-02-01 Kenichi Handa <handa@m17n.org>
6140
6141 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
6142
6143 2008-02-01 Kenichi Handa <handa@m17n.org>
6144
6145 * coding.c (Fdefine_coding_system_internal)
6146 (Fdefine_coding_system_alias): Avoid a duplicated element in
6147 Vcoding_system_alist.
6148
6149 2008-02-01 Kenichi Handa <handa@m17n.org>
6150
6151 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6152
6153 * coding.c (Qcoding_system_define_form): New variable.
6154 (syms_of_coding): Intern and staticpro it.
6155 (Fcoding_system_p): Check Qcoding_system_define_form.
6156 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
6157
6158 * coding.h (CODING_SYSTEM_P): If ID is not available, call
6159 Fcoding_system_p.
6160 (CHECK_CODING_SYSTEM): If ID is not available, call
6161 Fcheck_coding_system.
6162 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
6163 Try also Fcheck_coding_system.
6164
6165 2008-02-01 Kenichi Handa <handa@m17n.org>
6166
6167 * coding.c (code_conversion_restore): GCPRO arg.
6168
6169 2008-02-01 Kenichi Handa <handa@m17n.org>
6170
6171 * character.c (lisp_string_width): Check multibyteness of STRING.
6172
6173 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6174
6175 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
6176 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
6177 (decode_mac_font_name): Use decode_coding_c_string instead of
6178 decode_coding.
6179 (x_load_font): Initialize fontp->fontset to -1. Set
6180 fontp->encoding_type.
6181
6182 2008-02-01 Kenichi Handa <handa@m17n.org>
6183
6184 * search.c (search_buffer): Give up BM search on case-fold-search
6185 if one of a target character has a case-equivalence of different
6186 byte length even if that target charcter is an ASCII.
6187 (simple_search): Fix calculation of byte length of matched text.
6188 (boyer_moore): Fix handling of case-equivalent multibyte characters.
6189
6190 2008-02-01 Kenichi Handa <handa@m17n.org>
6191
6192 * coding.c (decode_coding): Fix handling of invalid bytes.
6193
6194 2008-02-01 Kenichi Handa <handa@m17n.org>
6195
6196 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6197 Unicode characters.
6198
6199 2008-02-01 Kenichi Handa <handa@m17n.org>
6200
6201 * coding.c (encode_coding_object): If a pre-write-conversion
6202 function makes a new buffer, kill it.
6203
6204 2008-02-01 Kenichi Handa <handa@m17n.org>
6205
6206 * coding.c (QCascii_compatible_p): New variable.
6207 (syms_of_coding): Initialize it.
6208 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
6209 calling string_char.
6210 (record_conversion_result): Add `default:' case.
6211 (coding_charset_list): Delete unused variable `coding_type'.
6212 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
6213 property in the plist of the coding system.
6214 (Fcoding_system_put): Check QCascii_compatible_p.
6215
6216 2008-02-01 Miles Bader <miles@gnu.org>
6217
6218 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
6219 removed calculation of frame `f', as it's now used.
6220
6221 2008-02-01 Kenichi Handa <handa@m17n.org>
6222
6223 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
6224 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
6225 (UNIDATA): New variable.
6226 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
6227 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
6228 $(RUN_TEMACS) unconditionally.
6229
6230 2008-02-01 Kenichi Handa <handa@m17n.org>
6231
6232 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
6233 (admindir): New variable.
6234 ($(lispsource)international/charprop.el): New target.
6235
6236 2008-02-01 Miles Bader <miles@gnu.org>
6237
6238 * character.c (chars-in-region): Remove obsolete function.
6239 (syms_of_character): Remove its initialization.
6240
6241 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
6242
6243 * w32select.c (validate_coding_system)
6244 (setup_windows_coding_system): New functions.
6245 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
6246 setup_windows_coding_system.
6247 (setup_config, Fw32_get_clipboard_data): Use
6248 validate_coding_system.
6249 (Fx_selection_exists): Move call to setup_config to a place
6250 where signals are allowed.
6251
6252 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
6253 (Fcheck_coding_system): Add declarations.
6254
6255 2008-02-01 Kenichi Handa <handa@m17n.org>
6256
6257 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
6258
6259 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6260
6261 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
6262 string as the second argument for x_new_fontset.
6263
6264 2008-02-01 Kenichi Handa <handa@m17n.org>
6265
6266 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
6267 (encode_coding_object): Use safe_call instead of call2.
6268
6269 2008-02-01 Kenichi Handa <handa@m17n.org>
6270
6271 * fontset.c (Fset_fontset_font): Check family element of a given vector.
6272
6273 * Makefile.in (lisp): Include charprop.el.
6274
6275 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6276
6277 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
6278 Not sure if it's unnecessary.
6279
6280 2008-02-01 Steven Tamm <steventamm@mac.com>
6281
6282 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
6283 some possibly unnecessary fontset checking code that crashed
6284 when creating a new frame.
6285
6286 2008-02-01 Kenichi Handa <handa@m17n.org>
6287
6288 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
6289 lookup_face.
6290
6291 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
6292
6293 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
6294
6295 2008-02-01 Kenichi Handa <handa@m17n.org>
6296
6297 * coding.c: Cancel the change done in HEAD on 2008-02-01.
6298 (coding_charset_list): New function.
6299
6300 * coding.h (coding_charset_list): Extern it.
6301
6302 2008-02-01 Kenichi Handa <handa@m17n.org>
6303
6304 * fontset.c (Fset_fontset_font): Call find_font_encoding with
6305 concatenation of family and registry.
6306
6307 2008-02-01 Kenichi Handa <handa@m17n.org>
6308
6309 * character.h (BYTE8_STRING): Fix typo.
6310
6311 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
6312 string to multibyte (sync to HEAD).
6313
6314 * casefiddle.c (casify_region): Handle changes in byte-length
6315 using replace_range_2 (sync to HEAD).
6316
6317 2008-02-01 Andreas Schwab <schwab@suse.de>
6318
6319 * chartab.c (map_char_table): GCPRO table and arg.
6320
6321 2008-02-01 Kenichi Handa <handa@m17n.org>
6322
6323 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
6324 already at limit.
6325
6326 2008-02-01 Kenichi Handa <handa@m17n.org>
6327
6328 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
6329 instead of fast_c_string_match_ignore_case.
6330 (find_font_encoding): Change argument to Lisp_Object. Use
6331 fast_string_match_ignore_case instead of
6332 fast_c_string_match_ignore_case. Change caller.
6333
6334 2008-02-01 Kenichi Handa <handa@m17n.org>
6335
6336 * xdisp.c (get_next_display_element): In unibyte case, decide to
6337 display in octal form by checking a chacter by
6338 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
6339
6340 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
6341
6342 * character.c (unibyte_has_multibyte_table): New variable.
6343
6344 * character.h (unibyte_has_multibyte_table): Extern it.
6345 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
6346
6347 2008-02-01 Kenichi Handa <handa@m17n.org>
6348
6349 * coding.c (encode_coding_iso_2022): Fix handling of charset
6350 annotation.
6351
6352 2008-02-01 Kenichi Handa <handa@m17n.org>
6353
6354 * coding.c (setup_coding_system): If coding_system is nil, use
6355 Qundecided.
6356 (Fterminal_coding_system): Return nil if terminal coding system is
6357 `undecided'.
6358 (syms_of_coding): Define coding-system `undecided' here. Setup
6359 terminal_coding as `undecided'.
6360
6361 2008-02-01 Kenichi Handa <handa@m17n.org>
6362
6363 * xdisp.c (message_dolog, set_message_1): Call
6364 unibyte_char_to_multibyte with arg type int.
6365
6366 * lread.c (read1): Fix reading of a char-table.
6367
6368 * print.c (print_object): Include sub char-table in cicularities
6369 detection.
6370
6371 2008-02-01 Kenichi Handa <handa@m17n.org>
6372
6373 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
6374 cons. Append the found sequences in car of ARGS instead of prepending.
6375
6376 2008-02-01 Kenichi Handa <handa@m17n.org>
6377
6378 * fileio.c (report_file_error): Make a unibyte string from
6379 strerror (errorno).
6380 (Fsubstitute_in_file_name): Fix the arg to
6381 unibyte_char_to_multibyte. It is evaluated twice.
6382
6383 2008-02-01 Kenichi Handa <handa@m17n.org>
6384
6385 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
6386
6387 2008-02-01 Kenichi Handa <handa@m17n.org>
6388
6389 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
6390 BOM is not found.
6391 (detect_coding, detect_coding_system): Optimization for ISO-2022
6392 when no 8-bit data is found.
6393
6394 2008-02-01 Jason Rumney <jasonr@gnu.org>
6395
6396 * w32fns.c (x_to_w32_font): Update to use new coding struct.
6397
6398 2008-02-01 Kenichi Handa <handa@m17n.org>
6399
6400 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
6401 CHARS.
6402
6403 2008-02-01 Steven Tamm <steventamm@mac.com>
6404
6405 * macterm.c (mac_encode_char): Add charset argument and update
6406 to use encoding_type.
6407 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
6408 switch to pure fontset.
6409 (decode_mac_font_name): Temporarily remove decoding.
6410 (x_font_name_to_mac_font_name): Temporarily remove encoding.
6411 (x_load_font): Temporarily remove encoding.
6412
6413 2008-02-01 Kenichi Handa <handa@m17n.org>
6414
6415 * xfaces.c (Fface_font): If frame is not on a window system,
6416 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
6417 refer to face->font.
6418 (split_font_name_into_vector, build_font_name_from_vector)
6419 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
6420 whne HAVE_WINDOW_SYSTEM is defined.
6421
6422 2008-02-01 Kenichi Handa <handa@m17n.org>
6423
6424 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
6425 (x_produce_glyphs): Fix setting of members of cmp in case
6426 cmp->glyph_len is zero.
6427
6428 * fontset.c (Fset_fontset_font): Fix docstring.
6429 (Ffontset_info): Make it backward compatible. New arg ALL.
6430
6431 2008-02-01 Kim F. Storm <storm@cua.dk>
6432
6433 * process.c (read_process_output): Grow decoding_buf when needed;
6434 this could cause a crash in allocate_string and compact_small_strings.
6435
6436 2008-02-01 Kenichi Handa <handa@m17n.org>
6437
6438 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
6439
6440 2008-02-01 Kenichi Handa <handa@m17n.org>
6441
6442 * coding.c (setup_coding_system): Set coding->common_flags
6443 correctly for raw-text.
6444 (consume_chars): On encoding unibyte text by raw-text, don't check
6445 multibyte form.
6446 (encode_coding): On encoding by raw-text, never use translation tables.
6447
6448 * fileio.c (e_write): Short cut for the case of no encoding.
6449
6450 2008-02-01 Kenichi Handa <handa@m17n.org>
6451
6452 * coding.c (detect_coding, detect_coding_system): Delete unused
6453 variables.
6454
6455 2008-02-01 Kenichi Handa <handa@m17n.org>
6456
6457 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
6458 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
6459
6460 2008-02-01 Kenichi Handa <handa@m17n.org>
6461
6462 * coding.c (Ffind_coding_systems_region_internal): Include
6463 raw-text and no-conversion in the result.
6464
6465 2008-02-01 Kenichi Handa <handa@m17n.org>
6466
6467 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
6468 (load_font_get_repertory): Delete unnecessary check of ENCODING of
6469 FONT_DEF.
6470 (font_def_arg, add_arg, from_arg, to_arg): New args.
6471 (set_fontset_font): Change argument.
6472 (Fset_fontset_font): Fix for the case that TARGET is a script
6473 name and charset name.
6474 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
6475
6476 2008-02-01 Kenichi Handa <handa@m17n.org>
6477
6478 * fontset.c (fontset_font): Rename from fontset_face. Change return
6479 value.
6480 (face_suitable_for_char_p, face_for_char): Adjust for the change
6481 of fontset_font.
6482 (make_fontset_for_ascii_face): Fix setting of the fontset element
6483 for ASCII.
6484 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
6485 to get a font name.
6486 (Ffontset_info): Adjust for the change of fontset_font.
6487
6488 * coding.c (emacs_mule_char): Check invalid code more regidly.
6489
6490 * character.h (LEADING_CODE_LATIN_1_MIN)
6491 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
6492
6493 2008-02-01 Kenichi Handa <handa@m17n.org>
6494
6495 * editfns.c (check_translation): New function.
6496 (Ftranslate_region_internal): Handle M:N mapping.
6497
6498 2008-02-01 Kenichi Handa <handa@m17n.org>
6499
6500 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
6501
6502 2008-02-01 Kenichi Handa <handa@m17n.org>
6503
6504 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
6505 goto invalid_code.
6506 (decode_coding_iso_2022): Fix handling of invalid designation.
6507
6508 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
6509 after calling code_conversion_save.
6510
6511 2008-02-01 Kenichi Handa <handa@m17n.org>
6512
6513 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
6514
6515 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
6516
6517 * fontset.c: Include "intervals.h".
6518 (fontset_face): Fix comparing of Lisp_Objects.
6519 (free_face_fontset, new_fontset_from_font_name): Fix
6520 Lisp_Object/int mixup.
6521
6522 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
6523
6524 * coding.c: Add many prototypes for static functions.
6525 (get_translation_table): Allow max_lookup to be NULL.
6526 (decode_coding, Ffind_coding_systems_region_internal)
6527 (Funencodable_char_position, Fcheck_coding_systems_region): Call
6528 get_translation_table with max_lookup NULL.
6529
6530 2008-02-01 Kenichi Handa <handa@m17n.org>
6531
6532 * coding.c (get_translation_table): Declare it as Lisp_Object.
6533 (LOOKUP_TRANSLATION_TABLE): New macro.
6534 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
6535 instead of CHAR_TABLE_REF.
6536
6537 2008-02-01 Kenichi Handa <handa@m17n.org>
6538
6539 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
6540 annotation data format.
6541 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
6542 Change arguments FROM and TO to single argument NCHARS. Change caller.
6543 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
6544 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6545 (decode_coding_ccl, decode_coding_charset): Pay attention to
6546 coding->charbuf_used.
6547 (get_translation): New function.
6548 (produce_chars): New arguments translation_table and last_block.
6549 Translate characters here. Return number of carryover chars.
6550 Change caller.
6551 (produce_composition): New argument pos. Change caller.
6552 Adjust for the change of annotation data format.
6553 (produce_charset, produce_annotation): Likewise.
6554 (decode_coding, encode_coding): Don't call translate_chars.
6555 (consume_chars): New arg translation_table. Change caller.
6556 (translate_chars): Delete.
6557 (syms_of_coding): Make translation-table's number of extra slots 2.
6558
6559 2008-02-01 Kenichi Handa <handa@m17n.org>
6560
6561 * search.c (simple_search): Fix setting this_pos_byte in backward
6562 search.
6563
6564 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
6565 byte sequence.
6566 (detect_coding_ccl): Fix setting of the variable valids.
6567
6568 2008-02-01 Kenichi Handa <handa@m17n.org>
6569
6570 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
6571
6572 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
6573
6574 * editfns.c (Ftranslate_region_internal): Rename from
6575 Ftranslate_region. Accept a char-table in TABLE.
6576 (syms_of_editfns): Defsubr Stranslate_region_internal.
6577
6578 * xfaces.c (set_lface_from_font_name): If a font is specified for
6579 a frame, generate a fontset from the font.
6580 (build_scalable_font_name): If the scalable font is requested for
6581 a specific size, don't change that size.
6582 (try_font_list): Try a scalable font also in the case that a
6583 pattern string is specified.
6584
6585 2008-02-01 Kenichi Handa <handa@m17n.org>
6586
6587 * xfaces.c (Fface_font): New optional arg CHARACTER.
6588
6589 2008-02-01 Kenichi Handa <handa@m17n.org>
6590
6591 * charset.h (CHARSET_OFFSET): New macro.
6592
6593 2008-02-01 Kenichi Handa <handa@m17n.org>
6594
6595 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
6596
6597 * fontset.c (fontset_face): Handle the case that repertory is a
6598 char-table.
6599 (find_font_encoding): Return nil for unknown encoding.
6600 (Fset_fontset_font): Ignore a font of unknown encoding.
6601
6602 2008-02-01 Kenichi Handa <handa@m17n.org>
6603
6604 * keymap.c (describe_vector): Handle default value of a char table.
6605
6606 * fontset.c (fontset_face): Handle fallback fonts correctly.
6607 (Ffontset_info): Return infomation about fallback fonts.
6608
6609 2008-02-01 Kenichi Handa <handa@m17n.org>
6610
6611 * fontset.c (FONTSET_DEFAULT): New macro.
6612 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
6613 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
6614 the case that it is nil.
6615 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
6616 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
6617
6618 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
6619 subset or superset.
6620
6621 2008-02-01 Kenichi Handa <handa@m17n.org>
6622
6623 * emacs.c (main): Call init_charset after syms_of_XXX.
6624
6625 * charset.c (Vcharset_map_directory): Delete.
6626 (Vcharset_map_path): New variable.
6627 (load_charset_map_from_file): Use Vcharset_map_path instead.
6628 (init_charset): Initialize Vcharset_map_path.
6629 (syms_of_charset): Delete declaration of "charset-map-directory",
6630 add declaration of "charset-map-path".
6631
6632 2008-02-01 Kenichi Handa <handa@m17n.org>
6633
6634 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
6635 ASCII only string.
6636
6637 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
6638
6639 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6640 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
6641
6642 2008-02-01 Kenichi Handa <handa@m17n.org>
6643
6644 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
6645
6646 * coding.c (QCmnemonic, QCdefalut_char)
6647 (QCdecode_translation_table, QCencode_translation_table)
6648 (QCpost_read_conversion, QCpre_write_conversion): New variables.
6649 (get_translation_table): Return a list of translation tables if
6650 necessary.
6651 (decode_coding): Call get_translation_table with ENCODEP 0.
6652 (char_encodable_p): If translation_table is non-nil, always call
6653 translate_char.
6654 (Fdefine_coding_system_internal): Accept list of translation
6655 tables as :encode-translation-table and :decode-translation-table.
6656 (Fcoding_system_put): New function.
6657 (syms_of_coding): Declare new symbols. Defsubr
6658 Scoding_system_put.
6659 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
6660 typically JISX0212.
6661
6662 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
6663 when the charset is superset type.
6664
6665 * character.c (translate_char): Accept list of translation tables.
6666
6667 2008-02-01 Kenichi Handa <handa@m17n.org>
6668
6669 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
6670 (CODING_ATTR_TRANS_TBL): New macro.
6671
6672 * coding.c (get_translation_table): New function.
6673 (translate_chars): Fix the bug of skipping annotation data.
6674 (decode_coding, encode_coding): Utilize get_translation_table.
6675 (char_encodable_p, Funencodable_char_position): Translate char if
6676 necessary.
6677 (Ffind_coding_systems_region_internal)
6678 (Fcheck_coding_systems_region): Setup translation table for encode
6679 in a coding system attribute vector in advance.
6680 (Fdefine_coding_system_internal): Allow a symbol as translation
6681 table. For shift-jis type coding system, allow 4th charset.
6682
6683 2008-02-01 Kenichi Handa <handa@m17n.org>
6684
6685 * coding.c (decode_coding_sjis): Check the first byte rigidly.
6686
6687 * xdisp.c (get_next_display_element): Pass -1 as POS to
6688 FACE_FOR_CHAR if displaying a C-string.
6689
6690 2008-02-01 Kenichi Handa <handa@m17n.org>
6691
6692 * composite.c (get_composition_id): Handle xoff and yoff in a
6693 composition rule.
6694
6695 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6696 (struct composition): New member lbearing and rbearing.
6697
6698 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6699 (x_get_glyph_overhangs): Handle a composition glyph.
6700 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
6701
6702 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6703 composition glyph.
6704
6705 2008-02-01 Kenichi Handa <handa@m17n.org>
6706
6707 * print.c: Include charset.h.
6708 (Vprint_charset_text_property): New variable.
6709 (Qdefault): Extern it.
6710 (PRINT_STRING_NON_CHARSET_FOUND)
6711 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6712 (print_check_string_result): New variable.
6713 (print_check_string_charset_prop): New function.
6714 (print_prune_charset_plist): New variable.
6715 (print_prune_string_charset): New function.
6716 (print_object): Call print_prune_string_charset if
6717 Vprint_charset_text_property is not t.
6718 (print_interval): Print nothing if itnerval->plist is nil.
6719 (syms_of_print): Declare Vprint_charset_text_property as a lisp
6720 variable. Init and staticpro print_prune_charset_plist.
6721
6722 2008-02-01 Kenichi Handa <handa@m17n.org>
6723
6724 * fontset.c (new_fontset_from_font_name): Use the specified font
6725 for all characters in the new fontset.
6726
6727 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6728 OBJECT args.
6729
6730 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
6731 OBJECT args for composition too.
6732
6733 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6734 OBJECT args.
6735
6736 2008-02-01 Kenichi Handa <handa@m17n.org>
6737
6738 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
6739
6740 * fontset.c (reorder_font_vector): Adjust for the change of
6741 FONT_DEF format.
6742 (fontset_face): New arg id. Change caller.
6743 (face_for_char): New args pos and object.
6744 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
6745 (fs_query_fontset): Check NAME by Fassoc too.
6746 (Fset_fontset_font): Allow non-XLFD font name.
6747 (Ffontset_info): Adjust for the change of FONT_DEF format.
6748
6749 * fontset.h (face_for_char): Adjust prototype.
6750
6751 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
6752 (append_space, extend_face_to_end_of_line)
6753 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6754 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
6755
6756 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
6757 POS and OBJECT args.
6758
6759 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
6760 POS and OBJECT args.
6761
6762 2008-02-01 Jason Rumney <jasonr@gnu.org>
6763
6764 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
6765 of GlobalAlloc'ed memory.
6766
6767 2008-02-01 Kenichi Handa <handa@m17n.org>
6768
6769 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
6770
6771 * charset.h (charset_table_used): Delete extern.
6772
6773 * charset.c (charset_table_used): Make it static.
6774 (map_charset_chars): Fix args to c_function with.
6775
6776 * chartab.c (map_sub_char_table_for_charset): Fix args to
6777 c_function with.
6778
6779 * coding.h (enum coding_result_code): Delete
6780 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
6781
6782 * coding.c (Qinsufficient_source, Qinconsistent_eol)
6783 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
6784 (Vlast_code_conversion_error): New variables.
6785 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
6786 (ONE_MORE_BYTE): Record error if any instead of signaling an
6787 error. If non-ASCII multibyte char is found, return the negative
6788 value of the code. All callers changed to check it.
6789 (ONE_MORE_BYTE_NO_CHECK): Likewise.
6790 (record_conversion_result): New function. Change all codes setting
6791 coding->result to call this function.
6792 (detect_coding_utf_8, decode_coding_utf_8)
6793 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
6794 Don't use the local variable incomplete.
6795 (emacs_mule_char): Change the second arg to `const'.
6796 (decode_coding): Fix of flushing out unprocessed data.
6797 (make_conversion_work_buffer): Fix making of a work buffer.
6798 (decode_coding_object): Return coding->dst_object.
6799
6800 * fontset.c (set_fontset_font): Fix args.
6801
6802 * lisp.h (CHARACTERBITS): Define as 22.
6803
6804 * process.c (send_process): Be sure to set coding->src_multibyte.
6805
6806 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
6807
6808 2008-02-01 Kenichi Handa <handa@m17n.org>
6809
6810 * xdisp.c (handle_auto_composed_prop): Give limit to
6811 Fnext_single_char_property_change.
6812
6813 2008-02-01 Kenichi Handa <handa@m17n.org>
6814
6815 * composite.c (syms_of_composite): Don't make the composition hash
6816 table weak.
6817
6818 * fontset.c (Fset_fontset_font): Fix docstring.
6819
6820 * lisp.h (detect_coding_system): Adjust prototype.
6821
6822 * fileio.c (kill_workbuf_unwind): Delete this function.
6823 (Finsert_file_contents): Adjust the call of detect_coding_system.
6824 Get conversion_buffer by code_conversion_save. Use the macor
6825 CODING_MAY_REQUIRE_DECODING. After decoding, update
6826 coding_system.
6827
6828 * coding.h (make_conversion_work_buffer): Delete extern.
6829 (code_conversion_save): Extern it.
6830
6831 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
6832 (CODING_GET_INFO): Delete argument eol_type. Change callers.
6833 (decode_coding_utf_8): Don't do eol converion.
6834 (detect_coding_utf_16): Check coding->src_chars, not
6835 coding->src_bytes. Add heuristics for those that have no signature.
6836 (decode_coding_emacs_mule, decode_coding_iso_2022)
6837 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6838 Don't do eol converion.
6839 (adjust_coding_eol_type): Return a new coding system.
6840 (detect_coding): Don't detect eol. Fix for utf-16 detection.
6841 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
6842 each change.
6843 (decode_coding): Pay attention to undo_list. Do eol convesion for
6844 all types of coding-systems (if necessary).
6845 (Vcode_conversion_work_buf_list): Delete it.
6846 (Vcode_conversion_reused_workbuf): Rename from
6847 Vcode_conversion_reused_work_buf.
6848 (Vcode_conversion_workbuf_name): New variable.
6849 (reused_workbuf_in_use): New variable.
6850 (make_conversion_work_buffer): Delete the arg DEPTH.
6851 (code_conversion_restore): Change argument to cons.
6852 (code_conversion_save): Delete the argument BUFFER. Change callers.
6853 (detect_coding_system): New argument src_chars. Change callers.
6854 Fix for utf-16 detection.
6855 (init_coding_once): Don't use ISO_carriage_return.
6856 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
6857 reused_workbuf_in_use.
6858
6859 2008-02-01 Kenichi Handa <handa@m17n.org>
6860
6861 * keymap.c (store_in_keymap): Pay attention to the case that idx
6862 is a cons specifying a character range.
6863
6864 2008-02-01 Kenichi Handa <handa@m17n.org>
6865
6866 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
6867 HANDLED_RECOMPUTE_PROPS.
6868
6869 * coding.c (Fdefine_coding_system_internal): Fix checking of
6870 ascii compatibility.
6871
6872 2008-02-01 Kenichi Handa <handa@m17n.org>
6873
6874 * charset.c (find_charsets_in_text): Delete unused locale variable.
6875 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
6876
6877 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
6878 Resync charset_list to Vemacs_mule_charset_list.
6879
6880 * keymap.c (store_in_keymap): Pay attention to the case that idx
6881 is a cons specifying a character range.
6882
6883 2008-02-01 Kenichi Handa <handa@m17n.org>
6884
6885 * composite.c (update_compositions): Bind inhibit-read-only, etc
6886 to t before calling remove-list-of-text-properties.
6887
6888 * print.c (print_object): Always print ASCII chars as is.
6889
6890 2008-02-01 Kenichi Handa <handa@m17n.org>
6891
6892 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
6893
6894 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
6895 is a char table.
6896
6897 2008-02-01 Kenichi Handa <handa@m17n.org>
6898
6899 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
6900
6901 2008-02-01 Kenichi Handa <handa@m17n.org>
6902
6903 * xfaces.c (set_lface_from_font_name): Fix for the case that
6904 FONTNAME is not fontset name.
6905
6906 2008-02-01 Kenichi Handa <handa@m17n.org>
6907
6908 * fns.c (base64_encode_1): Fix previous change.
6909
6910 2008-02-01 Kenichi Handa <handa@m17n.org>
6911
6912 * fontset.c (set_fontset_font): New function.
6913 (Fset_fontset_font): If a font is specified for a charset, use
6914 map_charset_chars to store the font spec in a fontset.
6915
6916 2008-02-01 Kenichi Handa <handa@m17n.org>
6917
6918 * fontset.c (fontset_face): Create a fallback fontset on demand.
6919 (make_fontset): Don't create a fallback fontset here.
6920 (free_face_fontset): Free a fallback fontset (if any) too.
6921 (n_auto_fontsets): Delete this variable.
6922 (auto_fontset_alist): New variable.
6923 (new_fontset_from_font_name): Check auto_fontset_alist.
6924 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
6925 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
6926 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
6927 Defsubr Sfontset_list_all.
6928
6929 2008-02-01 Kenichi Handa <handa@m17n.org>
6930
6931 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6932
6933 2008-02-01 Kenichi Handa <handa@m17n.org>
6934
6935 * fontset.c (Fnew_fontset): Check NAME more rigidly.
6936
6937 2008-02-01 Kenichi Handa <handa@m17n.org>
6938
6939 * editfns.c (Fgoto_char): Fix docstring.
6940
6941 2008-02-01 Kenichi Handa <handa@m17n.org>
6942
6943 * insdel.c (insert_from_gap): Adjust intervals correctly.
6944
6945 2008-02-01 Jason Rumney <jasonr@gnu.org>
6946
6947 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
6948 (pfnGetFontUnicodeRanges): New dynamically loaded function.
6949 (w32_initialize): Try to load it.
6950 (x_get_font_repertory): Use it if available.
6951 (w32_encode_char): Add shortcut for unicode output.
6952
6953 * w32fns.c (w32_load_system_font): Default charset to -1.
6954 (x_to_w32_charset): Match all fonts for unicode.
6955 (w32_to_x_charset): New parameter matching. Don't return partial
6956 or wildcard charsets.
6957 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
6958 (w32_codepage_for_font): Return CP_UNICODE for unicode.
6959 (w32_to_x_font): Match charset to real charset.
6960 (enum_font_cb2): Always list unicode versions.
6961
6962 * makefile.w32-in (temacs): Increase EMHEAP.
6963
6964 2008-02-01 Jason Rumney <jasonr@gnu.org>
6965
6966 * w32term.c (w32_encode_char): New charset parameter.
6967 font_info.encoding becomes encoding_type.
6968 (x_get_font_repertory): New function. Warning: stub only!
6969 (x_new_font): Return quickly if font already set.
6970 (x_new_fontset): fontsetname parameter is Lisp_Object.
6971 Use new fs_query_fontset. Try new_fontset_from_font_name.
6972 Use fontset_name for return value.
6973
6974 * w32term.h: Declare x_get_font_repertory.
6975
6976 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
6977 place of find_charset_in_text. Use encode_coding_object in place
6978 of encode_coding.
6979 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
6980 decode_coding.
6981
6982 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
6983 of x_new_fontset.
6984 (w32_load_system_font): Initialize charset as unicode.
6985 font_info.encoding becomes encoding_type.
6986 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
6987 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
6988 (syms_of_w32fns): Set get_font_repertory_func.
6989
6990 * w32console.c: Include character.h. Use terminal_encode_buffer
6991 from term.c.
6992 (write_glyphs): Use new version of encode_terminal_code. Use
6993 encode_coding_object in place of encode_coding.
6994
6995 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
6996 encoding becomes encoding_type.
6997
6998 * term.c (terminal_encode_buffer): Make externally visible.
6999
7000 * makefile.w32-in: Add character.h dependancies.
7001 (character.o, chartab.o): New targets.
7002
7003 2008-02-01 Kenichi Handa <handa@m17n.org>
7004
7005 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
7006 CODING_ID_EOL_TYPE.
7007
7008 2008-02-01 Andreas Schwab <schwab@suse.de>
7009
7010 * coding.c (produce_chars): Revert last change.
7011
7012 2008-02-01 Kenichi Handa <handa@m17n.org>
7013
7014 * charset.h (charset_unicode): Extern it.
7015
7016 * charset.c (string_xstring_p): Check by (C >= 0x100).
7017 (find_charsets_in_text): Change format of the arc CHARSETS. New
7018 arg MULTIBYTE.
7019 (Ffind_charset_region, Ffind_charset_string): Adjust for the
7020 change of find_charsets_in_text.
7021 (Fsplit_char): Fix doc. Never return unknown.
7022
7023 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
7024
7025 * coding.c (Fdefine_coding_system_alias): Update
7026 Vcoding_system_list.
7027
7028 * fontset.c (load_font_get_repertory): Pay attention to the case
7029 that ENCODING of a font is specified by a char-table.
7030
7031 * xterm.c (x_get_font_repertory): Handle the case that the
7032 encoding of font is other than Unicode.
7033
7034 2008-02-01 Kenichi Handa <handa@m17n.org>
7035
7036 * term.c (encode_terminal_code): Don't handle glyph-table. Check
7037 if a character is encodable by the terminal coding system. If
7038 not, produces proper number of `?'s. Update
7039 terminal_encode_buffer and terminal_encode_buf_size if necessary.
7040 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
7041
7042 2008-02-01 Kenichi Handa <handa@m17n.org>
7043
7044 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
7045 variables.
7046 (encode_terminal_code): Change argument. Encode multiple
7047 characters at once. Store the result of encoding in
7048 terminal_encode_buffer.
7049 (write_glyphs, insert_glyphs): Adjust for the change of
7050 encode_terminal_code.
7051 (term_init): Initialize terminal_encode_buffer and
7052 terminal_encode_buf_size.
7053
7054 * coding.c (consume_chars): If coding->src_object is nil, don't
7055 check annotation.
7056
7057 2008-02-01 Kenichi Handa <handa@m17n.org>
7058
7059 * character.c (char_string): Use ASCII_CHAR_P instead of
7060 SINGLE_BYTE_CHAR_P.
7061
7062 2008-02-01 Kenichi Handa <handa@m17n.org>
7063
7064 * xdisp.c (handle_auto_composed_prop): Check if the last
7065 characters of auto-composed region is newly composed with the
7066 following characters.
7067 (handle_composition_prop): Fix checking of point being inside
7068 composition.
7069
7070 2008-02-01 Kenichi Handa <handa@m17n.org>
7071
7072 * fns.c (concat): Don't change multibyteness of the result by
7073 concatenating an 8-bit character.
7074
7075 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
7076 multibyteness of the result when newelt is an 8-bit character.
7077
7078 2008-02-01 Dave Love <fx@gnu.org>
7079
7080 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
7081 EMACS_INT.
7082
7083 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
7084
7085 * xfaces.c (face_numeric_value): Declare dim size_t.
7086 (Finternal_lisp_face_equal_p): Remove unused f.
7087
7088 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
7089 (MATRIX_ROW): Remove unused vars.
7090 (draw_glyphs, x_insert_glyphs, fast_find_position)
7091 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
7092 byte/char counts.
7093
7094 * regex.c (regex_compile): Remove unused var.
7095
7096 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7097
7098 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7099 (Faccessible_keymaps, where_is_internal): Remove unused vars.
7100
7101 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
7102
7103 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
7104
7105 * fileio.c (Fwrite_region): Remove unused var.
7106
7107 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
7108 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
7109
7110 * composite.c (Fremove_list_of_text_properties): Declare.
7111
7112 * coding.c (inhibit_pre_post_conversion): Remove (unused).
7113 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
7114 (coding_inherit_eol_type): Remove unused attrs.
7115 (detect_coding): Cast arg of detect_eol.
7116
7117 * charset.c (syms_of_charset): Remove unused var p.
7118 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
7119 byte/char counts.
7120
7121 * casetab.c (set_case_table): Remove unused var.
7122
7123 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
7124 unused vars.
7125
7126 2008-02-01 Dave Love <fx@gnu.org>
7127
7128 * xterm.c (x_bitmap_mask): Declare.
7129
7130 2008-02-01 Dave Love <fx@gnu.org>
7131
7132 * xterm.c (x_term_init): Fix type error.
7133
7134 * lisp.h: Add Funibyte_char_to_multibyte.
7135
7136 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
7137 (Fset_coding_system_priority): Doc fix.
7138
7139 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
7140
7141 * indent.c (check_composition): Make start and end EMACS_INT.
7142
7143 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
7144
7145 * xdisp.c (handle_composition_prop, check_point_in_composition):
7146 Make buffer positions EMACS_INT.
7147
7148 * composite.c (find_composition, run_composition_function)
7149 (update_compositions, Ffind_composition_internal): Make buffer
7150 positions EMACS_INT.
7151
7152 * composite.h (find_composition, update_compositions): Make
7153 position args EMACS_INT.
7154
7155 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
7156
7157 * intervals.c (get_property_and_range):
7158 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
7159
7160 * unexalpha.c: Don't include varargs.h.
7161
7162 2008-02-01 Dave Love <fx@gnu.org>
7163
7164 * coding.h (ENCODE_UTF_8): New.
7165
7166 * Makefile.in (gtkutil.o): Depend on coding.h.
7167
7168 * coding.c (Fset_coding_system_priority): Doc fix.
7169
7170 2008-02-01 Kenichi Handa <handa@m17n.org>
7171
7172 * fileio.c (Finsert_file_contents): Call setup_coding_system in
7173 the case of auto saving.
7174
7175 2008-02-01 Andreas Schwab <schwab@suse.de>
7176
7177 * chartab.c (map_char_table, map_char_table_for_charset): Protect
7178 `range' from GC.
7179
7180 2008-02-01 Kenichi Handa <handa@m17n.org>
7181
7182 * coding.c (decode_coding_sjis): Check bytes more rigidly.
7183
7184 2008-02-01 Kenichi Handa <handa@m17n.org>
7185
7186 * fileio.c (choose_write_coding_system): Return a decided coding system.
7187 (Fwrite_region): Set Vlast_coding_system_used to the return value
7188 of choose_write_coding_system.
7189
7190 2008-02-01 Kenichi Handa <handa@m17n.org>
7191
7192 * charset.c (Fset_charset_priority): Pay attention to duplicated
7193 arguments.
7194
7195 * coding.c (QCcategory): New variable.
7196 (syms_of_coding): Defsym it. Set all elements of
7197 Vcoding_category_table and their symbol values.
7198 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
7199 coding-category-XXX, and coding-category-list.
7200 (Fdefine_coding_system_internal): Add category in the plist.
7201
7202 2008-02-01 Kenichi Handa <handa@m17n.org>
7203
7204 * callproc.c (Fcall_process): Handle carryover correctly.
7205
7206 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
7207 (raw_text_coding_system): Check NILP (coding_system).
7208 (coding_inherit_eol_type): Check NILP (coding_system) and
7209 NILP (parent).
7210 (consume_chars): Fix for the case of raw-text.
7211
7212 * process.c (read_process_output): Handle carryover correctly.
7213
7214 2008-02-01 Dave Love <fx@gnu.org>
7215
7216 * regex.c (re_search_2): Fix last change.
7217
7218 2008-02-01 Kenichi Handa <handa@m17n.org>
7219
7220 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
7221 target_multibyte. Even in a unibyte case, return a converted
7222 multibyte char.
7223 (GET_CHAR_AFTER): New macro.
7224 (PATFETCH): Translate via multibyte char.
7225 (HANDLE_UNIBYTE_RANGE): Delete this macro.
7226 (SETUP_MULTIBYTE_RANGE): New macro.
7227 (regex_compile): Setup compiled code so that its multibyteness
7228 matches that of a target. Fix the handling of "[X-YZ]" using
7229 SETUP_MULTIBYTE_RANGE.
7230 (analyse_first) <charset>: For filling fastmap for all multibyte
7231 characters, don't check by BASE_LEADING_CODE_P.
7232 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
7233 the same as RE_MULTIBYTE_P (bufp) now.
7234 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
7235 (TARGET_CHAR_AND_LENGTH): Delete this macro.
7236 (TRANSLATE_VIA_MULTIBYTE): New macro.
7237 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
7238 It is the same as RE_MULTIBYTE_P (bufp) now.
7239 <exactn>: Translate via multibyte.
7240 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
7241 translate it.
7242 <charset, charset_not>: Fetch a character by
7243 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
7244 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
7245 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
7246 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
7247 by GET_CHAR_AFTER.
7248 (bcmp_translate): Likewise.
7249
7250 * search.c (compile_pattern): Check the member target_multibyte,
7251 not the member multibyte of buf.
7252
7253 * lread.c (read1): While reading a string, set force_singlebyte
7254 and force_multibyte correctly.
7255
7256 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
7257 up of unibyte_to_multibyte_table.
7258
7259 2008-02-01 Kenichi Handa <handa@m17n.org>
7260
7261 * coding.c (setup_coding_system): If coding has
7262 post-read-conversion or pre-write-conversion, set
7263 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
7264 respectively.
7265 (decode_coding_gap): Run post-read-conversion if any.
7266
7267 * fileio.c (Finsert_file_contents): Even if we read into a
7268 unibyte buffer, check if we must decode the result or not.
7269
7270 2008-02-01 Kenichi Handa <handa@m17n.org>
7271
7272 * coding.c (make_conversion_work_buffer): Change the work buffer
7273 name to the same one as that of Emacs 21.
7274
7275 2008-02-01 Kenichi Handa <handa@m17n.org>
7276
7277 * coding.h (make_conversion_work_buffer): Adjust prototype.
7278 (code_conversion_restore): Don't extern it.
7279
7280 * coding.c (detected_mask): Delete unused variable.
7281 (decode_coding_iso_2022): Pay attention to the byte sequence of
7282 CTEXT extended segment, and retain those bytes as is.
7283 (decode_coding_ccl): Delete unused variable `valids'.
7284 (setup_coding_system): Delete unused variable `category'.
7285 (consume_chars): Delete unused variable `category'. Make it work
7286 for non-multibyte case.
7287 (make_conversion_work_buffer): Change argument.
7288 (saved_coding): Delete unused variable.
7289 (code_conversion_restore): Don't check saved_coding->destination.
7290 (code_conversion_save): New function.
7291 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
7292 instead of record_unwind_protect.
7293 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
7294 (detect_coding_system): Delete unused variable `mask'.
7295 (Fdefine_coding_system_internal): Delete unused vaiable id.
7296
7297 * fileio.c (kill_workbuf_unwind): New function.
7298 (Finsert_file_contents): On replacing, call
7299 make_conversion_work_buffer with correct args, and call
7300 record_unwind_protect with the first arg kill_workbuf_unwind.
7301
7302 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
7303
7304 2008-02-01 Kenichi Handa <handa@m17n.org>
7305
7306 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
7307 (fontset_add): Fix for the case that TO is less than TO1.
7308 (Ffontset_info): Don't use fallback fontset on checking the
7309 default fontset.
7310 (dump_fontset): New function for debugging.
7311
7312 * coding.c (Fdefine_coding_system_internal): Fix for the case that
7313 coding_type is Qcharset.
7314
7315 2008-02-01 Kenichi Handa <handa@m17n.org>
7316
7317 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
7318 (map_char_table): Don't inherit the value from the parent on
7319 initializing VAL. Adjust for the above change.
7320
7321 2008-02-01 Kenichi Handa <handa@m17n.org>
7322
7323 * coding.c (Qsignature, Qendian): Delete these variables.
7324 (syms_of_coding): Don't initialize them.
7325 (CATEGORY_MASK_UTF_16_AUTO): New macro.
7326 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
7327 detect_info->found.
7328 (decode_coding_utf_16): Don't detect BOM here.
7329 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
7330 is NOT utf_16_without_bom.
7331 (setup_coding_system): For a coding system of type utf-16, check
7332 if the attribute :endian is Qbig or not (not nil or not), and set
7333 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
7334 (detect_coding): If coding type is utf-16 and BOM detection is
7335 required, detect it.
7336 (Fdefine_coding_system_internal): For a coding system of type
7337 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
7338
7339 2008-02-01 Kenichi Handa <handa@m17n.org>
7340
7341 * coding.c (coding_set_source): Fix for the case that the current
7342 buffer is different from coding->src_object.
7343 (decode_coding_object): Don't use the conversion work buffer if
7344 DST_OBJECT is a buffer.
7345
7346 2008-02-01 Dave Love <fx@gnu.org>
7347
7348 * lread.c (read_emacs_mule_char) [len==2]: Index
7349 emacs_mule_charset correctly.
7350
7351 2008-02-01 Dave Love <fx@gnu.org>
7352
7353 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
7354 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
7355 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
7356 treated specially.)
7357 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
7358 (detected_mask): Remove Big5 bits.
7359
7360 2008-02-01 Kenichi Handa <handa@m17n.org>
7361
7362 The following changes are to make the font rescaling facility
7363 compatible with Emacs 21.
7364
7365 * xfaces.c (Vface_font_rescale_alist): Rename from
7366 Vface_resizing_fonts.
7367 (struct font_name): Rename member resizing_ratio to rescale_ratio.
7368 (font_rescale_ratio): Rename from font_resizing_ratio.
7369 (split_font_name): Set font->rescale_ratio.
7370 (better_font_p): Pay attention to font->rescale_ratio.
7371 (build_scalable_font_name): Likewise. Change RESX, and RESY
7372 fields.
7373 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
7374
7375 2008-02-01 Kenichi Handa <handa@m17n.org>
7376
7377 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
7378 (Qutf_16_le): Remove these variables.
7379 (syms_of_coding): Don't DEFSYM them.
7380 (decode_coding_utf_16): Fix handling of BOM.
7381 (encode_coding_utf_16): Fix handling of BOM.
7382
7383 2008-02-01 Kenichi Handa <handa@m17n.org>
7384
7385 * fileio.c (Finsert_file_contents): On replacing, before decoding
7386 the file into the work buffer, set point of the work buffer to the end.
7387
7388 2008-02-01 Dave Love <fx@gnu.org>
7389
7390 * coding.c (Fcheck_coding_systems_region): Fix type errors.
7391
7392 2008-02-01 Dave Love <fx@gnu.org>
7393
7394 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7395 and fix C types.
7396
7397 2008-02-01 Kenichi Handa <handa@m17n.org>
7398
7399 * xdisp.c (SKIP_GLYPHS): New macro.
7400 (set_cursor_from_row): Pay attention to string display properties.
7401
7402 * category.c (copy_category_entry): Fix for the case that RANGE
7403 is an integer.
7404
7405 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
7406
7407 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
7408
7409 2008-02-01 Kenichi Handa <handa@m17n.org>
7410
7411 * charset.c (Fcharset_id_internal): New function.
7412 (syms_of_charset): Defsubr it.
7413
7414 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
7415 with the last arg charset_list acquired from coding.
7416 (Fdefine_coding_system_internal): For ccl-based coding system, fix
7417 the attribute coding_attr_ccl_valids.
7418
7419 * coding.h (enum define_coding_ccl_arg_index): Set the first
7420 member coding_arg_ccl_decoder to coding_arg_max.
7421
7422 * ccl.h (ccl_driver): Adjust prototype.
7423
7424 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
7425 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
7426 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
7427 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
7428 last arg Qnil.
7429
7430 2008-02-01 Kenichi Handa <handa@m17n.org>
7431
7432 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
7433 call encode_char.
7434
7435 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
7436
7437 2008-02-01 Dave Love <fx@gnu.org>
7438
7439 * composite.c (syms_of_composite): Make composition_hash_table weak.
7440
7441 2008-02-01 Kenichi Handa <handa@m17n.org>
7442
7443 * dispextern.h (check_face_attributes, generate_ascii_font_name)
7444 (font_name_registry): Don't extern them.
7445 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
7446
7447 * fontset.h (Qfontset): Don't extern it.
7448 (new_fontset_from_font_name): Extern it.
7449
7450 * fontset.c: Give 8 extra slots to fontset objects.
7451 (Qfontset_info): New variable.
7452 (syms_of_fontset): Defsym it.
7453 (FONTSET_FALLBACK): New macro.
7454 (fontset_face): Try also the default fontset.
7455 (make_fontset): Realize a fallback fontset from the default fontset.
7456 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
7457 using split_font_name_into_vector and build_font_name_from_vector.
7458 (Fset_fontset_font): Access the elements of font_spec by enum
7459 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
7460 name by using split_font_name_into_vector.
7461 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
7462 generate a proper font name from the fontset name. Update
7463 Vfontset_alias_alist.
7464 (n_auto_fontsets): New variable.
7465 (new_fontset_from_font_name): New function.
7466 (Ffont_info): Store the information about fonts generated from the
7467 default fontset in the first extra slot of the returned char-table.
7468
7469 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
7470 (font_name_registry): Delete function.
7471 (split_font_name_into_vector): New function.
7472 (build_font_name_from_vector): New function.
7473 (font_list): The argument REGISTRY is now a list of registry names.
7474 (choose_face_font): If we are choosing an ASCII font, and ATTRS
7475 specifies an explicit font name, return the name as is. Make a
7476 list of registy names.
7477
7478 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
7479 of x_new_fontset.
7480 (Fx_create_frame): Don't call x_new_fontset here. Just use
7481 x_list_fonts to check the existence of fonts.
7482
7483 * xterm.h (x_new_fontset): Adjust prototype.
7484
7485 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
7486 string. Use new_fontset_from_font_name to create a fontset from a
7487 font name.
7488
7489 2008-02-01 Kenichi Handa <handa@m17n.org>
7490
7491 * syntax.c (Vfind_word_boundary_function_table): New name for
7492 Vnext_word_boundary_function_table.
7493 (find-word-boundary-function-table): New name for
7494 next-word-boundary-function-table.
7495
7496 2008-02-01 Dave Love <fx@gnu.org>
7497
7498 * Makefile.in: Fix some dependencies.
7499
7500 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
7501 set it to nil before returning.
7502
7503 * composite.c (update_compositions): Fix type error.
7504
7505 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
7506
7507 2008-02-01 Kenichi Handa <handa@m17n.org>
7508
7509 * xterm.c (x_new_font): Optimize for the case that the font is
7510 already set for the frame.
7511
7512 2008-02-01 Kenichi Handa <handa@m17n.org>
7513
7514 * chartab.c (char_table_ascii): Check if the char table contents
7515 is sub-char-table or not.
7516 (char_table_set, char_table_set_range): Fix argument to
7517 char_table_ascii.
7518
7519 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
7520 (detect_coding_utf_8, detect_coding_utf_16)
7521 (detect_coding_emacs_mule, detect_coding_iso_2022)
7522 (detect_coding_sjis, detect_coding_big5)
7523 (detect_coding_ccl, detect_coding_charset): Change argument MASK
7524 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
7525 sequence is valid in this coding system. Change callers.
7526 (MAX_ANNOTATION_LENGTH): New macro.
7527 (ADD_ANNOTATION_DATA): New macro.
7528 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
7529 ADD_ANNOTATION_DATA. Change the format of annotation data.
7530 (ADD_CHARSET_DATA): New macro.
7531 (emacs_mule_char): New argument ID. Change callers.
7532 (decode_coding_emacs_mule, decode_coding_iso_2022)
7533 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7534 Produce charset annotation data in coding->charbuf.
7535 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
7536 to charset annotation data in coding->charbuf.
7537 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
7538 coding->common_flags if the coding system is iso-2022 based and
7539 uses designation.
7540 (produce_composition): Adjust for the new annotation data format.
7541 (produce_charset): New function.
7542 (produce_annotation): Handle charset annotation.
7543 (handle_composition_annotation, handle_charset_annotation): New
7544 functions.
7545 (consume_chars): Handle charset annotation. Utilize the above two
7546 functions.
7547 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
7548 buffer, get the deleted text as a string and set
7549 coding->src_object to that string.
7550 (detect_coding, detect_coding_system): Use the new struct
7551 coding_detection_info.
7552
7553 * coding.h (struct coding_detection_info): New structure.
7554 (struct coding_system): Adjust prototype of the member `detector'.
7555 (CODING_ANNOTATE_CHARSET_MASK): New macro.
7556
7557 2008-02-01 Kenichi Handa <handa@m17n.org>
7558
7559 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
7560
7561 2008-02-01 Dave Love <fx@gnu.org>
7562
7563 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
7564 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
7565 to new local and nullify apropos_accumulate before returning.
7566 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
7567
7568 2008-02-01 Kenichi Handa <handa@m17n.org>
7569
7570 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
7571 correctly.
7572
7573 2008-02-01 Dave Love <fx@gnu.org>
7574
7575 * fns.c (Flanginfo): Call synchronize_system_time_locale.
7576
7577 2008-02-01 Kenichi Handa <handa@m17n.org>
7578
7579 The following changes are to make character composition happen
7580 automatically on displaying.
7581
7582 * Makefile.in (lisp, shortlisp): Add composite.elc.
7583
7584 * composite.h (Qauto_composed, Vauto_composition_function)
7585 (Qauto_composition_function): Extern them.
7586
7587 * composite.c (Vcomposition_function_table)
7588 (Qcomposition_function_table): Delete variables.
7589 (Qauto_composed, Vauto_composition_function)
7590 (Qauto_composition_function): New variables.
7591 (run_composition_function): Don't call
7592 compose-chars-after-function.
7593 (update_compositions): Clear `auto-composed' text property.
7594 (compose_chars_in_text): Delete this function.
7595 (syms_of_composite): Staticpro Qauto_composed and
7596 Qauto_composition_function. Declare Vauto_composition_function as
7597 a Lisp variable.
7598
7599 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
7600
7601 * xdisp.c (it_props): Add an entry for Qauto_composed.
7602 (handle_auto_composed_prop): New function.
7603
7604 * xselect.c (selection_data_to_lisp_data): Don't call
7605 compose_chars_in_text.
7606
7607 2008-02-01 Dave Love <fx@gnu.org>
7608
7609 * keyboard.c (read_char): Modify checking around use of
7610 Vkeyboard_translate_table.
7611
7612 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7613 and fix C types.
7614
7615 2008-02-01 Kenichi Handa <handa@m17n.org>
7616
7617 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
7618 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7619 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
7620 the case that the last byte is '\r' correctly.
7621 (decode_coding): Flush out the unprocessed data correctly.
7622 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
7623
7624 2008-02-01 Dave Love <fx@gnu.org>
7625
7626 * xterm.c (XTread_socket): Fix changes for defined keysyms.
7627 Add XK_ISO... case.
7628 (xaw_scroll_callback): Revert last change.
7629
7630 2008-02-01 Kenichi Handa <handa@m17n.org>
7631
7632 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
7633
7634 2008-02-01 Kenichi Handa <handa@m17n.org>
7635
7636 * xfaces.c (Vface_resizing_fonts): New variable.
7637 (struct font_name): New member `resizing_ratio'.
7638 (font_resizing_ratio): New function.
7639 (split_font_name): Set font->resizing_ratio.
7640 (better_font_p): Pay attention to font->resizing_ratio.
7641 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
7642 RESX, and RESY fields.
7643 (try_alternative_families): Try scalable fonts if
7644 Vscalable_fonts_allowed is not Qt.
7645 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
7646
7647 2008-02-01 Dave Love <fx@gnu.org>
7648
7649 * xterm.c (xaw_scroll_callback): Cast correctly.
7650
7651 2008-02-01 Dave Love <fx@gnu.org>
7652
7653 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
7654 (lispy_kana_keys): Comment out.
7655 (make_lispy_event) [XK_kana_A]: Comment out.
7656
7657 * xterm.c (xaw_scroll_callback): Cast call_data.
7658 (XTread_socket): Deal with ASCII keysyms.
7659 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
7660
7661 2008-02-01 Dave Love <fx@gnu.org>
7662
7663 * xterm.c (Vx_keysym_table): New.
7664 (syms_of_xterm): Initialize it.
7665 (XTread_socket): Use it.
7666 From head: Eliminate incorrect optimization that tried to avoid
7667 decoding the output of X*LookupString.
7668 (x_get_font_repertory): Delete charset declaration.
7669
7670 2008-02-01 Kenichi Handa <handa@m17n.org>
7671
7672 * coding.c (detect_coding_charset): If only ASCII bytes are found,
7673 return 0.
7674 (Fdefine_coding_system_internal): Setup
7675 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
7676
7677 2008-02-01 Dave Love <fx@gnu.org>
7678
7679 * coding.c (Fcheck_coding_system): Doc fix.
7680
7681 * editfns.c (Finsert_byte): Return a proper value.
7682
7683 2008-02-01 Kenichi Handa <handa@m17n.org>
7684
7685 * coding.c (decode_coding): Fix args to translate_chars. Pay
7686 attention to Vstandard_translation_table_for_decode.
7687 (encode_coding): Fix args to translate_chars. Pay attention to
7688 Vstandard_translation_table_for_encode.
7689
7690 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7691 SINGLE_BYTE_CHAR_P.
7692
7693 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7694 not by SINGLE_BYTE_CHAR_P.
7695
7696 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7697 SINGLE_BYTE_CHAR_P.
7698
7699 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7700 SINGLE_BYTE_CHAR_P.
7701
7702 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7703 by SINGLE_BYTE_CHAR_P.
7704
7705 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7706 SINGLE_BYTE_CHAR_P.
7707
7708 2008-02-01 Dave Love <fx@gnu.org>
7709
7710 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7711
7712 2008-02-01 Dave Love <fx@gnu.org>
7713
7714 * fns.c (Flanginfo): Fix typo.
7715
7716 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
7717
7718 2008-02-01 Kenichi Handa <handa@m17n.org>
7719
7720 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
7721 (detect_coding_emacs_mule, detect_coding_iso_2022)
7722 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
7723 incomplete byte sequence. Don't update *mask when correctly detected.
7724 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
7725 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
7726 (detect_coding, detect_coding_system): Adjust for the changes above.
7727
7728 2008-02-01 Kenichi Handa <handa@m17n.org>
7729
7730 * character.c (char_string): Rename from
7731 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
7732 (string_char): Rename from string_char.
7733
7734 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
7735 if C is greater than MAX_3_BYTE_CHAR.
7736 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
7737 string_char instead of string_char_with_unification.
7738
7739 2008-02-01 Dave Love <fx@gnu.org>
7740
7741 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
7742
7743 2008-02-01 Kenichi Handa <handa@m17n.org>
7744
7745 * keymap.c (push_key_description): Pay attention to force_multibyte.
7746
7747 * regex.c (re_search_2): Fix for the case of unibyte buffer.
7748
7749 2008-02-01 Dave Love <fx@gnu.org>
7750
7751 * charset.c (define_charset_internal): Rename `supprementary'.
7752
7753 * Makefile.in (lisp, shortlisp): Remove latin-N.
7754
7755 2008-02-01 Dave Love <fx@gnu.org>
7756
7757 * xfns.c (x_window, x_window): Use use_xim.
7758
7759 * xterm.c (use_xim): Initialize.
7760 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7761 (x_term_init): Maybe set use_xim.
7762
7763 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7764
7765 2008-02-01 Kenichi Handa <handa@m17n.org>
7766
7767 * search.c (search_buffer): Fix case-fold-search of multibyte
7768 characters.
7769 (boyer_moore): Rename the last argument to char_high_bits.
7770
7771 2008-02-01 Kenichi Handa <handa@m17n.org>
7772
7773 * xdisp.c (display_string): Fix for the case of zero width glyph.
7774
7775 * xfns.c (x_set_font): Change the error message of the case that
7776 x_new_fontset returns Qt.
7777
7778 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
7779 (Finternal_set_lisp_face_attribute): Use signal_error for the
7780 error of invalid fontset.
7781
7782 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
7783 fontset, return Qt.
7784
7785 2008-02-01 Dave Love <fx@gnu.org>
7786
7787 * unexelf.c (unexec): Make .got handling not SGI-specific.
7788
7789 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
7790
7791 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
7792
7793 * keyboard.c (read_key_sequence): Fix type error.
7794
7795 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
7796 type error.
7797
7798 * fontset.c (fontset_add): Return Lisp_Object.
7799
7800 2008-02-01 Dave Love <fx@gnu.org>
7801
7802 * charset.h (charset_ordered_list_tick): Declare extern.
7803
7804 2008-02-01 Kenichi Handa <handa@m17n.org>
7805
7806 The following changes (and some of 2008-02-01 changes of mine) are
7807 for handling syntax, category, and case conversion for unibyte
7808 characters by converting them to multibyte on the fly. With these
7809 changes, we don't have to setup syntax and case tables for unibyte
7810 characters in each language environment.
7811
7812 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
7813 multibyte if necessary.
7814
7815 * bytecode.c (Fbyte_code): Likewise.
7816
7817 * character.h (LEADING_CODE_LATIN_1_MIN)
7818 (LEADING_CODE_LATIN_1_MAX): New macros.
7819 (unibyte_to_multibyte_table): Extern it.
7820 (unibyte_char_to_multibyte): New macro.
7821 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
7822 (CHAR_LEADING_CODE): New macro.
7823 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
7824
7825 * character.c (unibyte_to_multibyte_table): New variable.
7826 (unibyte_char_to_multibyte): Move to character.h and define as macro.
7827 (multibyte_char_to_unibyte): If C is an eight-bit character,
7828 convert it to the corresponding byte value.
7829
7830 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
7831 not 1, singals an error. Update the elements of
7832 unibyte_to_multibyte_table.
7833 (init_charset_once): Initialize unibyte_to_multibyte_table.
7834 (syms_of_charset): Define the charset `iso-8859-1'.
7835
7836 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
7837 as is without converting it to unibyte. In a unibyte buffer,
7838 convert C to multibyte before checking the syntax.
7839
7840 * lisp.h (unibyte_char_to_multibyte): Delete extern.
7841
7842 * minibuf.c (Fminibuffer_complete_word): Use the macro
7843 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
7844
7845 * regex.h (struct re_pattern_buffer): New member target_multibyte.
7846
7847 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
7848 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
7849 that is zero, convert an eight-bit char to multibyte.
7850 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
7851 non-emacs case.
7852 (PATFETCH): Convert an eight-bit char to multibyte.
7853 (HANDLE_UNIBYTE_RANGE): New macro.
7854 (regex_compile): Setup the compiled pattern for multibyte chars
7855 even if the given regex string is unibyte. Use PATFETCH_RAW
7856 instead of PATFETCH in many places. To handle `charset'
7857 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
7858 only for ASCII chars.
7859 (analyse_first) <exactn>: Simplify because the compiled pattern
7860 is multibyte.
7861 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
7862 <charset>: Use CHAR_LEADING_CODE to get leading codes.
7863 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
7864 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
7865 multibyte always 1.
7866 (re_search_2): In emacs, set the locale variable multibyte to 1,
7867 otherwise to 0. New local variable target_multibyte. Check it
7868 to decide the multibyteness of STR1 and STR2. If
7869 target_multibyte is zero, convert unibyte chars to multibyte
7870 before translating and checking fastmap.
7871 (TARGET_CHAR_AND_LENGTH): New macro.
7872 (re_match_2_internal): In emacs, set the locale variable multibyte
7873 to 1, otherwise to 0. New local variable target_multibyte. Check
7874 it to decide the multibyteness of STR1 and STR2. Use
7875 TARGET_CHAR_AND_LENGTH to fetch a character from D.
7876 <charset, charset_not>: If multibyte is nonzero, check fastmap
7877 only for ASCII chars. Call bcmp_translate with
7878 target_multibyte, not with multibyte.
7879 <begline>: Declare the local variable C as `unsigned'.
7880 (bcmp_translate): Change the last arg name to target_multibyte.
7881
7882 * search.c (compile_pattern_1): Don't adjust the multibyteness of
7883 the regexp pattern and the matching target. Set cp->buf.multibyte
7884 to the multibyteness of the regexp pattern. Set
7885 cp->but.target_multibyte to the multibyteness of the matching target.
7886 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
7887 FETCH_STRING_CHAR_ADVANCE.
7888 (Freplace_match): Convert unibyte chars to multibyte.
7889
7890 * syntax.c (char_quoted, back_comment, scan_words)
7891 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
7892 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
7893 unibyte chars to multibyte.
7894 (skip_chars): Delete the arg syntaxp, and move the code for
7895 handling syntaxes to skip_syntaxes. Change callers.
7896 Fix the case that the multibyteness of STRING and the current
7897 buffer doesn't match.
7898 (skip_syntaxes): New function.
7899 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
7900 SINGLE_BYTE_CHAR_P.
7901
7902 2008-02-01 Kenichi Handa <handa@m17n.org>
7903
7904 * xfaces.c (QCfontset): New variable.
7905 (LFACE_FONTSET): New macro.
7906 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
7907 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
7908 (Finternal_set_lisp_face_attribute)
7909 (Finternal_get_lisp_face_attribute): Handle QCfontset.
7910 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
7911 check also LFACE_FONTSET_INDEX.
7912 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
7913 attrs[LFACE_FONT_INDEX].
7914 (syms_of_xfaces): Intern and staticpro QCfontset.
7915
7916 * dispextern.h (enum lface_attribute_index): New member
7917 LFACE_FONTSET_INDEX.
7918
7919 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
7920
7921 2008-02-01 Kenichi Handa <handa@m17n.org>
7922
7923 * coding.c (coding_set_destination): Fix coding->destination for
7924 the case converting a region.
7925 (encode_coding_utf_8): Encode eight-bit chars as single byte.
7926 (encode_coding_object): Fix coding->dst_pos and
7927 coding->dst_pos_byte for the case converting a region.
7928
7929 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
7930
7931 * character.h (BYTE8_STRING): New macro.
7932
7933 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
7934
7935 2008-02-01 Kenichi Handa <handa@m17n.org>
7936
7937 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
7938 characters by octal form.
7939
7940 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
7941
7942 * buffer.h (_fetch_multibyte_char_len): Delete extern.
7943 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
7944 _fetch_multibyte_char_len.
7945 (FETCH_CHAR_AS_MULTIBYTE): New macro.
7946
7947 * casetab.c (set_canon, set_identity, shuffle): Simplify.
7948
7949 * casefiddle.c (casify_object): Simplify. Handle the case that
7950 the case conversion change the byte length.
7951 (casify_region): Likewise.
7952
7953 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
7954
7955 * character.c (_fetch_multibyte_char_len): Delet this variable.
7956 (syms_of_character): Setup Vprintable_chars.
7957
7958 * editfns.c (Fchar_equal): Fix for the unibyte case.
7959 (Finsert_byte): New function.
7960 (syms_of_editfns): Defsubr it.
7961
7962 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
7963 of direct code 0x3ffff.
7964
7965 * search.c (Freplace_match): Fix for the unibyte case.
7966
7967 2008-02-01 Kenichi Handa <handa@m17n.org>
7968
7969 * lread.c (safe_to_load_p): Fix the logic.
7970
7971 * syntax.c (scan_words): Don't treat characters belonging to
7972 different scripts as constituting a word.
7973
7974 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7975
7976 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
7977
7978 * emacs.c (main): In the case of --unibyte, instead of aborting on
7979 finding non-empty buffer, make it unibyte.
7980
7981 2008-02-01 Kenichi Handa <handa@m17n.org>
7982
7983 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
7984 to create a fontset.
7985
7986 2008-02-01 Dave Love <fx@gnu.org>
7987
7988 * character.c (Funibyte_char_to_multibyte): Doc fix.
7989
7990 * xfns.c [HAVE_STDLIB_H]: Fix last change.
7991
7992 2008-02-01 Kenichi Handa <handa@m17n.org>
7993
7994 * fontset.c (fontset_add): Make the type `int'.
7995 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
7996
7997 * character.c (unibyte_char_to_multibyte)
7998 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
7999 charset_unibyte, not charset_primary.
8000
8001 * charset.h (charset_unibyte): Extern it instead of charset_primary.
8002
8003 * charset.c (charset_unibyte): Rename from charset_primary.
8004 (Funibyte_charset): Rename from Fprimary_charset.
8005 (Fset_unibyte_charset): Rename from Fset_primary_charset.
8006 (syms_of_charset): Adjust for the above changes.
8007
8008 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8009 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8010 it->multibyte_p is zero.
8011
8012 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
8013 Delete extern.
8014
8015 2008-02-01 Kenichi Handa <handa@m17n.org>
8016
8017 * coding.c (Fdefine_coding_system_internal): Fix category setting
8018 for a coding system of type iso-2022.
8019
8020 2008-02-01 Kenichi Handa <handa@m17n.org>
8021
8022 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
8023
8024 2008-02-01 Kenichi Handa <handa@m17n.org>
8025
8026 * syntax.c (Vnext_word_boundary_function_table): New variable.
8027 (next-word-boundary-function-table): Declare it as a Lisp variable
8028 in syms_of_syntax.
8029 (scan_words): Call functions in Vnext_word_boundary_function_table
8030 if any.
8031
8032 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
8033
8034 * fontset.c (fs_load_font): If fontp->charset is not negative,
8035 return fontp without setting its members.
8036
8037 2008-02-01 Dave Love <fx@gnu.org>
8038
8039 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
8040
8041 * m/sparc.h (HAVE_ALLOCA): Delete.
8042
8043 * s/irix6-5.h: Don't include strings.h.
8044 (bcopy, bzero, bcmp): Don't undef.
8045
8046 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
8047
8048 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
8049 (TIOCSIGSEND): Don't test IRIX6.
8050 (bcopy, bzero, bcmp): Define conditionally.
8051
8052 2008-02-01 Kenichi Handa <handa@m17n.org>
8053
8054 * buffer.c (Qas, Qmake, Qto): New variables.
8055 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
8056 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
8057
8058 * callproc.c (Fcall_process): Don't call insert_1_both directly if
8059 we are inserting a process output into a multibyte buffer.
8060
8061 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
8062 multibyte_char_to_unibyte.
8063
8064 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
8065 by the primary charset, make it eight-bit char.
8066 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
8067
8068 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
8069 (charset_8_bit__control, charset_8_bit_graphic)
8070 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
8071 (define_charset_internal): New function.
8072 (syms_of_charset): Call define_charset_internal for pre-defined
8073 charsets.
8074
8075 * charset.h (charset_8_bit): Extern it.
8076
8077 * coding.c (make_conversion_work_buffer): Adjust for the change
8078 of Fset_buffer_multibyte.
8079 (encode_coding_raw_text): Increment p0 in the loop.
8080
8081 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
8082
8083 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
8084 for the change of Fset_buffer_multibyte.
8085
8086 * fns.c (Fstring_to_multibyte): New function.
8087 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
8088
8089 2008-02-01 Dave Love <fx@gnu.org>
8090
8091 * xfns.c (x_put_x_image): Declare args.
8092
8093 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
8094 (try_font_list): Declare an arg.
8095
8096 * xdisp.c (message2_nolog, set_message): Declare an arg.
8097
8098 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
8099
8100 * syntax.c (scan_sexps_forward): Declare an arg.
8101
8102 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8103 Declare an arg.
8104
8105 * lisp.h (Fnew_fontset): Declare.
8106
8107 * keymap.c (push_key_description): Call CHARACTERP correctly.
8108
8109 * fontset.c (fontset_add): Declare args. Call make_number correctly.
8110 (face_for_char): Delete unused vars.
8111 (Fset_fontset_font): Doc fix. Delete unused vars.
8112
8113 * doc.c (Fsubstitute_command_keys): Delete unused vars.
8114
8115 * composite.c (update_compositions): Declare arg.
8116
8117 * cm.c (calccost, cmgoto): Declare args.
8118
8119 * charset.c: Remove `emacs' conditional. Doc fixes.
8120 (map_char_table_for_charset): Declare.
8121
8122 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
8123
8124 * ccl.c: Remove `emacs' conditional.
8125
8126 2008-02-01 Kenichi Handa <handa@m17n.org>
8127
8128 The following changes are to allow specifying multiple font
8129 patterns for a character range (specified by script or charset).
8130
8131 * Makefile.in (abbrev.o): Depend on syntax.h.
8132 (xfaces.o): Depend on charset.h.
8133
8134 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
8135 SINGLE_BYTE_CHAR_P.
8136
8137 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
8138
8139 * character.h (Vchar_script_table): Extern it.
8140
8141 * character.c (Vscript_alist): Delete.
8142 (Vchar_script_table, Qchar_script_table): New variable.
8143 (syms_of_character): Declare Vchar_script_table as a lisp variable
8144 and initialize it.
8145
8146 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
8147 have property char-table-extra-slots, make no extra slot.
8148
8149 * dispextern.h (struct face): Delete member `charset'.
8150 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
8151 SINGLE_BYTE_CHAR_P.
8152 (choose_face_font, lookup_non_ascii_face, font_name_registry):
8153 Add prototypes.
8154 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
8155 (generate_ascii_font_name): Rename from generate_ascii_font.
8156
8157 * fontset.h (get_font_repertory_func): New prototype.
8158 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
8159 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
8160
8161 * fontset.c (Qprepend, Qappend): New variables.
8162 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
8163 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
8164 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
8165 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
8166 (fontset_ref_and_range, fontset_add, reorder_font_vector)
8167 (load_font_get_repertory): New functions.
8168 (fontset_set): Delete.
8169 (fontset_face): New arg FACE. Return face ID, not face.
8170 Complete re-write to handle new fontset structure. Change caller.
8171 (free_face_fontset): Use ASET istead of AREF (X) = Y.
8172 (face_for_char): Don't call lookup_face.
8173 (make_fontset_for_ascii_face): New arg FACE.
8174 (fs_load_font): New arg CHARSET_ID. Don't check
8175 Vfont_encoding_alist here.
8176 (find_font_encoding): New function.
8177 (list_fontsets): Use STRINGP, not ! NILP.
8178 (accumulate_script_ranges): New function.
8179 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
8180 re-written to handle new fontset structure.
8181 (Ffontset_font): Return a copy of element.
8182 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
8183 docstring of font-encoding-alist.
8184
8185 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
8186 (Fset_fotset_font): Fix arguments to 5.
8187
8188 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
8189
8190 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
8191 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8192 (highlight_trailing_whitespace): Adjust for the change of
8193 lookup_named_face.
8194
8195 * xfaces.c: Include charset.h.
8196 (load_face_font): Delete argument C. Change caller.
8197 (generate_ascii_font_name): Rename from generate_ascii_font.
8198 (font_name_registry): New function.
8199 (cache_face): Store ascii faces before non-ascii faces in buckets.
8200 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
8201 Lookup only ascii faces.
8202 (lookup_non_ascii_face): New function.
8203 (lookup_named_face): Delete argument C. Change caller.
8204 (lookup_derived_face): Delete argument C. Change caller.
8205 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
8206 a string, just call font_list with it.
8207 (choose_face_font): Delete arguments FACE and C. New arg
8208 FONT_SPEC. Change caller.
8209 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
8210 Change caller.
8211 (realize_non_ascii_face): New function.
8212 (realize_x_face): Call load_face_font here.
8213 (realize_tty_face): Delete argument C. Change caller.
8214 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
8215 get a face ID.
8216 (dump_realized_face): Don't print charset of FACE.
8217
8218 * xfns.c (x_set_font): Always call x_new_fontset and
8219 store_frame_parameter.
8220 (Fx_create_frame): Call x_new_fontset, not x_new_font.
8221 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
8222
8223 * xterm.h (x_get_font_repertory): Extern it.
8224
8225 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8226 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8227 it->multibyte_p is zero.
8228 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8229 (x_new_fontset): If FONTSETNAME doesn't match any existing
8230 fontsets, create a new one.
8231 (x_get_font_repertory): New function.
8232
8233 2008-02-01 Kenichi Handa <handa@m17n.org>
8234
8235 * coding.c (Ffind_coding_systems_region_internal): Detect an
8236 ASCII only string correctly.
8237
8238 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
8239 version is 0.
8240
8241 2008-02-01 Kenichi Handa <handa@m17n.org>
8242
8243 * lread.c: Include "coding.h".
8244 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
8245 (load_each_byte, unread_char): New variables.
8246 (readchar_backlog): Delete.
8247 (readchar): Return a character unless load_each_byte is nonzero.
8248 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
8249 cons. If unread_char is not -1, simply return it.
8250 (unreadchar): Handle the case that readcharfun is
8251 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
8252 (read_multibyte): Delete.
8253 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
8254 (read_emacs_mule_char): New functions.
8255 (Fload): Even if the file doesn't have the extention ".elc", if
8256 safe_to_load_p returns a positive version number, assume that the
8257 file contains bytecompiled code. If the version is less than 22,
8258 load the file while decoding multibyte sequences by emacs-mule.
8259 (readevalloop): Don't use readchar_backlog.
8260 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
8261 (Fread_from_string): Pay attention to the case that STREAM is a cons.
8262 (read_escape): Delete the arg BYTEREP.
8263 (read1): Set load_each_byte to 1 temporarily while handling
8264 #@NUMBER. Don't call read_multibyte.
8265 (read_vector): Call Fread with a cons. If readcharfun is
8266 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
8267 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
8268 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
8269 and Qload_force_doc_strings.
8270
8271 2008-02-01 Kenichi Handa <handa@m17n.org>
8272
8273 * xdisp.c (face_before_or_after_it_pos): Call
8274 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8275
8276 2008-02-01 Kenichi Handa <handa@m17n.org>
8277
8278 * character.h (TRAILING_CODE_P): New macro.
8279 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
8280 (string_char_with_unification): Fix prototype.
8281 (Vscript_alist): Extern it.
8282
8283 * character.c (Vscript_alist): New variable.
8284 (string_char_with_unification, str_as_unibyte)
8285 (string_escape_byte8): Add `const' to local variables.
8286 (syms_of_character): Declare script-alist as a Lisp variable.
8287
8288 * charset.h (Vcharset_ordered_list): Extern it.
8289 (charset_ordered_list_tick): Extern it.
8290 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
8291 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
8292 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
8293 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
8294 (Funify_charset): Adjust for the change of Funify_charset.
8295
8296 * charset.c (charset_ordered_list_tick): New variable.
8297 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
8298 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
8299 deunify intead of unify a charset.
8300 (string_xstring_p): Add `const' to local variables.
8301 (find_charsets_in_text): Add `const' to arguemnts and local variables.
8302 (encode_char): Adjust for the change of Funify_charset. Fix
8303 detecting of invalid code.
8304 (Fset_charset_priority): Increment charset_ordered_list_tick.
8305 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
8306 and TO_CODE.
8307
8308 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
8309 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
8310 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
8311 (decode_coding_ccl, consume_chars)
8312 (Ffind_coding_systems_region_internal)
8313 (Fcheck_coding_systems_region): Add `const' to local variables.
8314
8315 * print.c (print_object): Use octal form for printing the
8316 contents of a bool vector.
8317
8318 2008-02-01 Dave Love <fx@gnu.org>
8319
8320 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
8321 <version == 20>: Refuse to load.
8322
8323 2008-02-01 Dave Love <fx@gnu.org>
8324
8325 * fns.c: Move coding.h.
8326 (Qcodeset, Qdays, Qmonths): New.
8327 (concat): Use CHARACTERP instead of INTERGERP.
8328 (Flocale_codeset): Delete.
8329 (Flanginfo): New function.
8330 (syms_of_fns): Change accordingly.
8331
8332 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
8333
8334 2008-02-01 Dave Love <fx@gnu.org>
8335
8336 * casetab.c (init_casetab_once, init_casetab_once): Fix
8337 CHAR_TABLE_SET call.
8338
8339 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
8340
8341 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
8342
8343 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
8344 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
8345 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
8346
8347 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
8348
8349 * coding.c (ENCODE_DESIGNATION, decode_eol)
8350 (make_conversion_work_buffer, code_conversion_restore)
8351 (Fdefine_coding_system_internal): Convert Lisp types.
8352 (code_conversion_restore): Use EQ, not ==.
8353 (Fencode_coding_string): Fix code_convert_string call.
8354
8355 * coding.h (code_convert_region): Fix prototype.
8356
8357 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
8358
8359 * fontset.c (fontset_ref, fontset_set, fs_load_font)
8360 (Ffontset_info): Convert Lisp types.
8361
8362 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
8363
8364 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
8365
8366 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
8367
8368 * chartab.c: Include "...h", not <...h> in some cases.
8369
8370 * callproc.c (Fcall_process): Remove unused variables.
8371
8372 2008-02-01 Dave Love <fx@gnu.org>
8373
8374 * coding.c (Fset_coding_system_priority): Allow null arg list.
8375
8376 2008-02-01 Dave Love <fx@gnu.org>
8377
8378 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8379 (Fself_insert_and_exit): Use CHARACTERP.
8380
8381 * callproc.c (Fcall_process): Remove unused vars.
8382
8383 * xterm.c (XTread_socket): Add extra dead keysyms.
8384
8385 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
8386
8387 * dispextern.h: Remove prototypes for redraw_frame,
8388 redraw_garbaged_frames.
8389
8390 * cmds.c (Fself_insert_command): Use CHARACTERP.
8391
8392 * chartab.c (make_sub_char_table): Remove unused var.
8393 (Fset_char_table_default, Fmap_char_table): Doc fix.
8394
8395 * keymap.c (access_keymap): Remove generic char code.
8396 (push_key_description): Use CHARACTERP.
8397
8398 2008-02-01 Dave Love <fx@gnu.org>
8399
8400 * charset.c: Doc fixes.
8401 (Funify_charset): Extra checking.
8402
8403 2008-02-01 Dave Love <fx@gnu.org>
8404
8405 * lread.c: Remove some unused variables.
8406 (safe_to_load_p): If safe, return the magic number version byte.
8407 (Fload): Maybe use load-with-code-conversion.
8408
8409 2008-02-01 Kenichi Handa <handa@m17n.org>
8410
8411 * category.c (Fmodify_category_entry): Don't modify the contents
8412 of category_set for characters out of the range. Avoid
8413 unnecessary modification.
8414
8415 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
8416 Vchar_unify_table. The default value of the table is now nil.
8417
8418 * character.c (syms_of_character): Setup Vchar_width_table for
8419 eight-bit-control and raw-byte chars.
8420
8421 * charset.h (enum define_charset_arg_index): Delete
8422 charset_arg_parents and add charset_arg_subset and
8423 charset_arg_superset.
8424 (enum charset_attr_index): Delete charset_parents and add
8425 charset_subset and charset_superset.
8426 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
8427 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
8428 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
8429 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
8430 (CHARSET_SUPERSET): New macros.
8431 (charset_work): Extern it.
8432 (ENCODE_CHAR): Use charset_work.
8433 (CHAR_CHARSET_P): Adjust for the change of encoder format.
8434 (map_charset_chars): Extern it.
8435
8436 * charset.c (load_charset_map): Set the default value of encoder
8437 and deunifier char-tables to nil.
8438 (map_charset_chars): Change argument. Change callers. Use
8439 map_char_table_for_charset instead of map_char_table.
8440 (Fmap_charset_chars): New optional args from_code and to_code.
8441 (Fdefine_charset_internal): Adjust for the change of
8442 `define-charset' (:parents -> :subset or :superset).
8443 (charset_work): New variable.
8444 (encode_char, syms_of_charset): Adjust for the change of
8445 Fdefine_charset_internal.
8446 (Ffind_charset_string): Setup the vector `charsets' correctly.
8447
8448 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
8449 the previous change.
8450 (char_table_ref_and_range): Adjust for the above change.
8451 (map_sub_char_table_for_charset): New function.
8452 (map_char_table_for_charset): New function.
8453
8454 * keymap.c (describe_vector): Handle a char-table directly here.
8455 (describe_char_table): Delete.
8456
8457 * lisp.h (map_charset_chars): Delete.
8458
8459 2008-02-01 Dave Love <fx@gnu.org>
8460
8461 * fns.c (count_combining): Comment out (unused).
8462 (Flocale_codeset): New.
8463 (syms_of_fns): Defsubr it.
8464
8465 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
8466 (size_t): Remove.
8467
8468 2008-02-01 Dave Love <fx@gnu.org>
8469
8470 * Makefile.in (chartab.o): Depend on charset.h.
8471
8472 2008-02-01 Kenichi Handa <handa@m17n.org>
8473
8474 * character.c (syms_of_character): Set the default value of
8475 Vprintable_chars to Qnil.
8476
8477 2008-02-01 Dave Love <fx@gnu.org>
8478
8479 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
8480
8481 2008-02-01 Kenichi Handa <handa@m17n.org>
8482
8483 * charset.c (load_charset_map): Handle the case that from < to
8484 correctly.
8485
8486 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
8487 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
8488 Pay attention to raw-8-bit chars.
8489
8490 2008-02-01 Kenichi Handa <handa@m17n.org>
8491
8492 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
8493 It is not bytecompiled now.
8494
8495 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
8496 (charset_jisx0208): New variables.
8497 (Fdefine_charset_internal): Setup them if appropriate.
8498 (init_charset_once): Initialize them to -1.
8499
8500 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
8501 (charset_jisx0208): Extern them.
8502
8503 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
8504 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
8505 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
8506 (setup_iso_safe_charsets): Fix arguments to Fassq.
8507 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
8508 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
8509 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
8510 (encode_coding_iso_2022): Change the 1st arg to
8511 ENCODE_ISO_CHARACTER to a variable.
8512
8513 2008-02-01 Kenichi Handa <handa@m17n.org>
8514
8515 * charset.h (enum define_charset_arg_index): New enums
8516 charset_arg_min_code and charset_arg_max_code.
8517 (struct charset): New member char_index_offset.
8518
8519 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
8520 Take charset->char_index_offset into account.
8521 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
8522 args[charset_arg_max_code]. Setup charset.char_index_offset.
8523 (syms_of_charset): Fix args to Fdefine_charset_internal.
8524
8525 2008-02-01 Dave Love <fx@gnu.org>
8526
8527 * coding.c (decode_coding_utf_8): Reject overlong sequences.
8528
8529 2008-02-01 Dave Love <fx@gnu.org>
8530
8531 * coding.c: Doc fixes.
8532 (Fcoding_system_aliases): Fix return value.
8533 (Qmac): Remove (duplicated) definition.
8534
8535 2008-02-01 Dave Love <fx@gnu.org>
8536
8537 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
8538 functions.
8539
8540 * character.c (Fstring): Doc fix.
8541
8542 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
8543
8544 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
8545 ids.
8546 (font-encoding-alist): Doc fix.
8547
8548 2008-02-01 Dave Love <fx@gnu.org>
8549
8550 * term.c (costs_set): Declare static, non-initialized for pcc.
8551 (encode_terminal_code): Remove unused var.
8552
8553 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
8554 for K&R.
8555
8556 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
8557
8558 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
8559 (suffixes): Move out of make_subsidiaries for K&R.
8560
8561 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
8562
8563 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
8564
8565 2008-02-01 Dave Love <fx@gnu.org>
8566
8567 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
8568
8569 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
8570
8571 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
8572
8573 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
8574
8575 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
8576
8577 2008-02-01 Kenichi Handa <handa@m17n.org>
8578
8579 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
8580 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
8581
8582 2008-02-01 Kenichi Handa <handa@m17n.org>
8583
8584 * coding.c (decode_coding_charset): Adjust for the change of
8585 Fdefine_coding_system_internal.
8586 (Fdefine_coding_system_internal): For a coding system of
8587 `charset' type, store a list of charset IDs in
8588 `charset_attr_charset_valids' element of coding attributes.
8589
8590 2008-02-01 Kenichi Handa <handa@m17n.org>
8591
8592 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
8593 (emacs_mule_char): New arg src. Delete arg `composition'. Change
8594 caller. Handle 2-byte and 3-byte charsets correctly.
8595 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
8596 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
8597 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
8598 (DECODE_EMACS_MULE_21_COMPOSITION): Call
8599 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
8600 sequence.
8601 (decode_coding_emacs_mule): Handle composition correctly. Rewind
8602 `src' and `consumed_chars' correctly before calling emacs_mule_char.
8603 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
8604 and alt&rule composition.
8605 (decode_coding_iso_2022): Handle composition correctly.
8606 (init_coding_once): Setup emacs_mule_bytes for private charsets.
8607
8608 * charset.c (Fdefine_charset_internal): Fix bug for the case of
8609 re-defining a charset. If the charset has :emacs-mule-id, setup
8610 emacs_mule_bytes.
8611 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
8612
8613 2008-02-01 Kenichi Handa <handa@m17n.org>
8614
8615 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
8616 (encode_coding_big5, encode_coding_charset): If coding requires safe
8617 encoding, produce a character specified by
8618 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8619
8620 2008-02-01 Dave Love <fx@gnu.org>
8621
8622 * xterm.c (XSetIMValues): Declare.
8623
8624 * process.c: Conditionally include sys/wait.h, pty.h.
8625
8626 * print.c (print_object): Fix print format for 64-bit systems.
8627
8628 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
8629
8630 * buffer.c (emacs_strerror): Declare.
8631
8632 * fontset.c (Fclear_face_cache): Declare.
8633 (accumulate_font_info): Comment-out (unused).
8634 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
8635 variables.
8636
8637 * character.h (string_escape_byte8): Declare.
8638
8639 * charset.c (load_charset_map, load_charset_map_from_file): Remove
8640 unused vars.
8641 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
8642 (Fmap_charset_chars): Doc fix.
8643
8644 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
8645 (Fset_coding_system_priority, Fset_coding_system_priority)
8646 (Fdefine_coding_system_internal): Doc fix.
8647
8648 2008-02-01 Dave Love <fx@gnu.org>
8649
8650 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
8651
8652 2008-02-01 Kenichi Handa <handa@m17n.org>
8653
8654 * character.c (string_escape_byte8): Make multibyte string with
8655 correct size.
8656
8657 * charset.c (Fmake_char): Delete unnecessary code.
8658
8659 2008-02-01 Kenichi Handa <handa@m17n.org>
8660
8661 * xfns.c (x_encode_text): Allocate coding.destination here, and
8662 call encode_coding_object with dst_object Qnil.
8663
8664 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
8665 multibyte form correctly.
8666
8667 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
8668 against Vfont_encoding_alist.
8669
8670 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
8671 handling of charset list.
8672 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8673 (decode_coding_object): Move point to coding->dst_pos before
8674 calling post-read-conversion function.
8675 (encode_coding_object): Give correct arguments to
8676 pre-write-conversion. Ignore the return value of
8677 pre-write-conversion function. Pay attention to the case that
8678 pre-write-conversion changes the current buffer. If dst_object is
8679 Qt, even if coding->src_bytes is zero, allocate at least one byte
8680 to coding->destination.
8681
8682 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
8683
8684 * charset.c (Fmake_char): Make it more backward compatible.
8685 (Fmap_charset_chars): Fix docstring.
8686
8687 2008-02-01 Dave Love <fx@gnu.org>
8688
8689 * coding.c: Doc fixes.
8690 (Fdefine_coding_system_alias): Use names, not symbols, in
8691 coding-system-alist.
8692
8693 2008-02-01 Kenichi Handa <handa@m17n.org>
8694
8695 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8696 of calling free_realized_face.
8697
8698 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
8699
8700 * charset.c (read_hex): Don't treat SPC as a comment starter.
8701 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
8702 (Fdecode_char): Fix typo.
8703
8704 2008-02-01 Kenichi Handa <handa@m17n.org>
8705
8706 * charset.h (struct charset): New member `code_space_mask'.
8707
8708 * coding.c (coding_set_source): Delete the local variable beg_byte.
8709 (encode_coding_charset, Fdefine_coding_system_internal):
8710 Delete the local variable charset.
8711 (Fdefine_coding_system_internal): Setup
8712 attrs[coding_attr_charset_valids] correctly.
8713
8714 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
8715 member to check if CODE is valid or not.
8716 (Fdefine_charset_internal): Initialize `code_space_mask' member.
8717 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
8718 is within the range of charset->min_code and carset->max_code.
8719
8720 2008-02-01 Dave Love <fx@gnu.org>
8721
8722 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
8723
8724 * dispextern.h (generate_ascii_font): Fix return type.
8725
8726 * xfaces.c (generate_ascii_font): Fix arg declaration.
8727
8728 * coding.c (coding_inherit_eol_type)
8729 (Fset_terminal_coding_system_internal)
8730 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
8731
8732 2008-02-01 Kenichi Handa <handa@m17n.org>
8733
8734 * coding.c (decode_coding_charset, encode_coding_charset): Handle
8735 multiple charsets correctly.
8736
8737 2008-02-01 Kenichi Handa <handa@m17n.org>
8738
8739 * search.c (boyer_moore): Fix handling of mulitbyte character
8740 translation.
8741
8742 * xdisp.c (display_mode_element): When the variable `elt' is
8743 changed, update `this' and `lisp_string'.
8744
8745 2008-02-01 Kenichi Handa <handa@m17n.org>
8746
8747 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
8748
8749 * callproc.c (Fcall_process): Be sure to give the current buffer
8750 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
8751
8752 * charset.c (struct charset_map_entries): New struct.
8753 (load_charset_map): Rename from parse_charset_map. New args
8754 entries and n_entries. Change caller.
8755 (load_charset_map_from_file): Rename from load_charset_map.
8756 Change caller. New arg control_flag. Call load_charset_map at
8757 the tail.
8758 (load_charset_map_from_vector): New function.
8759 (Fdefine_charset_internal): Setup charset.compact_codes_p.
8760 (encode_char): If the charset is compact, change a character index
8761 to a code point.
8762
8763 * coding.c (coding_alloc_by_making_gap): Check the case that the
8764 source and destination are the same correctly.
8765 (decode_coding_raw_text): Set coding->consumed_char and
8766 coding->consumed to 0.
8767 (produce_chars): If coding->chars_at_source is nonzero, update
8768 coding->consumed_char and coding->consumed before calling
8769 alloc_destination.
8770 (Fdefine_coding_system_alias): Register ALIAS in
8771 Vcoding_system_alist.
8772 (syms_of_coding): Define `no-convesion' coding system at the tail.
8773
8774 * fileio.c (Finsert_file_contents): Set coding_system instead of
8775 val. If the current buffer is multibyte, always call
8776 decode_coding_gap.
8777
8778 * xfaces.c (try_font_list): Give higher priority to fontset's
8779 family than face's family.
8780
8781 2008-02-01 Kenichi Handa <handa@m17n.org>
8782
8783 * callproc.c (Fcall_process): Be sure to give the current buffer
8784 to decode_coding_c_string.
8785
8786 * xfaces.c (try_font_list): Give a family specified in a fontset
8787 higher priority than a family specified in a face.
8788
8789 2008-02-01 Kenichi Handa <handa@m17n.org>
8790
8791 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
8792 Fix arguments to insert_from_buffer.
8793
8794 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
8795
8796 2008-02-01 Kenichi Handa <handa@m17n.org>
8797
8798 * coding.c (produce_chars): Set the variable `multibytep' correctly.
8799 (decode_coding_gap): Set coding->dst_multibyte correctly.
8800
8801 2008-02-01 Kenichi Handa <handa@m17n.org>
8802
8803 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
8804 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
8805 (encode_coding_utf_16): Substitute coding->default_char for
8806 non-Unicode characters.
8807 (decode_coding): Don't call record_insert here.
8808 (setup_coding_system): Initialize `surrogate' of
8809 coding->spec.utf_16 to 0.
8810 (EMIT_ONE_BYTE): Fix for multibyte case.
8811
8812 * insdel.c (insert_from_gap): Call record_insert.
8813
8814 2008-02-01 Kenichi Handa <handa@m17n.org>
8815
8816 * casefiddle.c (casify_region): Fix multibyte case.
8817
8818 * character.c (c_string_width): Add return type `int'.
8819 (char_string_with_unification): Delete arg ADVANCED.
8820
8821 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
8822 (CHAR_STRING): Adjust for the change of char_string_with_unification.
8823 (CHAR_STRING_ADVANCE): Make it do-while statement.
8824
8825 * chartab.c (sub_char_table_set_range): Optimize for the case
8826 DEPTH == 3. Add workaround code for a GCC optimization bug.
8827
8828 * charset.c (parse_charset_map): Remove an unused variable.
8829
8830 * coding.c: Delete unused variables.
8831
8832 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
8833 earlier. If inserted is zero and the coding system doesn't
8834 require flushing, don't call decode_coding_gap.
8835
8836 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
8837
8838 2008-02-01 Kenichi Handa <handa@m17n.org>
8839
8840 The following changes are for using Unicode as an internal
8841 character model, and use UTF-8 format for buffer/string
8842 representation.
8843
8844 * .gdbinit (xchartable): Adjust for the change of char table structure.
8845 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
8846
8847 * Makefile.in (obj): Add character.o and chartab.o.
8848 (lisp, shortlisp): Remove utf-8.elc.
8849 (*.o): For many files, change dependency on charset.h to
8850 character.h, and add dependency on character.h.
8851 (character.o, chartab.o): New targets.
8852
8853 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
8854 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
8855 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
8856 of "charset.h".
8857
8858 * dired.c, filelock.c: Include "character.h".
8859
8860 * alloc.c: Include "character.h" instead of "charset.h".
8861 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
8862 (syms_of_alloc): Remove defsubr for Smake_char_table.
8863
8864 * buffer.c: Include "character.h" instead of "charset.h", don't
8865 include "coding.h".
8866 (Fset_buffer_multibyte): Adjust for UTF-8.
8867
8868 * buffer.h: EXFUN Fbuffer_live_p.
8869
8870 * callproc.c: Include "character.h" instead of "charset.h".
8871 (Fcall_process): Big change for the new code-conversion APIs.
8872
8873 * casetab.c: Include "character.h" instead of "charset.h".
8874 (set_canon, set_identity, shuffle): Adjust for the new
8875 map_char_table spec.
8876 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
8877 accessing the char table structure.
8878
8879 * chartab.c: New file that implements char table.
8880
8881 * category.c: Include "character.h".
8882 (copy_category_entry): New function.
8883 (copy_category_table): Call map_char_table and copy_category_entry.
8884 (Fmake_category_table): Initialize all top-vel slots.
8885 (char_category_set): New function.
8886 (modify_lower_category_set): Delete.
8887 (Fmodify_category_entry): Call char_table_ref_and_range.
8888
8889 * category.h (CATEGORY_SET): Just call char_category_set.
8890
8891 * ccl.c: Include "character.h".
8892 (Qccl, Qcclp): New variables.
8893 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
8894 it's less than 256.
8895 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
8896 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
8897 and DST type.
8898 (ccl_driver): Change types of argument, adjust code accordingly.
8899 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
8900 ccl_driver.
8901 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
8902
8903 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
8904 New members src_multibyte, dst_multibyte, consumed, and produced.
8905 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
8906 (CODING_SPEC_CCL_PROGRAM): New macro.
8907 (ccl_driver): Update prototype.
8908 (Qccl, Qcclp, Fccl_program_p): Extern them.
8909 (CHECK_CCL_PROGRAM): New macro.
8910
8911 * character.c, character.h, chartab.c: New files.
8912
8913 * charset.c: Mostly re-written. Move character and multibyte sequence
8914 handling codes to character.c.
8915
8916 * charset.h: Mostly re-written. Move character and multibyte sequence
8917 handling codes to character.h.
8918
8919 * coding.c, coding.h: Mostly re-written.
8920
8921 * composite.c: Include "character.h" instead of "charset.h".
8922 (CHAR_WIDTH): Move to character.h.
8923 (HASH_KEY, HASH_VALUE): Delete.
8924
8925 * composite.h (enum composition_method): Change order of enumeration
8926 symbols.
8927
8928 * data.c: Include "character.h" instead of "charset.h".
8929 (Faref): Call CHAR_TABLE_REF for a char table.
8930 (Faset): Call CHAR_TABLE_SET for a char table.
8931
8932 * dispextern.h (free_realized_face, check_face_attribytes)
8933 (generate_ascii_font): Extern them.
8934 (free_realized_multibyte_face): Delete extern.
8935
8936 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
8937 table structure.
8938
8939 * editfns.c: Include "character.h" instead of "charset.h".
8940 (Fchar_to_string): Always call CHAR_STRING.
8941
8942 * emacs.c (main): Call init_charset_once, init_charset,
8943 syms_of_chartab, and syms_of_character.
8944
8945 * fileio.c: Include "character.h" instead of "charset.h".
8946 (Finsert_file_contents): Big change for the new code-conversion API.
8947 (choose_write_coding_system, Fwrite_region): Likewise.
8948 (build_annotations_2): Delete.
8949 (e_write): Big change for the new code-conversion API.
8950
8951 * fns.c: Include "character.h" instead of "charset.h".
8952 (copy_sub_char_table): Move to chartab.c.
8953 (Fcopy_sequence): Call copy_char_table for a char table.
8954 (concat): Delete codes calling count_multibyte.
8955 (string_char_to_byte, string_byte_to_char): Adjust for the new
8956 multibyte form.
8957 (internal_equal): Adjust for the change of char table structure.
8958 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
8959 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
8960 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
8961 (char_table_translate, optimize_sub_char_table)
8962 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
8963 chartab.c.
8964 (char_table_ref_and_index): Delete.
8965 (HASH_KEY, HASH_VALUE): Move to lisp.h.
8966 (Fmd5): Call preferred_coding_system instead of accessing
8967 Vcoding_category_list. Adjust for the new code-conversion API.
8968 (syms_of_fns): Move defsubr for char table related functions to
8969 chartab.c.
8970
8971 * fontset.c: Mostly re-written.
8972
8973 * fontset.h (struct font_info): Change type of the member encoding_type.
8974 (enum FONT_SPEC_INDEX): New enum.
8975 (fontset_font_pattern, fs_load_font): Update prototype.
8976 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
8977
8978 * indent.c: Include "character.h" instead of "charset.h".
8979 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
8980
8981 * insdel.c: Include "character.h" instead of "charset.h".
8982 (copy_text): Don't refer to Vnonascii_translation_table.
8983 (insert_from_gap): New function.
8984
8985 * keyboard.c: Include "character.h" instead of "charset.h".
8986 (command_loop_1): Never call direct_output_forward_char before
8987 a non-ASCII character.
8988 (read_char): If Vkeyboard_translate_table is a char table, always
8989 translate a character.
8990
8991 * keymap.c: Include "character.h".
8992 (store_in_keymap): Handle the case that IDX is a cons.
8993 (Fdefine_key): Handle the case that KEY is a cons and the car part
8994 is also a cons (range).
8995 (push_key_description): Adjust for the new character code.
8996 (describe_vector): Call describe_char_table for a char table.
8997 (describe_char_table): New function.
8998
8999 * keymap.h (describe_char_table): Extern it.
9000
9001 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
9002 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
9003 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
9004 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
9005 Delete.
9006 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
9007 structure.
9008 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
9009 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
9010 (CHARTAB_SIZE_BITS_3): New macros.
9011 (chartab_size): Extern it.
9012 (struct Lisp_Char_Table): Re-design.
9013 (struct Lisp_Sub_Char_Table): New structure.
9014 (HASH_KEY, HASH_VALUE): Move from fns.c.
9015 (CHARACTERBITS): Define as 22.
9016 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
9017 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
9018 (GC_SUB_CHAR_TABLE_P): New macro.
9019 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
9020 (code_convert_string_norecord): Deleted extern.
9021 (init_character_once, syms_of_character, init_charset)
9022 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
9023
9024 * lread.c: Include "character.h".
9025 (read_multibyte): New arg NBYTES.
9026 (read_escape): Change the meaning of returned *BYTEREP.
9027 (to_multibyte): Delete.
9028 (read1): Adjust the handling of char table and string.
9029
9030 * print.c: Include "character.h" instead of "charset.h".
9031 (print_string): Convert 8-bit raw bytes to octal form by
9032 string_escape_byte8.
9033 (print_object): Adjust for the new multibyte form. Print 8-bit
9034 raw bytes always in octal form. Handle sub char table correctly.
9035
9036 * process.c: Include "character.h" instead of "charset.h".
9037 (read_process_output, send_process): Adjust for the new
9038 code-conversion API.
9039
9040 * puresize.h (BASE_PURESIZE): Increase.
9041
9042 * regex.c: Include "character.h" instead of "charset.h".
9043 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
9044 (regex_compile): Accept a range whose starting and ending
9045 character have different leading bytes.
9046 (analyse_first): Adjust for the above change.
9047
9048 * search.c: Include "character.h" instead of "charset.h".
9049 (search_buffer, boyer_moore): Adjust for the new multibyte form.
9050 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
9051
9052 * syntax.c: Include "character.h" instead of "charset.h".
9053 (syntax_parent_lookup): Delete.
9054 (Fmodify_syntax_entry): Accept a cons as CHAR.
9055 (skip_chars): Adjust for the new multibyte form.
9056 (init_syntax_once): Call char_table_set_range instead of directly
9057 accessing the structure of a char table.
9058
9059 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
9060 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
9061 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
9062 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
9063
9064 * term.c: Include "buffer.h" and "character.h".
9065 (encode_terminal_code, write_glyphs): Adjust for the new
9066 code-conversion API.
9067 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
9068
9069 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
9070
9071 * xdisp.c: Include "character.h".
9072 (get_next_display_element): Adjust for the new multibyte form.
9073 (disp_char_vector): Adjust for the new char table structure.
9074 (decode_mode_spec_coding): Adjust for the new structure of
9075 coding system.
9076 (decode_mode_spec): Adjust for the new code-conversion API.
9077
9078 * xfaces.c: Include "character.h" instead of "charset.h".
9079 (load_face_font): Adjust for the change of choose_face_font and
9080 FS_LOAD_FONT.
9081 (generate_ascii_font): New function.
9082 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
9083 (set_font_frame_param): Adjust for the change of choose_face_font.
9084 (free_realized_face): Make it public.
9085 (free_realized_faces_for_fontset): Rename from
9086 free_realized_multibyte_face. Free also faces realized for ASCII.
9087 (choose_face_font): Change arguments. Adjust for the change of
9088 fontset_font_pattern and FS_LOAD_FONT.
9089
9090 * xfns.c: Include "character.h".
9091 (x_encode_text): Adjust for the new code-conversion API.
9092
9093 * xselect.c: Don't include "charset.h".
9094 (selection_data_to_lisp_data): Adjust for the new code conversion API.
9095
9096 * xterm.c: Include "character.h".
9097 (x_encode_char): New argument CHARSET. Change caller.
9098 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
9099 Call ENCODE_CHAR instead of SPLIT_CHAR.
9100 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
9101 CHAR_WIDTH instead of CHARSET_WIDTH.
9102 (XTread_socket): Adjust for the new code-conversion API.
9103 (x_new_font): Adjust for the change of FS_LOAD_FONT.
9104 (x_load_font): Adjust for the change of struct font.
9105
9106 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9107
9108 * xfaces.c (face_at_buffer_position): Remove unused vars.
9109
9110 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9111
9112 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
9113 Fix overflow checking.
9114
9115 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9116
9117 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
9118 Cancel previous change.
9119
9120 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9121
9122 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
9123 ccl->eight_bit_control. Fix check for buffer overflow.
9124 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
9125 (ccl_driver): Initialize extra_bytes to 0.
9126
9127 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9128
9129 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
9130 return it ORed with ctrl_modifier.
9131
9132 2008-01-29 Miles Bader <miles@gnu.org>
9133
9134 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
9135
9136 2008-01-28 Jason Rumney <jasonr@gnu.org>
9137
9138 * w32.c (stat): Don't double check for networked drive.
9139
9140 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9141
9142 * window.c (run_window_configuration_change_hook): New function.
9143 Code extracted from set_window_buffer. Set the selected frame.
9144 (set_window_buffer): Use it.
9145 * window.h (run_window_configuration_change_hook): Declare.
9146 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
9147
9148 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
9149
9150 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
9151
9152 * Makefile.in: Remove references to unused macros.
9153
9154 2008-01-26 Eli Zaretskii <eliz@gnu.org>
9155
9156 * w32.c (g_b_init_get_sid_sub_authority)
9157 (g_b_init_get_sid_sub_authority_count): New static variables.
9158 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
9159 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
9160 (init_user_info): Use them to retrieve uid and gid.
9161 Use 500/513, the Windows defaults, as Administrator's uid/gid.
9162 (fstat): Use pw_uid and pw_gid from the_passwd structure for
9163 st_uid and st_gid of the file.
9164
9165 2008-01-26 Jason Rumney <jasonr@gnu.org>
9166
9167 * w32.c (logon_network_drive): New function.
9168 (stat): Use it.
9169
9170 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
9171
9172 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
9173 invisible text covered with an ellipsis.
9174
9175 2008-01-25 Richard Stallman <rms@gnu.org>
9176
9177 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
9178 jump back to beginning. Move some other initializations after that.
9179 (Qwindow_text_change_functions, Vwindow_text_change_functions):
9180 New variables.
9181 (syms_of_xdisp): Init them.
9182
9183 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
9184
9185 * buffer.c (reset_buffer_local_variables):
9186 Implement `permanent-local-hook'.
9187 (Qpermanent_local_hook): New variable.
9188 (syms_of_buffer): Init and staticpro it.
9189
9190 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
9191
9192 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
9193
9194 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
9195
9196 * fns.c (Fclrhash): Return TABLE.
9197
9198 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9199
9200 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
9201 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
9202 is set even without positional changes.
9203 (x_scroll_bar_clear): Set bar->redraw_needed_p.
9204
9205 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
9206
9207 2008-01-23 Jason Rumney <jasonr@gnu.org>
9208
9209 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
9210
9211 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
9212 the unicode range available in MULE by locale-coding-system.
9213 Improve dbcs lead byte detection. Set event timestamp and modifiers
9214 earlier.
9215
9216 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9217
9218 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
9219 [MAC_OSX] (init_mac_osx_environment): Initialize it.
9220 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
9221 when used on child processes.
9222
9223 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
9224
9225 * dbusbind.c (Fdbus_method_return_internal): Rename from
9226 Fdbus_method_return.
9227 (Fdbus_unregister_object): Move to dbus.el.
9228 (Fdbus_call_method, Fdbus_method_return_internal)
9229 (Fdbus_send_signal): Improve debug messages.
9230
9231 2008-01-20 Martin Rudalics <rudalics@gmx.at>
9232
9233 * undo.c (undo_inhibit_record_point): New variable.
9234 (syms_of_undo): Initialize it.
9235 (record_point): Don't record point when undo_inhibit_record_point
9236 is set.
9237
9238 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
9239
9240 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
9241
9242 * xdisp.c (Qauto_hscroll_mode): New var.
9243 (syms_of_xdisp): Initialize it.
9244 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
9245 window's buffer.
9246 (hscroll_windows): Don't check automatic_hscrolling_p here.
9247
9248 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
9249 vscroll if we're setting window-buffer to the value it already has.
9250
9251 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
9252
9253 * m/intel386.h: Remove references to XENIX.
9254
9255 2008-01-17 Andreas Schwab <schwab@suse.de>
9256
9257 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
9258 instead of HAVE_X86_64_LIB64_DIR.
9259 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
9260
9261 2008-01-17 Glenn Morris <rgm@gnu.org>
9262
9263 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
9264 to HAVE_X86_64_LIB64_DIR.
9265
9266 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
9267
9268 * s/irix3-3.h:
9269 * s/irix4-0.h:
9270 * s/386-ix.h:
9271 * s/domain.h:
9272 * s/hpux9-x11r4.h:
9273 * s/hpux9shxr4.h: Remove files for systems no longer supported.
9274
9275 * sysdep.c: Remove code containing references to symbols defined
9276 by unsupported systems.
9277
9278 2008-01-16 Glenn Morris <rgm@gnu.org>
9279
9280 * coding.c (select-safe-coding-system-function): Doc fix.
9281
9282 2008-01-15 Glenn Morris <rgm@gnu.org>
9283
9284 * config.in: Revert 2008-01-13 change: this is a generated file.
9285
9286 2008-01-13 Tom Tromey <tromey@redhat.com>
9287
9288 * lisp.h: Fix typo.
9289
9290 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9291
9292 * m/sequent-ptx.h:
9293 * m/sequent.h:
9294 * s/ptx.h:
9295 * s/ptx4-2.h:
9296 * s/ptx4.h: Remove files for systems no longer supported.
9297
9298 * callproc.c (Fcall_process): Fix previous change.
9299
9300 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9301
9302 * unexsunos4.c: Remove file, system not supported anymore.
9303
9304 * m/mips.h:
9305 * m/intel386.h:
9306 * callproc.c:
9307 * config.in:
9308 * ecrt0.c:
9309 * emacs.c:
9310 * fileio.c:
9311 * frame.c:
9312 * getpagesize.h:
9313 * keyboard.c:
9314 * lread.c:
9315 * process.c:
9316 * puresize.h:
9317 * sysdep.c:
9318 * systty.h:
9319 * syswait.h:
9320 * unexec.c:
9321 * xdisp.c:
9322 * alloc.c: Remove code containing references to symbols defined by
9323 unsupported systems.
9324
9325 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
9326
9327 * coding.c (detect_coding_mask): Fix previous change.
9328
9329 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
9330
9331 * coding.c (detect_coding_iso2022): New arg
9332 latin_extra_code_state. Allow Latin extra codes only
9333 when *latin_extra_code_state is nonzero.
9334 (detect_coding_mask): If there is a NULL byte, detect the encoding
9335 as UTF-16 or binary. If Latin extra codes exist, detect the
9336 encoding as ISO-2022 only when there's no other proper encoding is
9337 found.
9338
9339 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9340
9341 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
9342 #ifdef MAC_OS.
9343
9344 2008-01-08 Richard Stallman <rms@gnu.org>
9345
9346 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
9347
9348 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
9349
9350 * keyboard.c (parse_menu_item): Don't enclose key bindings on
9351 menu bar in parentheses.
9352
9353 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
9354
9355 * m/7300.h:
9356 * m/acorn.h:
9357 * m/alliant-2800.h:
9358 * m/alliant.h:
9359 * m/alliant1.h:
9360 * m/alliant4.h:
9361 * m/altos.h:
9362 * m/amdahl.h:
9363 * m/apollo.h:
9364 * m/att3b.h:
9365 * m/aviion-intel.h:
9366 * m/aviion.h:
9367 * m/celerity.h:
9368 * m/clipper.h:
9369 * m/cnvrgnt.h:
9370 * m/convex.h:
9371 * m/cydra5.h:
9372 * m/delta88k.h:
9373 * m/dpx2.h:
9374 * m/dual.h:
9375 * m/elxsi.h:
9376 * m/f301.h:
9377 * m/gould-np1.h:
9378 * m/gould.h:
9379 * m/i860.h:
9380 * m/ibmps2-aix.h:
9381 * m/ibmrt-aix.h:
9382 * m/ibmrt.h:
9383 * m/irist.h:
9384 * m/is386.h:
9385 * m/isi-ov.h:
9386 * m/mega68.h:
9387 * m/mg1.h:
9388 * m/news-r6.h:
9389 * m/news-risc.h:
9390 * m/news.h:
9391 * m/nh3000.h:
9392 * m/nh4000.h:
9393 * m/ns16000.h:
9394 * m/ns32000.h:
9395 * m/nu.h:
9396 * m/orion.h:
9397 * m/orion105.h:
9398 * m/paragon.h:
9399 * m/pfa50.h:
9400 * m/plexus.h:
9401 * m/pyramid.h:
9402 * m/pyrmips.h:
9403 * m/sh3el.h:
9404 * m/sps7.h:
9405 * m/sr2k.h:
9406 * m/stride.h:
9407 * m/sun1.h:
9408 * m/sun2.h:
9409 * m/sun3-68881.h:
9410 * m/sun3-fpa.h:
9411 * m/sun3-soft.h:
9412 * m/sun3.h:
9413 * m/sun386.h:
9414 * m/symmetry.h:
9415 * m/tad68k.h:
9416 * m/tahoe.h:
9417 * m/targon31.h:
9418 * m/tek4300.h:
9419 * m/tekxd88.h:
9420 * m/tower32.h:
9421 * m/tower32v3.h:
9422 * m/ustation.h:
9423 * m/wicat.h:
9424 * m/xps100.h:
9425 * s/cxux.h:
9426 * s/cxux7.h:
9427 * s/dgux.h:
9428 * s/dgux4.h:
9429 * s/dgux5-4-3.h:
9430 * s/dgux5-4r2.h:
9431 * s/esix.h:
9432 * s/esix5r4.h:
9433 * s/hiuxmpp.h:
9434 * s/hiuxwe2.h:
9435 * s/iris3-5.h:
9436 * s/iris3-6.h:
9437 * s/isc2-2.h:
9438 * s/isc3-0.h:
9439 * s/isc4-0.h:
9440 * s/isc4-1.h:
9441 * s/newsos5.h:
9442 * s/newsos6.h:
9443 * s/osf1.h:
9444 * s/osf5-0.h:
9445 * s/riscix1-1.h:
9446 * s/riscix12.h:
9447 * s/sco4.h:
9448 * s/sco5.h:
9449 * s/sunos4-0.h:
9450 * s/sunos4-1.h:
9451 * s/sunos413.h:
9452 * s/sunos4shr.h:
9453 * s/umax.h:
9454 * s/unipl5-2.h:
9455 * s/xenix.h:
9456 * cxux-crt0.s:
9457 * unexapollo.c:
9458 * unexconvex.c:
9459 * unexenix.c:
9460 * unexsni.c: Remove files for systems no longer supported.
9461
9462 * m/intel386.h: Remove references to unsupported systems.
9463
9464 * w32.c (get_emacs_configuration): Remove reference to i860.
9465
9466 * sysdep.c: Remove dead code.
9467
9468 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
9469
9470 * s/rtu.h:
9471 * m/masscomp.h: Remove files. Platform is obsolete.
9472
9473 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
9474
9475 * dbusbind.c (Fdbus_method_return): New function.
9476 (xd_read_message): Add the serial number to the event.
9477 (Fdbus_register_method): Activate the function.
9478
9479 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
9480
9481 * keyboard.c (read_key_sequence): Fix typo.
9482
9483 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
9484
9485 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
9486 (xd_signature, xd_append_arg): Handle element type detection for
9487 empty arrays.
9488 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
9489 SDATA () calls; this must be solved more general.
9490 (Fdbus_register_signal): Use SBYTES instead of strlen.
9491
9492 2008-01-03 Magnus Henoch <magnus@zemdatav>
9493
9494 * dbusbind.c (xd_append_arg): Use unsigned char instead of
9495 unsigned int for byte values (necessary for big-endian platform).
9496 (Fdbus_call_method): Handle the case of no returned arguments.
9497
9498 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
9499
9500 * dbusbind.c (xd_read_message): Use non-static input_event struct.
9501
9502 2007-12-31 Magnus Henoch <mange@freemail.hu>
9503
9504 * dbusbind.c (xd_signature): Signature of variant is just "v".
9505
9506 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
9507
9508 * dbusbind.c: Fix several errors and compiler warnings.
9509 Reported by Tom Tromey <tromey@redhat.com>.
9510 (XD_ERROR, XD_DEBUG_MESSAGE)
9511 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
9512 (xd_append_arg): Part for basic D-Bus types rewitten.
9513 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
9514 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
9515 appropriate.
9516 (xd_read_message): Return Qnil. Don't signal an error; it is not
9517 useful during event reading.
9518 (Fdbus_register_signal): Signal an error if the check for
9519 FUNCTIONP fails.
9520 (Fdbus_register_method): New function. The implementation is not
9521 complete, the call of the function signals an error therefore.
9522 (Fdbus_unregister_object): New function, renamed from
9523 Fdbus_unregister_signal. The initial check signals an error, if
9524 the object is not well formed.
9525
9526 2007-12-30 Richard Stallman <rms@gnu.org>
9527
9528 * textprop.c (get_char_property_and_overlay):
9529 Signal error if POSITION is out of range in a buffer.
9530
9531 2007-12-29 Martin Rudalics <rudalics@gmx.at>
9532
9533 * w32fns.c (Fx_create_frame): Make copy of frame parameters
9534 because the original parameters are in pure storage now.
9535
9536 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9537
9538 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
9539
9540 2007-12-22 Eli Zaretskii <eliz@gnu.org>
9541
9542 * callint.c (syms_of_callint) <command-history>: Add reference to
9543 history-length in the doc string.
9544
9545 2007-12-17 Jason Rumney <jasonr@gnu.org>
9546
9547 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
9548 before passing as wParam.
9549
9550 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
9551
9552 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
9553 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
9554 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
9555 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
9556 as number.
9557 (Fdbus_call_method): Fix docstring.
9558
9559 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
9560
9561 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
9562 New macros.
9563 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
9564 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
9565 Simplify.
9566 (xd_signature): New function.
9567 (xd_append_arg): Compute also signatures. Major rewrite.
9568 (xd_retrieve_arg): Make debug messages friendly.
9569 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
9570 Check for signatures of arguments.
9571
9572 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
9573
9574 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
9575 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
9576 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
9577 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
9578 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
9579 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
9580 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
9581 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
9582 (xd_retrieve_value): Remove. Functionality included in ...
9583 (xd_append_arg): New function.
9584 (Fdbus_call_method, Fdbus_send_signal): Apply it.
9585
9586 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
9587
9588 * dbusbind.c (top): Include <stdio.h>.
9589 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
9590 dbus_message_new_method_call and dbus_message_new_signal.
9591 (Fdbus_register_signal): Rename unique_name to uname.
9592 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
9593 non-existing unique name. Fix typos in matching rule. Return an
9594 object which is useful in Fdbus_unregister_signal.
9595 (Fdbus_unregister_signal): Reimplementation, in order to remove
9596 only the corresponding entry.
9597 (Vdbus_registered_functions_table): Change the order of entries.
9598 Apply these changes in xd_read_message and Fdbus_register_signal.
9599
9600 2007-12-16 Andreas Schwab <schwab@suse.de>
9601
9602 * fileio.c (Finsert_file_contents): Fix overflow check to not
9603 depend on undefined integer overflow.
9604
9605 2007-12-14 Jason Rumney <jasonr@gnu.org>
9606
9607 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
9608 for characters above 127.
9609
9610 2007-12-13 Jason Rumney <jasonr@gnu.org>
9611
9612 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
9613 before dereferencing array.
9614 (lookup_vk_code): Remove zero comparison.
9615
9616 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
9617
9618 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
9619 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
9620 Use `unsigned int' instead of `uint'.
9621 (xd_read_message, Fdbus_register_signal): Split expressions into
9622 multiple lines before operators "&&" and "||", according to the
9623 GNU Coding Standards.
9624
9625 2007-12-14 Eli Zaretskii <eliz@gnu.org>
9626
9627 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
9628
9629 2007-12-12 Juri Linkov <juri@jurta.org>
9630
9631 * buffer.c (Frename_buffer): In interactive spec replace
9632 `read-buffer' with `read-string' that uses `buffer-name-history'
9633 as history, and the current buffer's name as default.
9634
9635 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
9636
9637 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
9638 manipulating the backtrace manually.
9639 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
9640 (struct backtrace, backtrace_list): Remove.
9641 (command_loop_1): Remove dead var `no_direct'.
9642
9643 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
9644 preserve non-built-in buffer-local variables.
9645 (Fkill_all_local_variables): Don't re-create&re-set permanent
9646 buffer-local variables.
9647
9648 2007-12-09 Juri Linkov <juri@jurta.org>
9649
9650 * buffer.c (Frename_buffer): Change interactive spec from "s" to
9651 Lisp code that uses `read-buffer' with current buffer as default.
9652
9653 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
9654
9655 * dbusbind.c (xd_read_message): Generate an event for every
9656 registered handler. There might be several handlers registered
9657 for the same signal.
9658 (Fdbus_register_signal): Don't overwrite a registration for the
9659 same signal. Add a new registration if handlers are different.
9660 (Vdbus_registered_functions_table): Rework doc string.
9661
9662 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
9663
9664 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
9665 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
9666 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
9667 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
9668 Unify argument lists.
9669 (xd_read_message, Fdbus_register_signal): Reorder and extend event
9670 arguments and hash table keys. Use unique name for service.
9671 (Fdbus_unregister_signal): Remove checks.
9672 (Vdbus_registered_functions_table): Fix doc string.
9673
9674 2007-12-05 Magnus Henoch <mange@freemail.hu>
9675
9676 * process.c (make_process): Initialize pty_flag to 0.
9677
9678 2007-12-05 Jason Rumney <jasonr@gnu.org>
9679
9680 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
9681 specified XBMs.
9682
9683 2007-12-05 Richard Stallman <rms@gnu.org>
9684
9685 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
9686
9687 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9688
9689 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9690 New variable.
9691 (mac_try_close_socket) [MAC_OSX]: New function.
9692 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9693 Update cfsockets_for_select. Replace invalid CFRunLoop source.
9694
9695 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9696 Use mac_try_close_socket.
9697
9698 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9699
9700 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9701 reloc_base.
9702 (copy_dysymtab): Compute relocation base here.
9703 (rebase_reloc_address) [__ppc64__]: New function.
9704 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9705 changed.
9706
9707 2007-12-05 Jason Rumney <jasonr@gnu.org>
9708
9709 * w32proc.c (sys_spawnve): Quote args with wildcards.
9710
9711 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9712
9713 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
9714 __objc_* sections.
9715 (unrelocate) [_LP64]: Set relocation base to address of data segment.
9716
9717 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
9718
9719 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
9720 Move check for Vdbus_registered_functions_table to
9721 xd_read_queued_messages.
9722 (xd_read_queued_messages): Protect xd_read_message calls by
9723 internal_condition_case_1.
9724
9725 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
9726
9727 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
9728 Qdbus_system_bus and Qdbus_session_bus, respectively.
9729 (Vdbus_intern_symbols): Remove.
9730 (Vdbus_registered_functions_table): New hash table.
9731 (XD_SYMBOL_INTERN_SYMBOL): Remove.
9732 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
9733 Rewrite in order to manage registered functions by hash table
9734 Vdbus_registered_functions_table.
9735
9736 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
9737
9738 * xterm.c: Update URL to Window Manager Specification in comment.
9739
9740 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
9741
9742 * config.in (HAVE_DBUS): Add.
9743
9744 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
9745 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
9746 (obj): Add $(DBUS_OBJ).
9747 (LIBES): Add $(DBUS_LIBS).
9748 (dbusbind.o): New target.
9749
9750 * dbusbind.c: New file.
9751
9752 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
9753
9754 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
9755 (Qdbus_event): New Lisp symbol.
9756 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
9757 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
9758 (keys_of_keyboard ): Define dbus-event.
9759
9760 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
9761
9762 2007-12-01 Richard Stallman <rms@gnu.org>
9763
9764 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
9765
9766 2007-11-30 Jason Rumney <jasonr@gnu.org>
9767
9768 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
9769 (w32con_reset_terminal_modes): Clear screen buffer.
9770 (w32_face_attributes): Don't use color indexes that are out of range.
9771 Only reverse the default colors.
9772
9773 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
9774 WINDOWSNT.
9775
9776 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
9777
9778 2007-11-29 Jason Rumney <jasonr@gnu.org>
9779
9780 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
9781 (w32_face_attributes): Use Vtty_defined_color_alist to determine
9782 if the terminal colors are initialized.
9783 (unspecified_fg, unspecified_bg): Remove unused declarations.
9784
9785 2007-11-29 Andreas Schwab <schwab@suse.de>
9786
9787 * keyboard.c (apply_modifiers): Fix typo.
9788
9789 2007-11-29 Richard Stallman <rms@gnu.org>
9790
9791 * keymap.c (Fcurrent_local_map): Doc fix.
9792
9793 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
9794
9795 * s/gnu-kfreebsd.h: New file.
9796
9797 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
9798
9799 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
9800 Don't cast redundantly.
9801
9802 * keyboard.c (KEY_TO_CHAR): New macro.
9803 (parse_modifiers, apply_modifiers): Accept integer arguments.
9804 (read_key_sequence): Use them to unify the "shift->unshift" mapping
9805 for chars and symbol keys.
9806 After doing such remapping, apply function-key-map again.
9807
9808 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
9809
9810 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
9811 compiled anymore.
9812
9813 2007-11-26 Andreas Schwab <schwab@suse.de>
9814
9815 * process.c (list_processes_1): Fix indentation level of the
9816 command column.
9817
9818 2007-11-23 Andreas Schwab <schwab@suse.de>
9819
9820 * editfns.c (Fformat): Handle %c specially since it requires the
9821 argument to be of type int.
9822
9823 2007-11-23 Markus Triska <markus.triska@gmx.at>
9824
9825 * emacs.c (main): Call init_editfns before init_process, since
9826 init_process sets Vprocess_connection_type depending on OS release.
9827
9828 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9829
9830 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
9831 (find_symbol_value): Use do_symval_forwarding.
9832
9833 * data.c (set_internal): Set the value in the `cons-cell' (for
9834 Buffer_Local_values) not only for frame-local variables.
9835
9836 2007-11-22 Andreas Schwab <schwab@suse.de>
9837
9838 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
9839 values to sprintf.
9840 * keymap.c (Fsingle_key_description): Likewise.
9841 * print.c (print_object): Likewise.
9842
9843 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
9844
9845 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
9846 file for image is nil.
9847
9848 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
9849
9850 * term.c: Include stdarg.h.
9851 (fatal): Implement using varargs.
9852 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
9853
9854 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9855
9856 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
9857 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
9858 Update call to buffer_slot_type_mismatch.
9859 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
9860 (buffer_slot_type_mismatch): Update.
9861 * buffer.c (buffer_local_types): Remove.
9862 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
9863 (defvar_per_buffer): Set the type in the buffer_objfwd.
9864
9865 2007-11-21 Jason Rumney <jasonr@gnu.org>
9866
9867 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
9868 CreateFileMapping returns NULL on failure.
9869
9870 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9871
9872 * search.c (Fset_match_data): Remove the `evaporate' feature.
9873 (unwind_set_match_data): Don't use the `evaporate' feature.
9874
9875 2007-11-21 Jason Rumney <jasonr@gnu.org>
9876
9877 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
9878
9879 * w32console.c (w32con_write_glyphs): Remove unused variables.
9880
9881 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
9882
9883 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
9884
9885 * s/darwin.h (MULTI_KBOARD): Remove.
9886
9887 * macfns.c (x_create_tip_frame, Fx_create_frame)
9888 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
9889
9890 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9891
9892 * buffer.c (Fbuffer_local_value): Remove redundant test.
9893 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
9894 than in `current-buffer' to match the comment.
9895 Do the swap using swap_in_global_binding.
9896
9897 * data.c (store_symval_forwarding, set_internal):
9898 * eval.c (specbind): Remove dead code.
9899
9900 * coding.c (detect_coding, Fupdate_coding_systems_internal):
9901 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
9902 Since we do not want to see internal Lisp_*fwd objects here.
9903
9904 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
9905
9906 * sysdep.c (init_system_name): Use getaddrinfo if available.
9907
9908 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
9909 (x_scroll_bar_note_movement): start, end, with, height in struct
9910 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
9911
9912 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
9913
9914 * puresize.h (BASE_PURESIZE): Increase to 1190000.
9915
9916 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9917
9918 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
9919 This undoes Richard's change of 14-Oct-2002.
9920
9921 * alloc.c (allocate_other_vector):
9922 * lisp.h (allocate_other_vector): Remove.
9923
9924 * window.c (struct save_window_data): Move non-lisp data to the end
9925 and make it `int' rather than Lisp_Object.
9926 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
9927 Done wrap/unwrap integer values.
9928 (Fset_window_configuration, compare_window_configurations):
9929 Update use of fields to their new types.
9930
9931 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
9932 Turn integer fields into `int'. Merge x_window_low and x_window_high.
9933 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
9934 (SET_SCROLL_BAR_X_WINDOW): Remove.
9935 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
9936 Access the new x_window field directly.
9937 * xterm.c (x_scroll_bar_create): Use a pseudovector.
9938 Don't wrap/unwrap integers into Lisp_Objects.
9939 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
9940 (x_scroll_bar_report_motion):
9941 Don't wrap/unwrap integers into Lisp_Objects.
9942 (x_term_init): Use SDATA.
9943 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
9944 (x_scroll_bar_set_handle, x_scroll_bar_remove)
9945 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
9946 (x_scroll_bar_report_motion, x_scroll_bar_clear):
9947 * xfns.c (x_set_background_color):
9948 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
9949 Access the new x_window field directly.
9950
9951 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
9952 (allocate_pseudovector): Make non-static.
9953
9954 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
9955 (allocate_pseudovector): Declare.
9956 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
9957
9958 2007-11-15 Andreas Schwab <schwab@suse.de>
9959
9960 * editfns.c (Fformat): Correctly format EMACS_INT values.
9961 Also take precision into account when formatting an integer.
9962
9963 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
9964
9965 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
9966
9967 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
9968 (syms_of_keyboard): Defsubr it.
9969
9970 * data.c (swap_in_global_binding): Fix longstanding bug where
9971 store_symval_forwarding was not called with the right second argument,
9972 thus causing objfwd-ing from being dropped.
9973
9974 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
9975
9976 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
9977 (Fx_display_pixel_height, Fx_display_planes)
9978 (Fx_display_color_cells, Fx_server_max_request_size)
9979 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9980 (Fx_display_visual_class, Fx_display_save_under):
9981 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
9982 (Fx_display_pixel_height, Fx_display_planes)
9983 (Fx_display_color_cells, Fx_server_max_request_size)
9984 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9985 (Fx_display_mm_height, Fx_display_mm_width)
9986 (Fx_display_backing_store, Fx_display_visual_class)
9987 (Fw32_select_font, Fx_display_save_under):
9988 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
9989 (Fx_display_pixel_height, Fx_display_planes)
9990 (Fx_display_color_cells, Fx_server_max_request_size)
9991 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9992 (Fx_display_save_under): Fix typos in docstrings.
9993
9994 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
9995
9996 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
9997 corresponding to deleted entries; they are an implementation detail.
9998 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
9999 Remove variables.
10000 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
10001 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
10002 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
10003 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
10004 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
10005 (Fw32_define_rgb_color, Fw32_load_color_file)
10006 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
10007 Fix typos in docstrings.
10008 (Fx_server_version): Reflow docstring.
10009 (Fw32_shell_execute): Doc fixes.
10010
10011 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
10012
10013 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
10014 if w32_parse_hot_key returned nil.
10015
10016 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10017
10018 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
10019
10020 2007-11-09 Jason Rumney <jasonr@gnu.org>
10021
10022 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
10023
10024 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
10025
10026 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
10027 Remove W32_SCROLL_BAR_CLICK_EVENT.
10028
10029 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
10030 Add MULTIMEDIA_KEY_EVENT.
10031
10032 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
10033 (lispy_multimedia_keys) [WINDOWSNT]: New array.
10034 (make_lispy_event) [WINDOWSNT]: Use it to translate
10035 MULTIMEDIA_KEY_EVENT.
10036
10037 * w32term.h (WM_APPCOMMAND): Define if not already.
10038 (GET_APPCOMMAND_LPARAM): Likewise.
10039
10040 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
10041 WM_APPCOMMAND.
10042
10043 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
10044 (syms_of_w32fns): Export and initialize it.
10045 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
10046
10047 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
10048
10049 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
10050 twice.
10051
10052 * xdisp.c (handle_face_prop): Fix last change.
10053
10054 2007-11-09 Richard Stallman <rms@gnu.org>
10055
10056 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
10057 not just for after-strings and before-strings.
10058 Call face_for_overlay_string and pass the overlay to it.
10059 (handle_display_prop): Determine whether property came from an overlay.
10060 Pass OVERLAY arg to handle_single_display_spec.
10061 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
10062 (load_overlay_strings): Fill in it->string_overlays.
10063 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
10064
10065 * xfaces.c (face_for_overlay_string): Function renamed from
10066 face_at_buffer_position_no_overlays, and add arg OVERLAY.
10067
10068 * dispextern.h (struct it): New elt string_overlays.
10069 New elt from_overlay, also in stack.
10070 Rearrange a few elements.
10071 (face_for_overlay_string): Decl renamed from
10072 face_at_buffer_position_no_overlays, and add argument.
10073
10074 2007-11-09 Richard Stallman <rms@gnu.org>
10075
10076 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
10077 to get the base face for an overlay string.
10078
10079 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
10080
10081 * xfaces.c (face_at_buffer_position_no_overlays): New function.
10082
10083 * xdisp.c (handle_stop): Move some code out of loop.
10084
10085 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10086
10087 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
10088 Fix conversion from Lisp object to ATSUFontID.
10089
10090 2007-11-09 Jason Rumney <jasonr@gnu.org>
10091
10092 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
10093
10094 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10095
10096 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
10097 Don't assume regions are aligned to page boundary.
10098 (print_load_command_name): Add LC_UUID if defined.
10099
10100 2007-11-09 Richard Stallman <rms@gnu.org>
10101
10102 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
10103
10104 2007-11-07 Jason Rumney <jasonr@gnu.org>
10105
10106 * s/windows95.h: Remove.
10107
10108 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
10109
10110 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
10111 abort with a message on unhandled store_type values.
10112
10113 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
10114
10115 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
10116 Remove HAVE_X11R5 and HAVE_X11R4.
10117
10118 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10119
10120 * Makefile.in: Remove references to sunfns.c and sunfns.o.
10121
10122 2007-11-01 Johan Bockgård <bojohan@gnu.org>
10123
10124 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
10125 Don't set s->stippled_p here, since it has already been set by
10126 x_set_glyph_string_gc from x_draw_glyph_string.
10127
10128 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10129
10130 * sunfns.c: Remove file.
10131
10132 * m/sun386.h:
10133 * m/sun2.h:
10134 * m/sparc.h: Remove Sun windows code.
10135
10136 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
10137
10138 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
10139 (init_keyboard): Set current_kboard's window-system to nil.
10140 (tty_read_avail_input): Typo.
10141 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
10142
10143 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
10144
10145 * s/usg5-4.h:
10146 * s/usg5-3.h:
10147 * s/ptx.h:
10148 * m/is386.h:
10149 * m/ibmps2-aix.h:
10150 * Makefile.in: Remove all mentions of X10.
10151
10152 * dispnew.c (syms_of_display): Don't mention version 10.
10153
10154 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
10155
10156 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
10157 ($(BLD)/abbrev.$(O)): Remove.
10158
10159 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10160
10161 Rewrite abbrev.c in Elisp.
10162 * image.c (Qcount): Don't declare as extern.
10163 (syms_of_image): Initialize and staticpro `Qcount'.
10164 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
10165 * emacs.c (main): Don't call syms_of_abbrev.
10166 * Makefile.in (obj): Remove abbrev.o.
10167 (abbrev.o): Remove.
10168 * abbrev.c: Remove.
10169
10170 2007-10-26 Martin Rudalics <rudalics@gmx.at>
10171
10172 * window.c (window_min_size_2): Don't count header-line.
10173
10174 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
10175
10176 * frame.h (struct frame): Move all bit fields after the first bit
10177 field to take advantage of the available space. Group all the
10178 chars together to reduce wasted space due to padding.
10179
10180 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
10181
10182 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
10183
10184 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
10185 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
10186 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
10187 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
10188 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
10189 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
10190 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
10191 (last_marked, mark_object_loop_halt): Make static.
10192
10193 * frame.c (syms_of_frame) <delete-frame-functions>:
10194 Fix typo in docstring.
10195
10196 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
10197
10198 * w32.c (init_environment): Fix tiny memory leak.
10199 (w32_get_resource): Remove unused variable `ok'.
10200
10201 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
10202
10203 Make `window-system' into a keyboard-local variable (rather than
10204 frame-local as done originally by multi-tty).
10205
10206 * keyboard.h (struct kboard): Add Vwindow_system.
10207 * keyboard.c (init_kboard): Set a default for Vwindow_system.
10208 (mark_kboards): Mark Vwindow_system.
10209
10210 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
10211 (init_display): Don't set the obsolete `window-system' frame-param.
10212
10213 * xterm.c (x_term_init):
10214 * w32term.c (w32_create_terminal):
10215 * term.c (init_tty): Set Vwindow_system.
10216 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
10217 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
10218
10219 * xfns.c (Fx_create_frame, x_create_tip_frame):
10220 * w32fns.c (Fx_create_frame, x_create_tip_frame):
10221 * macfns.c (Fx_create_frame):
10222 Don't set the obsolete `window-system' frame-param.
10223
10224 * frame.h (Qwindow_system): Remove.
10225 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
10226 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
10227
10228 2007-10-24 Richard Stallman <rms@gnu.org>
10229
10230 * frame.c (x_figure_window_size): For fullscreen case,
10231 set USPosition | PPosition without clobbering rest of window_prompting.
10232
10233 * keyboard.c (Fcurrent_idle_time): Doc fix.
10234
10235 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10236
10237 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10238
10239 * process.c (unwind_request_sigio): Only define if __ultrix__.
10240
10241 * callproc.c (child_setup): Remove spurious *.
10242
10243 * lisp.h (Fget_text_property): Declare.
10244 (have_menus_p): Declare it here rather than in sys-dep header files.
10245 * macterm.h (have_menus_p):
10246 * msdos.h (have_menus_p):
10247 * xterm.h (have_menus_p): Remove.
10248
10249 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10250 (Fmake_variable_frame_local): Just check the variable's const-ness
10251 rather than checking nil or t.
10252
10253 2007-10-22 Jason Rumney <jasonr@gnu.org>
10254
10255 * w32fns.c: Include math.h.
10256 (w32_abort): Declaration moved to nt/config.nt.
10257
10258 * s/ms-w32.h (HAVE_STDLIB_H): Define.
10259 (abort): Redefinition moved to nt/config.nt.
10260
10261 * m/windowsnt.h: Remove.
10262
10263 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
10264
10265 * emacs.c (Fdump_emacs): Fix typo in message.
10266 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
10267 <installation-directory>: Reflow docstring.
10268
10269 2007-10-22 Juri Linkov <juri@jurta.org>
10270
10271 * minibuf.c: Allow minibuffer default to be a list of default values.
10272 With empty input use the first element of this list as returned default.
10273 (string_to_object)
10274 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
10275 (read_minibuf): If defalt is cons, set histstring to its car.
10276 (Fread_string): If default_value is cons, set val to its car.
10277 (Fread_buffer): If def is cons, use its car.
10278 (Fcompleting_read): If defalt is cons, set val to its car.
10279
10280 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
10281
10282 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
10283
10284 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
10285
10286 * doc.c (Fdocumentation): Check for advice in all cases.
10287
10288 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
10289
10290 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
10291
10292 2007-10-19 Richard Stallman <rms@gnu.org>
10293
10294 * doc.c (Fdocumentation): Check for and handle an advised function.
10295
10296 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
10297
10298 * process.c (Fset_process_filter): Doc fix.
10299
10300 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10301
10302 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
10303 which caused key-translation-map to applied repeatedly (thus breaking
10304 double-mode).
10305
10306 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10307
10308 * xselect.c (x_own_selection, x_handle_selection_clear)
10309 (x_clear_frame_selections):
10310 * w32menu.c (list_of_panes, list_of_items):
10311 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
10312 * textprop.c (validate_plist, interval_has_all_properties)
10313 (interval_has_some_properties, interval_has_some_properties_list)
10314 (add_properties, text_property_list):
10315 * process.c (Fget_buffer_process, list_processes_1, status_notify):
10316 * minibuf.c (Fassoc_string):
10317 * macselect.c (x_own_selection, x_clear_frame_selections)
10318 (Fx_disown_selection_internal):
10319 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
10320 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
10321
10322 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
10323
10324 * process.c: Link to libs for calling res_init() if available.
10325 (Fmake_network_process): Call res_init() before getaddrinfo or
10326 gethostbyname, if possible.
10327
10328 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10329
10330 * lread.c (read1): Set pvectype for char_tables.
10331
10332 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
10333 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
10334 Add type checks.
10335 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
10336
10337 * alloc.c (free_misc): Use XMISCTYPE.
10338 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
10339
10340 2007-10-17 Glenn Morris <rgm@gnu.org>
10341
10342 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
10343 (syms_of_minibuf): Add Qcompletion_ignore_case.
10344 * dired.c (Qcompletion_ignore_case): Change to external.
10345 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
10346 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
10347 (Fread_file_name): Use it rather than intern'ing.
10348
10349 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
10350 (Fread_coding_system): Ignore case of user input.
10351
10352 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10353
10354 * xdisp.c (handle_display_prop): Ignore display specs after
10355 replacing one when string text is being replaced.
10356 (handle_single_display_spec): Pretend as if characters with display
10357 property haven't been consumed only when buffer text is being replaced.
10358
10359 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
10360
10361 * xfns.c (Fx_create_frame, Fx_display_list):
10362 * window.c (window_fixed_size_p, enlarge_window)
10363 (shrink_window_lowest_first):
10364 * macterm.c (init_font_name_table):
10365 * macfns.c (Fx_create_frame, Fx_display_list):
10366 * lread.c (close_load_descs):
10367 * keyboard.c (read_char_x_menu_prompt):
10368 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
10369 * coding.c (code_convert_region_unwind): Test the type of an object
10370 rather than just !NILP before extracting data from it.
10371
10372 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
10373
10374 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
10375 (XMISCANY): New macro.
10376 (XMISCTYPE): Use it.
10377 (struct Lisp_Misc_Any): New type.
10378 (union Lisp_Misc): Use it.
10379 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
10380 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
10381 (find_symbol_value, set_internal, default_value, Fset_default)
10382 (Fmake_variable_buffer_local, Fmake_local_variable)
10383 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
10384 (Flocal_variable_if_set_p, Fvariable_binding_locus):
10385 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
10386 * alloc.c (allocate_buffer): Set the size and tag.
10387 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
10388 Use XMISCANY.
10389 (die): Follow the GNU convention for error messages.
10390 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
10391 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
10392 tag any more.
10393 (set_buffer_internal_1):
10394 * frame.c (store_frame_param):
10395 * eval.c (specbind):
10396 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
10397
10398 * doc.c (Fsnarf_documentation): Simplify.
10399
10400 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10401
10402 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
10403 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
10404
10405 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
10406
10407 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
10408
10409 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10410
10411 * eval.c (do_autoload): Don't save autoloads.
10412
10413 * data.c (Ffset): Save autoload of the function being set.
10414
10415 2007-10-07 John Paul Wallington <jpw@pobox.com>
10416
10417 * xfns.c (x_create_tip_frame): Set the `display-type' frame
10418 parameter before setting up faces.
10419
10420 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10421
10422 * ccl.c (Fregister_code_conversion_map):
10423 * keyboard.c (append_tool_bar_item): Reformat last change.
10424
10425 * lisp.h (eabs): Rename from `abs'. All callers changed.
10426
10427 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
10428
10429 * buffer.c (add_overlay_mod_hooklist):
10430 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
10431 * fontset.c (make_fontset):
10432 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
10433 (append_tool_bar_item):
10434 * macmenu.c (grow_menu_items):
10435 * w32menu.c (grow_menu_items):
10436 * xmenu.c (grow_menu_items): Use larger_vector.
10437
10438 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10439
10440 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
10441 selected frame'' on MSDOS).
10442
10443 2007-10-12 Martin Rudalics <rudalics@gmx.at>
10444
10445 * frame.c (Qexplicit_name): New variable.
10446 (x_report_frame_params): Report it in parameter alist.
10447 (syms_of_frame): Intern and staticpro it.
10448
10449 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
10450
10451 * macfns.c (x_create_tip_frame): Set terminal for frame.
10452
10453 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
10454
10455 * frame.c (Qenvironment): Remove.
10456 (syms_of_frame) <Qenvironment>: Don't initialize.
10457 (Fdelete_frame): Don't treat the `environment' param specially.
10458 * frame.h (Qenvironment): Don't declare.
10459 * callproc.c (set_initial_environment): Don't set unused frame param.
10460
10461 * frame.c (Fframe_with_environment): Remove.
10462 (syms_of_frame) <Sframe_with_environment>: Don't declare.
10463
10464 * lisp.h (Fframe_with_environment): Don't declare.
10465
10466 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
10467
10468 * indent.c (indent_tabs_mode, last_known_column)
10469 (last_known_column_modified): Make static.
10470 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
10471
10472 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
10473
10474 * puresize.h (BASE_PURESIZE): Increase to 1170000.
10475
10476 2007-10-09 Jason Rumney <jasonr@gnu.org>
10477
10478 * w32term.c (x_set_window_size): Disable code that attempts to tell
10479 Lisp code about a size change before it actually happens.
10480
10481 2007-10-09 Richard Stallman <rms@gnu.org>
10482
10483 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
10484 return HANDLED_RETURN.
10485
10486 2007-10-08 Martin Rudalics <rudalics@gmx.at>
10487
10488 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
10489 when there's an unread command event.
10490
10491 * frame.c (focus_follows_mouse): Move here from frame.el to allow
10492 window autoselection act appropriately when leaving selected frame.
10493 (syms_of_frame): Initialize focus_follows_mouse.
10494 * frame.h (focus_follows_mouse): Extern it.
10495 * macterm.c (XTread_socket): When focus_follows_mouse is nil
10496 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
10497 * msdos.c (dos_rawgetc): Likewise.
10498 * w32term.c (w32_read_socket): Likewise.
10499 * xterm.c (handle_one_xevent): Likewise.
10500 * xdisp.c (syms_of_xdisp): In doc-string of
10501 mouse-autoselect-window mention focus-follows-mouse.
10502
10503 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10504
10505 * macterm.c (mac_load_query_font): Fix missing return value.
10506 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
10507 Add BLOCK_INPUT.
10508
10509 2007-10-08 Richard Stallman <rms@gnu.org>
10510
10511 * xdisp.c (get_window_cursor_type): Implement documented behavior
10512 for cursor-in-non-selected-windows = t.
10513
10514 2007-10-08 Jason Rumney <jasonr@gnu.org>
10515
10516 * w32.c (w32_get_resource): Always close registry keys.
10517
10518 2007-10-08 Jason Rumney <jasonr@gnu.org>
10519
10520 * makefile.w32-in (LIBS): Add COMCTL32.
10521
10522 * w32fns.c (globals_of_w32fns): Init common controls.
10523
10524 2007-10-08 Richard Stallman <rms@gnu.org>
10525
10526 * image.c (our_memory_buffer): Rename from omfib_buffer.
10527
10528 2007-10-08 Richard Stallman <rms@gnu.org>
10529
10530 * buffer.c (Foverlays_at): Doc fix.
10531
10532 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
10533
10534 * fns.c (Fplist_put): Preserve uneven tail data.
10535
10536 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
10537
10538 * termhooks.h (enum event_kind): Remove trailing comma.
10539
10540 * frame.h (enum): Remove trailing comma.
10541
10542 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
10543
10544 * w32proc.c (delete_child): Don't terminate threads of zombies.
10545
10546 2007-10-08 Martin Rudalics <rudalics@gmx.at>
10547
10548 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
10549
10550 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
10551 last-repeatable-command.
10552 (init_kboard): Initialize Vlast_repeatable_command.
10553 (command_loop_1): Set it to real_this_command unless that was
10554 bound to an input event.
10555 (mark_kboards): Mark it.
10556
10557 2007-10-08 Richard Stallman <rms@gnu.org>
10558
10559 * eval.c (condition-case): Doc fix.
10560
10561 2007-10-08 Masatake YAMATO <jet@gyve.org>
10562
10563 * xfaces.c (tty_supports_face_attributes_p): Fix code
10564 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
10565 was copied and not edited.
10566
10567 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
10568
10569 Add new `input-decode-map' keymap and use it for terminal
10570 escape sequences.
10571 * keyboard.h (struct kboard): Add Vinput_decode_map.
10572 Remove Vlocal_key_translation_map.
10573 * keyboard.c (read_key_sequence): Add support for input-decode-map.
10574 (init_kboard): Init input-decode-map.
10575 Replace local-key-translation-map back with key-translation-map.
10576 (syms_of_keyboard): Declare input-decode-map.
10577 Remove local-key-translation-map. Update docstrings.
10578 (mark_kboards): Mark Vinput_decode_map.
10579 Don't mark Vlocal_key_translation_map.
10580 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
10581 Replace local-key-translation-map back with key-translation-map.
10582 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
10583 Bind in input-decode-map rather than function-key-map.
10584
10585 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
10586 This was made redundant by the previous introduction of XSETPVECTYPE.
10587
10588 2007-10-09 Richard Stallman <rms@gnu.org>
10589
10590 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
10591
10592 2007-09-29 Richard Stallman <rms@gnu.org>
10593
10594 * eval.c (internal_condition_case_2, internal_condition_case_1)
10595 (internal_condition_case): Reenable abort if x_catching_errors ()
10596 to see if that really happens and why.
10597
10598 2007-10-06 Andreas Schwab <schwab@suse.de>
10599
10600 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
10601
10602 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
10603
10604 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
10605
10606 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
10607
10608 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
10609
10610 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
10611
10612 * window.h (struct window):
10613 * window.c (struct save_window_data, struct saved_window):
10614 * termhooks.h (struct terminal):
10615 * process.h (struct Lisp_Process):
10616 * frame.h (struct frame):
10617 * buffer.h (struct buffer):
10618 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
10619 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
10620 The size field of (pseudo)vectors is now unsigned.
10621 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
10622
10623 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
10624 Turn `count' into an integer.
10625
10626 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
10627 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
10628 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
10629 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
10630 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
10631
10632 * alloc.c (allocate_pseudovector): New fun.
10633 (ALLOCATE_PSEUDOVECTOR): New macro.
10634 (allocate_window, allocate_terminal, allocate_frame)
10635 (allocate_process): Use it.
10636 (mark_vectorlike): New function.
10637 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
10638 (mark_terminals): Use it.
10639 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
10640 (Fmake_byte_code): Use XSETPVECTYPE.
10641
10642 * frame.c (Fframe_parameters): Minor simplification.
10643
10644 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
10645
10646 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
10647
10648 * buffer.c (Fget_buffer_create, init_buffer_once):
10649 * lread.c (defsubr):
10650 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
10651
10652 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
10653 defined differently in the m/*.h files.
10654 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
10655 (XSETPVECTYPE): New macro.
10656 (XSETPSEUDOVECTOR): Use it.
10657
10658 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
10659 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
10660
10661 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
10662 * lread.c (defvar_per_buffer):
10663 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
10664
10665 * window.c (candidate_window_p): Only consider as visible frames that
10666 are on the same terminal.
10667
10668 * m/ibms390x.h (MARKBIT): Remove unused macro.
10669
10670 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
10671
10672 * lread.c (Fload): Fix typo in docstring.
10673
10674 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
10675
10676 * floatfns.c (Fexpt): Manually check for overflows, so that a power
10677 of a non-zero value can't yield zero.
10678
10679 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
10680
10681 * term.c (term_clear_mouse_face, term_mouse_highlight)
10682 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
10683
10684 * print.c (safe_debug_print): Use XHASH.
10685
10686 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10687 Lisp elements such as tags.
10688 (XHASH): New macro.
10689 (EQ): Use it.
10690 (SREF, SSET, STRING_COPYIN): Use SDATA.
10691 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10692
10693 * alloc.c (mark_terminal): Remove left-over declaration.
10694 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10695 (allocate_vectorlike): Remove type argument. Adjust callers.
10696 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10697 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10698
10699 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10700 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10701 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10702 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10703 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10704 Use them.
10705
10706 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10707 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10708 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10709
10710 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10711
10712 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10713 loaded by default.
10714
10715 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10716
10717 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
10718 on this tty.
10719 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
10720
10721 * term.c (mouse_face_window): Rename from Qmouse_face_window.
10722 Update all users.
10723 (handle_one_term_event): Use Gpm_DrawPointer.
10724 (Fgpm_mouse_start): Rename from Fterm_open_connection.
10725 Signal errors instead of returning nil. Always return nil.
10726 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
10727 Make it a noop if gpm-mouse was not activated.
10728 (syms_of_term): Update names.
10729
10730 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
10731
10732 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
10733 (init_sys_modes): Check that gpm_tty is the current tty.
10734
10735 * alloc.c (allocate_terminal): Set the vector size to only count the
10736 lisp fields. Initialize those to nil.
10737 (mark_object): Don't treat terminals specially.
10738 (mark_terminal): Remove.
10739 (mark_terminals): Use mark_object instead.
10740
10741 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
10742 the GC to the beginning.
10743
10744 * indent.h:
10745 * indent.c: Use EMACS_INT for ints coming from Elisp data.
10746
10747 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
10748
10749 2007-09-25 Jason Rumney <jasonr@gnu.org>
10750
10751 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
10752
10753 * w32console.c (create_w32cons_output): Remove.
10754
10755 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
10756
10757 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
10758 (reset_sys_modes): Use reset_terminal_modes_hook.
10759
10760 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
10761
10762 * eval.c (do_autoload): Don't output any message.
10763
10764 2007-09-24 Juri Linkov <juri@jurta.org>
10765
10766 * emacs.c (standard_args): Change priority of "--no-splash"
10767 from 40 to 3. Add "--no-desktop" with the same priority.
10768
10769 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
10770
10771 * alloc.c (gc_sweep): Check cons cell mark bits word by word
10772 and optimize the case where they are all 1.
10773
10774 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
10775
10776 * lisp.h (abs): Define if not defined.
10777 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
10778 Don't define `abs', since it's defined in lisp.h.
10779
10780 2007-09-22 Eli Zaretskii <eliz@gnu.org>
10781
10782 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
10783 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
10784 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
10785 (init_tty): Use DEV_TTY instead of "/dev/tty".
10786 [WINDOWSNT]: No need to protect from NAME arg being null.
10787
10788 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10789
10790 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
10791 up the tty state.
10792
10793 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10794
10795 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
10796 (gpm_tty): Change its type.
10797 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
10798 (gpm_tty): Change its type and initialize it.
10799 (Fterm_open_connection): Check the frame is indeed a tty.
10800 Use the new gpm_tty.
10801 (Fterm_close_connection): Use the new gpm_tty.
10802 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
10803 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
10804
10805 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
10806
10807 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
10808 underline_color, to draw strike-through.
10809
10810 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10811
10812 * lisp.h (allocate_terminal): Declare.
10813
10814 * window.c (candidate_window_p): Consider frames that are being placed
10815 by the user as somewhere between visible and iconified.
10816 (window_loop): Prefer windows on the current frame.
10817 (Fselect_window): Move the use of select-frame to the beginning so we
10818 can just delegate all the work (it'll call us back anyway).
10819
10820 * frame.c (Qdisplay_environment_variable):
10821 * frame.h (Qdisplay_environment_variable): Delete.
10822
10823 * .gdbinit (xbacktrace): Print the arg's address rather than the value
10824 of the first arg, since that value may be a union.
10825
10826 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
10827 parameter rather than Qdisplay_environment_variable. If all else
10828 fails, look for DISPLAY in initial-environment.
10829
10830 2007-09-21 Glenn Morris <rgm@gnu.org>
10831
10832 * Makefile.in (emacstool): Remove target.
10833 (lisp, shortlisp): Remove termdev.elc.
10834
10835 2007-09-21 Markus Triska <markus.triska@gmx.at>
10836
10837 * xterm.c (x_delete_display): Compile session management conditionally.
10838
10839 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
10840
10841 * callproc.c (getenv_internal_1): New function.
10842 (getenv_internal): Use it.
10843 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
10844
10845 * terminal.c (get_terminal): Don't accept ints to represent terminals.
10846 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
10847 (Fset_terminal_parameter): Work with dead terminals as well.
10848 (Fmodify_terminal_parameters): Remove.
10849
10850 * terminal.c (get_terminal): Handle terminals.
10851 Make sure the terminal returned is live.
10852 (create_terminal): Use allocate_terminal.
10853 (mark_terminals): Move to alloc.c.
10854 (delete_terminal): Use terminal->name as liveness status.
10855 NULL out fields after freeing their contents.
10856 Don't deallocate the object.
10857 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
10858 rather than an int.
10859 (Fterminal_live_p): Accept non-integer arguments.
10860 (Fterminal_list): Return terminal objects rather than an ints.
10861
10862 * alloc.c (enum mem_type): New member for `terminal' objects.
10863 (allocate_terminal): New function.
10864 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
10865 Handle terminals.
10866 (mark_terminal): New fun.
10867 (mark_terminals): Move from terminal.c.
10868
10869 * term.c (get_tty_terminal): Don't treat output_initial specially.
10870 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
10871 (delete_tty): Use terminal->name as liveness status.
10872
10873 * termhooks.h (struct terminal): Make it into a pseudovector.
10874 Remove `deleted' replaced by checking `name's nullness.
10875
10876 * print.c (print_object): Handle terminals.
10877
10878 * lisp.h (enum pvec_type): New `terminal' pseudovector.
10879 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
10880
10881 * frame.c (make_terminal_frame):
10882 * keyboard.c (tty_read_avail_input):
10883 * w32term.c (x_delete_terminal):
10884 * xfns.c (Fx_create_frame, x_create_tip_frame):
10885 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
10886
10887 2007-09-20 Glenn Morris <rgm@gnu.org>
10888
10889 * process.c (Fmake_network_process): Doc fix.
10890
10891 2007-09-19 Jason Rumney <jasonr@gnu.org>
10892
10893 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
10894
10895 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
10896
10897 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
10898 Fix a C warning regarding variable constness.
10899
10900 * xterm.c (handle_one_xevent): Fix a C warning.
10901
10902 2007-09-18 Jason Rumney <jasonr@gnu.org>
10903
10904 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
10905
10906 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
10907
10908 * gtkutil.c (gdpy_def): New variable.
10909 (xg_initialize): Initialize gdpy_def.
10910 (xg_display_close): If no other display exists, set gdpy_def to a
10911 new connection.
10912
10913 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
10914
10915 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
10916 when we have no file name for the icon.
10917 (xg_tool_bar_expose_callback): Remove.
10918 (xg_create_tool_bar): Don't connect expose signal to
10919 xg_tool_bar_expose_callback.
10920 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
10921
10922 2007-09-16 Andreas Schwab <schwab@suse.de>
10923
10924 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
10925 values instead of zapping them.
10926
10927 2007-09-14 Glenn Morris <rgm@gnu.org>
10928
10929 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
10930 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
10931 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
10932 scope and rename to omfib_buffer for clarity.
10933 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
10934
10935 2007-09-14 Kenichi Handa <handa@m17n.org>
10936
10937 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
10938
10939 2007-09-13 Jason Rumney <jasonr@gnu.org>
10940
10941 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
10942
10943 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
10944
10945 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
10946 (mac_term_init): Call here instead, passing rif.
10947
10948 2007-09-13 Glenn Morris <rgm@gnu.org>
10949
10950 * s/hpux.h: No longer define `static' as nothing.
10951
10952 2007-09-13 Johan Bockgård <bojohan@gnu.org>
10953
10954 * callint.c (Fcall_interactively): Remove unused var `fun'.
10955
10956 2007-09-12 Romain Francoise <romain@orebokech.com>
10957
10958 * window.c (prefer_window_split_horizontally, display_buffer):
10959 Revert 2007-09-08 change.
10960
10961 2007-09-12 Glenn Morris <rgm@gnu.org>
10962
10963 * alloca.c: Remove file.
10964 * Makefile.in (alloca): Do not undef.
10965 (allocaobj, alloca.o): Remove.
10966 (otherobj): Remove allocaobj.
10967 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
10968 * regex.c (C_ALLOCA): Remove all references and code that was only
10969 used when this was defined.
10970 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
10971 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
10972 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
10973
10974 * Makefile.in (SOURCES, unlock, relock): Delete.
10975
10976 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
10977 (menu_grab_callback): All uses changed.
10978
10979 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
10980 (x_reply_selection_request): All uses changed.
10981
10982 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10983
10984 * lread.c (load_warn_old_style_backquotes): Change message to look
10985 better when it appears in the middle of byte-compiler messages.
10986
10987 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
10988
10989 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
10990
10991 * xterm.c (x_create_terminal): Add comment.
10992
10993 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
10994
10995 2007-09-10 Richard Stallman <rms@gnu.org>
10996
10997 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
10998
10999 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
11000
11001 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
11002 (DEFUN): Document `intspec', use it instead of `prompt'.
11003
11004 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
11005
11006 * data.c (Finteractive_form): If the interactive specification starts
11007 with a `(', use it as a Lisp form.
11008
11009 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
11010 name and file modes.
11011
11012 * callint.c (Fcall_interactively): Comment fixes.
11013
11014 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11015
11016 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
11017 and compiled functions.
11018
11019 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
11020
11021 * window.c (prefer_window_split_horizontally): New variable.
11022 (display_buffer): Consider splitting window horizontally depending
11023 on prefer_window_split_horizontally.
11024
11025 2007-09-08 Eli Zaretskii <eliz@gnu.org>
11026
11027 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
11028
11029 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11030
11031 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
11032
11033 * frame.c (x_set_frame_parameters): Check number is positive before
11034 using XFASTINT.
11035
11036 * window.c (freeze_window_start): Don't presume selected_window holds
11037 a window object.
11038 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
11039
11040 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
11041
11042 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
11043
11044 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11045
11046 * window.c (Vsplit_window_preferred_function): New var.
11047 (Fdisplay_buffer): Use it.
11048 (syms_of_window): Export, and initialize it.
11049
11050 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
11051
11052 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
11053
11054 2007-09-06 Glenn Morris <rgm@gnu.org>
11055
11056 * gtkutil.c (menu_grab_callback) <cnt>:
11057 * xselect.c (x_reply_selection_request) <cnt>: Move static
11058 variable to file scope.
11059
11060 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
11061
11062 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
11063 consistent values of selected_frame and selected_window.
11064
11065 2007-09-04 Jason Rumney <jasonr@gnu.org>
11066
11067 * w32console.c (initialize_w32_display): Zero unused hooks.
11068
11069 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11070
11071 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
11072 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
11073
11074 2007-09-04 Jason Rumney <jasonr@gnu.org>
11075
11076 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
11077 in w32console.c. Set up input. Remove XXX comments that have been
11078 confirmed as correct.
11079
11080 * s/ms-w32.h (MULTI_KBOARD): Define.
11081
11082 * w32console.c (one_and_only_w32cons): Remove.
11083 (initialize_w32_display): Take terminal argument.
11084
11085 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
11086 initialize_w32_display.
11087 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
11088
11089 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
11090
11091 * keyboard.c (discard_mouse_events): Discard it.
11092 (make_lispy_event): Translate it to a lisp event.
11093 (lispy_wheel_names): Add wheel-left and right events.
11094 (syms_of_keyboard): Enlarge wheel_syms.
11095
11096 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
11097 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
11098
11099 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
11100
11101 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
11102 from WM_MOUSEHWHEEL.
11103 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
11104
11105 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
11106 terminal.
11107
11108 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
11109 keyboard for the terminal.
11110
11111 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11112
11113 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
11114 (Vresume_tty_hook): Rename from Vresume_tty_functions.
11115 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
11116 and resume-tty-function to resume-tty-hook.
11117 (Fsuspend_tty, Fresume_tty): Use new names.
11118
11119 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
11120
11121 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
11122 if it starts with "n:".
11123
11124 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
11125
11126 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
11127
11128 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11129
11130 * frame.h:
11131 * frame.c (Qterm_environment_variable): Remove.
11132 (syms_of_frame): Don't init and staticpro it.
11133
11134 * callproc.c (getenv_internal): Remove special case for $TERM.
11135
11136 * callproc.c (Vinitial_environment): New variable.
11137 (set_initial_environment): Initialize it.
11138 (syms_of_callproc): Declare it.
11139 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
11140 TERM under which a process runs is never related to the TERM in which
11141 Emacs is running.
11142
11143 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11144
11145 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
11146 * s/darwin.h: ... do it here.
11147
11148 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11149
11150 * lisp.h (set_initial_environment): Rename from set_global_environment.
11151
11152 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
11153 removed by mistake on the multi-tty branch.
11154
11155 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
11156 (Fmodify_frame_parameters): Return a value.
11157
11158 * image.c (png_load): Comment-out var only used in commented-out code.
11159
11160 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
11161 before passing it to mark_object.
11162
11163 * xfaces.c (internal_resolve_face_name): Return a value.
11164 (internal_resolve_face_name, resolve_face_name_error): Comment out.
11165
11166 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
11167 (x_icon): Comment-out var only used in commented-out code.
11168
11169 2007-08-29 Romain Francoise <romain@orebokech.com>
11170
11171 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
11172 QUIT hasn't been provided.
11173
11174 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11175
11176 * callproc.c (child_setup, getenv_internal): Use the
11177 display-environment-variable and term-environment-variable frame params.
11178 (set_initial_environment): Initialise Vprocess_environment.
11179
11180 * config.in: Disable multi-keyboard support on a mac.
11181
11182 * frame.c (Qterm_environment_variable)
11183 (Qdisplay_environment_variable): New variables.
11184 (syms_of_frame): Intern and staticpro them.
11185 (Fmake_terminal_frame): Disable output method test.
11186
11187 * frame.h: Declare them here.
11188
11189 * macfns.c (x_set_mouse_color): Get rif from the frame.
11190 (x_set_tool_bar_lines): Don't use updating_frame.
11191 (mac_window): Add 2 new parameters for consistency with other systems.
11192 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
11193 frame parameters following what is done in X11 and w32. Don't use
11194 FRAME_MAC_DISPLAY_INFO.
11195 (Fx_open_connection, start_hourglass): Remove window-system check.
11196 (x_create_tip_frame): Get the keyboard from the terminal.
11197
11198 * macmenu.c: Reorder includes.
11199 (Fx_popup_menu): Use terminal specific mouse_position_hook.
11200
11201 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
11202 terminal parameter.
11203 (x_clear_frame): Add a frame parameter.
11204 (note_mouse_movement): Get rif from the frame.
11205 (mac_term_init): Initialize the terminal.
11206 (mac_initialize): Make static and move terminal initialization ...
11207 (mac_create_terminal): ... to this new function.
11208
11209 * macterm.h (struct mac_display_info): Add terminal.
11210 (mac_initialize): Delete declaration.
11211
11212 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
11213
11214 * sysdep.c: Comment out text after #endif.
11215
11216 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
11217 is defined. Better initialize ttys in windows. Use terminal
11218 specific mouse_position_hook.
11219
11220 * termhooks.h (union display_info): Add mac_display_info.
11221
11222 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
11223 Set the default minibuffer frame, window_system and the rest of the
11224 frame parameters following what is done in X11.
11225
11226 * w32term.c (w32_initialize): Make static.
11227
11228 * xselect.c (x_handle_selection_clear): Only access
11229 terminal->kboard when MULTI_KBOARD is defined.
11230
11231 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
11232 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
11233
11234 2007-08-29 Jason Rumney <jasonr@gnu.org>
11235
11236 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
11237 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
11238
11239 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
11240 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
11241
11242 * keyboard.c (restore_kboard_configuration): Only define when
11243 MULTI_KBOARD defined.
11244
11245 * makefile.w32-in: Update dependancies from Makefile.in.
11246 (OBJ1): Add terminal.$(O)
11247
11248 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
11249 Don't define function body.
11250 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
11251
11252 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
11253
11254 * w32.c (request_sigio, unrequest_sigio): Remove.
11255
11256 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
11257 (w32con_clear_frame, w32con_clear_end_of_line)
11258 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
11259 (w32con_delete_glyphs, w32con_set_terminal_window)
11260 (scroll_line, w32_sys_ring_bell): Add frame arg.
11261 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
11262 Add terminal arg.
11263 (PICK_FRAME): Remove.
11264 (w32con_write_glyphs): Use frame specific terminal coding.
11265 (one_and_only_w32cons): New global variable.
11266 (initialize_w32_display): Use it for storing hooks.
11267 (create_w32cons_output): New function.
11268
11269 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
11270 arg a frame.
11271
11272 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
11273 Set window_system.
11274 (x_set_tool_bar_lines): Don't use updating_frame.
11275 (Fx_create_frame): Set terminal and ref count.
11276 (Fx_open_connection): Remove window-system check.
11277
11278 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
11279
11280 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
11281 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
11282 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
11283 Add frame arg.
11284 (x_delete_terminal, w32_create_terminal): New functions.
11285 (w32_term_init): Create a terminal.
11286 (w32_initialize): Move terminal specific initialization to
11287 w32_create_terminal.
11288
11289 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
11290 (w32_clear_rect, w32_clear_area): Use background from frame.
11291 (w32_display_info): Add terminal.
11292 (w32_sys_ring_bell, x_delete_display): Declare here.
11293
11294 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
11295
11296 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
11297
11298 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
11299
11300 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
11301 Fix get_named_tty calls for the controlling tty.
11302
11303 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
11304
11305 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
11306
11307 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
11308
11309 * term.c (tty_insert_glyphs): Add missing first parameter.
11310
11311 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
11312
11313 * buffer.c (Fbuffer_list, Fbury_buffer):
11314 Take frame->buried_buffer_list into account.
11315
11316 * cm.c (current_tty): New variable, for cmputc().
11317 (cmputc): Use it.
11318 (cmcheckmagic): Add tty parameter, look up terminal streams there.
11319 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
11320 (cmgoto): Add tty parameter. Pass it on to calccost().
11321 Use emacs_tputs() instead of tputs().
11322
11323 * cm.h (emacs_tputs): New macro to set current_tty, and then call
11324 tputs().
11325 (current_tty): New variable, for cmputc().
11326 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
11327
11328 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
11329 (internal_condition_case, internal_condition_case_1)
11330 (internal_condition_case_2): Don't abort when x_catching_errors.
11331
11332 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
11333 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
11334 prevent crashes caused by bogus longjmps in read_char.
11335
11336 * keymap.h (Fset_keymap_parent): Add EXFUN.
11337
11338 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
11339 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11340 Remove redundant definition.
11341
11342 * macfns.c (x_set_mouse_color, x_make_gc):
11343 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11344
11345 * w32term.c (x_free_frame_resources):
11346 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11347 (w32_initialize): Use the accessor macros for terminal characteristics.
11348
11349 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
11350 Use the accessor macros for terminal characteristics.
11351 * msdos.c (internal_terminal_init): Use the accessor macros for
11352 terminal characteristics.
11353 (ScreenVisualBell, internal_terminal_init):
11354 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11355
11356 * termopts.h (no_redraw_on_reenter): Declare.
11357
11358 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
11359 (mark_terminals, mark_ttys): Declare.
11360 (Fgarbage_collect): Call them.
11361 (mark_object): Mark buried_buffer_list.
11362
11363 * prefix-args.c: Include stdlib.h for exit.
11364
11365 * syssignal.h: Add comment.
11366
11367 * indent.c: Include stdio.h.
11368
11369 * window.h (Vinitial_window_system): Declare.
11370 (Vwindow_system): Delete declaration.
11371
11372 * fontset.c (Finternal_char_font): Use FRAME_RIF.
11373
11374 * image.c (lookup_image): Don't initialize `c' until the xasserts
11375 have been run.
11376
11377 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
11378 FRAME_FOREGROUND_PIXEL.
11379
11380 * print.c (print_preprocess): Don't lose print_depth levels while
11381 iterating.
11382
11383 * widget.c (update_from_various_frame_slots):
11384 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11385
11386 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
11387 frames.
11388 (window_internal_height): Remove bogus make_number call.
11389 (init_window_once): Call make_terminal_frame with two zero parameters.
11390
11391 * fileio.c (Fread_file_name): Update comment.
11392
11393 * callint.c (Fcall_interactively):
11394 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
11395 Make sure it is correctly unwound.
11396
11397 * xsmfns.c (x_session_close): New function.
11398
11399 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
11400 Delete declarations.
11401
11402 * xterm.h: Remove declaration for x_fully_uncatch_errors.
11403 (x_output): Remove background_pixel and foreground_pixel fields.
11404 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
11405 (x_delete_device, x_session_close): Declare.
11406
11407 * lread.c: Include setjmp.h. Update declaration of `read_char'.
11408 (read_filtered_event): Call `read_char' with a local
11409 `wrong_kboard_jmpbuf'.
11410
11411 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
11412 Don't call single_kboard_state. Use FRAME_RIF.
11413
11414 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
11415 systems.
11416
11417 * lisp.h (set_process_environment): Rename to `set_global_environment'.
11418 (Fframe_with_environment, Fset_input_meta_mode)
11419 (Fset_quit_char): EXFUN.
11420 (x_create_device, tty_output, terminal, tty_display_info): Declare.
11421 (init_sys_modes, reset_sys_modes): Update prototypes.
11422 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
11423
11424 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
11425 Vlocal_key_translation_map, and Vkeyboard_translate_table.
11426 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
11427 Delete declarations.
11428 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
11429 (temporarily_switch_to_single_kboard, tty_read_avail_input):
11430 New declarations.
11431
11432 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
11433 already does that during init_display(). Call syms_of_keymap
11434 before syms_of_keyboard. Call `syms_of_terminal'.
11435 Call set_initial_environment, not set_process_environment.
11436 (shut_down_emacs): Call reset_all_sys_modes() instead of
11437 reset_sys_modes().
11438
11439 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
11440 (internal_resolve_face_name, resolve_face_name_error): New functions.
11441 (resolve_face_name): Protect against loops and errors thrown by Fget.
11442 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
11443 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
11444
11445 * scroll.c: Replace CURTTY() with local variables throughout the
11446 file (where applicable).
11447 (calculate_scrolling, calculate_direct_scrolling)
11448 (scrolling_1, scroll_cost): Use the accessor macros for terminal
11449 characteristics.
11450
11451 * keymap.c (Vfunction_key_map): Remove.
11452 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
11453 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
11454 (Vkey_translation_map): Remove.
11455 (syms_of_keymap): Remove DEFVAR for key-translation-map.
11456 (Fdescribe_buffer_bindings)
11457 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
11458 Update for terminal-local key-translation-map.
11459
11460 * Makefile.in (callproc.o): Update dependencies.
11461 (lisp, shortlisp): Add termdev.elc.
11462 (obj): Add terminal.o.
11463 (terminal.o): Add dependencies.
11464 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
11465 (data.o, fns.o): Add termhooks.h dependency.
11466 (SOME_MACHINE_LISP): Add dnd.elc.
11467 (minibuf.o): Fix typo.
11468 Update dependencies.
11469
11470 * data.c (do_symval_forwarding, store_symval_forwarding)
11471 (find_symbol_value): Use the selected frame's keyboard, not
11472 current_kboard.
11473
11474 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
11475 Vwindow_system.
11476
11477 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
11478 Fmenu_bar_open.
11479 (syms_of_xmenu): Update defsubr.
11480 (mouse_position_for_popup, Fx_popup_menu)
11481 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
11482 (set_frame_menubar, free_frame_menubar)
11483 (create_and_show_popup_menu, xmenu_show, )
11484 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
11485 an X frame.
11486
11487 * xselect.c (x_own_selection): Abort if not an X frame.
11488 (some_frame_on_display): Check if it is an X frame.
11489 (x_handle_selection_clear): Deal with MULTI_KBOARD.
11490
11491 * coding.c: Include frame.h and termhooks.h.
11492 (terminal_coding, keyboard_coding): Delete.
11493 (Fset_terminal_coding_system_internal)
11494 (Fset_keyboard_coding_system_internal)
11495 (Fkeyboard_coding_system)
11496 (Fterminal_coding_system): Add a terminal parameter.
11497 Get terminal_coding from the terminal.
11498 (init_coding_once): Don't call setup_coding_system here.
11499
11500 * dispextern.h (set_scroll_region, turn_off_insert)
11501 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
11502 (tty_clear_end_of_line, tty_setup_colors)
11503 (delete_tty, updating_frame)
11504 (produce_special_glyphs, produce_glyphs, write_glyphs)
11505 (insert_glyphs): Remove.
11506 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
11507 (tty_turn_off_highlight, get_tty_size): Add declaration.
11508 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
11509
11510 * frame.h (enum output_method): Add output_initial.
11511 (struct x_output): Delete.
11512 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11513 Access foreground_pixel and background_pixel directly from the frame.
11514 (tty_display): Delete.
11515 (struct frame): Add buried_buffer_list, foreground_pixel,
11516 background_pixel and terminal. Delete kboard.
11517 (union output_data): Add tty.
11518 (FRAME_KBOARD): Get the kboard from the terminal.
11519 (FRAME_INITIAL_P): New macro.
11520 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
11521 (Qterm_environment_variable, Qdisplay_environment_variable)
11522 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
11523 New declarations.
11524
11525 * termchar.h (tty_output, tty_display_info): New structures.
11526 (tty_list): Declare.
11527 (FRAME_TTY, CURTTY): New macros.
11528 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
11529 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
11530 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
11531 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
11532
11533 * callproc.c: Include frame.h and termhooks.h, for terminal
11534 parameters.
11535 (add_env): New function.
11536 (child_setup): Use it.
11537 (child_setup, getenv_internal): Handle the new Vprocess_environment.
11538 (getenv_internal): Fix get_terminal_param call.
11539 (Fgetenv_internal, egetenv): Update doc.
11540 (syms_of_callproc): Initialize Vprocess_environment to nil.
11541 Register and initialize them. Remove obsolete defvars. Update doc
11542 strings.
11543 (child_setup): Handle Vlocal_environment_variables.
11544 (getenv_internal): Add terminal parameter.
11545 Handle Vlocal_environment_variables.
11546 (Fgetenv_internal): Add terminal parameter.
11547 (child_setup, getenv_internal, Fgetenv_internal): Store the local
11548 environment in a frame (not terminal) parameter. Update doc strings.
11549 (set_initial_environment): Rename from set_global_environment.
11550 Store Emacs environment in initial frame parameter.
11551
11552 * xdisp.c (redisplay_internal): Update references to
11553 `previous_terminal_frame'.
11554 (display_mode_line, Fformat_mode_line): Replace calls to
11555 `push_frame_kboard' with `push_kboard'.
11556 (get_glyph_string_clip_rects): Add extra parentheses and
11557 braces to prevent compiler warnings.
11558 (calc_pixel_width_or_height): Add xassert to check that the
11559 frame is alive. Don't call `lookup_image' on a termcap frame.
11560 (message2_nolog, message3_nolog, redisplay_internal)
11561 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
11562 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
11563 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
11564 (Fx_display_pixel_width, Fx_display_pixel_height)
11565 (Fx_display_planes, Fx_display_color_cells)
11566 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
11567 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
11568 (Fx_display_backing_store, Fx_display_visual_class)
11569 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
11570 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
11571
11572 * xfns.c (x_set_foreground_color x_set_background_color)
11573 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
11574 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11575 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
11576 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
11577 terminal that is being deleted.
11578 (Fx_create_frame): Use `store_frame_param' to set `window-system'
11579 frame parameter, and make sure it overrides any user-supplied setting.
11580 (Fx_close_connection, Fx_synchronize): Unify argument names with
11581 the rest of the DEFUNs.
11582
11583 * dispnew.c (Fsend_string_to_terminal): Update call to
11584 `get_tty_terminal'.
11585 (Fredraw_frame, Fsend_string_to_terminal)
11586 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
11587 FRAME_TERMCAP_P and FRAME_TTY.
11588 (window_change_signal): Don't believe width/height values that are
11589 impossibly small.
11590 (Vinitial_window_system): Rename from Vwindow_system.
11591 (termscript, Wcm, rif): Delete.
11592
11593 * termhooks.h (struct terminal): New struct containing the
11594 previously global text display hooks and new members NAME,
11595 DELETED and PARAM_ALIST.
11596 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
11597 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
11598 (FRAME_RIF): New macros.
11599 (get_terminal_param, get_device): New declarations.
11600 (termscript): Delete declaration.
11601
11602 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
11603 (XTflash, x_free_frame_resources, x_scroll_bar_create)
11604 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
11605 FRAME_FOREGROUND_PIXEL.
11606 (x_fully_uncatch_errors): Disable definition.
11607 (x_scroll_bar_expose): Fix reference to foreground pixel.
11608 (XTread_socket): Disable loop on all X displays.
11609 (x_delete_terminal): Don't set terminal->deleted and let
11610 delete_terminal delete the frames on the terminal.
11611 (x_delete_display): Doc update to reflect changes in
11612 delete_terminal.
11613 (x_display_info) <terminal>: Move member earlier in the struct.
11614 (deleting_tty): Remove old variable.
11615 (Fsuspend_tty): Call clear_tty_hooks.
11616 (Fresume_tty, init_tty): Call set_tty_hooks.
11617 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
11618 errors on X frames.
11619 (x_catch_errors_unwind): Abort if x_error_message is NULL.
11620 (handle_one_xevent): Initialize `f' to NULL.
11621 (x_delete_terminal, x_create_terminal): New functions.
11622 (XTset_terminal_modes, XTreset_terminal_modes)
11623 (XTread_socket, x_connection_closed, x_term_init)
11624 (x_term_init, x_delete_display): Add terminal parameter.
11625 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
11626 X connections.
11627
11628 * frame.c: Include termchar.h.
11629 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
11630 (Qwindow_system, Qenvironment, Qterm_environment_variable)
11631 (Qdisplay_environment_variable): New vars.
11632 (Fframep): Deal with output_initial.
11633 (Fframe-live-p): Doc fix.
11634 (Fwindow-system): New function.
11635 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
11636 (make_terminal_frame): Don't create frames on a terminal that is
11637 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11638 (store_frame_param): Check for found_for_frame before calling XFRAME.
11639 (Fmake_terminal_frame): Handle NULL tty names correctly.
11640 (syms_of_frame): Enhance doc string of `default-frame-alist'.
11641 (Fdelete_frame): Remove unused variable `count'. Don't allow other
11642 frames to refer to a deleted frame in their 'environment parameter.
11643 (Fframe_with_environment): New function.
11644 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
11645 (get_future_frame_param): New function.
11646 (Fmake_terminal_frame): Use it.
11647 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
11648
11649 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
11650 * sysdep.c (reset_sys_modes): Update for renames.
11651
11652 * keyboard.c (tty_read_avail_input): New function.
11653 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
11654 (syms_of_keyboard): Defsubr them.
11655 (Fset_input_meta_mode, Fset_quit_char): New functions.
11656 (Fset_input_mode): Split to above functions.
11657 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
11658 parameter. Use it in call to `read_char'.
11659 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
11660 Set wrong_kboard_jmpbuf correctly in recursive calls.
11661 Use current_kboard to access Vkeyboard_translate_table.
11662 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
11663 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
11664 Update longjmp invocations. Remember the original current_kboard,
11665 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
11666 changes it. Comment out unnecessary calls to
11667 `record_single_kboard_state' and `any_kboard_state'.
11668 Update recursive calls.
11669 (wrong_kboard_jmpbuf): Remove global variable.
11670 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
11671 Handle deleted interrupted_kboards correctly; that is a legal
11672 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
11673 and read_char calls. Abort if interrupted_kboard died in read_char.
11674 (any_kboard_state, single_kboard_state)
11675 (push_frame_kboard): Remove function.
11676 (pop_kboard): Switch out of single_kboard mode if the kboard has
11677 been deleted. Remove unused variable. Help debugging by not
11678 changing current_kboard unnecessarily. Set current_kboard to the
11679 kboard of the selected frame when the stored kboard object has
11680 been deleted before pop_kboard.
11681 (temporarily_switch_to_single_kboard): Change first parameter to a
11682 frame pointer. Throw an error when caller wants to change kboards
11683 while in single_kboard mode. Don't push_kboard if we weren't in
11684 single kboard state. Don't pop_kboard if we popped into any
11685 kboard state.
11686 (restore_kboard_configuration): Abort if pop_kboard changed the
11687 kboard in single_kboard mode. Call pop_kboard only after setting
11688 up single_kboard mode.
11689 (Frecursive_edit): Switch to single_kboard mode only in nested
11690 command loops.
11691 (cmd_error, command_loop, command_loop_1, timer_check):
11692 Comment out unnecessary call to `any_kboard_state' and
11693 `record_single_kboard_state'.
11694 (delete_kboard): Exit single_kboard mode if we have just deleted
11695 that kboard. Use FRAME_KBOARD.
11696 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11697 `fatal_error_signal'.
11698 (record_single_kboard_state): Don't push_kboard if we weren't in
11699 single kboard state. Don't pop_kboard if we popped into any
11700 kboard state.
11701 (push_frame_kboard): Rename to push_kboard.
11702 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11703 (read_avail_input): Read input from all terminals.
11704 (mark_kboards): Also mark Vkeyboard_translate_table.
11705 (kbd_buffer_store_event_hold): Simplify condition.
11706 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11707 (Vkeyboard_translate_table): Move to struct kboard.
11708 (init_kboard): Initialize Vkeyboard_translate_table.
11709 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11710 Vkeyboard_translate_table. Update doc strings. Update docs of
11711 local-function-key-map and function-key-map.
11712
11713 * terminal.c: New file.
11714
11715 * term.c: Include errno.h.
11716 (Vring_bell_function, device_list, initial_device)
11717 (next_device_id, ring_bell, update_begin, update_end)
11718 (set_terminal_window, cursor_to, raw_cursor_to)
11719 (clear_to_end, clear_frame, clear_end_of_line)
11720 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
11721 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
11722 (syms_of_term): Move their initialization to terminal.c.
11723 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
11724 (Ftty_display_color_cells)
11725 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
11726 (clear_tty_hooks, set_tty_hooks)
11727 (init_tty, maybe_fatal): New functions.
11728 (Ftty_type): Return nil if terminal is not on a tty instead of
11729 throwing an error. Doc update.
11730 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
11731 Doc update. Initialize new subrs and variables.
11732 (delete_tty): Use terminal->deleted.
11733 (tty_set_terminal_modes): Rename from set_terminal_modes.
11734 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
11735 (set_scroll_region): Rename to `tty_set_scroll_region'.
11736 (turn_on_insert): Rename to `tty_turn_on_insert'.
11737 (turn_off_insert): Rename to `tty_turn_off_insert'.
11738 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
11739 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
11740 (toggle_highligh): Rename to `tty_toggle_highlight'.
11741 (background_highlight): Rename to `tty_background_highlight'.
11742 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
11743 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
11744 (tty_set_scroll_region, tty_background_highlight)
11745 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
11746 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
11747 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
11748 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
11749 Add static modifier.
11750 (tty_reset_terminal_modes, tty_set_terminal_window)
11751 (tty_set_scroll_region, tty_background_highlight)
11752 (tty_highlight_if_desired, tty_cursor_to)
11753 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
11754 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
11755 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
11756 renames.
11757
11758 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
11759
11760 * keyboard.c: Qrtl is new.
11761 (parse_tool_bar_item): Handle :rtl keyword.
11762 (syms_of_keyboard): Intern :rtl keyword.
11763
11764 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
11765
11766 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
11767 so no Lisp code is executed.
11768 (file_for_image, find_rtl_image): New functions.
11769 (xg_get_image_for_pixmap): Use file_for_image.
11770 (update_frame_tool_bar): If direction is RTL, use RTL image if
11771 defined. Use Gtk stock images if defined.
11772
11773 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11774
11775 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
11776 for nonexistent or zero-width glyph in composition glyph.
11777
11778 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
11779
11780 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
11781
11782 * xdisp.c (Finvisible_p): New function.
11783 (syms_of_xdisp): defsubr it.
11784
11785 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
11786
11787 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
11788 Doc fixes.
11789
11790 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11791
11792 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
11793
11794 2007-08-24 Martin Rudalics <rudalics@gmx.at>
11795
11796 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
11797 whether decoding has modified buffer contents.
11798
11799 2007-08-24 Jason Rumney <jasonr@gnu.org>
11800
11801 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
11802 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
11803 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
11804 (init_svg_functions) [HAVE_NTGUI]: New function.
11805 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
11806 (svg_load_image): Use them.
11807 (svg_load_image) [HAVE_NTGUI]: Implement background.
11808
11809 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11810
11811 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
11812 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
11813 (LIBX): Remove @RSVG_LIBS@.
11814 (LIBES): Add $(RSVG_LIBS).
11815
11816 * image.c (svg_load_image): Blend with specified background if exists.
11817 Use IMAGE_BACKGROUND. Add Mac OS Support.
11818
11819 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
11820 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
11821 Remove macros.
11822 [MAC_OSX] (socket_callback): Do nothing.
11823 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
11824 ReceiveNextEvent.
11825 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
11826 socket_callback.
11827 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
11828
11829 2007-08-22 Glenn Morris <rgm@gnu.org>
11830
11831 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
11832
11833 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
11834
11835 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
11836
11837 * image.c: Add support for SVG images. Some additional comments
11838 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
11839 (svg_image_p): New function to test for SVG image.
11840 (svg_load): New function to load SVG image.
11841 (svg_load_image): New function, helper for svg_load.
11842 (Qsvg): New Lisp_object.
11843 (svg_keyword_index): New enum.
11844 (svg_format): New static `image_keyword' struct.
11845 (svg_type): New static `image_type' struct.
11846 (librsvg/rsvg.h): Include it.
11847
11848 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
11849
11850 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
11851
11852 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
11853
11854 * lread.c (Qold_style_backquotes): New var.
11855 (syms_of_lread): Init and staticpro it.
11856 (load_warn_old_style_backquotes): New fun.
11857 (Fload): Use them to warn about old style backquotes.
11858 (end_of_file_error, Fload): Remove unused vars.
11859
11860 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
11861
11862 * lread.c (Vold_style_backquotes): New var.
11863 (syms_of_lread): Init and export it to Elisp.
11864 (read1): Set it when we find an old-style (back)quote.
11865
11866 2007-08-22 Jason Rumney <jasonr@gnu.org>
11867
11868 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
11869
11870 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
11871
11872 * puresize.h (BASE_PURESIZE): Increase to 1140000.
11873
11874 2007-08-19 Richard Stallman <rms@gnu.org>
11875
11876 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
11877
11878 2007-08-19 Andreas Schwab <schwab@suse.de>
11879
11880 * alloc.c (pure): Round PURESIZE up.
11881
11882 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
11883
11884 * xterm.c (handle_one_xevent): Remove check that mouse click is in
11885 active frame.
11886
11887 2007-08-16 Richard Stallman <rms@gnu.org>
11888
11889 * eval.c (Fcommandp): Add parens to clarify.
11890
11891 * minibuf.c (Fall_completions): Use enum for type of table.
11892
11893 * emacs.c (USAGE2): Improve text.
11894
11895 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
11896
11897 * term.c (tty_default_color_capabilities): Declare static
11898 variables in file scope, to avoid HPUX compiler problem.
11899
11900 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
11901
11902 * gtkutil.c (update_frame_tool_bar): Use -1 as index
11903 to gtk_toolbar_insert.
11904
11905 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11906
11907 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
11908
11909 * insdel.c (reset_var_on_error): New fun.
11910 (signal_before_change, signal_after_change):
11911 Use it to reset (after|before)-change-functions to nil in case of error.
11912 Bind inhibit-modification-hooks to t.
11913 Don't bind (after|before)-change-functions to nil while they run.
11914
11915 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11916
11917 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
11918 filling pixmap with stippled background.
11919
11920 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11921
11922 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
11923 Don't use invisible frame as parent window for repositioning.
11924
11925 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
11926
11927 * print.c (new_backquote_output): Rename from old_backquote_output.
11928 (print): Inverse its logic (according to its name) so as to match the
11929 behavior of new_backquote_flag in lread.c.
11930
11931 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11932
11933 * gmalloc.c (posix_memalign): New function.
11934
11935 * macterm.c (frame_highlight, frame_unhighlight): Don't call
11936 ActivateControl/DeactivateControl here.
11937 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
11938 frame-notice-user-settings is non-nil.
11939 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
11940 for kEventParamFMFontStyle.
11941 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
11942 mac_pass_command_to_system and mac_pass_control_to_system here.
11943 (XTread_socket): Call ActivateControl/DeactivateControl here.
11944 (XTread_socket) [TARGET_API_MAC_CARBON]:
11945 Check mac_pass_command_to_system and mac_pass_control_to_system here.
11946 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
11947 for window repositioning.
11948
11949 2007-08-08 Glenn Morris <rgm@gnu.org>
11950
11951 * Replace `iff' in doc-strings and comments.
11952
11953 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
11954
11955 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
11956
11957 2007-08-07 Martin Rudalics <rudalics@gmx.at>
11958
11959 * fileio.c (Finsert_file_contents): Run format-decode and
11960 after_insert_file_functions on entire buffer when REPLACE is
11961 non-nil and inhibit modification_hooks and point_motion_hooks.
11962 For consistency, run after_insert_file_functions iff something
11963 got inserted. Move signal_after_change and update_compositions
11964 after code running after_insert_file_functions. Make sure that
11965 undo_list doesn't record intermediate steps of the decoding process.
11966
11967 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11968
11969 * emacs.c (main)
11970 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
11971 Call malloc_enable_thread on interactive startup.
11972
11973 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
11974 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
11975 [USE_PTHREAD]: Conditionalize with it.
11976 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11977 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
11978 New functions.
11979
11980 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
11981
11982 * xdisp.c (redisplay_window): When restoring original buffer
11983 position, make sure it is still valid.
11984
11985 * image.c (png_load): Ignore png-supplied background color.
11986
11987 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11988
11989 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
11990 Use kCFAbsoluteTimeIntervalSince1970.
11991
11992 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
11993 New variable.
11994 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
11995 event loop should be quit.
11996 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
11997 Quit dialog event loop if quit_dialog_event_loop is set.
11998
11999 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
12000 (Selection): New typedef. Use instead of ScrapRef.
12001 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
12002 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
12003 (mac_clear_selection): Rename from clear_scrap.
12004 (get_flavor_type_from_symbol): New argument SEL and subsume function of
12005 scrap_has_target_type. All uses changed.
12006 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12007 (mac_selection_has_target_p): New functions.
12008 (mac_put_selection_value): Rename from put_scrap_string.
12009 (mac_get_selection_value): Rename from get_scrap_string.
12010 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
12011 (put_scrap_private_timestamp, scrap_has_target_type)
12012 (get_scrap_private_timestamp): Remove functions.
12013 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
12014 (x_own_selection, x_get_local_selection):
12015 Use mac_valid_selection_value_p.
12016 (x_own_selection): Don't use put_scrap_private_timestamp.
12017 Record OWNERSHIP-INFO into Vselection_alist instead.
12018 (x_get_local_selection): Don't check type if request is local.
12019 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
12020 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
12021
12022 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
12023
12024 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
12025 add comment explaining why.
12026
12027 2007-08-03 Richard Stallman <rms@gnu.org>
12028
12029 * fileio.c (Fvisited_file_modtime): Use make_time.
12030
12031 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
12032
12033 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
12034 build.
12035
12036 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
12037
12038 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
12039
12040 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
12041
12042 * puresize.h (BASE_PURESIZE): Increase to 1130000.
12043
12044 2007-07-30 Richard Stallman <rms@gnu.org>
12045
12046 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
12047
12048 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
12049
12050 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
12051
12052 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
12053
12054 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
12055 remote default-directory.
12056
12057 * buffer.c (mode-line-format): Update doc string.
12058
12059 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12060
12061 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
12062 scroll bar gap.
12063 (x_scroll_bar_create): Set bar->fringe_extended_p.
12064 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
12065 on frame edge. Check fringe background extension. Don't clear
12066 extended fringe background area.
12067
12068 * w32term.h (struct scroll_bar): New member fringe_extended_p.
12069 (w32_fill_area): Enclose multiple statements with do ... while (0).
12070
12071 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
12072 Extend fringe background to scroll bar gap.
12073 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
12074 Set bar->fringe_extended_p.
12075 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12076 Put leftmost/rightmost scroll bars on frame edge. Check fringe
12077 background extension. Don't clear extended fringe background area.
12078
12079 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12080 New member fringe_extended_p.
12081
12082 2007-07-25 Glenn Morris <rgm@gnu.org>
12083
12084 * Relicense all FSF files to GPLv3 or later.
12085
12086 * COPYING: Switch to GPLv3.
12087
12088 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
12089
12090 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
12091
12092 * data.c (Finteractive_form): Check for the presence of an
12093 `interactive-form' symbol property more thoroughly.
12094
12095 * data.c (Finteractive_form): Use an `interactive-form' property if
12096 present, analogous to the function-documentation property.
12097
12098 2007-07-24 Jason Rumney <jasonr@gnu.org>
12099
12100 * w32fns.c (x_real_positions): Get real position from OS instead of
12101 calculating it.
12102
12103 2007-07-23 Jason Rumney <jasonr@gnu.org>
12104
12105 * filelock.c (current_lock_owner): Allow for @ sign in username.
12106
12107 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
12108
12109 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
12110 remote default-directory.
12111
12112 * buffer.c (mode-line-format): Describe above case in doc string.
12113
12114 2007-07-20 Eli Zaretskii <eliz@gnu.org>
12115
12116 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
12117 Define if not defined.
12118
12119 2007-07-18 Jason Rumney <jasonr@gnu.org>
12120
12121 * w32proc.c (w32_executable_type): Handle 64 bit executables.
12122
12123 2007-07-18 Richard Stallman <rms@gnu.org>
12124
12125 * data.c (Fsetq_default): Doc fix.
12126
12127 * eval.c (Fsetq): Doc fix.
12128
12129 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
12130
12131 * coding.c (Ffind_operation_coding_system):
12132 * eval.c (For, Fand): Doc fixes.
12133 Reported by Johan Bockgård.
12134
12135 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
12136
12137 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
12138
12139 * xterm.h: Declare x_ewmh_activate_frame.
12140
12141 * xterm.c (x_ewmh_activate_frame): New function.
12142 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
12143
12144 2007-07-17 Martin Rudalics <rudalics@gmx.at>
12145
12146 * window.c (Fdisplay_buffer): If largest or LRU window is the
12147 only window, split it even if it is not eligible for splitting.
12148 This restores the original behavior broken by the 2007-07-15
12149 change.
12150
12151 2007-07-17 Glenn Morris <rgm@gnu.org>
12152
12153 * abbrev.c (abbrev_check_chars): New function.
12154 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12155 Call abbrev_check_chars to check abbrev characters are word
12156 constituents. Doc fix.
12157
12158 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12159
12160 * process.c (Fstart_process, Fmake_network_process)
12161 (read_process_output): Fix up last changes.
12162
12163 2007-07-16 Eli Zaretskii <eliz@gnu.org>
12164
12165 * makefile.w32-in (clean): Don't delete *~.
12166
12167 2007-07-16 Andreas Schwab <schwab@suse.de>
12168
12169 * window.c (Fdisplay_buffer): Use NILP.
12170 (Fset_window_scroll_bars): Likewise.
12171
12172 2007-07-15 Martin Rudalics <rudalics@gmx.at>
12173
12174 * window.c (window_min_size_2): New function.
12175 (window_min_size_1, size_window, Fdisplay_buffer)
12176 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
12177 windows without mode- or header-lines when window-min-height is
12178 too small.
12179 (size_window): Reset nodelete_p after testing it, following an
12180 earlier note by Kim F. Storm.
12181 (display_buffer): Do not set split_height_threshold to twice the
12182 value of window_min_height to avoid changing the value of a
12183 customizable variable. Rather explicitly check whether the
12184 height of the window that shall be splitted is at least as large
12185 as split_height_threshold.
12186 (Fwindow_full_width_p): New defun.
12187 (syms_of_window): Defsubr it.
12188
12189 * window.h: Add EXFUN for Fwindow_full_width_p.
12190
12191 2007-07-14 Jason Rumney <jasonr@gnu.org>
12192
12193 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
12194
12195 2007-07-14 Richard Stallman <rms@gnu.org>
12196
12197 * eval.c (maybe_call_debugger): New function.
12198 (find_handler_clause): Use maybe_call_debugger.
12199 Call it when the handler says `debug'.
12200 Eliminate DEBUGGER_VALUE_PTR.
12201 (Fsignal): Eliminate debugger_value.
12202 (Qdebug): New variable.
12203 (syms_of_eval): Initialize it.
12204
12205 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
12206
12207 * eval.c (Fprogn):
12208 * keyboard.c (Ftrack_mouse):
12209 * print.c (Fwith_output_to_temp_buffer):
12210 * window.c (Fsave_window_excursion): Doc fix.
12211
12212 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
12213
12214 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
12215
12216 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
12217
12218 * process.h (struct Lisp_Process): Turn slots infd, outfd,
12219 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
12220 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
12221 read_output_delay, and read_output_skip from Lisp_Objects to ints.
12222 Remove unused encoding_carryover.
12223 * process.c: Adjust all functions accordingly.
12224
12225 2007-07-12 Richard Stallman <rms@gnu.org>
12226
12227 * term.c: Include unistd.h only if HAVE_UNISTD_H.
12228
12229 2007-07-11 Jason Rumney <jasonr@gnu.org>
12230
12231 * makefile.w32-in (LIBS): Include OLE32.
12232
12233 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
12234 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
12235
12236 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
12237
12238 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
12239 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
12240 from a Lisp_Object into a bare pointer.
12241 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12242 Adjust the code correspondingly.
12243
12244 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
12245
12246 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
12247 (term_show_mouse_face): Remove unused var `j'.
12248 (handle_one_term_event): Remove unused vars `i' and `j'.
12249 Don't cast return value of ttyname since it's not necessary.
12250
12251 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
12252
12253 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
12254 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
12255
12256 * fns.c (map_char_table): Use an array of int for `indices' rather than
12257 an array of Lisp_Objects (which are only ever integers anyway).
12258 (Fmap_char_table): Update caller.
12259 * lisp.h: Update prototype.
12260 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
12261 * fontset.c (Ffontset_info):
12262 * casetab.c (set_case_table): Update callers.
12263
12264 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
12265
12266 * keymap.c (struct accessible_keymaps_data)
12267 (struct where_is_internal_data): New structures.
12268 (accessible_keymaps_1, where_is_internal_1): Use them to change
12269 interface to adhere to the one used by map_keymap.
12270 (Faccessible_keymaps, where_is_internal): Use map_keymap.
12271 (accessible_keymaps_char_table, where_is_internal_2): Remove.
12272
12273 * keymap.h (map_keymap_function_t): More informative prototype.
12274
12275 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
12276
12277 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
12278 (looking_at_1): Don't change search_regs and last_thing_searched
12279 if `inhibit-changing-match-data' is non-nil.
12280 (string_match_1, search_buffer, set_search_regs): Likewise.
12281 (syms_of_search): Add Lisp level definition for
12282 `inhibit-changing-match-data' and set it to nil.
12283 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
12284 start and end of the match, instead of using values in search_regs.
12285
12286 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
12287
12288 * minibuf.c (Fcompleting_read): New value `confirm-only'
12289 for `require-match'.
12290
12291 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
12292
12293 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
12294 part of the 2007-06-27 change to syms_of_fileio.
12295
12296 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12297
12298 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
12299 Check WINDOWP before using XWINDOW. Consolidate return statements.
12300
12301 2007-06-27 Richard Stallman <rms@gnu.org>
12302
12303 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12304
12305 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
12306
12307 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
12308
12309 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12310
12311 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
12312 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
12313 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
12314 (_free_internal, memalign): Use them.
12315 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
12316 Initialize to PTHREAD_MUTEX_INITIALIZER.
12317 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
12318 (morecore_nolock): Rename from morecore. All uses changed.
12319 Use only nolock versions of internal allocation functions.
12320 (_malloc_internal_nolock, _realloc_internal_nolock)
12321 (_free_internal_nolock): New functions created from
12322 _malloc_internal, _realloc_internal, and _free_internal.
12323 (_malloc_internal, _realloc_internal, _free_internal): Use them.
12324 Copy hook value to automatic variable before its use.
12325 (memalign): Copy hook value to automatic variable before its use.
12326
12327 2007-06-26 Kenichi Handa <handa@m17n.org>
12328
12329 * coding.c (Ffind_operation_coding_system): Docstring improved.
12330 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
12331
12332 2007-06-25 David Kastrup <dak@gnu.org>
12333
12334 * keymap.c (Fcurrent_active_maps): Add `position' argument.
12335 (Fwhere_is_internal): Adjust call to `current-active-maps' to
12336 cater for additional parameter.
12337
12338 * keymap.h: Adjust number of parameters to `current-active-maps'.
12339
12340 * doc.c (Fsubstitute_command_keys): Adjust call of
12341 `current-active-maps'.
12342
12343 2007-06-25 David Kastrup <dak@gnu.org>
12344
12345 * callint.c (Fcall_interactively): Make the parsing of interactive
12346 specs somewhat more readable.
12347
12348 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12349
12350 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
12351 to scroll bar gap also when bitmap fills fringe. Draw only foreground
12352 if extended background has already been filled.
12353
12354 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12355
12356 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
12357 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
12358
12359 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
12360 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
12361 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
12362 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
12363 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
12364 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
12365 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
12366 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
12367 Run timers during dialog popup.
12368 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
12369
12370 2007-06-21 Jason Rumney <jasonr@gnu.org>
12371
12372 * image.c (convert_mono_to_color_image): Swap fore and background.
12373
12374 2007-06-20 Jason Rumney <jasonr@gnu.org>
12375
12376 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
12377 (w32_free_bdf_font): Unmap memory not handle.
12378
12379 2007-06-20 Sam Steingold <sds@gnu.org>
12380
12381 * gmalloc.c (__morecore): Fix the declaration to comply with the
12382 definition.
12383
12384 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
12385
12386 * w32term.c (w32_delete_display): Remove leftover declaration.
12387 (w32_define_cursor, w32_initialize): Make static.
12388
12389 * w32.c (_wsa_errlist): Fix typo in error message.
12390 (init_environment): Ignore any environment variable from the
12391 registry having a null value.
12392
12393 2007-06-20 Glenn Morris <rgm@gnu.org>
12394
12395 * Makefile.in (LIBGIF): Default to -lgif.
12396
12397 2007-06-17 Jason Rumney <jasonr@gnu.org>
12398
12399 * w32menu.c (add_menu_item): Don't use multibyte string functions on
12400 unicode strings.
12401
12402 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
12403
12404 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
12405 Fix typo in docstring.
12406
12407 2007-06-16 Eli Zaretskii <eliz@gnu.org>
12408
12409 * w32menu.c (add_menu_item): Escape `&' characters in menu items
12410 and their keybindings.
12411
12412 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
12413
12414 * composite.c (update_compositions): Fix last fix.
12415
12416 2007-06-14 Jason Rumney <jasonr@gnu.org>
12417
12418 * w32.c (get_process_times_fn): New function pointer.
12419 (globals_of_w32): Intialize it if present in kernel32.dll.
12420 (w32_get_internal_run_time): New function.
12421
12422 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
12423
12424 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
12425
12426 * composite.c (update_compositions): Check the validness of
12427 compositions.
12428
12429 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12430
12431 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
12432 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
12433
12434 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
12435 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
12436
12437 * macgui.h (USE_MAC_TOOLBAR): New define.
12438
12439 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12440 Return immediately unless popup is activated.
12441
12442 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
12443 background to scroll bar gap.
12444 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
12445 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
12446 scroll bars on frame edge. Check fringe background extension.
12447 Don't clear extended fringe background area.
12448 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
12449 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
12450 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
12451 [USE_MAC_TOOLBAR]: New macros.
12452 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
12453 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
12454 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
12455 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
12456 [USE_MAC_TOOLBAR]: New functions.
12457 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
12458 manually if previous repositioning has failed.
12459 (mac_handle_keyboard_event): Use precomputed event kind.
12460 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
12461 as tool bar item click. Handle mouse movement over tool bar items.
12462
12463 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
12464 toolbar_win_gravity.
12465 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
12466 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
12467 Add externs.
12468
12469 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
12470 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
12471
12472 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
12473
12474 * image.c (search_image_cache): Remove unused variable.
12475
12476 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
12477
12478 * xfns.c, xmenu.c: Link to xaw3d if available.
12479
12480 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12481
12482 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
12483 frame_foreground and frame_background.
12484
12485 * image.c (lookup_image): Save frame foreground and background colors.
12486 (search_image_cache): Check if saved and current frame colors match.
12487
12488 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12489
12490 * regex.c (regex_compile): Remove the `regnum' counter.
12491 Use bufp->re_nsub instead. Add support for \(?N:RE\).
12492
12493 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12494
12495 * term.c: Include intervals.h to declare Fget_text_property.
12496
12497 2007-06-10 Jason Rumney <jasonr@gnu.org>
12498
12499 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
12500
12501 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
12502
12503 * callint.c (Fcall_interactively):
12504 * editfns.c (Fdelete_and_extract_region):
12505 * fileio.c (Fread_file_name):
12506 * fns.c (Fmapconcat):
12507 * keyboard.c (cmd_error_internal):
12508 * keymap.c (Fkey_description):
12509 * lread.c (openp):
12510 * minibuf.c (read_minibuf):
12511 * search.c (wordify):
12512 * sunfns.c (sel_read):
12513 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
12514 * xfns.c (x_default_scroll_bar_color_parameter):
12515 * xmenu.c (menu_help_callback):
12516 * xselect.c (Fx_get_atom_name):
12517 * xterm.c (x_term_init): Use empty_unibyte_string.
12518
12519 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
12520
12521 * alloc.c (init_strings): Initialize canonical empty strings.
12522 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
12523 canonical empty string when the requested size is 0.
12524
12525 * emacs.c (empty_unibyte_string): Rename from empty_string.
12526 (empty_multibyte_string): New canonical empty string.
12527 (syms_of_emacs): Don't initialize empty_string.
12528
12529 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
12530 string, if appropriate.
12531 (empty_unibyte_string, empty_multibyte_string): New externs.
12532 (empty_string): Remove extern.
12533
12534 * lread.c (syms_of_lread): Use empty_unibyte_string.
12535
12536 2007-06-07 Jason Rumney <jasonr@gnu.org>
12537
12538 * s/ms-w32.h: Don't define HAVE_TZNAME.
12539
12540 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
12541
12542 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12543
12544 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
12545
12546 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
12547 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
12548
12549 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12550 Don't call next handler.
12551 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
12552 Remove argument. Install handler to application.
12553 (set_frame_menubar): Don't change deep_p.
12554 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
12555 FRAME_OUTER_TO_INNER_DIFF_Y.
12556 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12557 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12558 [HAVE_DIALOGS]: New macros.
12559 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
12560 Use them.
12561 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
12562
12563 * macselect.c [MAC_OSX] (install_service_handler): Rename from
12564 init_service_handler. All callers changed. Return OSStatus value.
12565
12566 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
12567 All callers changed so as not to call SetPortWindowPort.
12568 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
12569 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
12570 mac_draw_string_common.
12571 (mac_draw_image_string_qd): Likewise.
12572 (mac_draw_string_common): Use them. Add INLINE.
12573 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
12574 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
12575 GetGlobalMouse.
12576 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
12577 and FRAME_OUTER_TO_INNER_DIFF_Y.
12578 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
12579 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
12580 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
12581 repositioning window to mac_handle_window_event.
12582 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
12583 saving window location to mac_handle_window_event
12584 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
12585 (install_menu_target_item_handler): Remove argument in extern.
12586 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
12587 Also accept command events.
12588 (do_keystroke): New function created from XTread_socket.
12589 (init_command_handler): Remove functions.
12590 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
12591 and save window location by kEventWindowShowing and kEventWindowHiding
12592 handlers here. Don't call next handler for window state change and
12593 focus events.
12594 (mac_handle_application_event, mac_handle_keyboard_event)
12595 [TARGET_API_MAC_CARBON]: New functions.
12596 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
12597 kEventWindowShowing and kEventWindowHiding events. Move installation
12598 of mouse, font, text input and menu target item handlers to
12599 install_application_handler.
12600 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
12601 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12602 New function.
12603 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12604 Register it.
12605 (XTread_socket) [TARGET_API_MAC_CARBON]:
12606 Consolidate SendEventToEventTarget calls.
12607 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
12608 Move application activation handler to mac_handle_application_event.
12609 Move keyboard handler to mac_handle_keyboard_event.
12610 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
12611 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12612 init_command_handler. Call install_application_handler.
12613
12614 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
12615 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
12616
12617 2007-06-07 Glenn Morris <rgm@gnu.org>
12618
12619 * emacs.c (main): Use `emacs-copyright' in --version output.
12620
12621 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
12622
12623 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
12624
12625 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12626
12627 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
12628
12629 * macgui.h: Replace WindowPtr with WindowRef.
12630
12631 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12632 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12633 Replace ControlHandle with ControlRef.
12634 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
12635
12636 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12637 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12638 Replace ControlHandle with ControlRef.
12639 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
12640 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
12641
12642 * macterm.h (struct scroll_bar): Rename member control_handle_low
12643 and control_handle_high to control_ref_low and control_ref_high.
12644 All uses changed.
12645 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
12646 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
12647 respectively. All uses changed.
12648 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
12649 (install_window_handler, remove_window_handler): Replace WindowPtr
12650 with WindowRef in externs.
12651
12652 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
12653
12654 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
12655
12656 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
12657
12658 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
12659
12660 * frame.c (Fmouse_position, Fmouse_pixel_position):
12661 Condition on HAVE_GPM too.
12662
12663 * term.c (term_mouse_highlight): Remove unused variables.
12664 (Fterm_open_connection): Set gpm_zerobased to 1.
12665 (term_mouse_movement, term_mouse_click, handle_one_term_event):
12666 Use zero based co-ordinates.
12667 (handle_one_term_event): Report a drag as mouse movement too.
12668
12669 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
12670
12671 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
12672
12673 * image.c (search_image_cache): New function. Require background
12674 color match if background color is unspecified in the image spec.
12675 (uncache_image, lookup_image): Use it.
12676
12677 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
12678
12679 * window.c (Fshrink_window): Reflow docstring.
12680
12681 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
12682
12683 * Version 22.1 released.
12684
12685 2007-06-01 Richard Stallman <rms@gnu.org>
12686
12687 * xfns.c (x_encode_text): Add GCPRO.
12688
12689 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12690
12691 * xfns.c (x_set_name_internal): Save encoded name before
12692 x_encode_text in case string data is relocated.
12693
12694 2007-05-31 Richard Stallman <rms@gnu.org>
12695
12696 * buffer.c (syms_of_buffer): Doc fix.
12697
12698 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
12699
12700 * sysdep.c (init_sys_modes): Add rather than replace with
12701 O_NONBLOCK.
12702
12703 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12704 term_mouse_moveto.
12705
12706 * termhooks.h (term_mouse_moveto): New extern.
12707
12708 * term.c (mouse_face_window): Rename...
12709 (Qmouse_face_window): ...to this.
12710 (term_show_mouse_face, term_clear_mouse_face)
12711 (term_mouse_highlight): Use Qmouse_face_window.
12712 (term_mouse_moveto): New function.
12713 (term_mouse_position): Make it work.
12714 (syms_of_term): Uncomment assignment to mouse_position_hook.
12715 Staticpro Qmouse_face_window.
12716
12717 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12718
12719 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
12720 around current_column call.
12721
12722 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
12723
12724 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
12725 * xdisp.c (next_element_from_buffer):
12726 * window.c (delete_window):
12727 * term.c (term_mouse_highlight):
12728 * msdos.c (getdefdir):
12729 * macterm.c (mac_create_bitmap_from_bitmap_data)
12730 (init_font_name_table):
12731 * fns.c (Fsxhash):
12732 * data.c (Fmake_local_variable):
12733 * ccl.c (ccl_driver): Likewise.
12734
12735 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12736
12737 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
12738 Call mac_wakeup_from_rne on window size change.
12739
12740 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
12741
12742 * image.c (uncache_image): Fix typo.
12743
12744 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
12745
12746 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
12747
12748 2007-05-22 Richard Stallman <rms@gnu.org>
12749
12750 * xterm.c (x_connection_closed): Remove NO_RETURN.
12751
12752 2007-05-22 Martin Rudalics <rudalics@gmx.at>
12753
12754 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
12755
12756 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
12757
12758 * image.c (uncache_image): New function.
12759 (Fimage_refresh): New function.
12760
12761 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
12762
12763 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
12764
12765 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
12766
12767 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
12768 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
12769
12770 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
12771
12772 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
12773 conditional on [HAVE_GPM_H].
12774
12775 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12776
12777 * syntax.c (skip_chars): Update syntax-table only after we checked that
12778 the new location is valid.
12779
12780 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12781
12782 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
12783 mac_get_window_bounds.
12784
12785 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
12786
12787 * Makefile.in (LIBGPM): Allow it to be set from configure.
12788 If set then link Emacs with it.
12789
12790 * config.in: Regenerate.
12791
12792 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
12793 New externs.
12794
12795 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
12796 Include gpm.h.
12797 (handle_one_term_event, term_gpm): New externs.
12798
12799 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
12800 and allow it to be interrupted by SIGIO.
12801
12802 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
12803 (wait_reading_process_output): Wait on gpm_fd too.
12804 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
12805 (add_gpm_wait_descriptor_called_flag): New variable.
12806 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
12807
12808 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
12809 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
12810 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
12811 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
12812 (make_lispy_event): Add case GPM_CLICK_EVENT.
12813 (read_avail_input): Handle mouse input.
12814
12815 * term.c (write_glyphs_with_face): New function.
12816 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
12817 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
12818 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
12819 (mouse_face_face_id, term_gpm, pos_x, pos_y)
12820 (last_mouse_x, last_mouse_y): New variables.
12821 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
12822 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
12823 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
12824 (Fterm_close_connection): New functions.
12825 (term_init): Initialise mouse_face_window.
12826
12827 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
12828
12829 * xdisp.c (redisplay_window): If first window line is a
12830 continuation line, recompute the new window start instead of
12831 recentering.
12832
12833 2007-05-18 Glenn Morris <rgm@gnu.org>
12834
12835 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
12836 Suggested by Alfred M. Szmidt <ams@gnu.org>.
12837
12838 2007-05-17 Glenn Morris <rgm@gnu.org>
12839
12840 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
12841
12842 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12843
12844 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
12845 dead key repeat and up events.
12846
12847 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
12848
12849 * image.c (pbm_load): Check image size for monochrome pbm.
12850
12851 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
12852
12853 * xterm.c (XTread_socket): Revert last change.
12854
12855 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
12856
12857 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12858
12859 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
12860
12861 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12862
12863 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
12864 mixup (YAILOM).
12865
12866 2007-05-07 Andreas Schwab <schwab@suse.de>
12867
12868 * keymap.c (Flookup_key): Fix typo in last change.
12869
12870 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12871
12872 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
12873 mapping for unibyte strings.
12874
12875 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12876
12877 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
12878 (Fx_popup_dialog) [MAC_OSX]: Likewise.
12879
12880 2007-04-29 Richard Stallman <rms@gnu.org>
12881
12882 * insdel.c (replace_range): For undo, record insertion first.
12883
12884 2007-04-29 Andreas Schwab <schwab@suse.de>
12885
12886 * lisp.h (VECSIZE): Use OFFSETOF.
12887
12888 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12889
12890 * xdisp.c (try_window_reusing_current_matrix): Fix number of
12891 disabled lines.
12892
12893 2007-04-28 Richard Stallman <rms@gnu.org>
12894
12895 * lread.c (read_escape): In a string, \s is always space.
12896
12897 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
12898
12899 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
12900
12901 * gtkutil.c (xg_update_menubar, create_menus): Create empty
12902 submenu for menu bar items.
12903
12904 See ChangeLog.10 for earlier changes.
12905
12906 ;; Local Variables:
12907 ;; coding: utf-8
12908 ;; add-log-time-zone-rule: t
12909 ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
12910 ;; End:
12911
12912 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
12913
12914 This file is part of GNU Emacs.
12915
12916 GNU Emacs is free software: you can redistribute it and/or modify
12917 it under the terms of the GNU General Public License as published by
12918 the Free Software Foundation, either version 3 of the License, or
12919 (at your option) any later version.
12920
12921 GNU Emacs is distributed in the hope that it will be useful,
12922 but WITHOUT ANY WARRANTY; without even the implied warranty of
12923 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12924 GNU General Public License for more details.
12925
12926 You should have received a copy of the GNU General Public License
12927 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
12928
12929 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40