]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(system-type): Doc fix.
[gnu-emacs] / src / ChangeLog
1 2008-07-16 Glenn Morris <rgm@gnu.org>
2
3 * emacs.c (system-type): Doc fix.
4
5 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8 If the cache doesn't work, let's fix it, rather than work around it.
9
10 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11
12 * Makefile.in: Correct additions for nsfont.o in last commit.
13 * nsfont.m: New file (forgot last commit).
14
15 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16
17 Changes and additions for NeXTstep windowing system (Cocoa and
18 GNUstep) support.
19
20 * Makefile.in
21 * config.in: Support defines and build commands for NS port.
22 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
23 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
24 * callproc.c (set_initial_environment): Initialize
25 Vprocess_environment under CANNOT_DUMP (fixes crash when
26 batch-compiling for bootstrap, due to Chris Hall).
27 * dispextern.h: Include nsgui.h and add needed typedefs under NS
28 windowing.
29 (struct face): Add synth_ital field.
30 * dispnew.c: Include nsterm.h when compiling under NS windowing.
31 (init_display): Initialize Vinitial_window_system to "ns" when so
32 compiled.
33 * emacs.c: Include GSConfig.h when compiling under GNUstep.
34 (display_arg): Use under NS.
35 (main): Under NS, allocate autorelease pool and handle command line
36 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
37 (standard_args): Add NS-specific args.
38 (shut_down_emacs): Shut down NS terminal if compiled under NS.
39 * font.c (DEFAULT_ENCODING): New variable.
40 (font_find_for_lface): Use it.
41 (syms_of_font): Load syms_of_nsfont under NS.
42 * font.h: Declare nsfont_driver when compiled under NS.
43 * fontset.c: When compiling under NS, include nsterm.h.
44 (fontset_from_font): Autoconstruct fontset under NS.
45 * frame.c (various): Under NS, include nsterm.h, add Qns window system
46 symbol, document and use it.
47 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
48 patch to fix crash due to different init order, due to Chris Hall and
49 Yamamoto Mitsuharu.
50 (do_switch_frame): When for_deletion under Cocoa, add
51 Fraise_frame(Qnil).
52 (x_set_frame_parameters): Ensure font attribute changes are picked up.
53 (x_get_arg): Allow "yes" and "no" as boolean values.
54 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
55 Qright under Cocoa.
56 (focus-follows-mouse): Default to 0 under NS.
57 * frame.h (enum output_method): Add output_ns.
58 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
59 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
60 (FRAME_WINDOW_P): NS-specific definition.
61 * fringe.c (max_used_fringe_bitmap): Make public.
62 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
63 (getloadavg): Use NeXT code under descendant OS's.
64 * image.c (includes and header section, x_create_bitmap_from_data)
65 (x_create_bitmap_from_file, free_bitmap_record, image_background)
66 (image_background_transparent, x_clear_image_1)
67 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
68 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
69 (x_to_xcolors, x_from_xcolors, x_disable_image)
70 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
71 other GUIs, including XPM support using code originally written for
72 Carbon GUI.
73 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
74 using NS API.
75 (image_ascent): Use font metrics macros instead of direct struct field
76 access.
77 * keyboard.c (includes): Add nsterm.h when compiling under NS.
78 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
79 Also, handle NS as GTK for menu bar purposes.
80 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
81 toolkit where they differ.
82 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
83 use cachelist, still needed under NS.
84 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
85 (struct widget_value): Define it here for menu.c.
86 * keymap.c (includes): Include modifier internals.
87 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
88 NS.
89 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
90 support for preferring sequences using certain modifiers, specified by
91 the FIRSTONLY argument.
92 * lisp.h (hash_remove): Rename to avoid name clash when compiling
93 under NS GNUstep implementation.
94 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
95 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
96 * menu.c: Include nsterm.h under NS.
97 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
98 (free_menubar_widget_tree_value, update_submenu_strings)
99 (find_and_call_menu_selection): Treat NS as X and NT.
100 (find_and_return_menu_selection): New function, used for popup menus.
101 * nsgui.h
102 * nsterm.h
103 * nsfns.m
104 * nsimage.m
105 * nsmenu.m
106 * nsselect.m
107 * nsterm.m: New files.
108 * process.c (wait_reading_process_output): Under NS, call ns_select()
109 instead of plain select().
110 * syntax.c (char_quoted): Under NS, avoid a crash when called near
111 beginning of buffer.
112 * sysselect.h (init_process): Rename when compiling under Cocoa to
113 avoid name conflict.
114 * termhooks.h (display_info): Add ns_display_info to union.
115 * terminal.c (Fterminal_live_p): Add ns to terminal types.
116 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
117 COCOA environment.
118 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
119 unexec() signature. (Note, this will dump, but the resulting file
120 crashes; unexosx is used instead; keeping around for reference and
121 possible aid in getting dump working under GNUstep.)
122 * w32gui.h (button_type, widget_value): Remove definitions (now in
123 keyboard.h).
124 * window.c: Include nsterm.h when compiling under NS.
125 * xdisp.c (includes): Include nsterm.h when compiling under NS.
126 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
127 other GUI windowing systems.
128 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
129 GTK.
130 (x_consider_frame_title): Under NS, set icon type and frame
131 modified-state indicator; use ns_set_name_as_filename() when using
132 formatted title.
133 (update_window_cursor): Make public when compiling under NS.
134 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
135 (hourglass_atimer, Vhourglass_delay
136 * xfaces.c (header section, init_frame_faces, clear_font_table)
137 (defined_color, unload_color, x_face_list_fonts)
138 (prepare_face_for_display): Add NS support parallel to other GUIs.
139 Emulate GCs like other non-X GUIs.
140 (split_font_name): Don't lowercase font name under NS.
141 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
142 under NS.
143 * s/darwin.h: Add support for compilation under NS.
144
145 2008-07-15 Jason Rumney <jasonr@gnu.org>
146
147 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
148 (w32_show_hourglass): Rename from show_hourglass.
149 (w32_hide_hourglass): Rename from hide_hourglass.
150 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
151 (Vhourglass_delay): Declare extern.
152 (hourglass_started): Remove.
153
154 * xdisp.c (Vhourglass_delay): Remove static.
155 (hourglass_started, start_hourglass, cancel_hourglass):
156 Don't include these versions on WINDOWSNT.
157
158 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
159
160 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
161 variables (formerly in xfns.c).
162 (show_hourglass, hide_hourglass): New prototypes (same).
163 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
164 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
165 in xfns.c).
166 (syms_of_xdisp): Declare/initialize display-hourglass,
167 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
168 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
169 formerly in xfns.c.
170 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
171 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
172 (start_hourglass, cancel_hourglass): Remove.
173 (show_hourglass, hide_hourglass): Remove prototypes and static
174 modifiers.
175 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
176 hourglass_atimer, hourglass_shown_p declaration/initialization.
177 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
178 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
179 (start_hourglass, cancel_hourglass): Remove.
180 (show_hourglass, hide_hourglass): Remove prototypes and static
181 modifiers.
182 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
183 hourglass_atimer, hourglass_shown_p declaration/initialization.
184 * w32fns.c (display_hourglass_p, Vhourglass_delay)
185 (DEFAULT_HOURGLASS_DELAY): Remove.
186 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
187 hourglass_shown_p declaration/initialization.
188
189 2008-07-14 Jason Rumney <jasonr@gnu.org>
190
191 * w32fns.c (w32_get_arg): Remove wrapper function.
192 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
193 directly.
194 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
195
196 2008-07-14 Kenichi Handa <handa@m17n.org>
197
198 * xfont.c (xfont_open): Add workaround for X's bug.
199
200 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
201
202 * fontset.c: Include <stdio.h> unconditionally.
203
204 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
205
206 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
207 for filtering.
208
209 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
210
211 * s/vms.h: Use __GNUC__ instead of _GNUC_.
212
213 * m/macppc.h:
214 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
215
216 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
217 (SPECIAL_EMACS_INT):
218 * m/ia64.h (SPECIAL_EMACS_INT):
219 * m/amdx86-64.h (SPECIAL_EMACS_INT):
220 * s/gnu.h (NLIST_STRUCT):
221 * aix4-2.h (X11R5_INHIBIT_I18N):
222 * s/gnu-linux.h (LINUX):
223 * s/msdos.h (HAVE_FACES):
224 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
225
226 * systty.h:
227 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
228 anymore.
229
230 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
231
232 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
233 always defined as int.
234
235 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
236 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
237 * s/gnu-linux.h (HAVE_WAIT_HEADER):
238 * s/freebsd.h (HAVE_WAIT_HEADER):
239 * s/bsd-common.h (HAVE_UNION_WAIT):
240 * s/aix4-2.h (HAVE_WAIT_HEADER):
241 * m/mips.h (HAVE_UNION_WAIT):
242 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
243 (COFF, static): Do not define, they are undefined later in the file.
244
245 * process.c (update_status): Don't use a union.
246 (status_convert):
247 (sigchld_handler): Use int instead of WAITTYPE.
248
249 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
250
251 * indent.c (Fvertical_motion): Restore hscroll before moving to
252 goal column.
253
254 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
255
256 * lisp.h: Remove left over code.
257
258 2008-07-11 Andreas Schwab <schwab@suse.de>
259
260 * lisp.h: Fix logic in last change.
261
262 * menu.h: New file.
263 * menu.c: Include it.
264 * xmenu.c: Likewise.
265 * Makefile.in: Update dependencies.
266
267 2008-07-11 Kenichi Handa <handa@m17n.org>
268
269 * fontset.c (fontset_from_font): Cancel the previous change.
270
271 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
272
273 * lisp.h:
274 * w32heap.c:
275 * emacs.c:
276 * alloc.c: Replace all references of NO_UNION_TYPE with
277 USE_LISP_UNION_TYPE.
278
279 * m/xtensa.h (NO_UNION_TYPE):
280 * m/vax.h (NO_UNION_TYPE):
281 * m/template.h (NO_UNION_TYPE):
282 * m/sparc.h (NO_UNION_TYPE):
283 * m/mips.h (NO_UNION_TYPE):
284 * m/macppc.h (NO_UNION_TYPE):
285 * m/m68k.h (NO_UNION_TYPE):
286 * m/iris4d.h (NO_UNION_TYPE):
287 * m/intel386.h (NO_UNION_TYPE):
288 * m/ibms390x.h (NO_UNION_TYPE):
289 * m/ibms390.h (NO_UNION_TYPE):
290 * m/ibmrs6000.h (NO_UNION_TYPE):
291 * m/ia64.h (NO_UNION_TYPE):
292 * m/hp800.h (NO_UNION_TYPE):
293 * m/arm.h (NO_UNION_TYPE):
294 * m/amdx86-64.h (NO_UNION_TYPE):
295 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
296 defining it the same.
297
298 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
299
300 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped
301 line.
302
303 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
304
305 * src/fileio.c:
306 * src/sysdep.c
307 * src/systty.h:
308 * src/m/ibmrs6000.h:
309 * src/m/iris4d.h:
310 * src/s/aix4-2.h:
311 * src/s/freebsd.h:
312 * src/s/gnu-linux.h:
313 * src/s/hpux10-20.h:
314 * src/s/hpux11.h:
315 * src/s/netbsd.h:
316 * src/s/sol2-3.h:
317 * src/s/sol2-4.h:
318 * src/s/sol2.h:
319 * src/s/usg5-4.h:
320 * src/s/vms.h: Remove references to unused variables.
321
322 2008-07-10 Andreas Schwab <schwab@suse.de>
323
324 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
325 pattern before matching the generic family.
326
327 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
328
329 * unexec.c:
330 * s/vms.h:
331 * s/usg5-4-2.h:
332 * s/sol2-5.h:
333 * s/freebsd.h:
334 * s/darwin.h: Remove dead code.
335
336 * m/template.h:
337 * m/sparc.h:
338 * m/mips.h:
339 * m/m68k.h:
340 * m/iris4d.h:
341 * m/intel386.h:
342 * m/ibms390x.h:
343 * m/ibms390.h:
344 * m/ia64.h:
345 * m/hp800.h:
346 * m/arm.h:
347 * m/amdx86-64.h: Remove dead code and references to unused
348 and compiler defined symbols.
349
350 * unexmips.c:
351 * unexelf.c: Remove references to desupported systems.
352
353 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
354
355 * m/powermac.h: Remove boilerplate comments.
356 (NO_REMAP): Remove unused definition.
357
358 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
359 define them.
360
361 2008-07-10 Kenichi Handa <handa@m17n.org>
362
363 * xfont.c (xfont_open): Log the reason of failure.
364
365 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
366
367 * fontset.c (fontset_get_font_group):
368 * font.c (font_check_otf): Specify argument types.
369
370 2008-07-09 Kenichi Handa <handa@m17n.org>
371
372 * coding.c (detect_coding_utf_8): Set detect_info->found only when
373 non-ASCII char is found.
374
375 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
376 (reorder_font_vector): Change the arg preferred_family to font.
377 Prefer the spec matching with font.
378 (fontset_get_font_group): New function.
379 (fontset_find_font): Change the format of an element of a realized
380 fontset. Use fontset_get_font_group.
381 (fontset_font): Try the current fontset, the default fontset, the
382 fallbacks of the current fonset, and the fallbacks of the default
383 fontset in this order.
384 (face_for_char): Delete the shortcut to use the current font.
385 (fontset_from_font): Don't set fonts for Latin in the fontset.
386
387 * font.h (font_make_object, font_match_p): Adjust prototypes.
388
389 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
390
391 * font.c (font_make_object): New arg entity and pixelsize.
392 (font_check_otf_features, font_check_otf): New functions.
393 (font_match_p): Check :lang, :script, and :otf properties.
394
395 * xfont.c (xfont_open): Adjust it for the change of
396 font_make_object.
397 (xfont_text_extents): Fix initial setting of metrics.
398
399 * ftfont.c (struct ftfont_info): New member index, delete member
400 fc_charset_idx. Make the member order compatible with struct
401 xftfont_info.
402 (fc_charset_table): Change charset names to registry names.
403 (ftfont_pattern_entity): Delete the args registry and
404 fc_charset_idx. Change the value of :font-entity property
405 to (FONTNAME . INDEX). Always set :registry property to
406 `iso10646-1'.
407 (struct ftfont_cache_data): New struct.
408 (ftfont_lookup_cache): New arg for_face.
409 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
410 (ftfont_driver): Set the member otf_capability.
411 (ftfont_get_charset): Adjust it for the change of
412 fc_charset_table.
413 (OTF_TAG_SYM): New macro.
414 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
415 for the change of fc_charset_table.
416 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
417 ftfont_pattern_entity. Add FC_INDEX to objset.
418 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
419 and ftfont_pattern_entity.
420 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
421 font_make_object, struct ftfont_info.
422 (ftfont_has_char): Use ftfont_get_fc_charset.
423 (ftfont_otf_features, ftfont_otf_capability): New functions.
424 (ftfont_shape): Use ftfont_get_otf.
425 (ftfont_text_extents): Fix initial setting of metrics.
426
427 * xftfont.c (struct xftfont_info): New member ft_size. Make the
428 member order compatible with struct ftfont_info.
429 (xftfont_open): Add FC_CHARSET to the pattern. Set
430 xftfont_info->ft_size. Don't unlock the face. Check BDF
431 properties if appropriate.
432 (xftfont_close): Unlock the face.
433 (xftfont_anchor_point, xftfont_shape): Deleted.
434 (syms_of_xftfont): Don't set members anchor_point and shape of
435 xftfont_driver.
436
437 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
438 font_make_object.
439
440 * w32font.c (w32font_open): Adjust it for the change of
441 font_make_object.
442 (w32font_open_internal): Don't set properties of font_object here.
443
444 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
445
446 * macfns.c (x_create_tip_frame):
447 * w32fns.c (x_create_tip_frame):
448 * xfns.c (x_create_tip_frame): Pass parameter argument to
449 face-set-after-frame-default.
450
451 * xfaces.c (Finternal_merge_in_global_face): Save merged
452 attributes for the default face back into the face vector.
453
454 2008-07-08 Andreas Schwab <schwab@suse.de>
455
456 * fontset.h: Declare fontset_from_font. Don't declare
457 new_fontset_from_font and fontset_from_font_name.
458 * xterm.c: Include "fontset.h".
459 * Makefile.in (xterm.o): Update dependencies.
460
461 2008-07-08 Glenn Morris <rgm@gnu.org>
462
463 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
464 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
465
466 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
467
468 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
469 (x_set_frame_parameters): Don't bind it.
470
471 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
472
473 * w32fns.c (map_w32_filename): Declare extern.
474
475 2008-07-07 Jason Rumney <jasonr@gnu.org>
476
477 * w32term.c (WS_EX_LAYERED): Define if not already.
478
479 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
480
481 * xfaces.c (set_font_frame_param): Don't try to set the font
482 parameter if it is still unspecified in the lface.
483
484 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
485
486 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
487 face if it didn't already exist.
488
489 * xdisp.c (try_window_id): Give up if word-wrapping is on.
490
491 2008-07-05 Andreas Schwab <schwab@suse.de>
492
493 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
494
495 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
496
497 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
498 word-wrapping.
499 (IT_DISPLAYING_WHITESPACE): New macro.
500 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
501 when word-wrapping. Simplify word-wrapping logic. Use correct
502 pixel positions when saving copies of the iterator.
503 (display_line): Use proper wrap point if the last character on a
504 line was preceded by whitespace.
505
506 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
507
508 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
509
510 2008-07-04 Kenichi Handa <handa@m17n.org>
511
512 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
513
514 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
515
516 2008-07-02 Jason Rumney <jasonr@gnu.org>
517
518 * xfns.c (syms_of_xfns): Only define x-select-font when both
519 HAVE_FREETYPE and USE_GTK
520
521 * xdisp.c (next_element_from_display_vector): Move assignment out
522 of if statement.
523
524 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
525
526 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
527
528 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
529 (syms_of_fileio): Initialize and export them.
530 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
531
532 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
533 (Fsystem_move_file_to_trash): New function.
534 (syms_of_w32fns): Export it to lisp.
535
536 2008-07-01 Jason Rumney <jasonr@gnu.org>
537
538 * w32font.c (w32font_text_extents): Don't count overhang as part
539 of width.
540
541 2008-06-30 Miles Bader <miles@gnu.org>
542
543 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
544 Add `avoid_cursor_p' field.
545
546 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
547 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
548 (append_glyph, append_composite_glyph, produce_image_glyph)
549 (append_stretch_glyph): Initialize avoid_cursor_p.
550 (get_it_property): Rename from `get_line_height_property'.
551 (x_produce_glyphs): Use get_it_property.
552 (handle_line_prefix, push_display_prop): New functions.
553 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
554 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
555 New variables.
556 (syms_of_xdisp): Initialize them.
557
558 2008-06-30 Kenichi Handa <handa@m17n.org>
559
560 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
561 XftDefaultSubstitute (they are called in XftFontMatch).
562 (xftfont_open): Fix args to ftfont_font_format.
563
564 * ftfont.c (fc_charset_table): New member lang.
565 (ftfont_resolve_generic_family): New arg pattern.
566 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
567 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
568 (ftfont_open): Fix args to ftfont_font_format.
569 (ftfont_font_format): New arg filename.
570
571 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
572
573 * xfaces.c (Finternal_merge_in_global_face): If default face was
574 modified, realize it again. Update the font face attribute.
575
576 2008-06-29 Jason Rumney <jasonr@gnu.org>
577
578 * w32term.c (x_set_frame_alpha): Fix logic.
579
580 2008-06-29 Kenichi Handa <handa@m17n.org>
581
582 * fontset.c (Finternal_char_font): Return font-object instead of
583 font-name.
584
585 * composite.c (get_composition_id): Fix the width calculation for TAB.
586
587 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
588
589 * indent.c (Fvertical_motion): Properly handle float column arg.
590
591 2008-06-28 Jason Rumney <jasonr@gnu.org>
592
593 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
594 (pfnSetLayeredWindowAttributes): New function pointer.
595 (w32_initialize): Initialize it when supported.
596 (x_set_frame_alpha): New function.
597
598 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
599 (w32_frame_parm_handlers): Set alpha handler.
600
601 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
602
603 2008-06-27 Jason Rumney <jasonr@gnu.org>
604
605 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
606 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
607 (w32_to_x_charset, x_to_w32_charset)
608 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
609 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
610 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
611 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
612 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
613 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
614 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
615 (Qw32_charset_unicode): Remove.
616 (syms_of_w32fns): Update for above changes.
617
618 * w32font.c (w32_to_x_charset, x_to_w32_charset)
619 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
620 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
621 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
622 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
623 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
624 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
625 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
626 (syms_of_w32font): Update for above changes.
627
628 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
629
630 * s/usg5-4.h: Fix previous change: keep the correct branch of a
631 removed #if.
632 (USG_SHARED_LIBRARIES): Remove duplicate definition.
633
634 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
635 Eli Zaretskii <eliz@gnu.org>
636
637 * makefile.w32-in (LOCAL_FLAGS):
638 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
639
640 * sysdep.c (_spawnlp, _getpid):
641 Declare with explicit _cdecl instead of _CRTAPI1.
642
643 * editfns.c (Fget_internal_run_time):
644 Check for WINDOWSNT with #ifdef, not #if.
645
646 2008-06-26 Jason Rumney <jasonr@gnu.org>
647
648 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
649
650 * w32term.c (x_draw_glyph_string_foreground)
651 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
652 Use FONT_HANDLE macro.
653 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
654
655 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
656 (uniscribe_encode_char): Use FONT_HANDLE macro.
657
658 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
659 (w32font_text_extents): Use precast w32_font.
660 (w32font_close): Free cached metrics.
661 (w32font_open_internal): Allocate space for name on stack.
662
663 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
664
665 * xdisp.c (extend_face_to_end_of_line): Fix last change.
666
667 2008-06-26 Jason Rumney <jasonr@gnu.org>
668
669 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
670 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
671
672 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
673
674 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
675
676 2008-06-26 Jason Rumney <jasonr@gnu.org>
677
678 * w32bdf.c, w32bdf.h: Remove obsolete files.
679
680 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
681
682 * w32gui.h: Don't include w32bdf.h.
683 (XCharStruct, enum w32_char_font_type, W32FontStruct):
684 Remove obsolete font support.
685
686 * w32font.h (struct w32font_info): Remove compat_w32_font.
687 Add hfont member.
688 (FONT_COMPAT): Remove obsolete macro.
689
690 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
691 (w32font_encode_char, w32font_text_extents): Use new hfont member.
692 (w32font_open_internal): Remove compat code. Set new hfont member.
693 (Fx_select_font): Use new hfont member.
694
695 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
696 (uniscribe_encode_char): Use new hfont member.
697
698 * w32term.c (x_draw_glyph_string_foreground)
699 (x_draw_composite_glyph_string_foreground): Use new hfont member.
700 (x_draw_glyph_string): Use metrics in w32font_info.
701
702 2008-06-26 Kenichi Handa <handa@m17n.org>
703
704 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
705
706 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
707
708 * unexnext.c:
709 * m/ews4800.h:
710 * m/hp9000s300.h:
711 * m/ibm370aix.h:
712 * m/mips-siemens.h:
713 * m/ncr386.h:
714 * m/next.h:
715 * m/pmax.h:
716 * m/powerpcle.h:
717 * m/tandem-s2.h:
718 * s/386bsd.h:
719 * s/bsd386.h:
720 * s/bsd4-1.h:
721 * s/bsd4-2.h:
722 * s/bsdos2-1.h:
723 * s/bsdos2.h:
724 * s/bsdos3.h:
725 * s/bsdos4.h:
726 * s/nextstep.h:
727 * s/ultrix4-3.h:
728 * s/usg5-0.h:
729 * s/usg5-2-2.h:
730 * s/usg5-2.h:
731 * s/usg5-4-3.h:
732 * s/ux4800.h:
733 * s/uxpds.h:
734 * s/uxpv.h: Remove support for obsolete systems.
735 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
736 Remove, insert contents in s/hpux-10.20.h
737 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
738 Remove, insert contents in s/aix-4.2.h
739 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
740 * s/bsd4-3.h: Rename to ..
741 * s/bsd-common.h: ... this.
742 * src/data.c:
743 * src/doc.c:
744 * src/ecrt0.c:
745 * src/emacs.c:
746 * src/fileio.c:
747 * src/floatfns.c:
748 * src/keyboard.c:
749 * src/mem-limits.h:
750 * src/print.c:
751 * src/process.c:
752 * src/sysdep.c:
753 * src/syssignal.h:
754 * src/systty.h:
755 * src/syswait.h:
756 * src/term.c:
757 * src/unexec.c:
758 * src/unexelf.c:
759 * src/unexhp9k800.c:
760 * src/m/hp800.h:
761 * src/m/ibmrs6000.h:
762 * src/m/mips.h:
763 * src/m/vax.h:
764 * src/s/darwin.h:
765 * src/s/freebsd.h:
766 * src/s/gnu.h:
767 * src/s/ms-w32.h:
768 * src/s/msdos.h:
769 * src/s/netbsd.h:
770 * src/s/template.h: Remove references to obsolete variables.
771
772 * Makefile.in: Add dependencies for all unexec files.
773 (admindir): Remove unused variable.
774 (UNEXEC_SRC): Remove references.
775
776 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
777
778 * xfns.c (x_default_font_parameter): If Xft is available, first
779 try Monospace-12 for the default font.
780
781 2008-06-25 Jason Rumney <jasonr@gnu.org>
782
783 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
784
785 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
786
787 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
788
789 * buffer.c (syms_of_buffer): Remove default-word-wrap.
790
791 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
792
793 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
794 <scroll-conservatively>: Fix typo in docstring.
795
796 * xselect.c (Fx_send_client_event): Doc fix.
797
798 2008-06-25 Kenichi Handa <handa@m17n.org>
799
800 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
801
802 * font.c (font_parse_fcname): Remove unused variables.
803 (font_sort_entites): Delete the arg SPEC. Caller changed.
804 Fix for the case of ! best_only.
805 (font_delete_unmatched): Check DPI and AVGWIDTH too.
806
807 * lisp.h (Fstring_to_unibyte): EXFUN it.
808
809 * character.h (str_to_unibyte): Extern it.
810
811 * character.c (str_to_unibyte): New function.
812
813 * fns.c (Fstring_to_unibyte): New function.
814 (syms_of_fns): Defsubr it.
815
816 2008-06-24 Kenichi Handa <handa@m17n.org>
817
818 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
819 DPI too.
820 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
821
822 2008-06-24 Andreas Schwab <schwab@suse.de>
823
824 * Makefile.in (${lispsource}loaddefs.el): Rename from
825 ../lisp/loaddefs.el.
826 (bootstrap-clean): Do what distclean does but don't remove
827 Makefile.
828 (distclean): Depend on bootstrap-clean and remove Makefile.
829
830 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
831
832 * buffer.h (struct buffer): New member word_wrap.
833
834 * buffer.c (syms_of_buffer): New variables default-word-wrap and
835 word-wrap.
836 (init_buffer_once): Initialize them.
837
838 * dispextern.h (struct it): Replace bool truncate_lines_p with a
839 line_wrap enum possessing three possible values.
840
841 * termopts.h: Replace truncate_partial_width_windows with
842 Vtruncate_partial_width_windows.
843
844 * dispnew.c (direct_output_for_insert): Avoid direct output when
845 inserting a space with word wrap on.
846
847 * indent.c (compute_motion): Obey integer values of
848 truncate-partial-width-windows.
849
850 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
851 replacing truncate_partial_width_windows.
852 (init_iterator): If Vtruncate_partial_width_windows is an integer,
853 truncate only if the window width is below that integer.
854 (start_display. resize_mini_window, produce_stretch_glyph)
855 (display_string, move_it_in_display_line_to): Use line_wrap.
856 (back_to_previous_visible_line_start, reseat_1): Reset
857 string_from_display_prop_p.
858 (display_line): Extend default face to end of line when wrapping.
859
860 2008-06-24 Kim F. Storm <storm@cua.dk>
861
862 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
863 to wrap continued lines at word boundaries.
864
865 2008-06-24 Jason Rumney <jasonr@gnu.org>
866
867 * font.c (Ffont_face_attributes): Multiply pixel size before point
868 conversion to avoid multiplying rounding error.
869
870 2008-06-23 Jason Rumney <jasonr@gnu.org>
871
872 * w32term.c (x_draw_glyph_string_background)
873 (x_draw_glyph_string): Remove old bdf font code.
874
875 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
876
877 2008-06-22 Kenichi Handa <handa@m17n.org>
878
879 * font.c (font_find_for_lface): Try the adstyle specified in
880 the property of LFACE_FONT of LFACE (if any).
881
882 2008-06-21 Seiji Zenitani <zenitani@mac.com>
883 Ryo Yoshitake <ryo@shiftmode.net>
884
885 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
886
887 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
888
889 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
890 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
891 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
892 (witness-emacs): Remove.
893 (lisp, shortlisp): Move loaddefs.el earlier.
894 (mostlyclean): Forget about witness-emacs.
895
896 2008-06-22 Glenn Morris <rgm@gnu.org>
897
898 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
899 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
900
901 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
902
903 * Makefile.in (PRECOMP): Remove.
904 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
905 (witness-emacs): Run `compile-first'.
906 (.el.elc): Use the new compile-onefile target.
907
908 2008-06-21 Kenichi Handa <handa@m17n.org>
909
910 * xftfont.c (xftfont_open): Handle QCembolden only when
911 FC_EMBOLDEN is defined.
912
913 2008-06-21 Andreas Schwab <schwab@suse.de>
914
915 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
916 (.el.elc): Likewise.
917
918 2008-06-21 Miles Bader <miles@gnu.org>
919
920 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
921 build dir, not the lisp source dir.
922
923 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
924
925 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
926 (bootstrapclean): Remove.
927 (.el.elc): New rule.
928 (PRECOMP): New var.
929 (../lisp/subdirs.el): Remove.
930 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
931 (witness-emacs): New target.
932 (mostlyclean): Remove witness-emacs as well.
933 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
934 Add witness-emacs dependency.
935
936 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
937
938 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
939 defined by the font.
940
941 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
942
943 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
944 (bootstrap-clean): New target that keeps TAGS around.
945 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
946 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
947
948 2008-06-20 Jason Rumney <jasonr@gnu.org>
949
950 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
951 Remove obsolete font code.
952
953 * w32font.c (font_matches_spec): Use csb bitfield from font signature
954 to determine language support.
955
956 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
957
958 * sysdep.c (cfsetspeed): New fun extracted from the code.
959 (cfmakeraw): Move before first use.
960
961 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
962
963 * sysdep.c (cfmakeraw): Provide fallback implementation.
964 (serial_configure): Provide fallback implementation of cfsetspeed.
965
966 2008-06-20 Kenichi Handa <handa@m17n.org>
967
968 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
969 the pattern.
970
971 * fontset.c (fontset_from_font): Copy font_spec before changing
972 the elements.
973
974 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
975
976 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
977
978 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
979 for explicit `font' parameters.
980
981 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
982
983 2008-06-19 Kenichi Handa <handa@m17n.org>
984
985 * frame.c: Include <ctype.h>.
986 (x_set_font_backend): Allow spacing characters in the X resource
987 for FontBackend.
988
989 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
990
991 * w32fns.c, xfns.c (Qfont_param): New var.
992 (syms_of_w32fns): Initialize it.
993 (x_default_font_parameter): Record explicit `font' into
994 `font-parameter'.
995
996 2008-06-18 Kenichi Handa <handa@m17n.org>
997
998 * font.c (font_parse_xlfd): Fix previous change.
999 (font_parse_fcname): Don't use :fc-unknown-spec.
1000 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
1001 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
1002 (font_add_log): Prepend the driver name to the resulting fonts.
1003
1004 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
1005 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
1006 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
1007
1008 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
1009 (QCembolden): New variables.
1010 (syms_of_xftfont): DEFSYM them.
1011 (xftfont_open): Call XftFontMatch. Don't trust the result of
1012 XftTextExtents8 if the pixel_size is less than 5.
1013
1014 2008-06-18 Andreas Schwab <schwab@suse.de>
1015
1016 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
1017 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
1018
1019 2008-06-18 Jason Rumney <jasonr@gnu.org>
1020
1021 * w32font.c (w32font_list, w32font_match): Add logging.
1022
1023 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
1024
1025 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
1026
1027 * font.c (font_parse_fcname): Store divider characters for
1028 unknown-spec list. For known key symbols, intern using correct
1029 symbol name.
1030
1031 2008-06-17 Kenichi Handa <handa@m17n.org>
1032
1033 * xfaces.c (realize_default_face): If the frame is not on window
1034 system, set the fontset of face to nil.
1035
1036 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1037
1038 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
1039
1040 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
1041
1042 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
1043 (build_font_name_from_vector): Delete externs.
1044
1045 * xfaces.c (struct font_name): Don't declare.
1046
1047 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1048
1049 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
1050
1051 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
1052
1053 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
1054
1055 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
1056
1057 * font.c (Ffont_spec): Fix usage in docstring.
1058 (Ffont_face_attributes): Doc fix.
1059
1060 2008-06-16 Andreas Schwab <schwab@suse.de>
1061
1062 * font.c (Ffont_face_attributes): Fix definition.
1063
1064 2008-06-16 Jason Rumney <jasonr@gnu.org>
1065
1066 * font.h (font_style_symbolic_from_value): Remove.
1067
1068 * font.c (font_style_symbolic_from_value): Remove.
1069 (font_style_symbolic): Revert to pre 2008-06-13 version.
1070
1071 * w32font.c (w32_to_fc_weight): New function.
1072 (w32font_full_name, logfont_to_fcname): Use it.
1073
1074 2008-06-16 Kenichi Handa <handa@m17n.org>
1075
1076 * font.c (font_check_object): Delete it.
1077 (font_clear_cache): Check if a font-object is alive.
1078 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
1079 font-object to nil.
1080 (font_close_object): Don't check FONT_CLOSE_OBJECT.
1081 (font_at): Don't call font_check_object.
1082 (Ffont_get): Return a symbol for :weight, :slant, and :width.
1083
1084 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
1085
1086 * puresize.h (BASE_PURESIZE): Increase to 1230000.
1087
1088 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
1089
1090 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
1091
1092 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
1093
1094 * font.c (font_parse_fcname): Only one decimal point.
1095 (font_unparse_fcname): Handle data in family and foundry indices
1096 as symbols, not strings.
1097 (font_unparse_gtkname, Ffont_face_attributes): New functions.
1098
1099 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
1100
1101 * font.h (font_unparse_gtkname): Add prototype.
1102
1103 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1104
1105 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
1106
1107 2008-06-15 Andreas Schwab <schwab@suse.de>
1108
1109 * font.c (font_update_drivers): Fix crash when no drivers match.
1110
1111 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
1112
1113 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
1114 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
1115
1116 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
1117
1118 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
1119
1120 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
1121
1122 * process.c (Fserial_process_configure, Fprocess_send_eof):
1123 Use EQ to compare Lisp_Objects.
1124
1125 2008-06-13 Jason Rumney <jasonr@gnu.org>
1126
1127 * w32fns.c (Fw32_select_font): Remove old font API function.
1128
1129 * w32font.c (logfont_to_fcname): New function.
1130 (Fx_select_font): New font dialog function compatible with
1131 GTK/fontconfig version.
1132
1133 * font.c (font_style_symbolic_from_value): New function.
1134 (font_style_symbolic): Use it.
1135
1136 * font.h (font_style_symbolic_from_value): Declare new function.
1137
1138 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
1139
1140 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
1141 <font-width-table>: Fix typos in docstrings.
1142
1143 2008-06-13 Daniel Engeler <engeler@gmail.com>
1144
1145 These changes add serial port access.
1146 * process.c: Add HAVE_SERIAL.
1147 (Fdelete_process, Fprocess_status, Fset_process_buffer)
1148 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
1149 (list_processes_1, select_wrapper, Fstop_process)
1150 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
1151 (status_notify): Modify to handle serial processes.
1152 [HAVE_SERIAL] (Fserial_process_configure)
1153 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
1154 New functions.
1155 * process.h (struct Lisp_Process): Add `type'.
1156 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
1157 New functions.
1158 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
1159 serial ports.
1160 (serial_open, serial_configure) New functions.
1161 * w32.h: Add FILE_SERIAL.
1162 (struct _child_process): Add ovl_read, ovl_write.
1163
1164 2008-06-13 Kenichi Handa <handa@m17n.org>
1165
1166 * dispextern.h (enum lface_attribute_index): New member
1167 LFACE_FOUNDRY_INDEX.
1168
1169 * font.c (font_score): Delete arg alternate_families. Check only
1170 weight, slant, width, and size. Ignore the difference of alias
1171 style symbols.
1172 (font_sort_entites): Adjust for the above change. Reflect the
1173 order of font-driver to scores.
1174 (font_list_entities): Don't check alternate_familes here.
1175 (font_clear_prop): Handle foundry.
1176 (font_update_lface): Don't parse "foundry-family" form here.
1177 Handle FONT_FOUNDRY_INDEX.
1178 (font_find_for_lface): Likewise. Handle alternate families here.
1179 If registry is nil, try iso8859-1 and ascii-0.
1180 (font_open_for_lface): Pay attention to size in ENTITY.
1181 (font_open_by_name): Simplify by calling font_load_for_lface.
1182 (free_font_driver_list): Delete it.
1183 (font_update_drivers): Preserve the order of backends.
1184 (syms_of_font): Setting of sort_shift_bits adjusted for the change
1185 of font_score and font_sort_entites.
1186 (font_update_sort_order): Likewise.
1187
1188 * xfaces.c (LFACE_FOUNDRY): New macro.
1189 (check_lface_attrs): Check foundry.
1190 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
1191 (merge_face_vectors): Check foundry.
1192 (merge_face_ref): Likewise.
1193 (Finternal_set_lisp_face_attribute): Likewise.
1194 (x_update_menu_appearance): Likewise.
1195 (Finternal_get_lisp_face_attribute): Likewise.
1196 (lface_hash): Likewise.
1197 (lface_same_font_attributes_p): Likewise.
1198 (x_supports_face_attributes_p): Likewise.
1199 (tty_supports_face_attributes_p): Likewise.
1200 (Finternal_set_alternative_font_family_alist): Intern strings.
1201 (Finternal_set_alternative_font_registry_alist): Downcase strings.
1202 (realize_default_face): Set LFACE_FOUNDRY (lface).
1203
1204 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
1205 font-driver at first.
1206
1207 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
1208
1209 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1210
1211 * lread.c (Fload): Use xfree, not free on saved_doc_string.
1212
1213 2008-06-12 Jim Meyering <meyering@redhat.com>
1214
1215 Make unexec_free handle NULL the same way free does.
1216 * unexmacosx.c (unexec_free): Ignore a NULL argument.
1217
1218 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
1219
1220 * character.h (CHAR_TO_BYTE_SAFE): New macro.
1221 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
1222 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
1223 (WEAK_ALIAS): Simplify.
1224 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
1225 when searching a unibyte buffer.
1226
1227 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
1228
1229 * xfns.c (Fx_select_font): Rename from x-font-dialog.
1230
1231 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
1232
1233 * w32font.c: Include ctype.h.
1234
1235 2008-06-11 Jason Rumney <jasonr@gnu.org>
1236
1237 * w32font.c (w32font_encode_char): Detect missing glyphs that are
1238 misreported as space.
1239 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
1240 as aliases for registry iso10646-1.
1241
1242 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
1243
1244 * buffer.c (clone_per_buffer_values): Skip `name'.
1245
1246 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
1247
1248 * font.c (font_parse_fcname): Fix last change; accept decimal
1249 points in font size.
1250
1251 2008-06-10 Jason Rumney <jasonr@gnu.org>
1252
1253 * w32uniscribe.c (add_opentype_font_name_to_list):
1254 Skip non unicode fonts.
1255
1256 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
1257
1258 * xfns.c (Fx_font_dialog): New function.
1259
1260 * gtkutil.c (xg_dialog_response_cb): Rename from
1261 xg_file_response_callback.
1262 (pop_down_dialog): Rename from pop_down_file_dialog.
1263 (xg_get_file_name): Callers changed.
1264 (xg_get_font_name): New function.
1265
1266 * gtkutil.h (xg_get_font_name): Insert prototype.
1267
1268 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1269
1270 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
1271 x_underline_minimum_display_offset.
1272 (syms_of_xdisp): Declare it here rather than in xterm.c.
1273 * dispextern.h (underline_minimum_offset): Declare it.
1274 * w32term.c (x_draw_glyph_string): Use it.
1275 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
1276 (syms_of_xterm): Don't declare it any more.
1277 (x_draw_glyph_string): Adjust to the new name.
1278
1279 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
1280
1281 * xterm.c (x_underline_minimum_display_offset): New var.
1282 (x_draw_glyph_string): Use it.
1283 (syms_of_xterm): Declare it.
1284
1285 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
1286
1287 * font.c (font_parse_fcname): Accept GTK-style font names too.
1288
1289 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1290
1291 * dired.c (file_name_completion): Don't return t if the match is exact
1292 but with different capitalization.
1293 * minibuf.c (Ftry_completion): Simplify.
1294
1295 * window.c (Vwindow_point_insertion_type): New var.
1296 (set_window_buffer): Use it.
1297 (syms_of_window): Init and export it to Lisp.
1298
1299 2008-06-10 Kenichi Handa <handa@m17n.org>
1300
1301 * font.h (font_intern_prop): Prototype adjusted.
1302
1303 * font.c (font_intern_prop): New arg force_symbol.
1304 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
1305 Adjust for the change of font_intern_prop.
1306
1307 * ftfont.c (ftfont_pattern_entity):
1308 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
1309 (w32_registry):
1310 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
1311 the change of font_intern_prop.
1312
1313 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
1314
1315 * w32menu.c (digest_single_submenu): Declare extern.
1316
1317 2008-06-09 Jason Rumney <jasonr@gnu.org>
1318
1319 * w32term.c (x_make_frame_visible): Use alternate restore flags.
1320
1321 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
1322 (parse_single_submenu): Remove.
1323 (digest_single_submenu): Remove.
1324 (syms_of_w32menu): Don't initialise variables that have moved
1325 to menu.c.
1326 (set_frame_menubar): Sync with version in xmenu.c.
1327 (w32_menu_show): Sync with xmenu_show in xmenu.c.
1328
1329 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
1330 Make static again.
1331
1332 2008-06-09 Jason Rumney <jasonr@gnu.org>
1333
1334 Changes to w32 files related to the move of common menu code
1335 to menu.c on 2008-06-08 by Chong Yidong.
1336
1337 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
1338 defs to w32gui.h.
1339 (single_keymap_panes, push_menu_item, push_menu_pane):
1340 Make globally visible.
1341
1342 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
1343 (local_free, malloc_widget_value, free_widget_value)
1344 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
1345 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
1346 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
1347 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
1348 (menu_items, menu_items_allocated, menu_items_used)
1349 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
1350 (init_menu_items, finish_menu_items, discard_menu_items)
1351 (grow_menu_items, push_submenu_start, push_submenu_end)
1352 (push_left_right_boundary, push_menu_pane, push_menu_item)
1353 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
1354 (free_menubar_widget_tree_value, parse_single_submenu)
1355 (update_submenu_strings): Remove functions.
1356 (xmalloc_widget_value): Remove and declare extern.
1357
1358 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
1359 (OBJ1): Build it.
1360
1361 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
1362 (local_heap, local_alloc, local_free, malloc_widget_value)
1363 (free_widget_value): Define here.
1364
1365 2008-06-09 Kenichi Handa <handa@m17n.org>
1366
1367 * font.h (Qascii_0): Extern it.
1368
1369 * font.c (Qascii_0): New variable.
1370 (syms_of_font): DEFSYM it.
1371 (font_open_by_name): If the registry "iso8859-1" fails, try also
1372 "ascii-0".
1373
1374 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
1375
1376 2008-06-08 Kenichi Handa <handa@m17n.org>
1377
1378 * .gdbinit (xfont): New command.
1379
1380 2008-06-08 Andreas Schwab <schwab@suse.de>
1381
1382 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
1383 * Makefile.in (menu.o): Update dependencies.
1384
1385 * Makefile.in (obj): Always add menu.o.
1386 * emacs.c (main): Always call syms_of_menu.
1387 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
1388
1389 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
1390
1391 * Makefile.in: Compile menu.c.
1392
1393 * lisp.h: Declare syms_of_menu.
1394
1395 * emacs.c (main): Call syms_of_menu.
1396
1397 * keyboard.h: Relocate platform-independent menu definitions from
1398 xmenu.c.
1399
1400 * menu.c: New file. Relocate platform-independent menu
1401 definitions from xmenu.c. Suggested by Adrian Robert.
1402
1403 * xmenu.c: Remove platform-independent menu definitions.
1404 (menu_items menu_items_inuse, menu_items_allocated)
1405 (menu_items_used, menu_items_n_panes)
1406 (menu_items_submenu_depth): Move to keyboard.h.
1407 (init_menu_items, finish_menu_items, unuse_menu_items)
1408 (discard_menu_items, restore_menu_items, save_menu_items)
1409 (grow_menu_items, push_submenu_start, push_submenu_end)
1410 (push_left_right_boundary, push_menu_pane, push_menu_item)
1411 (keymap_panes, single_keymap_panes, single_menu_item)
1412 (list_of_panes, list_of_items, find_and_call_menu_selection)
1413 (xmalloc_widget_value, free_menubar_widget_value_tree)
1414 (parse_single_submenu, digest_single_submenu)
1415 (update_submenu_strings): Move to menu.c.
1416
1417 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
1418
1419 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
1420
1421 2008-06-06 Miles Bader <miles@gnu.org>
1422
1423 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
1424 face, not frame default.
1425
1426 2008-06-05 Martin Rudalics <rudalics@gmx.at>
1427
1428 * window.c (pop_up_windows, pop_up_frames)
1429 (display_buffer_reuse_frames, Vpop_up_frame_function)
1430 (Vdisplay_buffer_function, Veven_window_heights)
1431 (Vspecial_display_buffer_names, Vspecial_display_regexps)
1432 (Vspecial_display_function, Vsame_window_buffer_names)
1433 (Vsame_window_regexps, split_height_threshold)
1434 (Vsplit_window_preferred_function): Move those vars to window.el.
1435 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
1436 (Fdisplay_buffer): Move those functions to window.el.
1437 (syms_of_window): Remove corresponding declarations.
1438 (display_buffer): New function.
1439 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
1440 * dispnew.c (Flast_nonminibuf_frame): New function.
1441 * buffer.c (Fpop_to_buffer): Move to window.el.
1442
1443 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1444
1445 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
1446
1447 2008-06-05 Kenichi Handa <handa@m17n.org>
1448
1449 * coding.c (detect_coding): Fix previous change.
1450 (detect_coding_system): Likewise.
1451
1452 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1453
1454 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
1455
1456 * keymap.c (Vminibuffer_local_filename_must_match_map):
1457 Rename from Vminibuffer_local_must_match_filename_map.
1458 (syms_of_keymap):
1459 * minibuf.c (Fcompleting_read): Adjust accordingly.
1460 * commands.h: Rename declaration as well.
1461
1462 2008-06-05 Kenichi Handa <handa@m17n.org>
1463
1464 * font.c (Ffont_spec): Don't use font_parse_family_registry for
1465 family name.
1466 (Ffont_put): Likewise.
1467
1468 * fontset.c (fontset_find_font): Call font_open_for_lface with the
1469 current font-spec.
1470
1471 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
1472 is unspecified.
1473
1474 * xfaces.c (realize_x_face): If the font-related face attributes
1475 are the same as those of default face, realize a new fontset from
1476 default->fontset.
1477 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
1478
1479 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1480
1481 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
1482 (move_it_in_display_line): New wrapper.
1483
1484 * window.c (window_scroll_pixel_based_preserve_x)
1485 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
1486 (window_scroll_pixel_based, window_scroll_line_based):
1487 Use them to preserve column positions.
1488 (syms_of_window): Initialize them.
1489
1490 * indent.c (Fvertical_motion): Extend first arg to allow passing an
1491 (HPOS . VPOS) pair.
1492
1493 * dispextern.h (move_it_in_display_line): Declare.
1494
1495 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
1496
1497 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
1498 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
1499 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
1500
1501 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
1502
1503 * window.c (Fset_window_parameter): Doc fix.
1504 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
1505
1506 2008-06-04 Joakim Verona <joakim@verona.se>
1507
1508 * window.h (struct window): Add new member window_parameters.
1509
1510 * window.c (Fwindow_parameters, Fwindow_parameter)
1511 (Fset_window_parameter): New defuns.
1512 (syms_of_window): Defsubr the new defuns.
1513 (make_window): Initialize window_parameters to nil.
1514
1515 2008-06-04 John Paul Wallington <jpw@pobox.com>
1516
1517 * eval.c (Fdefmacro): Doc fix.
1518
1519 2008-06-04 Kenichi Handa <handa@m17n.org>
1520
1521 * coding.c (detect_coding): Fix handling of coding->head_ascii.
1522 Be sure to call setup_coding_system when we find a proper coding system.
1523 (detect_coding_system): Fix handling of coding->head_ascii.
1524
1525 2008-06-03 Andreas Schwab <schwab@suse.de>
1526
1527 * font.c (font_prop_validate_spacing): Fix last change.
1528
1529 2008-06-03 Kenichi Handa <handa@m17n.org>
1530
1531 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
1532 (font_parse_fcname): Fix handling of unknown key.
1533
1534 * xfont.c (xfont_list): Try an alias.
1535
1536 * charset.c (char_charset): Return NULL if the arg charset_list is
1537 specified and C doesn't belong to any of them.
1538
1539 2008-06-02 Chip Coldwell <coldwell@redhat.com>
1540
1541 * font.c (font_pixel_size): Don't take cdr of an integer.
1542
1543 2008-06-02 Jim Meyering <meyering@redhat.com>
1544
1545 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
1546 * alloc.c (xfree): Return right away for a NULL arg.
1547 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
1548 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
1549 * mac.c (create_apple_event_from_event_ref): Likewise.
1550 (create_apple_event_from_drag_ref, cfstring_create_normalized):
1551 Likewise.
1552 * doprnt.c (doprnt1): Likewise.
1553 * frame.c (frame): Likewise.
1554 * keyboard.c (wipe_kboard): Likewise.
1555 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
1556 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
1557 * term.c (tty_default_color_capabilities, maybe_fatal)
1558 (delete_tty): Likewise.
1559 * w16select.c (string): Likewise.
1560 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
1561 * w32bdf.c (w32_free_bdf_font): Likewise.
1562 * w32fns.c (w32_unload_font): Likewise.
1563 * w32font.c (w32font_close): Likewise.
1564 * window.c (size_window): Likewise.
1565 * xselect.c (receive_incremental_selection): Likewise.
1566 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
1567 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
1568 * w32.c (stat): Likewise.
1569
1570 Remove useless if-before-free tests.
1571 * editfns.c (Fset_time_zone_rule): Likewise.
1572 * lread.c (nosuffix): Likewise.
1573 * ralloc.c (get_bloc): Likewise.
1574 * regex.c (reg_free): Likewise.
1575 * xftfont.c (xftfont_open, xftfont_close): Likewise.
1576 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
1577 * xsmfns.c (smc_save_yourself_CB): Likewise.
1578
1579 2008-06-02 Kenichi Handa <handa@m17n.org>
1580
1581 * font.c (font_find_for_lface): Handle float font size.
1582 (font_open_for_lface): Likewise.
1583
1584 * xfaces.c (x_supports_face_attributes_p): Check face->font before
1585 comparing the properties.
1586
1587 2008-06-01 Jason Rumney <jasonr@gnu.org>
1588
1589 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
1590 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
1591 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
1592 Don't add empty script list.
1593 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
1594
1595 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1596
1597 * Makefile.in (dot, dotdot): Remove, update users.
1598 ".." has been used elsewhere in the file for a long time.
1599 (LIBXT_STATIC): Remove conditional based on unused variable.
1600
1601 2008-06-01 Miles Bader <miles@gnu.org>
1602
1603 * xfaces.c (Vface_remapping_alist): New variable.
1604 (syms_of_xfaces): Initialize it.
1605 (enum named_merge_point_kind): New type.
1606 (struct named_merge_point): Add `named_merge_point_kind' field.
1607 (push_named_merge_point): Make cycle detection respect different
1608 named-merge-point kinds.
1609 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
1610 Remove face-name alias resolution.
1611 (lface_from_face_name): New definition using
1612 `lface_from_face_name_no_resolve'.
1613 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
1614 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
1615 (get_lface_attributes): New definition that layers face-remapping on
1616 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
1617 (lookup_basic_face): New function.
1618 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
1619 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
1620 `get_lface_attributes'.
1621 (face_at_buffer_position): Use `lookup_basic_face' to lookup
1622 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
1623 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
1624
1625 * xdisp.c (init_iterator): Pass base_face_id through
1626 `lookup_basic_face' when we actually use it as a face-id.
1627 (handle_single_display_prop): Use `lookup_basic_face' to lookup
1628 DEFAULT_FACE_ID.
1629
1630 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
1631 lookup the initial face-id.
1632
1633 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
1634
1635 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
1636
1637 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
1638 (Fremove_text_properties): Fix typos in docstrings.
1639
1640 2008-05-31 Kenichi Handa <handa@m17n.org>
1641
1642 * font.c (font_list_entities): Fix the car part of data to be
1643 stored in the cache.
1644
1645 * ftfont.c (ftfont_font_format): Don't use strcasestr.
1646
1647 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1648
1649 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
1650 Add a `test' argument so another predicate than `equal' can be used.
1651 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
1652 (map_char_table): Remove unused vars `c' and `i'.
1653 * lisp.h (Foptimize_char_table): Adjust declaration.
1654 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
1655
1656 2008-05-30 Kenichi Handa <handa@m17n.org>
1657
1658 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
1659 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
1660 defined.
1661
1662 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1663
1664 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
1665 (Fmake_variable_frame_local): Disallow mixing buffer-local and
1666 frame-local settings for the same variable.
1667
1668 2008-05-30 Kenichi Handa <handa@m17n.org>
1669
1670 * fontset.c (Ffont_info): Move to font.c.
1671 (syms_of_fontset): Delete defsubr of Sfont_info.
1672
1673 * font.c (font_style_to_value, font_score): Delete casting of the
1674 args to xstcasecmp.
1675 (register_font_driver): Increment num_font_drivers only when
1676 registering the driver globally.
1677 (Ffont_info): Move from fontset.c. Handle a font object too.
1678 (syms_of_font): Defsubr Sfont_info.
1679
1680 2008-05-29 Kenichi Handa <handa@m17n.org>
1681
1682 * coding.h (enum define_coding_utf8_arg_index): New enum.
1683 (enum coding_attr_index): Change coding_attr_utf_16_bom to
1684 coding_attr_utf_bom.
1685 (enum utf_bom_type): Rename from utf_16_bom_type.
1686 (struct utf_16_spec): Adjust for the above change.
1687 (struct coding_system): Add utf_8_bom in `spec' union.
1688
1689 * coding.c (CODING_UTF_8_BOM): New macro.
1690 (enum coding_category): Delete coding_category_utf_8, add
1691 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
1692 coding_category_utf_8_sig.
1693 (CATEGORY_MASK_UTF_8): Delete it.
1694 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
1695 (CATEGORY_MASK_UTF_8_SIG): New macros.
1696 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
1697 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
1698 CATEGORY_MASK_UTF_8_SIG.
1699 (CATEGORY_MASK_UTF_8): New macro.
1700 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
1701 (detect_coding_utf_8): Check BOM.
1702 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
1703 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
1704 (encode_coding_utf_16): Likewise.
1705 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
1706 (detect_coding, detect_coding_system): Handle utf-8-auto.
1707 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
1708 (syms_of_coding): Fix setting up of Vcoding_category_table.
1709
1710 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
1711
1712 * process.c (Faccept_process_output): If `millisec' is non-nil,
1713 `seconds' default to 0.
1714 (wait_reading_process_output): Also return non-nil if we read output
1715 from a non-running process.
1716
1717 2008-05-29 Jason Rumney <jasonr@gnu.org>
1718
1719 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
1720 `raster' specified.
1721 (add_font_entity_to_list): Allow non-opentype truetype fonts back
1722 in the uniscribe backend, but disallow any font that has no
1723 unicode subrange support.
1724
1725 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
1726
1727 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
1728 Fix typos in docstrings.
1729
1730 2008-05-29 Kenichi Handa <handa@m17n.org>
1731
1732 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
1733 (Fx_family_fonts): Set frame correctly.
1734
1735 2008-05-28 Jason Rumney <jasonr@gnu.org>
1736
1737 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
1738
1739 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1740
1741 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
1742 calling build_annotations.
1743
1744 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
1745
1746 * coding.c (Fdecode_coding_region, Fencode_coding_region)
1747 (Fencode_coding_string):
1748 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
1749 <latin-extra-code-table>: Fix typos in docstrings.
1750 (syms_of_coding) <coding-system-alist>: Doc fix.
1751 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
1752
1753 2008-05-28 Kenichi Handa <handa@m17n.org>
1754
1755 * fontset.c (Ffont_info): Don't call font_close_object.
1756
1757 * font.c (font_parse_family_registry): Use Ffont_put to validate
1758 foundry and family.
1759 (font_delete_unmatched): Don't check spacing.
1760 (font_list_entities): Add spacing to the spec to list fonts.
1761
1762 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
1763 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
1764
1765 * coding.c (encode_coding_raw_text): Fix previous change.
1766 (encode_coding_object): When the dst_object is a buffer and is
1767 different from src_object, move gap to PT.
1768
1769 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1770
1771 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
1772
1773 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1774
1775 * coding.c (encode_coding_raw_text): Set coding->produced_char for
1776 all branches. Compute it differently.
1777
1778 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
1779
1780 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
1781
1782 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
1783 into "else if () ... else ...".
1784
1785 2008-05-27 Jason Rumney <jasonr@gnu.org>
1786
1787 * w32font.c (w32font_open_internal): Determine if glyph indices
1788 are likely to work here.
1789
1790 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
1791
1792 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
1793 draw overlap glyphs with appropriate highlighting.
1794
1795 2008-05-27 Kenichi Handa <handa@m17n.org>
1796
1797 * xfont.c (xfont_open): Fix calculation of font->average_width.
1798
1799 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1800
1801 * casefiddle.c (casify_object): Try to guess better whether the
1802 argument is a byte or a char.
1803
1804 2008-05-26 Andreas Schwab <schwab@suse.de>
1805
1806 * xselect.c (x_reply_selection_request): Properly handle format == 32.
1807 Always send multiples of format size.
1808
1809 * xterm.c (x_set_frame_alpha): Fix type mismatch.
1810
1811 2008-05-26 Jason Rumney <jasonr@gnu.org>
1812
1813 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
1814 (compute_metrics): Don't set failure if we just cleared the cache.
1815 (w32_weight_table): Remove unused variable.
1816 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
1817 backwards compatibility.
1818
1819 2008-05-25 Kenichi Handa <handa@m17n.org>
1820
1821 * w32term.c (x_draw_glyph_string):
1822 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
1823
1824 * xfaces.c: Delete unused function prototypes.
1825 (xstrlwr, font_frame): Delete them.
1826 (clear_face_cache): Delete unused variable.
1827
1828 * xftfont.c (xftfont_open): Delete unused variable.
1829 If underline_thickness is not 1, adjust underline_position.
1830
1831 * ftxfont.c (ftxfont_open): Delete unused variable.
1832
1833 * fontset.c (face_for_char): Optimize for the case of no charset
1834 property.
1835
1836 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
1837 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
1838 (otf_open, font_otf_capability, generate_otf_features)
1839 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1840 Comment out by surrounding "#if 0" and "#endif" for the moment.
1841 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
1842 (syms_of_font): Codes for accessing above commented out.
1843
1844 2008-05-24 Eli Zaretskii <eliz@gnu.org>
1845
1846 * w32proc.c: Include dispextern.h.
1847
1848 * w32.c: Include dispextern.h.
1849
1850 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
1851
1852 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
1853 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
1854 Fix typos in docstrings.
1855
1856 2008-05-23 Jason Rumney <jasonr@gnu.org>
1857
1858 * xsmfns.c: Remove includes that are already included by config.h.
1859
1860 2008-05-23 Kenichi Handa <handa@m17n.org>
1861
1862 * charset.c (Qemacs, charset_emacs): New variables.
1863 (char_charset): Fix for non-Unicode characters.
1864 (syms_of_charset): Define charset_emacs.
1865
1866 * w32term.c (x_draw_glyph_string): Be sure to update
1867 s->underline_thickness and s->underline_position. Be sure to draw
1868 underline within the current line area.
1869
1870 * xterm.c (x_draw_glyph_string): Be sure to update
1871 s->underline_thickness and s->underline_position. Be sure to draw
1872 underline within the current line area.
1873
1874 * fontset.c: Delete unused variables and add casting for char *
1875 throughout the file.
1876 (fontset_font): Try the fallback fonts of the current fontset
1877 before consulting the default fontset.
1878
1879 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
1880
1881 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
1882
1883 2008-05-22 Jason Rumney <jasonr@gnu.org>
1884
1885 * font.c: Don't include strings.h.
1886
1887 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
1888
1889 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
1890 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
1891 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
1892 to call xstrcasecmp.
1893
1894 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
1895
1896 * fontset.c (fs_query_fontset): Use xstrcasecmp.
1897
1898 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
1899
1900 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
1901
1902 2008-05-22 Kenichi Handa <handa@m17n.org>
1903
1904 * puresize.h (BASE_PURESIZE): Increase to 1220000.
1905
1906 * font.c (font_prop_validate_style): Adjust for the format
1907 change of font_style_table.
1908
1909 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
1910 two args.
1911
1912 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
1913 two args.
1914
1915 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
1916
1917 * minibuf.c (keys_of_minibuf): Delete.
1918 * lisp.h (keys_of_minibuf): Delete.
1919 * emacs.c (main): Don't call keys_of_minibuf.
1920
1921 2008-05-22 Kenichi Handa <handa@m17n.org>
1922
1923 * ftfont.c (ftfont_resolve_generic_family): Rename from
1924 ftfont_list_generic_family. Return a single family for each
1925 generic family.
1926 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
1927 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
1928 Call font_add_log.
1929 (ftfont_match): Call font_add_log.
1930
1931 * font.h (Ffont_xlfd_name): EXFUN adjusted.
1932 (FONT_DEBUG): Define it.
1933 (font_add_log): Extern it.
1934 (font_assert): Rename from xassert.
1935
1936 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
1937 (xfont_list_family): Call font_add_log.
1938 (xfont_match): Likewise.
1939 (memq_no_quit): Delete.
1940
1941 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
1942 call of Ffont_xlfd_name.
1943
1944 * xfaces.c (struct table_entry, slant_table, weight_table)
1945 (swidth_table): Move to font.c.
1946
1947 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
1948 xassert are changed to font_assert. Delete many unused variables.
1949 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
1950 New variables.
1951 (struct table_entry): Move from xfaces.c and modified.
1952 (weight_table, slant_table, width_table): Move from xfaces.c and
1953 contents adjusted for the change of struct table_entry.
1954 (font_style_to_value, font_style_symbolic): Adjust for the
1955 format change of font_style_table.
1956 (font_parse_family_registry): Don't overwrite existing foundry and
1957 family of font_spec.
1958 (font_score): Fix calculation of diff for sizes.
1959 (font_sort_entites): Call font_add_log.
1960 (font_delete_unmatched): Return a newly created list.
1961 (font_list_entities): Fix previous change. Call font_add_log.
1962 (font_matching_entity, font_open_entity, font_close_entity):
1963 Call font_add_log.
1964 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
1965 (Finternal_set_font_style_table): Delete.
1966 (BUILD_STYLE_TABLE): New macro.
1967 (build_style_table): New function.
1968 (Vfont_log, font_log_env_checked): New variables.
1969 (font_add_log): New function.
1970 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
1971 Declare Lisp variables "font-weight-table", "font-slant-table",
1972 "font-width-table", and "font-log". Initialize font_style_table.
1973
1974 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
1975
1976 * xterm.c (x_set_frame_alpha): Move declarations before statements.
1977
1978 2008-05-21 Seiji Zenitani <zenitani@mac.com>
1979 Ryo Yoshitake <ryo@shiftmode.net>
1980
1981 * frame.c (Qalpha): Add a new frame parameter `alpha'.
1982 (Vframe_alpha_lower_limit): New variable.
1983 (x_set_alpha): New function.
1984
1985 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
1986
1987 * xfns.c (x-create-frame, Qalpha):
1988 Initialize the frame parameter `alpha'.
1989 * xterm.c (OPAQUE, OPACITY): New.
1990 (x_set_frame_alpha): New function.
1991 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
1992
1993 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
1994 * w32fns.c (w32_frame_parm_handlers): Likewise.
1995
1996 2008-05-20 Jason Rumney <jasonr@gnu.org>
1997
1998 * w32font.c (add_font_entity_to_list): Don't add non-opentype
1999 truetype fonts to opentype list.
2000
2001 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
2002
2003 * fontset.c (Ffontset_info): Doc fix.
2004 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
2005 <ignore-relative-composition>: Fix typos in docstrings.
2006
2007 * font.c (syms-of-font) <font-encoding-alist>:
2008 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
2009 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
2010 (Ffont_otf_alternates): Doc fixes.
2011
2012 2008-05-20 Kenichi Handa <handa@m17n.org>
2013
2014 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
2015 font.h through out the file.
2016 (FONT_DRIVERS): Rename from FONTOBJ.
2017 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
2018 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
2019
2020 * emacs.c (main): Call syms_of_font unconditionally.
2021
2022 * font.h (find_font_encoding): Extern it.
2023
2024 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
2025 fontset.c.
2026 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
2027 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
2028 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
2029 only when HAVE_WINDOW_SYSTEM is defined.
2030 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
2031 when HAVE_WINDOW_SYSTEM is defined.
2032
2033 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
2034 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
2035
2036 * xfaces.c: Include font.h unconditionally.
2037 (merge_face_ref, merge_face_vectors)
2038 (Finternal_set_lisp_face_attribute): Cancel the previous change.
2039
2040 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
2041
2042 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
2043 indirect_variable.
2044 * eval.c (lisp_indirect_variable): New fun.
2045 (Fuser_variable_p): Use it.
2046
2047 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2048
2049 * lisp.h (indirect_variable):
2050 * data.c (indirect_variable, let_shadows_buffer_binding_p):
2051 Use Lisp_Symbol pointers rather than Lisp_Object.
2052 Adjust callers.
2053 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
2054 To this end, change calling-convention.
2055
2056 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
2057 if some non-hidden buffers are selected by string&pred.
2058
2059 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
2060
2061 * process.c (wait_reading_process_output): Always check status
2062 when in batch mode.
2063
2064 2008-05-19 Kenichi Handa <handa@m17n.org>
2065
2066 * font.c (font_list_entities): Fix handling of cache.
2067 (font_matching_entity): Likewise.
2068
2069 * ftfont.c (cs_iso8859_1): Delete.
2070 (ft_face_cache): New variable.
2071 (struct ftfont_info): New member fc_charset_idx.
2072 (ftfont_build_basic_charsets): Delete.
2073 (fc_charset_table): New variable.
2074 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
2075 . FC_CHARSET_IDX) as :font-entity property in the font entity.
2076 Callers changed.
2077 (ftfont_lookup_cache, ftfont_get_charset): New functions.
2078 (ftfont_spec_pattern): New argument fc_charset_idx.
2079 Check registry more rigidly. Change callers.
2080 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
2081 change of :font-entity property of the font.
2082
2083 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
2084 property of the font.
2085
2086 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
2087
2088 * coding.c (Fcoding_system_p): Rename argument to match docstring.
2089 (Funencodable_char_position, Fcheck_coding_systems_region)
2090 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
2091 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
2092 (Ffind_operation_coding_system, Fset_coding_system_priority)
2093 (Fcoding_system_eol_type): Doc fixes.
2094
2095 2008-05-17 Glenn Morris <rgm@gnu.org>
2096
2097 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
2098
2099 2008-05-16 Eli Zaretskii <eliz@gnu.org>
2100
2101 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
2102 and st_gid.
2103
2104 * frame.c (Fdelete_frame): Don't call font_update_drivers if
2105 HAVE_WINDOW_SYSTEM is not defined.
2106
2107 * xfaces.c (merge_face_ref, merge_face_vectors)
2108 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
2109 HAVE_WINDOW_SYSTEM is defined.
2110 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
2111
2112 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
2113
2114 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
2115
2116 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2117
2118 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
2119
2120 2008-05-15 Kenichi Handa <handa@m17n.org>
2121
2122 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
2123 preference.
2124
2125 2008-05-15 Glenn Morris <rgm@gnu.org>
2126
2127 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
2128
2129 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
2130
2131 * fns.c (init_fns): Don't initialize weak_hash_tables here.
2132 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
2133
2134 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
2135
2136 2008-05-15 Kenichi Handa <handa@m17n.org>
2137
2138 * ftfont.c (ftfont_list): Downcase family name to check generic
2139 families.
2140
2141 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
2142 font-spec for QCfont value.
2143
2144 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
2145 buffer. Check the return value of it.
2146
2147 2008-05-14 Jason Rumney <jasonr@gnu.org>
2148
2149 * w32term.c (w32_get_glyph_overhangs): Remove.
2150 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
2151
2152 2008-05-14 Kenichi Handa <handa@m17n.org>
2153
2154 * font.c (font_prop_validate): Make nil a valid value.
2155 (font_clear_cache): Check if the cached vector of entities is nil
2156 or not.
2157
2158 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2159
2160 * emacs.c (main_thread): Conditionalize on
2161 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2162 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
2163
2164 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
2165 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
2166 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2167
2168 2008-05-14 Kenichi Handa <handa@m17n.org>
2169
2170 * coding.c (detect_coding_iso_2022): Ignore a coding category that
2171 has no corresponding coding system.
2172
2173 2008-05-14 Jason Rumney <jasonr@gnu.org>
2174
2175 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
2176
2177 * w32font.h (w32font_open_internal): Update declaration.
2178
2179 * w32font.c (w32font_open_internal): Change last argument from
2180 w32font_info struct to font object. Fill in font object from
2181 font_entity. Get Outline metrics if possible. Use them to
2182 calculate underline position and thickness. Use xlfd name as name
2183 property. Don't set codepage.
2184 (w32font_open): Pass font_object to w32font_open_internal. Don't
2185 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
2186 (w32font_draw): Use s->font.
2187 (clear_cached_metrics): Don't clear non-existent blocks.
2188
2189 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
2190 font was not found.
2191 (x_draw_glyph_string): Use underline position and thickness from font.
2192
2193 * w32uniscribe.c (uniscribe_open): Pass font_object to
2194 w32font_open_internal.
2195
2196 2008-05-14 Kenichi Handa <handa@m17n.org>
2197
2198 These changes are to delete all legacy font-handling codes, and
2199 make Emacs use only font-backends.
2200
2201 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
2202 (frame.o, image.o, print.o): Depend on $(FONTSRC).
2203
2204 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
2205
2206 * charset.h (Vcharset_non_preferred_head)
2207 (Vcurrent_iso639_language): Extern them.
2208
2209 * charset.c (Vcharset_non_preferred_head): New variable.
2210 (Vcurrent_iso639_language): New variable.
2211 (syms_of_charset): Declare it as a Lisp variable.
2212 (char_charset): Don't check non preferred charsets. As a last
2213 resort, return charset_unicode.
2214 (Fset_charset_priority): Update Vcharset_non_preferred_head.
2215
2216 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
2217 conditionals. Don't check enable_font_backend. Delete all codes
2218 used only when USE_FONT_BACKEND is not defined.
2219
2220 * dispextern.h (struct glyph_string): Change type of `font' to
2221 `struct font *'.
2222 (struct glyph_string): New member underline_position and
2223 underline_thickness.
2224 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
2225 (struct face): Change type of `font' to `struct font *'. Remove
2226 members `font_name', `font_info_id'.
2227 (per_char_metric, encode_char): Delete externs.
2228 (calc_pixel_width_or_height): Adjust the prototype.
2229
2230 * emacs.c (enable_font_backend): Delete extern.
2231 (main): Don't set enable_font_backend. Don't check the command
2232 line argument "-disable-font-backend".
2233
2234 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
2235 (enum font_property_index): New members FONT_DPI_INDEX,
2236 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
2237 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
2238 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
2239 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
2240 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
2241 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
2242 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
2243 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
2244 (struct font_spec, struct font_entity): New structs.
2245 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
2246 (struct font): Many members from old "struct font_info" moved to
2247 here. Members font and entity deleted.
2248 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
2249 the new font-related objects.
2250 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
2251 (CHECK_FONT_GET_OBJECT): Likewise.
2252 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
2253 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
2254 (struct font_driver): New members case_sensitive anc check. Type
2255 of the member list and open changed.
2256 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
2257 (font_symbolic_width, font_find_object, font_get_spec)
2258 (font_set_lface_from_name): Delete extern.
2259 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
2260
2261 * font.c: Include <strings.h>.
2262 (enable_font_backend): Delete it.
2263 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
2264 (CHECK_VALIDATE_FONT_SPEC): Delete it.
2265 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
2266 (null_string): Delete it.
2267 (null_vector): Make it static.
2268 (font_family_alist): Delete it.
2269 (Qnormal): Extern it.
2270 (QCextra, QClanguage): Delete it.
2271 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
2272 (font_make_spec, font_make_entity, font_make_object)
2273 (font_intern_prop): Renamed from intern_downcase. Don't downcase
2274 the string. Callers changed.
2275 (font_pixel_size): Adjusted for the format change of font-related
2276 objects.
2277 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
2278 (font_style_to_value, font_style_symbolic): New function.
2279 (build_font_family_alist): Delete it.
2280 (font_registry_charsets): Use Fassoc_string instead of
2281 assq_no_quit.
2282 (font_prop_validate_symbol): Don't return null_string.
2283 (font_prop_validate_style): Adjusted for the change of
2284 style-related values in a font vector.
2285 (font_property_table): Delete entries for QClanguage and
2286 QCantialias, add entries for QCavgwidth.
2287 (get_font_prop_index): Delete the 2nd argument FROM.
2288 (font_prop_validate): Arguments changed.
2289 (font_put_extra): Adjusted for the change of font-related objects.
2290 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
2291 (font_parse_fcname, font_unparse_fcname)
2292 (font_prepare_composition): Likewise.
2293 (font_parse_family_registry): Renamed from font_merge_old_spec.
2294 (otf_open): Delete the 1st arg entity.
2295 (font_otf_capability): Adjusted for the above change.
2296 (font_score): New arg alternate_families. Adjusted for the change
2297 of font-related objects.
2298 (font_sort_entites): New arg best_only.
2299 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
2300 Delete them.
2301 (font_match_p): Check alternate families.
2302 (font_find_object): Delete it.
2303 (font_check_object): New function.
2304 (font_clear_cache): Adjusted for the change of font-related objects.
2305 (font_delete_unmatched): New arg.
2306 (font_list_entities): Call font_driver->list with a spec that
2307 doesn't specify style-related properties.
2308 (font_matching_entity): Arguments changed. Caller changed.
2309 (font_open_entity): Adjusted for the change of font-related objects.
2310 (font_close_object, font_has_char, font_encode_char)
2311 (font_get_name, font_get_spec): Likewise.
2312 (font_spec_from_name, font_clear_prop, font_update_lface):
2313 New functions.
2314 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
2315 (font_prepare_for_face, font_done_for_face, font_open_by_name)
2316 (font_at): Adjusted for the change of font-related objects.
2317 (font_range): New function.
2318 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
2319 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
2320 (Fcopy_font_spec, Fmerge_font_spec): New function.
2321 (Ffont_family_list): Renamed from list-families.
2322 (Finternal_set_font_style_table): Arguments changed.
2323 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
2324 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
2325 change of font-related objects.
2326 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
2327
2328 * fontset.h (struct font_info): Delete it. Most members go to
2329 struct font.
2330 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
2331 (enum FONT_SPEC_INDEX): Delete it.
2332 (font_info, list_fonts_func, load_font_func, query_font_func)
2333 (set_frame_fontset_func, find_ccl_program_func)
2334 (get_font_repertory_func, new_fontset_from_font_name): Delete
2335 externs.
2336 (fontset_from_font_name): Extern it.
2337 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
2338 (FONT_INFO_FROM_FACE): Deleted.
2339 (face_for_font): Adjust prototype.
2340
2341 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
2342 conditionals. Don't check enable_font_backend. Delete all codes
2343 used only when USE_FONT_BACKEND is not defined.
2344 (get_font_info_func, list_font_func, load_font_func)
2345 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
2346 (get_font_repertory_func): Delete them.
2347 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
2348 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
2349 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
2350 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
2351 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
2352 (fontset_compare_rfontdef): New function.
2353 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
2354 ront-defs by qsort. Adjusted for the change of font-group vector.
2355 (load_font_get_repertory): Deleted.
2356 (fontset_find_font): Use new macros to ref/set elements of
2357 font-def and rfont-def.
2358 (fontset_font): Fix the timing of remembering that no font for C.
2359 (free_face_fontset): Do nothing if the face has no fontset.
2360 (face_suitable_for_char_p): Use new macros to ref/set elements of
2361 rfont-def.
2362 (face_for_char): Likewise. Call face_for_char with font_object.
2363 (fs_load_font): Delete. Delete #pragma surrounding it.
2364 (fs_query_fontset): Use strcasecmp instead of strcmp.
2365 (generate_ascii_font_name): Adjusted for the format change of
2366 font-spec.
2367 (Fset_fontset_font): Likewise. Use new macros to set elements of
2368 font-def.
2369 (Fnew_fontset): Use font_unparse_xlfd to generate
2370 FONTSET_ASCII (fontset).
2371 (new_fontset_from_font_name): Deleted.
2372 (fontset_from_font): Renamed from new_fontset_from_font. Check if
2373 a fontset is already created for the font. FIx updating of
2374 Vfontset_alias_alist.
2375 (fontset_ascii_font): Deleted.
2376 (Ffont_info): Adjusted for the format change of font-spec.
2377 (Finternal_char_font): Likewise.
2378 (Ffontset_info): Likewise.
2379 (syms_of_fontset): Don't check load_font_func.
2380
2381 * fns.c (internal_equal): Handle PREV_FONT.
2382
2383 * frame.h: Delete USE_FONT_BACKEND conditional.
2384
2385 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
2386 conditionals. Don't check enable_font_backend. Delete all codes
2387 used only when USE_FONT_BACKEND is not defined.
2388 (x_set_font): Call x_new_font, not x_new_fontset2.
2389 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
2390 already set for the frame.
2391
2392 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
2393 a font-entity by font_make_entity. Use font_intern_prop instead
2394 of intern_downcase. Use FONT_SET_STYLE to set a style-related
2395 font property. If a font is scalable, set avgwidth property to 0.
2396 Set font-entity property by font_put_extra.
2397 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
2398 (ffont_driver): Adjusted for the change of struct font_driver.
2399 (ftfont_spec_pattern): New function.
2400 (ftfont_list): Return a list, not vector.
2401 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
2402 (ftfont_list_family): Don't downcase names.
2403 (ftfont_free_entity): Deleted.
2404 (ftfont_open): Return a font-ojbect. Adjusted for the change of
2405 struct font. Get underline_thickness and underline_position from
2406 font property. Don't update dpyinfo->smallest_font_height and
2407 dpyinfo->smallest_char_width.
2408 (ftfont_close): Don't free `struct font'.
2409 (ftfont_has_char): Adjusted for the format change of font-entity.
2410 (ftfont_encode_char, ftfont_text_extents): Likewise.
2411
2412 * ftxfont.c (ftxfont_list): Return a list, not vector.
2413 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
2414 struct font. Get underline_thickness and underline_position from
2415 font property. Don't update dpyinfo->smallest_font_height and
2416 dpyinfo->smallest_char_width.
2417 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
2418 (ftxfont_draw): Adjusted for the change of struct font.
2419
2420 * image.c (image_ascent): Don't include "charset.h". Include
2421 "character.h" and "font.h".
2422
2423 * lisp.h (enum pvec_type): New member PREV_FONT.
2424 (Fassoc_string): EXFUN it.
2425
2426 * print.c: Include font.h.
2427 (print_object): Handle font-related objects.
2428
2429 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
2430 conditionals. Don't check enable_font_backend. Delete all codes
2431 used only when USE_FONT_BACKEND is not defined.
2432 (handle_auto_composed_prop): Do nothing if it->f is not on a
2433 window system. Check how many following characters can be
2434 displayed by the same font.
2435 (calc_pixel_width_or_height): Type of the 4th arg is changed to
2436 'struct font *'.
2437 (get_char_face_and_encoding): Assign the whole encoding task to
2438 the `encode-char' method of a font driver.
2439 (fill_composite_glyph_string): Adjusted for the change of `struct
2440 face' and `struct glyph_string'.
2441 (fill_glyph_string): Likewise.
2442 (get_per_char_metric): Arguments changed.
2443 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
2444 and `struct glyph_string'.
2445 (produce_stretch_glyph, calc_line_height_property)
2446 (x_produce_glyphs): Likewise.
2447
2448 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
2449 conditionals. Don't check enable_font_backend. Delete all codes
2450 used only when USE_FONT_BACKEND is not defined. Use
2451 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
2452 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
2453 (Qp): Extern them.
2454 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
2455 Deleted.
2456 (struct font_name): Deleted.
2457 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
2458 (compare_fonts_by_sort_order): New function.
2459 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
2460 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
2461 Deleted.
2462 (Fx_family_fonts): Use font_list_entities, and sort fonts by
2463 compare_fonts_by_sort_order.
2464 (Fx_font_family_list): Call Ffont_family_list.
2465 (face_numeric_value, face_numeric_weight, face_numeric_slant)
2466 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
2467 (face_symbolic_slant, face_symbolic_swidth)
2468 (split_font_name_into_vector, build_font_name_from_vector)
2469 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
2470 (font_rescale_ratio, split_font_name, build_font_name)
2471 (free_font_names, sort_fonts, x_face_list_fonts)
2472 (face_font_available_p, sorted_font_list, cmp_font_names)
2473 (font_list_1, concat_font_list, font_list, remove_duplicates):
2474 Deleted.
2475 (Fx_list_fonts): Use Ffont_list.
2476 (LFACE_AVGWIDTH): Deleted.
2477 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
2478 by FONTP.
2479 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2480 (set_lface_from_font_name): Delete it.
2481 (set_lface_from_font): Renamed from
2482 set_lface_from_font_and_fontset. Caller changed. Don't set
2483 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
2484 for face.
2485 (merge_face_vectors): Copy font-spec if necessary.
2486 Clear properties of the font-spec if necessary.
2487 (merge_face_ref): Clear properties of the font-spec if necessary.
2488 (Finternal_set_lisp_face_attribute): Likewise.
2489 (set_font_frame_param): Use font_load_for_lface to load a
2490 font-object, and call Fmodify_frame_parameters with it.
2491 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
2492 font name by Ffont_xlfd_name.
2493 (Finternal_lisp_face_attribute_values): Don't check QCweight,
2494 QCslant, and QCwidth.
2495 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
2496 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
2497 Compare fonts by EQ.
2498 (lookup_non_ascii_face): Deleted.
2499 (face_for_font): The 2nd argument changed.
2500 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
2501 Check atomic font properties by case insensitive.
2502 (realize_non_ascii_face): Set face->overstrike correctly.
2503 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
2504 (dump_realized_face): Get font name from
2505 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
2506
2507 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
2508 conditionals. Don't check enable_font_backend. Delete all codes
2509 used only when USE_FONT_BACKEND is not defined.
2510 (xic_create_xfontset): Original code deleted and renamed from
2511 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
2512 (x_make_gc): Don't set GCFont in GCs.
2513 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
2514 opened by "fixed".
2515 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
2516 find_ccl_program_func, query_font_func, set_frame_fontset_func,
2517 get_font_repertory_func.
2518
2519 * xfont.c: Include <stdlib.h> and "ccl.h".
2520 (struct xfont_info): New structure.
2521 (xfont_query_font): Deleted.
2522 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
2523 moved from xterm.c.
2524 (xfont_driver): Adjusted for the change of struct font_driver.
2525 (compare_font_names): New function.
2526 (xfont_list_pattern): Sort font names case insensitively. Make
2527 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
2528 (xfont_list): Return a list, not vector.
2529 (xfont_match): If the font doesn't have QCname property, generate
2530 a name from the other font properties.
2531 (xfont_open): Return a font-ojbect. Adjusted for the change of
2532 struct font. Get underline_thickness and underline_position from
2533 font property. Don't update dpyinfo->smallest_font_height and
2534 dpyinfo->smallest_char_width.
2535 (xfont_close): Don't free struct font.
2536 (xfont_prepare_face): Adjusted for the change of struct font.
2537 (xfont_done_face): Deleted.
2538 (xfont_has_char): Adjusted for the change of struct font.
2539 (xfont_encode_char, xfont_draw): Likewise.
2540 (xfont_check): New function.
2541
2542 * xftfont.c (xftfont_list): Adjusted for the change of `list'
2543 callback function.
2544 (xftfont_match): Adjusted for the fontmat change of font-entity.
2545 (xftfont_open): Adjusted for the format change of font-entity and
2546 font-object. Adjusted for the change of struct font. Return a
2547 font-object. Don't update dpyinfo->smallest_font_height and
2548 dpyinfo->smallest_char_width.
2549 (xftfont_close): Block input while calling XftFontClose.
2550 (xftfont_prepare_face): Don't block input while calling
2551 xftfont_get_colors. Adjusted for the change of struct font.
2552 (xftfont_shape): Return value of error case fixed.
2553
2554 * xrdb.c (x_load_resources): Don't setup a fontset resource.
2555
2556 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
2557 conditionals.
2558 (FONT_WIDTH): Return (f)->max_width.
2559 (struct x_display_info): Delete member `font'.
2560 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
2561 (x_find_ccl_program, x_get_font_repertory): Delete externs.
2562 (struct x_output): Change type of `font' to `struct font *'.
2563
2564 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
2565 conditionals. Don't check enable_font_backend. Delete all codes
2566 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
2567 (x_per_char_metric, x_encode_char): Deleted.
2568 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
2569 (x_compute_glyph_string_overhangs): Adjusted for the change of
2570 `struct face'.
2571 (x_draw_glyph_string_foreground)
2572 (x_draw_composite_glyph_string_foreground): Likewise.
2573 (x_draw_glyph_string): Likewise. Use font->underline_position and
2574 font->underline_thickness.
2575 (x_new_font): Renamed from x_new_fontset2.
2576 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
2577 (x_check_font): Call `check' method of a font driver.
2578 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
2579 (x_query_font, x_get_font_repertory): Deleted.
2580 (x_find_ccl_program): Renamed and moved to xfont.c.
2581 (x_redisplay_interface): Adjusted for the change of `struct
2582 redisplay_interface'.
2583
2584 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
2585 conditionals. Don't check enable_font_backend. Delete all codes
2586 used only when USE_FONT_BACKEND is not defined. Surround non-used
2587 code by "#ifdef OLD_FONT" and "endif".
2588 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
2589
2590 * w32font.h (struct w32font_info): New member.
2591 (FONT_COMPAT): New macro.
2592 (w32font_open_internal): Prototype adjusted.
2593
2594 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
2595 OLD_FONT" and "endif".
2596
2597 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
2598 conditionals. Don't check enable_font_backend. Delete all codes
2599 used only when USE_FONT_BACKEND is not defined.
2600 (w32font_open): Return a font-object. Make a font-object by
2601 font_make_object. Adjusted for the change of struct w32font_info.
2602 (w32font_close): Don't free struct font. Adjusted for the change
2603 of struct w32font_info.
2604 (w32font_encode_char, w32font_text_extents, w32font_draw):
2605 Adjusted for the change of struct w32font_info.
2606 (w32font_draw): Likewise.
2607 (w32font_list_internal): Return a list, not vector.
2608 (w32font_open_internal): Change the 4th arg to font-object.
2609 Adjusted for the change of struct w32font_info and font-object format.
2610 (add_font_name_to_list): Don't downcase names.
2611 (w32_enumfont_pattern_entity): Make a font-entity by
2612 font_make_entity. Adjusted for the format change of font-entity.
2613 Use FONT_SET_STYLE to set a style-related font property. If a
2614 font is scalable, set avgwidth property to 0. Set font-entity
2615 property by font_put_extra.
2616 (font_matches_spec): Adjusted for the format change of font-entity.
2617 (w32_weight_table, w32_decode_weight): New variables.
2618 (w32_encode_weight): New function.
2619 (fill_in_logfont): Adjusted for the format change of font-spec.
2620 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
2621 weight value.
2622 (w32font_driver): Adjusted for the change of struct font_driver.
2623
2624 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
2625 conditionals. Don't check enable_font_backend. Surround non-used
2626 code by "#ifdef OLD_FONT" and "endif".
2627 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
2628 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
2629
2630 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
2631 conditionals. Don't check enable_font_backend. Delete all codes
2632 used only when USE_FONT_BACKEND is not defined. Surround non-used
2633 code by "#ifdef OLD_FONT" and "endif".
2634
2635 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
2636 (uniscribe_open): Return value changed to font-object.
2637 Adjusted for the format change of font-object.
2638 (uniscribe_otf_capability): Adjusted for the change of struct font.
2639 (add_opentype_font_name_to_list): Don't downcase names.
2640 (uniscribe_font_driver): Adjusted for the change of struct
2641 font_driver.
2642
2643 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
2644
2645 * dispnew.c (update_frame_1): Check if tty output is still valid
2646 before flushing it.
2647
2648 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
2649
2650 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
2651 to Gtk+ menus.
2652
2653 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2654
2655 * dired.c (file_name_completion): Tweak the code so as to always do it
2656 in a single pass. Tighten the scope of some variables.
2657
2658 * dired.c (Qdefault_directory): New var.
2659 (file_name_completion): Use it instead of Fexpand_file_name.
2660 (syms_of_dired): Initialize it.
2661
2662 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
2663
2664 * fileio.c (double_dollars): Remove dead code.
2665
2666 2008-05-10 Eli Zaretskii <eliz@gnu.org>
2667
2668 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
2669 Mention w32-get-true-file-attributes in doc string.
2670
2671 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2672
2673 2008-05-09 Glenn Morris <rgm@gnu.org>
2674
2675 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
2676 2008-04-23.
2677
2678 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2679
2680 Support for reporting owner and group of each file on MS-Windows:
2681 * dired.c (stat_uname, stat_gname): New functions, with special
2682 implementation for w32.
2683 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
2684
2685 * w32.c: Rename the_passwd_* to dflt_passwd_*.
2686 (dflt_group_name): New static variable.
2687 (dflt_group): Rename from the_group.
2688 (init_user_info): Init dflt_group fields. Get user's group name
2689 from LookupAccountSid.
2690 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
2691 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
2692 New initialization states.
2693 (globals_of_w32): Initialize them to zero. Initialize the default
2694 group name to "None".
2695 (GetFileSecurity_Name): New global var, the name of the function
2696 to call for GetFileSecurity.
2697 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
2698 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
2699 (get_file_security, get_security_descriptor_owner)
2700 (get_security_descriptor_group, is_valid_sid)
2701 (get_file_security_desc, get_rid, get_name_and_id)
2702 (get_file_owner_and_group): New functions.
2703 (stat): Use get_file_security_desc and get_file_owner_and_group to
2704 report the owner and primary group of each file. Don't ignore the
2705 high 32 bits of file's size, now that st_size is 64-bit wide.
2706 Fix test when to get true file attributes.
2707 (init_user_info): Use get_rid instead of equivalent inline code.
2708 (fstat): Don't ignore the high 32 bits of file's size.
2709
2710 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
2711
2712 * image.c (png_load): Use correct bit-depth for setting background
2713 color.
2714
2715 2008-05-08 Eli Zaretskii <eliz@gnu.org>
2716
2717 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
2718 epa-hook.elc.
2719
2720 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
2721
2722 * font.c (Ffont_match_p): Don't use `iff' in docstring.
2723
2724 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2725
2726 * macfns.c (Fx_create_frame): Make a copy of frame parameters
2727 because the original parameters are in pure storage now.
2728 (mac_window): Remove unused params. Update callers.
2729
2730 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2731
2732 * lread.c (substitute_object_recurse): Use lower-level primitives.
2733 Don't signal errors when traversing sub-char-tables.
2734 Don't loop over all the possible characters when traversing char-tables.
2735
2736 * print.c (print_preprocess): Add sub-char-tables to the print-table,
2737 just like we do in print.c.
2738
2739 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2740
2741 * minibuf.c (Ftry_completion): Remove code left over from when we used
2742 scmp instead of Fcompare_strings.
2743
2744 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
2745
2746 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
2747
2748 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2749
2750 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
2751 Create bitmap context in native byte order.
2752
2753 * macterm.c (XDrawLine)
2754 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
2755 context in native byte order.
2756
2757 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2758
2759 * config.in: Regenerate.
2760
2761 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
2762 New definitions for Image I/O support.
2763 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2764 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
2765 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2766 (mac_data_provider_release_data, image_load_image_io)
2767 [USE_MAC_IMAGE_IO]: New functions.
2768 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
2769 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
2770 (init_image_func_pointer) [MAC_OSX]: Remove function.
2771 (image_load_quartz2d) [MAC_OSX]: Check availability of
2772 CGImageCreateWithPNGDataProvider at compile time.
2773 Use lowercase `false' for boolean constant.
2774 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
2775 Use image_load_image_io.
2776 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
2777 Don't check MyCGImageCreateWithPNGDataProvider.
2778 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
2779 Don't call init_image_func_pointer.
2780
2781 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
2782
2783 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
2784 Make variable non-static.
2785 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2786 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2787
2788 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
2789 (RED_FROM_ULONG): Mask off higher bits.
2790 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
2791
2792 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
2793 Include AvailabilityMacros.h.
2794 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
2795 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
2796
2797 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
2798
2799 * chartab.c (Fset_char_table_range): If range is t, really set all
2800 chars to that value.
2801
2802 2008-05-03 Eli Zaretskii <eliz@gnu.org>
2803
2804 * dired.c (Ffile_attributes): Don't allow the device number become
2805 negative.
2806
2807 2008-05-02 Daiki Ueno <ueno@unixuser.org>
2808
2809 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
2810
2811 2008-05-02 Juri Linkov <juri@jurta.org>
2812
2813 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
2814 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
2815 DEFAULT argument as a list of default values in docstrings.
2816
2817 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
2818
2819 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2820
2821 2008-05-01 Martin Rudalics <rudalics@gmx.at>
2822
2823 * dispnew.c (change_frame_size_1): Preserve small windows when
2824 shrinking frames by calling set_window_height|width with third
2825 arg 2.
2826
2827 * window.h (struct window): Replace field too_small_ok by field
2828 resize_proportionally.
2829
2830 * window.c (make_window): Initialize resize_proportionally.
2831 (enlarge_window): Temporarily set resize_proportionally to make
2832 sure that shrink_windows does scale the window proportionally.
2833 (shrink_windows): When window has resize_proportionally set try
2834 to shrink it proportionally by stealing from other windows.
2835 (struct saved_window, Fset_window_configuration)
2836 (compare_window_configurations): Handle resize_proportionally.
2837 (WINDOW_TOTAL_SIZE): New macro.
2838 (window_min_size, shrink_windows, size_window): Use it.
2839 (check_min_window_sizes): Remove. Invalid values of
2840 window-min-height|width are handled by window_min_size_2 now.
2841 (size_window, Fsplit_window, enlarge_window)
2842 (adjust_window_trailing_edge, grow_mini_window): Don't call
2843 check_min_window_sizes.
2844 (window_min_size_2, window_min_size_1, window_min_size):
2845 New argument safe_p for retrieving "safe" minimum sizes.
2846 (Fdisplay_buffer, Fsplit_window, enlarge_window)
2847 (adjust_window_trailing_edge, grow_mini_window):
2848 Adjust arguments of window_min_size... functions.
2849 (shrink_windows): Argument min_size removed. New argument
2850 safe_p allows shrinking windows to their safe minimum sizes.
2851 Calculate minimum size and decide whether a window shall be
2852 deleted for each window individually.
2853 (size_window): When nodelete_p equals 2, tell shrink_windows to
2854 delete windows only if their new minimum size is no more safe.
2855 (shrink_window_lowest_first): Call window_min_size_1 to make
2856 sure to preserve modeline of bottom-most window when resizing
2857 the minibuffer.
2858 (Fset_window_configuration, Fcurrent_window_configuration)
2859 (compare_window_configurations): Do not handle
2860 window-min-height|width any more.
2861 (syms_of_window): Clarify window-min-height|width doc-strings.
2862
2863 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
2864
2865 * dired.c (file_name_completion): Fix up the encoding/decoding issue
2866 some more. Copy some of the code from Ftry_completions.
2867 Remove special case code that dates back to initial revision when the
2868 slash was only added when necessary and that can't trigger nowadays.
2869
2870 2008-04-27 Kenichi Handa <handa@m17n.org>
2871
2872 * font.c (font_prop_validate): Signal `error' instead of `font'.
2873
2874 2008-04-29 Jason Rumney <jasonr@gnu.org>
2875
2876 * w32fns.c (Fw32_battery_status): New defun.
2877 (syms_of_w32fns): Defsubr it.
2878
2879 2008-04-28 Andreas Schwab <schwab@suse.de>
2880
2881 * dired.c (file_name_completion): Fix another mixing of encoded
2882 and decoded names.
2883
2884 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
2885
2886 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
2887
2888 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
2889
2890 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2891
2892 2008-04-27 Andreas Schwab <schwab@suse.de>
2893
2894 * dired.c (file_name_completion): Fix inappropriate mixing of
2895 encoded and decoded names.
2896
2897 * xterm.c (XTread_socket): Fix use of uninitialized variable.
2898
2899 * puresize.h (BASE_PURESIZE): Increase to 1200000.
2900
2901 2008-04-26 Eli Zaretskii <eliz@gnu.org>
2902
2903 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
2904 2008-03-31, it's not needed anymore with `struct stat' definition
2905 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
2906 for the same reasons.
2907
2908 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
2909
2910 * m/sparc.h: Additional redefinitions for GNU/Linux.
2911
2912 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2913
2914 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
2915 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2916 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
2917 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
2918 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2919 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
2920 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2921 Likewise.
2922
2923 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
2924 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
2925 (mac_ax_number_of_characters): Add externs.
2926 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2927 [USE_MAC_TSM]: Likewise.
2928 (mac_handle_text_input_event) [MAC_OSX]:
2929 Handle kEventTextInputOffsetToPos for no active input area case.
2930 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2931 (mac_handle_document_access_event)
2932 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
2933 (install_application_handler) [MAC_OSX]: Register handlers for
2934 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2935 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2936 Register mac_handle_document_access_event.
2937
2938 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
2939 Make functions non-static.
2940
2941 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2942
2943 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
2944 (read_file_name_completion_ignore_case, insert_default_directory)
2945 (Qdefault_directory): Move to minibuffer.el.
2946 (Fread_file_name): Call the new `read-file-name' instead.
2947
2948 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2949
2950 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
2951 Make function non-static.
2952 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
2953 Remove function.
2954 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2955 Move to mactoolbox.c.
2956 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
2957
2958 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
2959 (mac_rect_make): New macro.
2960
2961 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
2962 instead of float.
2963 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2964 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
2965 (XSetBackground) [USE_CG_DRAWING]: Likewise.
2966 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
2967 CGRectMake.
2968 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2969 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
2970 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
2971 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2972 instead of WindowRef in argument type.
2973 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
2974 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
2975 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
2976 instead of DISPLAY. All uses changed.
2977 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
2978 (x_calc_absolute_position): Simplify so as not to use
2979 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
2980
2981 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2982 instead of WindowRef in argument type.
2983 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
2984 [TARGET_API_MAC_CARBON]: Remove externs.
2985 (create_apple_event, mac_event_parameters_to_lisp)
2986 [TARGET_API_MAC_CARBON]: Add externs.
2987
2988 * mactoolbox.c (Vmac_ts_script_language_on_focus)
2989 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
2990 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
2991 is clicked.
2992 (x_activate_menubar): Remove extern for saved_menu_event_location.
2993 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2994 Move from mac.c.
2995
2996 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2997
2998 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
2999 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
3000
3001 2008-04-23 Jason Rumney <jasonr@gnu.org>
3002
3003 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
3004 attributes only for local files.
3005
3006 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
3007 default to Qlocal.
3008
3009 2008-04-22 Juri Linkov <juri@jurta.org>
3010
3011 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
3012 read-buffer-to-switch instead of using the letter "B".
3013
3014 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3015
3016 * fileio.c (Qdefault_directory): New variable.
3017 (Fread_file_name): Use it to pass `dir' to the completion functions.
3018
3019 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
3022
3023 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
3024
3025 * keyboard.c (Vpre_help_message): Remove.
3026 (show_help_echo): Remove default C code.
3027
3028 * dired.c (directory_files_internal, file_name_completion):
3029 Only call ENCODE_FILE if the string is indeed decoded.
3030
3031 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3032
3033 * Makefile.in (TOOLKIT_DEFINES): Remove.
3034 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
3035
3036 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3037
3038 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
3039 (mactoolbox.o): New target.
3040
3041 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
3042 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
3043
3044 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
3045 Use mac_set_frame_window_background instead of XSetWindowBackground.
3046 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
3047 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
3048 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
3049 instead of SetWindowTitleWithCFString.
3050 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
3051 Move function to mactoolbox.c.
3052 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
3053 Use mac_set_window_modified instead of SetWindowModified.
3054 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
3055 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
3056 (Fx_focus_frame): Use mac_front_non_floating_window instead of
3057 FrontNonFloatingWindow. Use mac_activate_window instead of
3058 ActivateWindow. Use mac_active_non_floating_window instead of
3059 ActiveNonFloatingWindow.
3060 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
3061 Use mac_show_hourglass and mac_hide_hourglass.
3062 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
3063 instead of GetGlobalMouse.
3064 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
3065 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
3066 Use mac_bring_window_to_front instead of BringToFront.
3067 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
3068 mactoolbox.c.
3069 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
3070 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
3071 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
3072 mactoolbox.c.
3073
3074 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
3075 (XtPointer): Move typedef from macmenu.c.
3076 (enum button_type): Move enum from macmenu.c.
3077 (widget_value): Move typedef from macmenu.c.
3078 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
3079 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3080 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3081 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3082 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3083 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3084 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3085 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
3086 (Selection): Move typedef from macselect.c.
3087 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
3088 macterm.c.
3089 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
3090 (mac_is_window_collapsed, mac_bring_window_to_front)
3091 (mac_send_window_behind, mac_hide_window, mac_show_window)
3092 (mac_collapse_window, mac_front_non_floating_window)
3093 (mac_active_non_floating_window, mac_activate_window)
3094 (mac_move_window_structure, mac_move_window, mac_size_window)
3095 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
3096
3097 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
3098 (enum mac_menu_kind): Move enum to mactoolbox.c.
3099 (min_menu_id): Move variable to mactoolbox.c.
3100 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
3101 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
3102 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
3103 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
3104 [TARGET_API_MAC_CARBON]: Likewise.
3105 (XtPointer): Move typedef to macgui.h.
3106 (enum button_type): Move enum to macgui.h.
3107 (widget_value): Move typedef to macgui.h.
3108 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3109 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3110 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3111 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3112 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3113 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3114 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
3115 (popup_activated_flag): Make variable non-static.
3116 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
3117 (add_menu_item, fill_menu, dispose_menus):
3118 Move functions to mactoolbox.c.
3119 (restore_show_help_function, menu_target_item_handler)
3120 (install_menu_target_item_handler, mac_handle_dialog_event)
3121 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
3122 [TARGET_API_MAC_CARBON]: Likewise.
3123 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
3124 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3125 (find_and_call_menu_selection, name_is_separator): Make function
3126 non-static.
3127 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
3128 to mactoolbox.c.
3129 (set_frame_menubar): Don't call install_menu_quit_handler.
3130 (menu_item_selection): New variable.
3131 (mac_menu_show): Use create_and_show_popup_menu.
3132 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
3133 selection but set variable menu_item_selection. All uses changed.
3134 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
3135 Call install_menu_quit_handler. Move to mactoolbox.c.
3136
3137 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
3138 (Selection): Move typedef to macgui.h.
3139 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
3140 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
3141 Make variables non-static.
3142 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3143 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
3144 Make functions non-static.
3145 (Vmac_service_selection) [MAC_OSX]: Likewise.
3146 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
3147 (mac_valid_selection_target_p, mac_clear_selection)
3148 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3149 (mac_put_selection_value, mac_selection_has_target_p)
3150 (mac_get_selection_value, mac_get_selection_target_list)
3151 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
3152 Move functions to mactoolbox.c.
3153 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
3154 Likewise.
3155 (copy_scrap_flavor_data, mac_handle_service_event)
3156 (install_service_handler) [MAC_OSX]: Likewise.
3157 (syms_of_macselect) <Vmac_dnd_known_types>:
3158 Use mac_dnd_default_known_types.
3159
3160 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
3161 Move to mactoolbox.c.
3162 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
3163 (Fx_selection_owner_p): Add EXFUN.
3164 (install_window_handler, remove_window_handler, XSetWindowBackground):
3165 Remove externs.
3166 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
3167 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
3168 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
3169 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
3170 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
3171 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
3172 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
3173 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
3174 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
3175 (create_and_show_popup_menu, mac_get_selection_from_symbol)
3176 (mac_valid_selection_target_p, mac_clear_selection)
3177 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3178 (mac_put_selection_value, mac_selection_has_target_p)
3179 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
3180 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
3181 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
3182 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3183 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
3184 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3185 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
3186 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
3187 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
3188
3189 * mactoolbox.c: New file.
3190
3191 2008-04-18 Jason Rumney <jasonr@gnu.org>
3192
3193 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
3194
3195 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3196
3197 * character.c (Fmultibyte_char_to_unibyte):
3198 Return latin1 chars unchanged.
3199
3200 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
3201 relocated if it points to `name'.
3202
3203 2008-04-17 Kenichi Handa <handa@m17n.org>
3204
3205 * data.c (Faset): Allow setting a multibyte character in an
3206 ASCII-only unibyte string.
3207
3208 * lisp.h (STRING_SET_MULTIBYTE): New macro.
3209
3210 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
3211
3212 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
3213 done in config.h.
3214
3215 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
3216
3217 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
3218 (Fchar_direction): Add usage in the docstring.
3219
3220 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
3221
3222 * keyboard.c (read_key_sequence): Remove always-true checks.
3223
3224 2008-04-14 Jason Rumney <jasonr@gnu.org>
3225
3226 * w32font.c (w32font_open_internal): Set max_bounds.descent in
3227 compatibility struct, for better underline positioning.
3228
3229 2008-04-13 David Hansen <david.hansen@gmx.net>
3230
3231 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
3232 string.
3233
3234 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3235
3236 * m/hp800.h (XUINT, XSET): Remove.
3237
3238 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
3239
3240 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
3241 previous change.
3242
3243 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3244
3245 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
3246 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
3247
3248 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3249
3250 * keymap.h (map_keymap_canonical): Declare.
3251 * xmenu.c (single_keymap_panes): Use it.
3252
3253 2008-04-11 Glenn Morris <rgm@gnu.org>
3254
3255 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
3256 set the target's value to that of the alias.
3257
3258 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3259
3260 * term.c (set_tty_color_mode): Left over typo.
3261
3262 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
3263
3264 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
3265 only after check for file name handler functions. Signal, when
3266 native functionality is not supported.
3267 (syms_of_fileio): Declare it unconditionally.
3268
3269 2008-04-10 Jason Rumney <jasonr@gnu.org>
3270
3271 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
3272 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
3273
3274 * w32.c (logon_network_drive): Also logon to remote drives that
3275 are mapped to drive letters.
3276
3277 2008-04-10 Glenn Morris <rgm@gnu.org>
3278
3279 * xdisp.c (truncate-partial-width-windows): Doc fix.
3280
3281 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
3282
3283 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
3284 Move functions to minibuffer.el.
3285 (syms_of_fileio): Don't declare them.
3286
3287 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3288
3289 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
3290 (syms_of_minibuf): Remove its initialization.
3291
3292 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
3293
3294 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
3295
3296 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
3297
3298 2008-04-09 Jason Rumney <jasonr@gnu.org>
3299
3300 * makefile.w32-in (distclean): Delete makefile too.
3301 (maintainer-clean): New target.
3302
3303 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
3304
3305 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
3306 for new font backend and composite cases.
3307
3308 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
3309
3310 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
3311 Most of the code moved to run_timers.
3312 (do_pending_atimers): Call run_timers.
3313 (run_timers): New function.
3314
3315 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
3316 run atimers.
3317
3318 * process.c (wait_reading_process_output): The same as above.
3319
3320 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3321
3322 * minibuf.c (last_exact_completion): Remove variable.
3323 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
3324 (complete_and_exit_1, complete_and_exit_2)
3325 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3326 (Fdisplay_completion_list, display_completion_list_1)
3327 (Fminibuffer_completion_help, Fself_insert_and_exit)
3328 (Fexit_minibuffer, Fminibuffer_message): Move functions to
3329 minibuffer.el.
3330 (syms_of_minibuf): Remove corresponding initializations.
3331
3332 * keyboard.c (Qdeactivate_mark): New var.
3333 (command_loop_1): Use it to call `deactivate-mark'.
3334 (syms_of_keyboard): Initialize it.
3335
3336 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
3337 to another frame.
3338 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
3339 Don't call set_tty_color_mode.
3340 (store_frame_param): Reset previous_frame rather than call
3341 set_tty_color_mode.
3342 * term.c (set_tty_color_mode): Rewrite.
3343 * dispextern.h (set_tty_color_mode): New type.
3344 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
3345
3346 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
3347
3348 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
3349 for generic chars, which do not exist any more in emacs-unicode.
3350
3351 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
3352
3353 * coding.c (detect_coding_emacs_mule)
3354 (Ffind_operation_coding_system): Fix typo.
3355
3356 2008-04-08 Jason Rumney <jasonr@gnu.org>
3357
3358 * w32uniscribe.c (SNAME): Extract only symbol name.
3359
3360 * w32font.h (struct w32_metric_cache): New struct.
3361 (w32font_info): Use it.
3362 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
3363 (CACHE_BLOCKSIZE): New constants.
3364
3365 * w32font.c (Qja, Qko, Qzh): New symbols.
3366 (syms_of_w32font): Initialise them.
3367 (font_matches_spec): Use them to filter by language.
3368 (recompute_cached_metrics): Remove function.
3369 (compute_metrics, clear_cached_metrics): New functions.
3370 (w32font_encode_char): Use them to manage metric cache.
3371 (w32font_text_extents): Cache metrics for all glyphs on demand.
3372 Delay converting glyph indices to WORD until needed.
3373 (w32font_open_internal): Initialize metric cache to empty.
3374 (registry_to_w32_charset): Charset should always be a symbol.
3375 (fill_in_logfont, list_all_matching_fonts): Family should
3376 always be a symbol.
3377
3378 2008-04-06 Jason Rumney <jasonr@gnu.org>
3379
3380 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
3381 Give up if glyph indices not supported. Use uniscribe obtained
3382 ABC widths for individual metrics. Map glyph clusters back to
3383 characters using fClusterStart flag. Return number of glyphs
3384 produced, not chars processed.
3385 (uniscribe_shape): Map char at FROM to current glyph.
3386
3387 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3388
3389 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
3390 Use SetMenuItemHierarchicalMenu.
3391
3392 2008-04-05 Jason Rumney <jasonr@gnu.org>
3393
3394 * image.c (pbm_load): Allow color values up to 65535.
3395 Throw an error if max_color_idx is outside the supported range.
3396 Report an error when image size is invalid.
3397 Read two bytes at a time when raw images have max_color_idx above 255.
3398
3399 2008-04-05 Eli Zaretskii <eliz@gnu.org>
3400
3401 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3402 cFileName a file name that includes `?' characters, use the 8+3
3403 alias in cAlternateFileName instead.
3404
3405 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
3406
3407 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
3408 append "CCL: Quitted" when the CCL program is quitted.
3409 (setup_ccl_program): Initialize ccl->quit_silently to zero.
3410
3411 * ccl.h (struct ccl_program): New member quit_silently.
3412
3413 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
3414
3415 * search.c (compile_pattern_1): Treat non-nil and non-string of
3416 search-spaces-regexp as nil.
3417
3418 * minibuf.c (Fassoc_string): Tweak docstring.
3419
3420 2008-04-05 Eli Zaretskii <eliz@gnu.org>
3421
3422 * dired.c (Ffile_attributes): Support inode numbers wider than 32
3423 bits. Remove ugly WINDOWSNT-specific kludge introduced on
3424 2008-03-14 to force inode be positive.
3425
3426 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
3427 _S_* ones, since we now use our own sys/stat.h.
3428 (stat, fstat): Don't mangle the inode number.
3429 (init_user_info): Don't restrict UID and GID to 0-60000 range.
3430
3431 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
3432
3433 * frame.h (struct frame): Give one more bit to `visible' since we use
3434 values larger than 1 to indicate obscured frames on ttys.
3435
3436 * keymap.c (Qkeymap_canonicalize): New var.
3437 (Fmap_keymap_internal): New fun.
3438 (describe_map): Use keymap-canonicalize.
3439
3440 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
3441 (Fundo_boundary): Set them.
3442 (syms_of_undo): Initialize them.
3443 (record_point): Use them instead of last_point_position*.
3444 (last_undo_buffer): Change type.
3445
3446 2008-04-04 Jason Rumney <jasonr@gnu.org>
3447
3448 * w32font.c (w32font_text_extents): Use font's ascent and descent.
3449 (recompute_cached_metrics): Don't set ascent and descent per char.
3450
3451 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
3452 (uniscribe_check_otf): Add GC protection before consing.
3453 Rearrange loop for counting features.
3454
3455 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3456
3457 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
3458 buffer with byte-size of source buffer.
3459
3460 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
3461
3462 * callint.c (Fcall_interactively): Handle temporary region even
3463 when shift-select-mode is off.
3464
3465 2008-04-03 Jason Rumney <jasonr@gnu.org>
3466
3467 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
3468
3469 2008-04-03 Kenichi Handa <handa@m17n.org>
3470
3471 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
3472 (CATEGORY_MASK_UTF_16): Likewise.
3473 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
3474 binary file.
3475 (detect_coding): Add null-byte detection for a binary file.
3476 (detect_coding_system): Likewise.
3477
3478 2008-04-03 Jason Rumney <jasonr@gnu.org>
3479
3480 * w32uniscribe.c: New file.
3481
3482 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
3483
3484 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
3485
3486 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
3487 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
3488 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
3489 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
3490 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
3491 (Qphonetic): New symbols.
3492 (syms_of_w32font): Initialize them.
3493 (font_supported_scripts): Use them.
3494 (w32font_list_family): List all charsets.
3495 (w32font_text_extents, recompute_cached_metrics): Fix metric
3496 calculations.
3497 (w32_enumfont_pattern_entity): Make full_type a DWORD.
3498 Give opentype fonts their own format.
3499 (font_matches_spec): New arguments backend and logfont.
3500 Handle :otf spec for uniscribe backend.
3501 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
3502 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
3503
3504 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
3505 font backend.
3506 (globals_of_w32fns): Initialize uniscribe font backend.
3507
3508 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
3509 dependencies.
3510 (w32uniscribe.$(O)): New file to build.
3511 (FONT_OBJ): Include w32uniscribe.$(O).
3512 (LIBS): Add uniscribe libraries.
3513
3514 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
3515
3516 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
3517
3518 * callint.c (Vshift_select_mode): New var.
3519 (Finteractive): Document new ^ spec.
3520 (Fcall_interactively): Call handle-shift-selection if the ^ spec
3521 is present.
3522
3523 * keyboard.c (Vthis_command_keys_shift_translated): New var.
3524 (command_loop_1): Avoid running the direct display versions of
3525 forward-char and backward-char if shift-selection may occur.
3526 (read_key_sequence): Set Vthis_command_keys_shift_translated if
3527 shift-translation takes place.
3528
3529 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
3530 avoid clobbering by define-minor-mode.
3531
3532 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
3533 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
3534
3535 * syntax.c (Fforward_word): Add ^ interactive spec.
3536
3537 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
3538 (Fscroll_right): Add ^ interactive spec.
3539
3540 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
3541
3542 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
3543
3544 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
3545
3546 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
3547
3548 2008-03-31 Juri Linkov <juri@jurta.org>
3549
3550 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
3551
3552 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
3553
3554 * gtkutil.c (xg_set_geometry): Fix indentation.
3555 (xg_resize_outer_widget): Remove.
3556 (x_wm_size_hint_off): Fix indentation.
3557 (xg_frame_set_char_size): Call flush_and_sync after
3558 gtk_window_resize.
3559 (x_wm_set_size_hint): Pass NULL as geometry window to
3560 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
3561 Add menu bar and tool bar height to base height.
3562 (xg_update_frame_menubar, free_frame_menubar)
3563 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3564 (update_frame_tool_bar, free_frame_tool_bar):
3565 Change xg_resize_outer_widget to xg_frame_set_char_size.
3566
3567 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
3568
3569 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
3570 (Fdbus_call_method): New parameter TIMEOUT.
3571 (dbus-send-signal): Optimize UNGCPRO call.
3572
3573 2008-03-29 Juri Linkov <juri@jurta.org>
3574
3575 * window.c (Fdisplay_buffer): Move call to
3576 Vsplit_window_preferred_function out of conditions that check
3577 if window is eligible for vertical splitting.
3578 When Vsplit_window_preferred_function is non-nil, call it and use
3579 its non-nil return value as window. Otherwise, continue doing
3580 vertical splitting using Fsplit_window with arg horflag=nil.
3581 (syms_of_window) <Vsplit_window_preferred_function>: Change the
3582 default value from `split-window' to nil.
3583
3584 2008-03-29 Juri Linkov <juri@jurta.org>
3585
3586 * callint.c (Fcall_interactively): Revert 2008-03-16 change
3587 for interactive code letters 'b' and 'B'.
3588
3589 2008-03-29 Eli Zaretskii <eliz@gnu.org>
3590
3591 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
3592 multibyte string.
3593
3594 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3595
3596 * keyboard.c (pending_funcalls): New var.
3597 (timer_check): Run it.
3598 (syms_of_keyboard): Initialize it.
3599 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
3600 (Vdelete_terminal_functions): New vars.
3601 (syms_of_terminal): Initialize them.
3602 (Fdelete_terminal): Run delete-terminal-functions.
3603 * xdisp.c (safe_eval): Rewrite.
3604 (safe_call2): New fun.
3605 * frame.c (Qdelete_frame_functions): New var.
3606 (syms_of_frame): Initialize it.
3607 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
3608 * lisp.h (safe_call2, pending_funcalls): Declare.
3609
3610 2008-03-28 Andreas Schwab <schwab@suse.de>
3611
3612 * indent.c (Fmove_to_column): Move declaration before statements.
3613
3614 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
3615
3616 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
3617 (struct frame): Use bit fields for boolean vars.
3618
3619 * process.c (server_accept_connection): Simplify naming.
3620 (emacs_get_tty_pgrp): Use SDATA.
3621
3622 * coding.c (decode_coding_object): Fix last change.
3623
3624 2008-03-27 Jason Rumney <jasonr@gnu.org>
3625
3626 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
3627
3628 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
3629
3630 * charset.c (Fdefine_charset_internal): Change the way of
3631 registering charsets in Vcharset_order_list.
3632 (syms_of_charset): Make the charset `eight-bit' supplementary.
3633
3634 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
3635
3636 * regex.c (EXTEND_BUFFER): Change order of pointer addition
3637 operations, to avoid having the difference between pointers
3638 overflow.
3639
3640 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3641
3642 * indent.c (check_display_width): New fun.
3643 (scan_for_column): Use it.
3644
3645 * data.c (syms_of_data): Mark most-positive-fixnum and
3646 most-negative-fixnum as constants.
3647
3648 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
3649
3650 * indent.c (scan_for_column): Extract from current_column_1.
3651 Merge with the same code from Fmove_to_column.
3652 (current_column_1, Fmove_to_column): Use it.
3653
3654 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3655
3656 * keymap.c (map_keymap_internal): New fun.
3657 (map_keymap): Use it.
3658 (Fmap_keymap_internal): New fun.
3659 (Fmap_keymap): Remove left-out test from before make_save_value.
3660
3661 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
3662
3663 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
3664 Use XCAR/XCDR.
3665
3666 * process.h (struct Lisp_Process): Remove filter_multibyte.
3667 * process.c (QCfilter_multibyte): Remove.
3668 (setup_process_coding_systems): Don't use filter_multibyte.
3669 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
3670 (read_process_output): Don't adjust multibyteness to filter_multibyte.
3671 (Fset_process_filter_multibyte): Change the coding-system to
3672 approximate the previous behavior.
3673 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
3674 coding-system.
3675
3676 * coding.c (decode_coding_object): When not decoding into a buffer,
3677 obey the coding system's preference of (uni|multi)byte.
3678
3679 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3680
3681 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
3682 every char is changed and has a different byte-length.
3683 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
3684 Fix int -> EMACS_INT.
3685
3686 2008-03-23 David Hansen <david.hansen@gmx.net>
3687
3688 * dbusbind.c (xd_read_message): Remove extra copying of message
3689 strings. Check for NULL `interface' or `member'.
3690
3691 2008-03-22 Eli Zaretskii <eliz@gnu.org>
3692
3693 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3694 cFileName a file name that includes `?' characters, use the 8+3
3695 alias in cAlternateFileName instead.
3696
3697 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
3698
3699 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
3700
3701 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3702
3703 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
3704 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
3705 work on current_buffer only instead (that was already the case
3706 for some of the code anyway).
3707 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
3708 (temp_set_point, temp_set_point_both): Use EMACS_INT.
3709 (SET_PT, SET_PT_BOTH): Adjust.
3710 * intervals.h (set_point, temp_set_point, set_point_both)
3711 (temp_set_point_both): Remove redundant declarations.
3712
3713 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3714
3715 * fileio.c (Finsert_file_contents):
3716 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
3717 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
3718 when buffer != current_buffer anyway.
3719
3720 2008-03-20 Andreas Schwab <schwab@suse.de>
3721
3722 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
3723 as default.
3724
3725 2008-03-19 Jason Rumney <jasonr@gnu.org>
3726
3727 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
3728 (syms_of_w32fns): Initialize them.
3729 (HOURGLASS_ID): New constant.
3730 (x_window_to_frame): Don't check hourglass_window.
3731 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
3732 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
3733 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
3734 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
3735 Only change the cursor if hourglass is not active.
3736 (Fx_create_frame): Initialize frame's current_cursor.
3737 (hourglass_atimer): Remove.
3738 (hourglass_started): New function.
3739 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
3740 (show_hourglass): Adapt to w32, changing argument to frame.
3741
3742 * w32term.h (struct w32_output): Remove hourglass_window.
3743 Add current_cursor.
3744
3745 * eval.c (call_debugger, Fsignal):
3746 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
3747 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
3748 (Fexecute_extended_command, cancel_hourglass_unwind):
3749 * minibuf.c (read_minibuf):
3750 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
3751
3752 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3753
3754 * window.c (run_funs): New fun.
3755 (run_window_configuration_change_hook): Use it to run the buffer-local
3756 and the global part of the hook.
3757
3758 * xdisp.c (format_mode_line_unwind_data): Add window argument.
3759 (unwind_format_mode_line): Restore selected window.
3760 (x_consider_frame_title, Fformat_mode_line): Set selected window.
3761
3762 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3763
3764 * editfns.c (Fchar_equal): Check they are valid characters.
3765
3766 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
3767
3768 2008-03-17 Andreas Schwab <schwab@suse.de>
3769
3770 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
3771 against a charset.
3772
3773 * lisp.h (Fbuffer_list): Declare.
3774
3775 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
3776
3777 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
3778 handlebox_widget is != 0.
3779
3780 2008-03-16 Juri Linkov <juri@jurta.org>
3781
3782 * callint.c (Fcall_interactively): For interactive code letters
3783 'b' and 'B' put the buffer list into the list of default "future"
3784 values of the minibuffer.
3785
3786 2008-03-16 Andreas Schwab <schwab@suse.de>
3787
3788 * keyboard.c (read_key_sequence): Fix downcasing of letters with
3789 modifiers.
3790
3791 * regex.c (re_match_2_internal): Correct matching of a charset
3792 against latin-1 characters.
3793
3794 2008-03-16 Kenichi Handa <handa@m17n.org>
3795
3796 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
3797 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
3798 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
3799 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
3800 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
3801 CHAR_STRING_ADVANCE.
3802 (produce_chars): Fix for the case that the source and the
3803 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
3804 instead of CHAR_STRING_ADVANCE.
3805 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
3806 STRING_CHAR_ADVANCE.
3807
3808 2008-03-15 Andreas Schwab <schwab@suse.de>
3809
3810 * regex.c (re_match_2_internal): Correct matching of eight bit
3811 characters in unibyte strings.
3812
3813 2008-03-15 Martin Rudalics <rudalics@gmx.at>
3814
3815 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
3816 at end of range when it coincides with the end of the buffer.
3817
3818 2008-03-14 Eli Zaretskii <eliz@gnu.org>
3819
3820 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
3821
3822 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
3823
3824 2008-03-14 Jason Rumney <jasonr@gnu.org>
3825
3826 * editfns.c (initial_tz): New variable.
3827 (syms_of_editfns): Initialize it.
3828 (Fset_time_zone_rule): Set it when first called.
3829 Use it when TZSTRING is nil.
3830
3831 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
3832 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
3833 (monitor_from_point_fn, get_monitor_info_fn): New globals.
3834 (globals_of_w32fns): Initialize them.
3835 (compute_tip_xy): Use them to position tooltips.
3836
3837 2008-03-14 Glenn Morris <rgm@gnu.org>
3838
3839 * emacs.c (main): Revert previous change.
3840 (standard_args): Revert -internal-script back to -scriptload,
3841 and remove the long-option form.
3842
3843 2008-03-13 Glenn Morris <rgm@gnu.org>
3844
3845 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
3846 Remove option -enable-font-backend.
3847
3848 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3849
3850 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
3851
3852 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
3853
3854 * xterm.c (x_connection_closed): For GTK: If this is the last
3855 terminal just exit without closing the display.
3856
3857 2008-03-11 Jason Rumney <jasonr@gnu.org>
3858
3859 * w32font.c (w32font_full_name): Use floor to round.
3860
3861 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
3862
3863 * sound.c (alsa_configure): Declare vol at beginning of block.
3864
3865 * fontset.c (Ffontset_info): Remove extra semicolon.
3866
3867 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3868
3869 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
3870 size of resulting string.
3871
3872 2008-03-10 Jason Rumney <jasonr@gnu.org>
3873
3874 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
3875
3876 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3877
3878 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
3879 Don't pretend as if characters with display property haven't been
3880 consumed for string-replacing-string case.
3881
3882 2008-03-08 Kim F. Storm <storm@cua.dk>
3883
3884 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
3885 (get_next_display_element, next_element_from_string)
3886 (next_element_from_ellipsis, next_element_from_buffer): Use it.
3887
3888 2008-03-08 Andreas Schwab <schwab@suse.de>
3889
3890 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
3891
3892 2008-03-06 Jason Rumney <jasonr@gnu.org>
3893
3894 * w32font.c (w32_registry): Take font_type argument. Use ANSI
3895 when charset not specified. Only translate ANSI to unicode when
3896 font_type is truetype.
3897 (w32font_coverage_ok): New function.
3898 (add_font_entity_to_list): Use it to filter unsuitable fonts.
3899
3900 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
3901
3902 * lread.c (Fread_char): Resolve modifiers.
3903 (Fread_char_exclusive): Likewise.
3904
3905 * character.c (char_resolve_modifier_mask): New function.
3906 (char_string): Use char_resolve_modifier_mask.
3907 (Fchar_resolve_modifiers): New function.
3908 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
3909 function.
3910
3911 2008-03-04 Jason Rumney <jasonr@gnu.org>
3912
3913 * makefile.w32-in: Always include w32font.c in the build.
3914 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
3915
3916 2008-03-04 Andreas Schwab <schwab@suse.de>
3917
3918 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
3919 (versionclean): Likewise.
3920
3921 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
3922
3923 * .cvsignore: Add oo.
3924
3925 2008-03-03 Andreas Schwab <schwab@suse.de>
3926
3927 * coding.c (decode_coding_object): Inhibit gap shrinking while
3928 decoding in place.
3929
3930 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
3931
3932 * w32term.c: Remove unused include "gnu.h".
3933 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
3934
3935 * gnu.h: Rename to ...
3936 * emacs-icon.h: ... this.
3937 * xterm.c: Use emacs-icon.h instead of gnu.h.
3938 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
3939
3940 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
3941
3942 * w32font.c: Include math.h.
3943
3944 2008-03-03 Jason Rumney <jasonr@gnu.org>
3945
3946 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
3947 Compute options separately.
3948 (w32font_open_internal): Set glyph_idx before caching metrics.
3949
3950 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
3951 Define if system headers don't.
3952 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
3953 (w32font_encode_char): Don't declare here.
3954
3955 * w32font.c (Quniscribe, QCformat): New symbols.
3956 (syms_of_w32font): Define them.
3957 (w32font_has_char): Indicate uncertainty.
3958 (w32font_encode_char): Encode as glyph point. Make static.
3959 (recompute_cached_metrics): New function.
3960 (w32font_open_internal): Use it. Set font to use glyph points
3961 initially. Set format based on type of font.
3962 (w32font_text_extents, w32font_draw): Optionally use glyph points.
3963 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
3964 on it. Set format based on information available here.
3965 (add_font_entity_to_list): Identify backend based on opentype_only.
3966
3967 2008-03-02 Andreas Schwab <schwab@suse.de>
3968
3969 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
3970
3971 * coding.c (decode_coding_big5, produce_chars):
3972 Fix typos in last change.
3973
3974 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
3975
3976 * gnu.h: New icon.
3977
3978 2008-03-02 Kenichi Handa <handa@m17n.org>
3979
3980 * coding.c (decode_coding_utf_8): When eol-type of CODING is
3981 `dos', don't decode '\r' if that is the last in the source.
3982 (decode_coding_utf_16, decode_coding_emacs_mule)
3983 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3984 (decode_coding_raw_text, decode_coding_charset): Likewise.
3985 (produce_chars): Don't decode EOL here. Use EMACS_INT.
3986
3987 2008-03-01 Jason Rumney <jasonr@gnu.org>
3988
3989 * w32font.c (w32font_full_name): Report point size for scalable fonts.
3990
3991 2008-03-01 Kim F. Storm <storm@cua.dk>
3992
3993 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
3994
3995 2008-03-01 Jason Rumney <jasonr@gnu.org>
3996
3997 * w32font.c (w32font_full_name): New function.
3998 (w32font_open_internal): Use it.
3999
4000 2008-03-01 Kim F. Storm <storm@cua.dk>
4001
4002 * dispnew.c (line_draw_cost): Fix invalid glyph check.
4003
4004 2008-03-01 Jason Rumney <jasonr@gnu.org>
4005
4006 * font.c (font_unparse_fcname): Increase len when style is a symbol.
4007
4008 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
4009
4010 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
4011 xg_frame_resized when the event is for the edit widget.
4012
4013 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
4014
4015 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
4016 set_char_size.
4017 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
4018 operations on widgets here. Just set frame size if needed.
4019 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
4020 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
4021 (x_wm_set_size_hint): Set size hints on the edit widget only, not
4022 the whole frame.
4023 (xg_create_tool_bar): Move attachement of the tool bar to
4024 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
4025 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
4026
4027 2008-03-01 Jason Rumney <jasonr@gnu.org>
4028
4029 * w32fns.c (w32_msg_pump): Disable debug code.
4030
4031 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4032
4033 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
4034
4035 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
4036
4037 * xdisp.c (next_overlay_string): Don't set
4038 overlay_strings_at_end_processed_p if we're currently reading from
4039 a display string.
4040
4041 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
4042
4043 * xdisp.c (get_overlay_strings_1): Fix typo.
4044
4045 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
4046
4047 * xdisp.c (get_overlay_strings_1): Add missing argument type.
4048
4049 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
4050
4051 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
4052
4053 * xdisp.c (display_mode_element): Cancel the previous change.
4054 (decode_mode_spec): Likewise.
4055 (handle_auto_composed_prop): Don't make composition if it->string
4056 is a string.
4057
4058 2008-02-27 Kim F. Storm <storm@cua.dk>
4059
4060 * lisp.h (GLYPH): Change type from int to struct with separate char
4061 and face_id members.
4062 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
4063 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
4064 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
4065 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
4066 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
4067 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
4068 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
4069 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
4070 handle new Lisp glyph code encoding, either an integer or a cons.
4071
4072 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
4073 (GLYPH_ALIAS): Delete.
4074 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
4075 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
4076 (GLYPH_FROM_CHAR): Replace macro by ...
4077 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
4078
4079 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
4080 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
4081 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
4082 (GLYPH_INVALID_P): New macro.
4083 (spec_glyph_lookup_face): Update prototype.
4084
4085 * dispnew.c (line_draw_cost): Adapt to new glyph type.
4086 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
4087 new glyph code encoding.
4088 (spec_glyph_lookup_face): No return value; update passed glyph instead.
4089 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
4090
4091 * xdisp.c (get_next_display_element, next_element_from_display_vector):
4092 Adapt to new glyph type and new glyph code encoding.
4093
4094 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
4095
4096 * indent.c (current_column, current_column_1, Fmove_to_column)
4097 (compute_motion): Adapt to new glyph code encoding.
4098
4099 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
4100
4101 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
4102
4103 * process.c (wait_reading_process_output): Check for window
4104 changes caused by timers.
4105 Suggested by Johan Bockgård.
4106
4107 2008-02-27 Glenn Morris <rgm@gnu.org>
4108
4109 * emacs.c (USAGE1): Add `--disable-font-backend'.
4110
4111 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
4112
4113 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
4114 is made to the buffer.
4115
4116 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
4117
4118 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
4119 (face_at_string_position):
4120 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4121 (face_at_string_position):
4122 * xdisp.c (display_string, next_overlay_change):
4123 * buffer.h (overlays_at):
4124 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
4125 Update callers.
4126
4127 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
4128
4129 * editfns.c (Fformat): Doc fix.
4130
4131 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
4132
4133 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
4134 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
4135 (Ffont_otf_alternates, Fquery_font): Doc fixes.
4136
4137 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4138
4139 * buffer.c (Fbuffer_swap_text): New function.
4140 (syms_of_buffer): Defsubr it.
4141
4142 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
4143
4144 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
4145
4146 2008-02-25 Jason Rumney <jasonr@gnu.org>
4147
4148 * w32font.c (w32font_draw): Draw one character at a time when padding.
4149
4150 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4151
4152 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
4153 Handle a nil arg. Use run_window_configuration_change_hook.
4154 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
4155 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
4156 Use run_window_configuration_change_hook.
4157
4158 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4159
4160 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
4161 1-pixel width.
4162
4163 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4164
4165 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
4166 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
4167 if the glyph in the font is zero pixel with.
4168
4169 * dispextern.h (struct glyph_string): New member padding_p.
4170
4171 * w32font.c (w32font_draw): Pay attention to s->padding_p.
4172
4173 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
4174
4175 * xfont.c (xfont_draw): Pay attention to s->padding_p.
4176
4177 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
4178
4179 * font.c: If the font driver doesn't have `shape' function, return Qnil.
4180
4181 2008-02-25 Jason Rumney <jasonr@gnu.org>
4182
4183 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
4184
4185 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
4186
4187 Allow fine-grained image-cache flushing.
4188 * dispextern.h (struct image): Add `dependencies' field.
4189 (clear_image_caches): Change arg to Lisp_Object.
4190 * image.c (make_image): Initialize `dependencies' field.
4191 (clear_image_cache): Change arg to allow fine-grained flushing.
4192 Perform the flush even if image-cache-eviction-delay is nil.
4193 (clear_image_caches): Change arg to Lisp_Object.
4194 (Fclear_image_cache): Expand meaning of the argument.
4195 (mark_image): Mark `dependencies' field.
4196 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
4197 (lface_hash): Use XHASH rather than XFASTINT.
4198 (face_at_buffer_position): Fix int -> EMACS_INT position.
4199 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
4200 (select_frame_for_redisplay): Remove code duplication.
4201 (redisplay_internal): Adapt arg to call to clear_image_caches.
4202
4203 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
4204
4205 * s/vms4-0.h:
4206 * s/vms4-2.h:
4207 * s/vms4-4.h:
4208 * s/vms5-5.h: Remove, unused.
4209
4210 * s/irix5-2.h:
4211 * s/irix6-0.h:
4212 * s/riscos5.h:
4213 * s/mach-bsd4-3.h:
4214 * m/mips4.h: Remove files for obsolete systems.
4215
4216 * Makefile.in:
4217 * filelock.c:
4218 * unexmips.c:
4219 * m/hp9000s300.h:
4220 * m/iris4d.h:
4221 * s/aix3-1.h:
4222 * s/hpux.h:
4223 * s/msdos.h:
4224 * s/usg5-0.h:
4225 * s/usg5-2-2.h:
4226 * s/usg5-2.h:
4227 * s/usg5-3.h: Remove references to obsolete variables.
4228
4229 * s/irix5-0.h: Remove, move all the contents ...
4230 * s/irix6-5.h: ... here. Simplify.
4231 * config.in: Regenerate.
4232
4233 2008-02-24 Jason Rumney <jasonr@gnu.org>
4234
4235 * w32term.c (x_draw_glyph_string_background): Clear the background
4236 manually when cleartype is in use.
4237 (x_draw_glyph_string_foreground): Draw text transparently when
4238 cleartype is in use.
4239
4240 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
4241 a font into it unless we have to.
4242
4243 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4244
4245 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
4246 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
4247
4248 2008-02-18 Jason Rumney <jasonr@gnu.org>
4249
4250 * w32fns.c (Fw32_shell_execute): Encode parameters.
4251
4252 2008-02-09 Eli Zaretskii <eliz@gnu.org>
4253
4254 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
4255
4256 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
4257
4258 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
4259
4260 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
4261
4262 * xterm.c (x_set_offset): Don't change the gravity if
4263 CHANGE_GRAVITY is -1.
4264
4265 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
4266
4267 * fileio.c (auto_save_error_occurred): New var.
4268 (auto_save_error): Set it.
4269 (Fdo_auto_save): Don't overwrite the error message if an auto-save
4270 error occurred.
4271
4272 2008-02-23 Eli Zaretskii <eliz@gnu.org>
4273
4274 * w32.c (globals_of_w32): Add initializations for
4275 g_b_init_get_sid_sub_authority and
4276 g_b_init_get_sid_sub_authority_count.
4277
4278 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
4279
4280 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
4281 (font_parse_xlfd): Use them for sanity check.
4282 (Finternal_set_font_style_table): Make sure the table is bijective.
4283
4284 Consolidate the image_cache to the terminal struct.
4285 * termhooks.h (P_): Remove redundant def.
4286 (struct terminal): New field `image_cache'.
4287 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
4288 of FRAME_X_IMAGE_CACHE.
4289 * xterm.h (struct x_display_info): Remove image_cache field.
4290 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4291 * w32term.h (struct w32_display_info): Remove image_cache field.
4292 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4293 * macterm.h (struct mac_display_info): Remove image_cache field.
4294 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4295 * xterm.c (x_term_init):
4296 * w32term.c (w32_term_init):
4297 * macterm.c (mac_term_init): Set the image_cache in the terminal.
4298 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
4299 Remove declarations.
4300 (clear_image_caches, mark_image_cache): New declarations.
4301 * xfaces.c (clear_face_cache):
4302 * xdisp.c (redisplay_internal): Use clear_image_caches.
4303 * image.c (clear_image_cache): Don't check that a frame is on
4304 a window-system before checking if it shares the same cache.
4305 (clear_image_caches): New function.
4306 (Fclear_image_cache): Use it.
4307 (mark_image): Move from allo.c.
4308 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
4309 * alloc.c (mark_image, mark_image_cache): Move to image.c.
4310 (mark_object): Don't call mark_image_cache for frames.
4311 (mark_terminals): Call mark_image_cache.
4312
4313 * lisp.h (Fdelete_terminal): Declare.
4314
4315 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
4316 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
4317 wrong_type_argument.
4318
4319 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
4320
4321 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4322 malayalam.el, and tamil.el. Add sinhala.el.
4323
4324 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
4325
4326 * xterm.c (x_connection_closed): Consolidate identical tests.
4327 (x_delete_terminal): Don't crash if called via x_connection_closed.
4328
4329 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
4330
4331 * xdisp.c (decode_mode_spec): New arg string.
4332 (display_mode_element): Adjust for the above change.
4333
4334 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4335
4336 * callint.c (Fcall_interactively): Use AREF.
4337
4338 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4339
4340 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
4341
4342 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
4343
4344 * xfns.c (Fx_show_tip): Set string to " " if empty.
4345
4346 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
4347
4348 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
4349 with Qt.
4350
4351 2008-02-17 Kenichi Handa <handa@m17n.org>
4352
4353 * ftfont.c (ftfont_shape): Return Lispy number.
4354
4355 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
4356 for GCs.
4357 (Finternal_set_font_selection_order): Call font_update_sort_order
4358 only when enable_font_backend is set.
4359 (realize_x_face): Set face->font_info to that of default face only
4360 when enable_font_backend is set.
4361
4362 * xdisp.c (handle_composition_prop): Set it->c to the fist
4363 characte of the composed region.
4364 (fill_composite_glyph_string): Set base_face->font_info to
4365 s->font_info. Get a face for ascii from base_face->ascii_face.
4366 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
4367 with a face already decided.
4368 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
4369 non-negative.
4370 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
4371 call font_prepare_composition unconditionally.
4372
4373 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
4374
4375 * xterm.h (struct x_display_info): New member font.
4376
4377 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
4378 (x_set_mouse_face_gc, x_new_font): Likewise.
4379 (x_term_init): Setup display_info->font.
4380 (x_delete_terminal): Free display_info->font.
4381
4382 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
4383
4384 * ftxfont.c (ftxfont_default_fid): Delete it.
4385 (ftxfont_open): Set xfont->fid to 0.
4386 (ftxfont_end_for_frame): Clear data specific to the frame and the
4387 font-driver.
4388
4389 * xftfont.c (xftfont_default_fid): Delete it.
4390 (xftfont_open): Set xfont->fid to 0.
4391
4392 * fontset.c (FONTSET_OBJLIST): New macro.
4393 (fontset_find_font): Update font-object list of the fontset.
4394 (free_realized_fontset): New function.
4395 (free_face_fontset): Call free_realized_fontset.
4396 (Ffont_info): Call font_close_object only when enable_font_backend
4397 is set.
4398
4399 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
4400 [HAVE_NTGUI]: Include w32term.h.
4401 [MAC_OS]: Include macterm.ch.
4402 (font_otf_ValueRecord): Use make_number.
4403 (font_finish_cache): Fix handling of reference count.
4404 (font_clear_cache): Update num_fonts.
4405 (font_open_entity): Update smallest_char_width and
4406 smallest_font_height of the frame.
4407 (font_close_object): Update num_fonts.
4408 (Fclear_font_cache): Fix finding the target cache data.
4409
4410 2008-02-16 Glenn Morris <rgm@gnu.org>
4411
4412 * fontset.c (Finternal_char_font): Fix compilation warning.
4413
4414 2008-02-16 Eli Zaretskii <eliz@gnu.org>
4415
4416 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
4417 instead of char arrays. Enlarge the size of array passed to
4418 get_token_information.
4419
4420 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
4421 warnings.
4422
4423 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
4424
4425 * .gdbinit: Don't set `args', it breaks gdb --args.
4426
4427 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
4428
4429 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
4430 within a narrowed buffer.
4431
4432 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
4433
4434 * coding.c (decode_coding_object, encode_coding_object):
4435 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
4436
4437 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4438
4439 * coding.c (coding_set_destination): Use BEG_BYTE rather than
4440 hardcoding 1.
4441 (detect_coding_system):
4442 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
4443 (string_char_to_byte, string_byte_to_char, insert_from_gap):
4444 * insdel.c (insert_from_gap):
4445 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
4446 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
4447 (string_to_multibyte):
4448 * character.c (chars_in_text, multibyte_chars_in_text):
4449 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
4450
4451 * character.h (FETCH_STRING_CHAR_ADVANCE)
4452 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
4453 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
4454 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
4455
4456 * casefiddle.c (casify_region): Only call after-change and composition
4457 functions on the part of the region that was changed.
4458
4459 * keyboard.c (read_avail_input):
4460 * frame.c (Fdelete_frame): Call Fdelete_terminal.
4461
4462 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4463
4464 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
4465 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
4466
4467 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
4468
4469 * w32menu.c (push_submenu_start, push_submenu_end)
4470 (push_left_right_boundary, push_menu_pane, push_menu_item):
4471 * keyboard.c (read_key_sequence): Don't pass args with side effects
4472 to AREF, it fails when compiling with -DENABLE_CHECKING.
4473
4474 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
4475
4476 * Makefile.in (${lispsource}international/charprop.el):
4477 Delete this target.
4478
4479 * search.c (boyer_moore): Fix incorrect synching of the trunk and
4480 emacs-unicode-2.
4481
4482 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4483
4484 * terminal.c (Fdelete_terminal): Clean up the `force' path.
4485
4486 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4487
4488 * frame.c (Qnoelisp): New symbol.
4489 (syms_of_frame): Initialize it.
4490 (Fdelete_frame): Use it to distinguish a mere `force' passed from
4491 someharmles Elisp code, from a strong `force' from x_connection_closed.
4492 * frame.h (Qnoelisp): Declare.
4493 * xterm.c (x_connection_closed): Pass `noelisp'.
4494
4495 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
4496 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
4497 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
4498 rather than `int' for the type of `type'.
4499
4500 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
4501
4502 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
4503
4504 * Makefile.in (GNUC): Remove support for gcc-1.x.
4505
4506 2008-02-10 Richard Stallman <rms@gnu.org>
4507
4508 * lisp.h (ASET): Use AREF, not ASLOT.
4509
4510 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4511
4512 * lisp.h (ASET): Check bounds.
4513
4514 2008-02-10 Glenn Morris <rgm@gnu.org>
4515
4516 * buffer.c (mode-name): Doc fix.
4517
4518 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4519
4520 * Makefile.in:
4521 * emacs.c:
4522 * gmalloc.c:
4523 * keyboard.c:
4524 * lisp.h:
4525 * m/ibm370aix.h:
4526 * process.c:
4527 * regex.c:
4528 * s/hpux.h:
4529 * sysdep.c:
4530 * sysselect.h:
4531 * systty.h:
4532 * unexec.c:
4533 * w32term.c:
4534 * xsmfns.c:
4535 * xterm.c: Remove code that deals with obsolete variables.
4536
4537 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
4538
4539 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
4540 nothing else needs it anymore.
4541
4542 2008-02-09 Eli Zaretskii <eliz@gnu.org>
4543
4544 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
4545 instead of unibyte_char_to_multibyte.
4546
4547 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4548
4549 * s/gnu-linux.h: Remove commented out code.
4550
4551 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
4552
4553 * Makefile.in: Update what RMS says about using autoconf.
4554 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
4555 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
4556 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
4557 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
4558
4559 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4560
4561 * keymap.c (Fkey_description): Move side effect outside of macro call.
4562
4563 * xfaces.c (Finternal_make_lisp_face):
4564 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
4565
4566 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
4567 (syms_of_fontset): Use ASET.
4568
4569 * fns.c (concat): Move side effect outside of macro call.
4570 (hash_clear): Use ASET.
4571
4572 2008-02-08 Richard Stallman <rms@gnu.org>
4573
4574 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
4575 If FORCE, and frame has a surrogate minibuffer for another frame,
4576 delete the other frame first.
4577
4578 2008-02-07 Timo Savola <timo.savola@iki.fi>
4579
4580 * xterm.c (x_detect_focus_change): Handle embed client message.
4581 (handle_one_xevent): Ditto.
4582 (handle_one_xevent): If embedded and we get a button press/release,
4583 request focus.
4584 (xembed_set_info, xembed_send_message): New functions.
4585 (x_make_frame_visible): Call xembed_set_info if embedded.
4586 (x_make_frame_invisible): Call xembed_set_info if embedded.
4587 (x_term_init): Initialize Xatom_XEMBED.
4588 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
4589 (x_iconify_frame): Ditto.
4590
4591 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
4592 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
4593 (enum xembed_modifier, enum xembed_accelerator): New.
4594 (xembed_set_info, xembed_send_message): Declare.
4595 (FRAME_X_EMBEDDED_P): New.
4596
4597 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
4598 gtk_plug_new.
4599
4600 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
4601 window ID of a frame.
4602 (x_window): Reparent frame if embedded.
4603 (Fx_create_frame): Don't set border width if embedded.
4604
4605 * emacs.c (USAGE3): Add --parent-id.
4606 (standard_args): Ditto.
4607
4608 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
4609
4610 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
4611
4612 2008-02-07 Jim Meyering <meyering@redhat.com>
4613
4614 Use "do...while (0)", not "if (1)...else" in macro definitions.
4615 The latter provokes a warning from gcc about the empty else, when
4616 followed by ";". Also, without that trailing semicolon, it would
4617 silently swallow up any following statement.
4618 * syntax.h (SETUP_SYNTAX_TABLE)
4619 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
4620 * buffer.h (DECODE_POSITION): Likewise.
4621 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
4622 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
4623 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
4624 (FETCH_CHAR_ADVANCE): Likewise.
4625 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
4626
4627 2008-02-07 Jim Meyering <meyering@redhat.com>
4628
4629 * lread.c [lint]: Don't include <sys/inode.h>.
4630
4631 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
4632
4633 * xselect.c (x_handle_dnd_message):
4634 * xmenu.c (digest_single_submenu, xmenu_show):
4635 * xdisp.c (with_echo_area_buffer_unwind_data)
4636 (format_mode_line_unwind_data, unwind_format_mode_line)
4637 (display_menu_bar):
4638 * eval.c (Ffetch_bytecode):
4639 * doc.c (store_function_docstring):
4640 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
4641 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
4642 * buffer.c (add_overlay_mod_hooklist): Use ASET.
4643
4644 2008-02-07 Kenichi Handa <handa@m17n.org>
4645
4646 * ftxfont.c (ftxfont_open): Don't set
4647 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
4648
4649 * ftfont.c (ftfont_open): Fix previous change.
4650
4651 2008-02-06 Jason Rumney <jasonr@gnu.org>
4652
4653 * w32font.c (w32font_text_extents): Fill in lbearing metric.
4654 Use cached metrics for ASCII characters.
4655 (w32font_open_internal): Don't set font's owning_frame.
4656 Cache metrics for ASCII characters.
4657
4658 * w32font.h (struct w32font_info): Add ascii_metrics.
4659 Remove owning_frame.
4660
4661 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
4662
4663 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
4664 to negative value.
4665
4666 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
4667
4668 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
4669
4670 * charset.c (syms_of_charset): Set QCtest and Qeq.
4671
4672 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
4673
4674 * process.c (Fstart_process):
4675 * callproc.c (Fcall_process): Handle the case where
4676 Funhandled_file_name_directory returns nil.
4677
4678 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
4679 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
4680 * font.c (check_gstring): Use them and AREF to access the vector before
4681 we know it's really a gstring.
4682 (Ffont_shape_text): Fix typo.
4683 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
4684
4685 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
4686 Declare.
4687
4688 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
4689
4690 2008-02-05 Jason Rumney <jasonr@gnu.org>
4691
4692 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
4693 Set smallest_font_height and smallest_char_width in display info.
4694
4695 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
4696
4697 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
4698
4699 2008-02-05 Miles Bader <miles@gnu.org>
4700
4701 * xfaces.c (get_lface_attributes, merge_named_face)
4702 (lookup_named_face, lookup_derived_face, realize_named_face):
4703 Revert 2008-02-01 change by cyd@stupidchicken.com.
4704
4705 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
4706
4707 * fontset.c (Ffontset_info): Handle the case of inhibitting the
4708 fallback fonts.
4709 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
4710
4711 2008-02-04 Jason Rumney <jasonr@gnu.org>
4712
4713 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
4714 set full_name.
4715 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
4716
4717 2008-02-03 Jason Rumney <jasonr@gnu.org>
4718
4719 * makefile.w32-in (OBJ1): Include font.o here.
4720 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
4721
4722 2008-02-02 Jason Rumney <jasonr@gnu.org>
4723
4724 * makefile.w32-in (temacs): Bump EMHEAP to 21.
4725
4726 2008-02-01 Jason Rumney <jasonr@gnu.org>
4727
4728 * s/cygwin.h: Define VIRT_ADDR_VARIES.
4729
4730 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
4731
4732 2008-02-01 Andreas Schwab <schwab@suse.de>
4733
4734 * Makefile.in (shortlisp, lisp): Update for rename of
4735 ../lisp/language/myanmar.el.
4736
4737 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
4738
4739 * xfaces.c (get_lface_attributes): Delete function.
4740 (merge_named_face, lookup_named_face, lookup_derived_face)
4741 (realize_named_face): Call lface_from_face_name directly, and use
4742 the fact that merge_face_vectors does not alter its FROM argument.
4743
4744 2008-02-01 Jason Rumney <jasonr@gnu.org>
4745
4746 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
4747 input in the default locale. Handle non-Unicode multibyte input.
4748
4749 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4750
4751 * fontset.c (reorder_font_vector): Exclude nil elements from the
4752 font group. Don't try multiple fonts.
4753 (fontset_font): Adjust for the above change.
4754 (Finternal_char_font): Return nil if the found font doesn't
4755 contain the character ch.
4756
4757 * Makefile.in (lisp, shortlisp): Add cham.el.
4758
4759 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4760
4761 * font.h (FONTP): Make it return 1 also for a font-object.
4762
4763 * .gdbinit (xfontset): New function.
4764
4765 * font.c (font_find_for_lface): Check if the character C is
4766 supported or not only for the first font.
4767
4768 * fontset.c (reorder_font_vector): Fix typo.
4769 (fontset_find_font): Don't add a font-spec specifying a script.
4770 Use 0 (not Qt) for the indication of empty font-group. Change the
4771 format of RFONT-DEF. Return Qt if no font in the font-group
4772 support the character.
4773 (fontset_font): Adjust for the above change. If no font was
4774 found the character, remember that.
4775 (face_for_char): Adjust for the change of RFONT-DEF.
4776 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
4777 no font for the target.
4778 (Finternal_char_font): Adjust for the change of RFONT-DEF.
4779
4780 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4781
4782 * font.c (font_load_for_face): Handle the case that the font in
4783 face->lface is a string.
4784
4785 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4786
4787 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
4788
4789 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4790
4791 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
4792 Fix previous change. If the frame is not on a window system,
4793 signal an error.
4794
4795 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4796
4797 * coding.c (decode_coding_object, encode_coding_object): Adjust
4798 marker positions after conversion.
4799
4800 * lisp.h (struct Lisp_Marker): New member need_adjustment.
4801
4802 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4803
4804 * font.c (font_find_for_lface): Fix the handling of the return
4805 value of font_has_char.
4806 (Ffont_shape_text): Fix previous change.
4807
4808 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
4809 (fontset_ref_and_range): Delete it.
4810 (fontset_find_font): Call char_table_ref_and_range instead of
4811 FONTSET_REF_AND_RANGE.
4812 (make_fontset): Don't setup font groups of Latin here.
4813 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
4814 (new_fontset_from_font): Make the specified font the default for
4815 all Latin characters.
4816
4817 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4818
4819 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
4820 is on a window system before accessing the fontset of the frame.
4821
4822 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4823
4824 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
4825
4826 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
4827 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
4828
4829 * font.c (Ffont_shape_text): If the font driver doesn't have a
4830 shaper function, make zero-width glyphs to have at least one-pixel
4831 width. Fix setting of `to' field of glyphs.
4832
4833 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4834
4835 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
4836 glyphs.
4837
4838 * font.h (struct font_driver): Improve docstring of member `shape'.
4839
4840 2008-02-01 Kenichi Handa <handa@m17n.org>
4841
4842 * composite.c (syms_of_composite): Fix docstring of
4843 auto-composition-function.
4844
4845 * font.h (LGLYPH_SIZE): New macro.
4846
4847 * font.c (Ffont_fill_gstring): Stop filling when a character not
4848 supported by the font is found.
4849 (Ffont_shape_text): When a shape callback function returns nil,
4850 try at most two more times with larger gstring.
4851 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
4852
4853 * xdisp.c (handle_auto_composed_prop): Change the argument to
4854 auto-composition-function.
4855
4856 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
4857 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
4858 Lispy glyph and store it in the lgstring.
4859
4860 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
4861
4862 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
4863
4864 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4865
4866 * font.c (Ffont_shape_text): Avoid unnecessary composition.
4867
4868 * fontset.c (Vfont_encoding_charset_alist): New variable.
4869 (syms_of_fontset): DEFVAR it.
4870 (reorder_font_vector, fontset_find_font): Optimize for the case of
4871 no need of reordering.
4872 (face_for_char): Map the charset property by
4873 Vfont_encoding_charset_alist.
4874
4875 2008-02-01 Jason Rumney <jasonr@gnu.org>
4876
4877 * w32font.c (logfonts_match): Don't check adstyle here.
4878 (font_matches_spec): Check here against physical font instead.
4879 (add_font_entity_to_list): Avoid some substitutions.
4880
4881 * font.c (font_parse_fcname): Default weight and slant to normal.
4882 (font_score): Prefer normal fonts if weight or slant unspecified.
4883 (font_score) [WINDOWSNT]: Scale weight difference down to closer
4884 match freetype scores.
4885
4886 2008-02-01 Jason Rumney <jasonr@gnu.org>
4887
4888 * w32font.c (w32font_text_extents): Don't use the frame stored in the
4889 font, as it may have been deleted.
4890 (w32_enumfont_pattern_entity): Map generic family to adstyle using
4891 most common hyphenless variation.
4892 (logfonts_match): Check generic family.
4893 (font_matches_spec): Don't check generic family here.
4894 (fill_in_logfont): Set generic family based on adstyle.
4895
4896 * w32font.h (w32font_get_cache): Update declaration.
4897
4898 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4899
4900 * ftfont.c (ftfont_get_cache): Adjust the argument type.
4901
4902 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
4903 If none of the new drivers are available, call font_update_drivers
4904 with the old drivers.
4905
4906 * w32font.c (w32font_get_cache): Adjust the argument type.
4907
4908 * xfont.c (xfont_get_cache): Adjust the argument type.
4909
4910 * font.h (struct font_driver): Change argument type of get_cache.
4911
4912 * xftfont.c (xftfont_start_for_frame): Delete prototype.
4913
4914 * font.c (Ffont_get): Fix arguments to Fassoc.
4915 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
4916 (font_clear_cache): New function.
4917 (font_list_entities, font_matching_entity): Use font_get_cache.
4918 (font_update_drivers): Call font_clear_cache when finishing a driver.
4919
4920 * fontset.c (fontset_find_font): Fix previous change.
4921
4922 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4923
4924 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
4925 dpyinfo->font_table.
4926 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
4927 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
4928
4929 * font.c (font_at): Handle the case that the arg C is negative.
4930 Handle the unibyte case.
4931 (Ffont_at): Call font_at with the arg C -1.
4932
4933 * xdisp.c (handle_auto_composed_prop): Don't get a character at
4934 the position here, and call font_at with the arg C -1.
4935 Don't check the range of the existing composition at the point.
4936
4937 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4938
4939 * fontset.c (fontset_add): New args charset_id and family.
4940 Change caller.
4941 (load_font_get_repertory, fontset_find_font): Assume that
4942 font_spec is always a font-spec object.
4943 (Fset_fontset_font): Always store a font-spec object in a fontset.
4944
4945 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
4946 instead of get_property_and_range.
4947
4948 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4949
4950 * xftfont.c (struct xftfont_info): Delete the member ft_face.
4951 (xftfont_open): Don't keep locking face.
4952 (xftfont_close): Don't unlock face.
4953 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
4954
4955 * fontset.c (fontset_find_font): Don't prefer a font of
4956 supplementary charset.
4957
4958 2008-02-01 Kenichi Handa <handa@m17n.org>
4959
4960 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
4961 script, langsys_tag to langsys, new member script.
4962 (OTF_TAG_STR): Terminate by '\0'.
4963 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
4964 listing to the script specified in that property. Fix arg to
4965 OTF_check_features.
4966
4967 2008-02-01 Jason Rumney <jasonr@gnu.org>
4968
4969 * w32font.h: New file.
4970
4971 * w32font.c: Include it.
4972 (struct w32font_info): Add owning_frame field. Move to w32font.h.
4973 (w32font_open): Set owning_frame.
4974 (w32font_text_extents): Use owning_frame.
4975 (struct font_callback_data): Add opentype_only field.
4976 (add_font_entity_to_list): Use it to filter fonts.
4977 Don't check against full name.
4978 (w32font_list_internal): New function.
4979 (w32font_list): Use it.
4980 (w32font_match_internal): New function.
4981 (w32font_match): Use it.
4982 (w32font_open_internal): New function.
4983 (w32font_open): Use it.
4984 (w32font_get_cache, w32font_close, w32font_has_char)
4985 (w32font_encode_char, w32font_text_extents, w32font_draw):
4986 Make non-static.
4987
4988 * makefile.w32-in (w32font.o): Depend on w32font.h.
4989
4990 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
4991
4992 * charset.c (Fdefine_charset_internal): Record a supplementary
4993 charset at the tail of Vcharset_order_list.
4994
4995 * font.c (Ffont_shape_text): Fix the return value.
4996
4997 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
4998
4999 * xdisp.c (handle_auto_composed_prop): Fix previous change.
5000
5001 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5002
5003 * ftfont.c (struct OpenTypeSpec): New struct.
5004 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
5005 (ftfont_get_open_type_spec): New function.
5006 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
5007
5008 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
5009
5010 2008-02-01 Jason Rumney <jasonr@gnu.org>
5011
5012 * w32font.c (add_font_entity_to_list): Compare only the beginning
5013 of full name.
5014
5015 2008-02-01 Kenichi Handa <handa@m17n.org>
5016
5017 * xdisp.c (handle_auto_composed_prop): Simplify the code.
5018 Never return HANDLED_RECOMPUTE_PROPS.
5019
5020 2008-02-01 Kenichi Handa <handa@m17n.org>
5021
5022 * font.c (font_gstring_produce): Delete it.
5023
5024 * composite.h (COMPOSITION_METHOD):
5025 Handle COMPOSITION_WITH_GLYPH_STRING.
5026
5027 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5028
5029 * xfont.c (Qx): Delete.
5030 (syms_of_xfont): Don't initialize Qx.
5031
5032 * composite.h (enum composition_method):
5033 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
5034
5035 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5036
5037 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
5038 (choose_face_font): Accept new form of font-spec.
5039
5040 * frame.h (font_driver_list): Declare it unconditionally.
5041 (struct frame): Define members font_driver_list and font_data_list
5042 unconditionally.
5043
5044 * fontset.c: Include "font.h" unconditionally.
5045 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
5046 (Fset_fontset_font): Accept a font-spec object.
5047
5048 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
5049 PIXEL_SIZE part a wild card.
5050
5051 * dispextern.h (struct glyph_string): Define members clip and
5052 num_clips unconditionally.
5053 (struct face): Define members font_info and extra unconditionally.
5054
5055 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
5056 ftfont_info only when HAVE_LIBOTF is defined.
5057
5058 2008-02-01 Andreas Schwab <schwab@suse.de>
5059
5060 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
5061 and end.
5062
5063 2008-02-01 Jason Rumney <jasonr@gnu.org>
5064
5065 * w32font.c (w32font_driver): Add new fields.
5066
5067 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5068
5069 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
5070 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
5071 (LIBES): Add @M17N_FLT_CFLAGS@.
5072
5073 * composite.c (compose_text): Don't treat the new style
5074 composition specially.
5075
5076 * emacs.c (main): Call syms_of_font unconditionally.
5077
5078 * font.h (FONT_ENTITY_NOT_LOADABLE)
5079 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
5080 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
5081 (struct font_driver): New member shape.
5082 (font_registry_charsets): Extern it.
5083 (font_find_for_lface, font_prepare_composition): Adjust prototype.
5084 (font_otf_capability, font_drive_otf): Delete their externs.
5085
5086 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
5087 (font_charset_alist, font_registry_charsets): Move from xfont.c
5088 and rename.
5089 (font_prop_validate_otf): New function.
5090 (font_property_table): Register it for QCotf.
5091 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
5092 (font_drive_otf): Delete.
5093 (font_prepare_composition): New arg F. Adjust for the change of
5094 lispy gstring.
5095 (font_find_for_lface): New arg C.
5096 (font_load_for_face): Adjust for the change of font_find_for_lface.
5097 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
5098 lispy gstring.
5099 (Ffont_shape_text): New function.
5100 (Fopen_font): If the font size is not given, use 12-pixel.
5101 (Ffont_at): New arg STRING.
5102 (syms_of_font): Initalize font_charset_alist.
5103 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
5104 conditionally.
5105
5106 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
5107 fonts of the same font-spec. Change the format of RFONT-DEF.
5108 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
5109 Adjust for the change of RFONT-DEF.
5110 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
5111
5112 * ftfont.h: New file.
5113
5114 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
5115 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
5116 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5117 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
5118 font_otf_capability and font_drive_otf, set ftfont_shape.
5119 (ftfont_list): Adjust for the change of :otf property value.
5120 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
5121 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
5122 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
5123 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
5124 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
5125 (otf_gstring, gstring, m17n_flt_initialized): New variables.
5126
5127 * w32term.c (x_draw_composite_glyph_string_foreground):
5128 Adjust for the change of lispy gstring.
5129
5130 * xdisp.c (handle_composition_prop): Adjust for the change of
5131 lispy gstring. Call a function for auto-composition with the
5132 third arg it->window.
5133 (fill_composite_glyph_string): Adjust for the change of lispy string.
5134 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
5135
5136 * xfaces.c (set_font_frame_param): Adjust for the change of
5137 font_find_for_lface.
5138
5139 * xfont.c (x_font_charset_alist): Move to font.c and rename.
5140 (xfont_registry_charsets): Likewise. Change caller.
5141 (syms_of_xfont): Don't handle x_font_charset_alist.
5142
5143 * xftfont.c: Include "ftfont.h".
5144 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
5145 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5146 (xftfont_close) [HAVE_LIBOTF]: Close otf.
5147 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
5148 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
5149 Set xftfont_driver.shape to xftfont_shape.
5150
5151 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5152 the change of lispy gstring.
5153
5154 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5155
5156 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
5157
5158 2008-02-01 Jason Rumney <jasonr@gnu.org>
5159
5160 * w32font.c (w32font_draw): Fill background manually.
5161
5162 2008-02-01 Jason Rumney <jasonr@gnu.org>
5163
5164 * font.c (Qfontp): Remove unused symbol.
5165 (QCantialias): New symbol.
5166 (syms_of_font): Define it.
5167 (font_property_table): Set a validator for QCantialias.
5168
5169 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
5170 Define if not already.
5171 (QCfamily): Share with xfaces.c.
5172 (Qstandard, Qsubpixel, Qnatural): New symbols.
5173 (syms_of_w32font): Define them. Don't define QCfamily here.
5174 (w32_antialias_type, lispy_antialias_type): New functions.
5175 (w32_enumfont_pattern_entity): New arg requested_font.
5176 Set antialias parameter if non-default was requested.
5177 (fill_in_logfont): Fill in lfQuality if :antialias specified.
5178
5179 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5180
5181 * lread.c (read1): Undo the previous change.
5182
5183 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
5184
5185 * frame.c (Fdelete_frame): Call font_update_drivers only when
5186 USE_FONT_BACKEND is defined.
5187
5188 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5189
5190 * font.h (struct font_bitmap): New member bits_per_pixel.
5191 (struct font_driver): New members start_for_frame and end_for_frame.
5192 (struct font_data_list): New struct.
5193 (font_put_frame_data, font_get_frame_data): Extern them.
5194
5195 * frame.h (struct frame): New member font_data_list.
5196
5197 * font.c (font_update_drivers): Call driver->start_for_frame and
5198 driver->end_for_frame at proper timings.
5199 (font_put_frame_data, font_get_frame_data): New functions.
5200 (Ffont_spec): Add usage in the docstring.
5201
5202 * frame.c (make_frame): Initialize f->font_data_list to NULL.
5203 (Fdelete_frame): Call font_update_drivers.
5204
5205 * xftfont.c (struct xftface_info): Delete the member xft_draw.
5206 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
5207 (xftfont_get_xft_draw): New function.
5208 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
5209 (xftfont_end_for_frame): New function.
5210 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
5211
5212 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
5213 Change argument. Cache GCs in the per-frame data.
5214 (struct ftxfont_frame_data): New struct.
5215 (ftxfont_draw_bitmap): New arg gc_fore and flush.
5216 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
5217 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
5218 (ftxfont_end_for_frame): New function.
5219 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
5220
5221 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
5222
5223 2008-02-01 Kenichi Handa <handa@m17n.org>
5224
5225 * xselect.c (Vselection_coding_system)
5226 (Vnext_selection_coding_system): Delete them.
5227 (syms_of_xselect): Don't declare selection-coding-system and
5228 next-selection-coding-system. They are declared in select.el.
5229
5230 2008-02-01 Jason Rumney <jasonr@gnu.org>
5231
5232 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
5233
5234 * w32fns.c: Include imm.h.
5235 (get_composition_string_fn, get_ime_context_fn): New optional
5236 system functions.
5237 (globals_of_w32fns): Load them from imm32.dll.
5238 (ignore_ime_char): New flag.
5239 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
5240 WM_IME_ENDCOMPOSITION messages.
5241
5242 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
5243 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
5244
5245 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5246
5247 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
5248 (READCHAR_REPORT_MULTIBYTE): New macro.
5249 (readchar): New 2nd arg MULTIBYTE.
5250 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
5251 Make symbol's name multibyte according to the multibyteness of the
5252 source.
5253
5254 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5255
5256 * xfaces.c (face_for_overlay_string): Call lookup_face with
5257 correct arguments (fix of synching with the trunk).
5258
5259 2008-02-01 Kenichi Handa <handa@m17n.org>
5260
5261 * font.c (font_prop_validate_symbol, font_prop_validate_style)
5262 (font_prop_validate_non_neg, font_prop_validate_spacing):
5263 Delete argument prop_index.
5264 (font_property_table): Change arguments to validater. Change Callers.
5265 (font_lispy_object): Delete.
5266 (font_at): Use font_find_object instead fo font_lispy_object.
5267
5268 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5269
5270 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
5271 and file names.
5272
5273 2008-02-01 Jason Rumney <jasonr@gnu.org>
5274
5275 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
5276 (font_matches_spec): Remove debug output.
5277 (add_font_entity_to_list): Avoid using substituted fonts.
5278
5279 2008-02-01 Jason Rumney <jasonr@gnu.org>
5280
5281 * doc.c (Fsnarf_documentation):
5282 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
5283
5284 2008-02-01 Miles Bader <miles@gnu.org>
5285
5286 * dispextern.h (struct glyph_row): Only define "clip" field if
5287 HAVE_WINDOW_SYSTEM is defined.
5288
5289 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
5290
5291 Fix up multi-tty merge.
5292
5293 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
5294 and indentation.
5295
5296 * xfaces.c (free_realized_face, clear_face_gcs):
5297 Include font_done_for_face in the input_blocked section, just in case.
5298
5299 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
5300 (get_char_face_and_encoding): Undo last change and remove the *other*
5301 duplicate definition (i.e. keep the one that's better scoped and that
5302 includes code for the font-backend).
5303
5304 * terminal.c (create_terminal): Default keyboard_coding to
5305 `no-conversion' and terminal_coding to `undecided'.
5306
5307 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
5308
5309 * fontset.c (free_realized_fontsets): Check that the table entry does
5310 contain a fontset before trying to compare it to `base'.
5311
5312 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
5313 syms_of_charset, and syms_of_coding earlier because init_window_once
5314 now needs Vcoding_system_hash_table to be setup.
5315
5316 * coding.h (default_buffer_file_coding): Remove.
5317
5318 * coding.c (default_buffer_file_coding): Remove.
5319 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
5320 than ->symbol, and use the terminal-local coding system.
5321 (syms_of_coding): Don't setup the coding-systems that are not
5322 terminal-local.
5323 (Fdefine_coding_system_internal): Use XCAR/XCDR.
5324
5325 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
5326 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
5327
5328 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
5329 in chartab.c and were re-added here by mistake.
5330 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
5331
5332 * doc.c (Fsnarf_documentation):
5333 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
5334 src to etc.
5335
5336 * ChangeLog.10: Add mistakenly removed entry.
5337
5338 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
5339
5340 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
5341
5342 2008-02-01 Miles Bader <miles@gnu.org>
5343
5344 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
5345 Add extra args to FACE_FOR_CHAR.
5346
5347 2008-02-01 Kenichi Handa <handa@m17n.org>
5348
5349 * keymap.c (where_is_internal_1): If key is a cons, store the copy
5350 in sequence.
5351
5352 * chartab.c (map_sub_char_table, map_char_table): If the range
5353 contains just one character, call the function with that character
5354 even if the depth is not 3.
5355
5356 2008-02-01 Jason Rumney <jasonr@gnu.org>
5357
5358 * w32font.c (w32font_text_extents): Calculate metrics for the
5359 whole string.
5360
5361 2008-02-01 Jason Rumney <jasonr@gnu.org>
5362
5363 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
5364
5365 2008-02-01 Jason Rumney <jasonr@gnu.org>
5366
5367 * w32term.c (x_set_glyph_string_clipping): Use
5368 get_glyph_string_clip_rects.
5369 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5370 Adjust for the change of struct glyph_string.
5371
5372 * w32font.c (w32font_draw): Do clipping here.
5373
5374 2008-02-01 Kenichi Handa <handa@m17n.org>
5375
5376 * xftfont.c (xftfont_draw): Adjust for the change of struct
5377 glyph_string.
5378
5379 * xterm.c (x_set_glyph_string_clipping): Use
5380 get_glyph_string_clip_rects.
5381 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5382 Adjust for the change of struct glyph_string.
5383
5384 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
5385 the resulting clip(s}.
5386 (expose_overlaps): Add arg r. Change callers. Set it to
5387 row->clip temporarily.
5388 (expose_window): Redraw rows overlapping the exposed area.
5389
5390 * dispextern.h (struct glyph_row): New member clip.
5391 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
5392 clip_height, new member clip, and num_clips.
5393
5394 2008-02-01 Kenichi Handa <handa@m17n.org>
5395
5396 * data.c (Fchar_or_string_p): Fix docstring.
5397
5398 2008-02-01 Kenichi Handa <handa@m17n.org>
5399
5400 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
5401 create a temporal XftDraw object.
5402
5403 2008-02-01 Kenichi Handa <handa@m17n.org>
5404
5405 * font.c (Ffontp): Fix docstring.
5406
5407 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
5408 strong evidence of ISO-2022.
5409
5410 2008-02-01 Kenichi Handa <handa@m17n.org>
5411
5412 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
5413 SYNTAX_ENTRY_FOLLOW_PARENT.
5414
5415 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
5416
5417 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
5418 its type.
5419 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
5420 Update to the new type of weak_hash_tables and next_weak.
5421
5422 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
5423 a plain C pointer to Lisp_Hash_Table.
5424
5425 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
5426 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
5427 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
5428 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
5429 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
5430 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
5431 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
5432 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
5433 (GC_EQ): Remove since they've been identical to their non-GC_
5434 alter-egos ever since the markbit was eradicated.
5435
5436 * alloc.c:
5437 * buffer.c:
5438 * buffer.h:
5439 * data.c:
5440 * fileio.c:
5441 * filelock.c:
5442 * fns.c:
5443 * frame.h:
5444 * lisp.h:
5445 * macterm.c:
5446 * print.c:
5447 * process.c:
5448 * w32fns.c:
5449 * w32menu.c:
5450 * w32term.c:
5451 * xfns.c:
5452 * xmenu.c:
5453 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
5454
5455 2008-02-01 Kenichi Handa <handa@m17n.org>
5456
5457 * chartab.c (map_sub_char_table): Make it work for the top-level
5458 char-table. Fix handling of parent char-table.
5459 (map_char_table): Adjust for the above change.
5460
5461 2008-02-01 Jason Rumney <jasonr@gnu.org>
5462
5463 * w32font.c (Qgdi): Rename from Qw32.
5464
5465 2008-02-01 Jason Rumney <jasonr@gnu.org>
5466
5467 * w32bdf.c (get_quoted_string): Make function static.
5468
5469 2008-02-01 Kenichi Handa <handa@m17n.org>
5470
5471 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
5472 bigger ascent and descent than those of the font, use them as
5473 font's ascent and descent.
5474
5475 2008-02-01 Kenichi Handa <handa@m17n.org>
5476
5477 * Makefile.in (${lispsource}international/charprop.el): Move this
5478 target within "#ifdef HAVE_UNIDATA" and "#endif".
5479
5480 2008-02-01 Kenichi Handa <handa@m17n.org>
5481
5482 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
5483 (shortlisp): Add ../lisp/language/tai-viet.el.
5484
5485 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
5486
5487 * Makefile.in (${lispsource}international/charprop.el): Depend on
5488 temacs${EXEEXT}.
5489
5490 2008-02-01 Jason Rumney <jasonr@gnu.org>
5491
5492 * w32font.c (w32font_close): Delete the GDI font object.
5493
5494 * w32menu.c: Include character.h.
5495
5496 * w32proc.c: Likewise.
5497
5498 * w32select.c: Likewise.
5499
5500 * makefile.w32-in (w32proc.o): Depend on character.h.
5501
5502 2008-02-01 Jason Rumney <jasonr@gnu.org>
5503
5504 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
5505
5506 * w32menu.c (syms_of_w32menu): Likewise.
5507
5508 * w32proc.c (syms_of_ntproc): Likewise.
5509
5510 * w32select.c (syms_of_w32select): Likewise.
5511
5512 * w32term.c (syms_of_w32term): Likewise.
5513
5514 2008-02-01 Jason Rumney <jasonr@gnu.org>
5515
5516 * w32font.c (w32font_draw): Delete brush after using it.
5517
5518 2008-02-01 Jason Rumney <jasonr@gnu.org>
5519
5520 * w32font.c (w32font_open): Don't set font_idx.
5521 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
5522 to font settings.
5523 (w32font_draw): Fill background explicitly.
5524
5525 2008-02-01 Jason Rumney <jasonr@gnu.org>
5526
5527 * w32term.c (w32_initialize): Don't call w32font_initialize.
5528
5529 * w32font.c (w32font_info): Remove subranges.
5530 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
5531 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
5532 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
5533 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
5534 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
5535 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
5536 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
5537 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
5538 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
5539 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
5540 New symbols.
5541 (font_callback_data): New struct.
5542 (w32font_list, w32font_match): Use it.
5543 (w32font_open): Don't populate subranges.
5544 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
5545 (w32font_encode_char): Always return unicode code-point as-is.
5546 (w32font_text_extents): Supply a tranformation matrix to
5547 GetGlyphOutline. Never look up by glyph index. Avoid looping
5548 twice. Use unicode version of GetTexExtentPoint32 instead of
5549 glyph index version.
5550 (set_fonts_frame): Remove.
5551 (w32_enumfont_pattern_entity): Add frame parameter, use it to
5552 set frame parameter. Use backward compatible fake foundries.
5553 Save generic family in extra slot under QCfamily. Make width slot
5554 constant. Save QCspacing value. Save list of scripts instead of
5555 binary subranges.
5556 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
5557 (add_font_entity_to_list): Use font_callback_data struct. Filter
5558 unwanted fonts.
5559 (add_one_font_entity_to_list): Use font_callback_data struct.
5560 (w32_registry): Default to iso10646_1.
5561 (fill_in_logfont): Use dpi from extra slot. Don't bother with
5562 string font registries. Don't fill in font name if it is a generic
5563 family name, fill family instead. Use spacing, family and script
5564 extra info to fill pitch, family and charset fields.
5565 (list_all_matching_fonts): Use font_callback_data struct.
5566 (unicode_range_for_char): Remove.
5567 (font_supported_scripts): New function.
5568 (w32font_initialize): Remove.
5569 (syms_of_w32font): Update which symbols are defined.
5570
5571 2008-02-01 Jason Rumney <jasonr@gnu.org>
5572
5573 * font.c (font_pixel_size): Reverse assq_no_quit args.
5574
5575 * w32term.h (FONT_WIDTH): Report max width, not average.
5576 (FONT_MAX_WIDTH): Remove.
5577 (FONT_AVG_WIDTH): New macro.
5578
5579 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
5580 redefinition of FONT_WIDTH.
5581
5582 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
5583 (w32_cache_char_metrics): Use FONT_WIDTH.
5584
5585 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
5586
5587 2008-02-01 Jason Rumney <jasonr@gnu.org>
5588
5589 * w32font.c (w32font_open): Make lfHeight negative.
5590
5591 * w32fns.c (x_default_font_parameter): Use new style font name.
5592 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
5593
5594 2008-02-01 Jason Rumney <jasonr@gnu.org>
5595
5596 * w32font.c (QCsubranges): New symbol.
5597 (w32font_open, w32font_has_char): Get subranges from subproperty
5598 of extra.
5599 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
5600 (syms_of_w32font): Define :subranges symbol.
5601
5602 * font.c (font_put_extra): Expose externally.
5603
5604 * font.h (font_put_extra): Move declaration from font.c.
5605
5606 * font.c (Ffont_get): Use font driver to determine otf capability.
5607 (adjust_anchor): Check if driver defines anchor_point before using.
5608
5609 * w32font.c (w32font_open): Handle size, height and pixel_size better.
5610 (w32font_draw): Use options.
5611 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
5612 Fix detection of truetype fonts.
5613 (registry_to_w32_charset): Handle charsets other than iso8859-1
5614 expressed as lisp symbols.
5615 (w32_registry): Express charset as lisp symbol.
5616 (fill_in_logfont): Reverse pixel and point height logic.
5617 Don't set width here. Set quality to default.
5618
5619 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
5620 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
5621
5622 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5623 Remove redundant loop and allocation.
5624
5625 * makefile.w32-in (font.o, w32font.o): New objects.
5626 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
5627 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
5628
5629 * xdisp.c (fill_composite_glyph_string): Make the first arg to
5630 STORE_XCHARB a valid l-value.
5631
5632 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
5633 calculations for non-Truetype fonts.
5634 (x_draw_glyph_string): Sync with xterm.c.
5635 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5636 Remove redundant code.
5637 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
5638
5639 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
5640 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
5641
5642 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
5643 (x_to_w32_charset, w32_to_x_charset): Expose externally.
5644
5645 * w32font.c: New file for w32 font backend.
5646
5647 2008-02-01 Kenichi Handa <handa@m17n.org>
5648
5649 * term.c: Don't include "buffer.h" twice.
5650
5651 2008-02-01 Kenichi Handa <handa@m17n.org>
5652
5653 * character.c (Funibyte_string): New function.
5654 (syms_of_character): Defsubr it.
5655
5656 2008-02-01 Jason Rumney <jasonr@gnu.org>
5657
5658 * w32term.c [USE_FONT_BACKEND]:
5659 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
5660 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
5661 (x_draw_glyph_string, x_draw_glyph_string_foreground)
5662 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
5663 (x_free_frame_resources): Sync with xterm.c.
5664
5665 2008-02-01 Andreas Schwab <schwab@suse.de>
5666
5667 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
5668 char-table size.
5669
5670 2008-02-01 Kenichi Handa <handa@m17n.org>
5671
5672 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
5673
5674 2008-02-01 Kenichi Handa <handa@m17n.org>
5675
5676 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
5677 font_otf_gpos, add font_drive_otf.
5678
5679 * fontset.c (fontset_find_font): Pay attention to font size
5680 specified for a font.
5681 (reorder_font_vector): Check contents of font_def.
5682
5683 * font.c (struct otf_list): Delete it.
5684 (otf_list): Make it a lisp variable.
5685 (otf_open): Use lispy otf_list.
5686 (generate_otf_features): Rename from parse_gsub_gpos_spec.
5687 (check_otf_features): New function.
5688 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5689 New functions.
5690 (font_drive_otf): New function merging font_otf_gsub and
5691 font_otf_gpos.
5692 (font_open_for_lface): New arg spec. Change argument order.
5693 (font_load_for_face): Adjust for the change of font_open_for_lface.
5694 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
5695 Ffont_otf_gpos.
5696 (syms_of_font): Staticpro otf_list. Delete defsubr of
5697 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
5698
5699 * xfaces.c (set_font_frame_param): Adjust for the change of
5700 font_open_for_lface.
5701
5702 * font.h (font_open_for_lface): Adjust prototype.
5703 (struct font_driver): Delete members otf_gsub and otf_gpos, add
5704 member otf_drive.
5705 (font_otf_gsub, font_otf_gpos): Delete externs.
5706 (font_drive_otf): Extern it.
5707
5708 2008-02-01 Kenichi Handa <handa@m17n.org>
5709
5710 * font.c (font_at): If the window W is not on a window system,
5711 return Qnil.
5712
5713 * coding.c (produce_chars, encode_coding): Don't call
5714 insert_from_gap if no characters to produce.
5715
5716 2008-02-01 Kenichi Handa <handa@m17n.org>
5717
5718 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
5719 Fclear_face_cache.
5720
5721 * xfaces.c (face_for_font): Check also face->font==font->font.font.
5722
5723 2008-02-01 Miles Bader <miles@gnu.org>
5724
5725 * emacs.c (main): Change default value of `enable_font_backend' to 1.
5726 Parse "--disable-font-backend" option.
5727 (standard_args): Add "--disable-font-backend" option.
5728
5729 2008-02-01 Kenichi Handa <handa@m17n.org>
5730
5731 * fontset.c (fontset_find_font): New function.
5732 (fontset_font): Use fontset_find_font.
5733 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
5734 Register the specified font for all Latin characters.
5735 (new_fontset_from_font): Register the specified font for all Latin
5736 characters.
5737 (dump_fontset): For a realized fontset, include the base fontset
5738 name in the returned vector.
5739
5740 2008-02-01 Kenichi Handa <handa@m17n.org>
5741
5742 * character.h (CHAR_STRING): Cast C to unsigned on calling
5743 char_string.
5744
5745 * character.c (char_string): Type of arg C changed to unsigned.
5746 Signal an error if C is an invalid character code.
5747
5748 * editfns.c (general_insert_function, Fchar_to_string):
5749 Use CHARACTERP, not INTEGERP.
5750
5751 2008-02-01 Kenichi Handa <handa@m17n.org>
5752
5753 * character.h (MIN_MULTIBYTE_LEADING_CODE)
5754 (MAX_MULTIBYTE_LEADING_CODE): New macros.
5755
5756 * regex.c (analyse_first): Fix for multibyte characters in "case
5757 charset:" and "case categoryspec:".
5758
5759 2008-02-01 Andreas Schwab <schwab@suse.de>
5760
5761 * Makefile.in (LIBES): Move standard libraries to the end.
5762
5763 2008-02-01 Kenichi Handa <handa@m17n.org>
5764
5765 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
5766 nonzero, don't shrink the buffer nextb.
5767
5768 * buffer.h (struct buffer_text): New member inhibit_shrinking.
5769
5770 * coding.c (coding_alloc_by_making_gap): New arg offset.
5771 (alloc_destination): Call coding_alloc_by_making_gap with the arg
5772 offset.
5773 (decode_coding_iso_2022): Update coding->safe_charsets.
5774 (decode_coding_gap): Temporarily set
5775 current_buffer->text->inhibit_shrinking to 1.
5776
5777 2008-02-01 Kenichi Handa <handa@m17n.org>
5778
5779 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
5780 indexing into elements of s->cmp and s->char2b.
5781
5782 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
5783
5784 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
5785
5786 2008-02-01 Kenichi Handa <handa@m17n.org>
5787
5788 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
5789 target_multibyte instead of multibyte.
5790 (re_match_2_internal): Call bcmp_translate with target_multibyte.
5791 (bcmp_translate): Change the argument name from multibyte to
5792 target_multibyte.
5793
5794 2008-02-01 Kenichi Handa <handa@m17n.org>
5795
5796 These changes are to compile a regexp into a pattern that can be
5797 used both for multibyte and unibyte targets.
5798
5799 * Makefile.in (search.o): Depend on charset.h.
5800
5801 * character.c (multibyte_char_to_unibyte_safe): New function.
5802
5803 * search.c: Include "charset.h".
5804 (compile_pattern_1): Delete argument multibyte. Don't set
5805 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
5806 (compile_pattern): Don't compare cp->buf.target_multibyte.
5807 Compare cp->buf.charset_unibyte.
5808 (compile_pattern): Set cp->buf.target_multibyte.
5809
5810 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
5811
5812 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
5813
5814 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
5815 multibyte. Change callers.
5816 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
5817 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
5818 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
5819 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
5820 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
5821 (regex_compile): Make the compiled pattern usable both for
5822 multibyte and unibyte targets.
5823 (analyse_first): Make the fastmap usable both for multibyte and
5824 unibyte targets.
5825 (TRANSLATE_VIA_MULTIBYTE): Delete.
5826 (re_match_2_internal): Pay attention to the case that the
5827 multibyteness of bufp and target may be different.
5828
5829 2008-02-01 Kenichi Handa <handa@m17n.org>
5830
5831 * xdisp.c (x_produce_glyphs): When a font is not found, make the
5832 empty box occupy at least one column width.
5833
5834 2008-02-01 Miles Bader <miles@gnu.org>
5835
5836 * Makefile.in: Remove redundant HAVE_XFT clause.
5837
5838 2008-02-01 Kenichi Handa <handa@m17n.org>
5839
5840 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
5841
5842 2008-02-01 Kenichi Handa <handa@m17n.org>
5843
5844 * fontset.c (Finternal_char_font): Fix for the case of POSITION
5845 being nil.
5846
5847 2008-02-01 Kenichi Handa <handa@m17n.org>
5848
5849 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
5850
5851 2008-02-01 Kenichi Handa <handa@m17n.org>
5852
5853 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
5854
5855 2008-02-01 Kenichi Handa <handa@m17n.org>
5856
5857 * search.c (simple_search): Fix previous change.
5858
5859 2008-02-01 Kenichi Handa <handa@m17n.org>
5860
5861 * xftfont.c (ftfont_font_format): Extern declaration.
5862
5863 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
5864
5865 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
5866 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
5867
5868 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
5869 (ftfont_font_format): Fix previous change.
5870
5871 * font.h (Ffont_xlfd_name): EXFUN it.
5872
5873 * font.c (font_parse_xlfd): Fix the array size of `f'.
5874 (register_font_driver): Use EQ to compare driver->type.
5875
5876 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
5877 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
5878 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
5879
5880 2008-02-01 Kenichi Handa <handa@m17n.org>
5881
5882 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
5883 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
5884
5885 2008-02-01 Kenichi Handa <handa@m17n.org>
5886
5887 * xfont.c (xfont_open): Set font->format.
5888
5889 * xftfont.c (xftfont_open): Set font->format.
5890
5891 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
5892 (ftfont_list): Include FC_FONTFORMAT in FcObject.
5893 (ftfont_open): Set font->format.
5894 (ftfont_font_format): New function.
5895
5896 * font.h (struct font): New memeber format.
5897
5898 * font.c (Qopentype): New variable.
5899 (syms_of_font): Defsym it.
5900 (Fquery_font): Change the format of the last element of the return
5901 value.
5902
5903 2008-02-01 Kenichi Handa <handa@m17n.org>
5904
5905 * xfns.c (xic_create_xfontset): Try the default fontset name as a
5906 last resort.
5907
5908 2008-02-01 Kenichi Handa <handa@m17n.org>
5909
5910 * coding.c (detect_coding_charset): Fix detection of multi-byte
5911 charset.
5912
5913 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
5914
5915 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
5916
5917 2008-02-01 Kenichi Handa <handa@m17n.org>
5918
5919 * xdisp.c (get_next_display_element): Set it->face_id for the
5920 first component of a composition.
5921 (x_produce_glyphs): Check if the font is changed or not for composition.
5922
5923 2008-02-01 Kenichi Handa <handa@m17n.org>
5924
5925 * fontset.c (Qlatin): New variable.
5926 (syms_of_fontset): Define it as a lisp symbol.
5927 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
5928
5929 2008-02-01 Kenichi Handa <handa@m17n.org>
5930
5931 * font.c (font_unparse_fcname): Pay attention to the case that
5932 some of font property is a null string.
5933
5934 2008-02-01 Kenichi Handa <handa@m17n.org>
5935
5936 * term.c: Include "composite.h".
5937 (encode_terminal_code): Output all components of composition.
5938 Check the size of encode_terminal_src.
5939 (produce_glyphs): For composition, call produce_composite_glyph.
5940 (append_composite_glyph, produce_composite_glyph): New functions.
5941
5942 * xdisp.c (x_produce_glyphs): In handling composition, if a font
5943 is not found, get font_info from the current ascii face.
5944
5945 2008-02-01 Kenichi Handa <handa@m17n.org>
5946
5947 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
5948 buffer-file-name to Qnil before calling insert_from_buffer.
5949
5950 * font.c (font_unparse_fcname): Pay attention to the case that
5951 foundry is a null string.
5952
5953 2008-02-01 Kenichi Handa <handa@m17n.org>
5954
5955 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
5956
5957 * font.c (Qunicode_sip): New variable.
5958 (syms_of_font): Declare it as a Lisp symbol.
5959
5960 * font.h (Qunicode_sip): Extern it.
5961
5962 2008-02-01 Kenichi Handa <handa@m17n.org>
5963
5964 * composite.c (get_composition_id): Pay attention to TAB component.
5965
5966 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
5967 TAB. Adjust for the change of s->char2b which always points to
5968 the first elememnt of allocated memory.
5969
5970 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
5971
5972 * xdisp.c (handle_composition_prop): Set it->c to the first
5973 non-TAB component.
5974 (fill_composite_glyph_string): Change argument.
5975 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
5976 (x_produce_glyphs): Fix handling of left/right padding.
5977
5978 2008-02-01 Kenichi Handa <handa@m17n.org>
5979
5980 * coding.c (detect_coding_system): Fix for handling off
5981 inhibit_iso_escape_detection. Fix for the case that no coding
5982 system is defined for a specific coding category.
5983
5984 2008-02-01 Kenichi Handa <handa@m17n.org>
5985
5986 * font.c (font_matching_entity): Delete unused local var.
5987
5988 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
5989 opening a font.
5990
5991 * fileio.c (Finsert_file_contents): On recovering a file, assume
5992 Unix-like eol.
5993 (choose_write_coding_system): On auto-saving a file, force
5994 Unix-like eol.
5995
5996 * coding.c (setup_coding_system): Fix setting of
5997 coding->common_flags based on eol_type.
5998 (coding_inherit_eol_type): If PARENT is not nil, be sure to
5999 inherit from it.
6000
6001 2008-02-01 Kenichi Handa <handa@m17n.org>
6002
6003 * alloc.c (NSTATICS): Increas to 0x600.
6004
6005 2008-02-01 Kenichi Handa <handa@m17n.org>
6006
6007 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
6008 (ftfont_list): Don't check :name property.
6009 (ftfont_match): New function.
6010 (ftfont_pattern_entity): If the pattern doesn't contain
6011 FC_SPACING, don't assuce FC_MONO.
6012
6013 * font.h (struct font_driver): New member `match'.
6014 (font_update_drivers): Adjust prototype.
6015
6016 * font.c (font_parse_fcname, font_parse_name): Don't change :name
6017 property of FONT.
6018 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
6019 them unconditionally.
6020 (font_matching_entity): New function.
6021 (font_open_by_name): Try font_matching_entity if exact match is
6022 not found.
6023 (font_update_drivers): Delete the arg FONT. Return a list of
6024 actually used backends. Don't free faces, font caches here.
6025 Don't store data in frame parameters. Don't call x_set_font.
6026 (Ffont_spec): Store :name property as is.
6027 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
6028 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
6029 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
6030 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
6031 Call font->driver->otf_gsub instead of font_otf_gsub.
6032
6033 * frame.c (x_set_font_backend): Do more works that were done in
6034 font_update_drivers before.
6035
6036 * xfont.c (xfont_match): New function.
6037 (xfont_driver): Set xfont_driver.match to xfont_match.
6038 (xfont_draw): Set font in GC if necessary.
6039
6040 * ftxfont.c (ftxfont_match): New function.
6041 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
6042
6043 * xftfont.c (xftfont_match): New function.
6044 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
6045
6046 2008-02-01 Kenichi Handa <handa@m17n.org>
6047
6048 * font.h (struct font): New member scalable.
6049 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
6050 (font_otf_gsub): Adjust prototype.
6051
6052 * font.c (font_otf_capability): Fix handling of the default langsys.
6053 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
6054 Check the contents of SPEC.
6055 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
6056 (check_gstring): New function.
6057 (REPLACEMENT_CHARACTER): New macro.
6058 (font_otf_gsub): New arg alternate_subst. Be sure to set all
6059 glyph codes of GSTRING.
6060 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
6061 (font_prepare_composition): Set cmp->glyph_len.
6062 (font_open_entity): Set font->scalable.
6063 (Ffont_get): Handle :otf property.
6064 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
6065 functions.
6066 (Fquery_font): Use font->font.full_name.
6067 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
6068 Sfont_otf_alternates.
6069
6070 * ftfont.c (ftfont_open): Set font->font.full_name and
6071 font->font.name properly. Fix calculation of font->font.height
6072 and font->min_width.
6073
6074 * ftxfont.c (ftxfont_create_gcs): New function.
6075 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
6076 (ftxfont_draw_backgrond): Fix filling region.
6077 (ftxfont_default_fid): New function.
6078 (ftxfont_open): Set xfotn->fid to the return value of
6079 ftxfont_default_fid.
6080 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
6081 (ftxfont_done_face): Free only GCs that are created by
6082 ftxfont_create_gcs.
6083 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
6084
6085 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
6086 Clip to src->width, etc (not src->clip_XXX).
6087
6088 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
6089 FontBackend frame parameter.
6090
6091 2008-02-01 Kenichi Handa <handa@m17n.org>
6092
6093 * font.h (struct font_driver_list): New member `on'.
6094 (Fclear_font_cache): EXFUN it.
6095 (font_update_drivers): Extern it.
6096
6097 * font.c (font_unparse_fcname): Fix typo (swidth->width).
6098 (font_list_entities): Check driver_list->on.
6099 (register_font_driver): Initalize `on' member to 0.
6100 (font_update_drivers): New function.
6101 (Fclear_font_cache): Check driver_list->on.
6102
6103 * frame.h (Qfont_backend): Extern it.
6104 (x_set_font_backend): Extern it.
6105
6106 * frame.c (Qfont_backend): New variable.
6107 (frame_parms): New element for font-backend.
6108 (x_set_font_backend): New function.
6109
6110 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
6111 FontBackend frame parameter.
6112 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
6113 x_set_font_backend.
6114
6115 * xfont.c (xfont_list): Don't try listing by :name property if the
6116 name is not for XLFD.
6117
6118 2008-02-01 Kenichi Handa <handa@m17n.org>
6119
6120 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
6121 (LGLYPH_SET_TO): New macros.
6122 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
6123 element of G is vector or not.
6124 (font_at): Extern it.
6125
6126 * font.c: Include window.h.
6127 (font_lispy_object): New function.
6128 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
6129 end of valid glyph.
6130 (font_close_object): Fix getting (struct font *).
6131 (font_at): New function.
6132 (Ffont_get): If FONT is a font-object, get entity from it.
6133 (Ffont_make_gstring): Initialize elements of glyphs with nil.
6134 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
6135 range check.
6136 (Ffont_at): New function.
6137 (syms_of_font): Defsubr Sfont_at.
6138
6139 * xdisp.c (it_props): Move the entry for Qauto_composed to just
6140 before the entry for Qcomposition.
6141 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
6142 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
6143 the font in gstring.
6144 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
6145 LGLYPH_FORM (g) to detect the end of valid glyph.
6146 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
6147 we are composing with gstring.
6148
6149 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
6150 Check if adjustment is vector or not.
6151
6152 * Makefile.in (font.o): Make it depends on window.h.
6153
6154 2008-02-01 Kenichi Handa <handa@m17n.org>
6155
6156 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
6157 adjustment is vector or not.
6158
6159 2008-02-01 Miles Bader <miles@gnu.org>
6160
6161 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
6162
6163 2008-02-01 Kenichi Handa <handa@m17n.org>
6164
6165 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
6166 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
6167 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
6168
6169 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
6170 (DEVICE_DELTA): Fix typo.
6171 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
6172 LGLYPH format.
6173
6174 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6175 the change of LGLYPH format.
6176
6177 2008-02-01 Kenichi Handa <handa@m17n.org>
6178
6179 * ftfont.c (ftfont_list): Fix typo.
6180 (ftfont_build_basic_charsets): Don't include letters with diacritics.
6181
6182 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6183
6184 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
6185
6186 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
6187 xftface_info is non-NULL.
6188
6189 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6190
6191 * ftfont.c (ftfont_list): Move misplaced #endif.
6192
6193 2008-02-01 Kenichi Handa <handa@m17n.org>
6194
6195 * ftfont.c (ftfont_list): Pay attention to the case that
6196 FC_CAPABILITY is not defined.
6197
6198 2008-02-01 Kenichi Handa <handa@m17n.org>
6199
6200 * xftfont.c (xftfont_open): Set charset related members to -1.
6201
6202 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
6203 QCname.
6204 (ftfont_open): Set charset related members to -1.
6205
6206 * fontset.c (Votf_script_alist): New variable.
6207 (syms_of_fontset): Initialize it.
6208 (fontset_font): Delete unused variable.
6209
6210 * fontset.h (Votf_script_alist): Extern it.
6211
6212 * font.c (font_find_for_lface): Optimize code.
6213
6214 * font.h (font_close_object, font_merge_old_spec): Extern them.
6215
6216 2008-02-01 Kenichi Handa <handa@m17n.org>
6217
6218 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
6219 (syms_of_font): Initialize them.
6220 (font_pixel_size): Allow float value in dpi.
6221 (font_prop_validate_type): Delete.
6222 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
6223 Change caller.
6224 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
6225 (font_prop_validate_extra): Delete.
6226 (font_prop_validate_spacing): New function.
6227 (font_property_table): Add elements for all known properties.
6228 (get_font_prop_index): Rename from check_font_prop_name. New
6229 argument FROM. Change caller.
6230 (font_prop_validate): Validate all known properties.
6231 (font_put_extra): Delete argument force. Change caller.
6232 (font_expand_wildcards): Make it static. Fix the way of shrinking
6233 the possible range.
6234 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
6235 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
6236 Change caller.
6237 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
6238 (font_parse_fcname): Delete argument merge. Fix parsing of point
6239 size. Don't validate properties values here. Change caller.
6240 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
6241 (font_open_by_name): Delete unused variable.
6242 (Ffont_spec): Likewise. Validate property values.
6243 (Ffont_match_p): New function.
6244
6245 * font.h (QCscalable): Extern it.
6246 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
6247
6248 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
6249
6250 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
6251 (xfont_list_pattern): New function.
6252 (xfont_list): Use xfont_list_pattern.
6253
6254 2008-02-01 Kenichi Handa <handa@m17n.org>
6255
6256 * font.h (Flist_fonts): EXFUN it.
6257
6258 2008-02-01 Jason Rumney <jasonr@gnu.org>
6259
6260 * w32term.c (w32_initialize): Add back smoothing_type and
6261 smoothing_enabled definitions.
6262
6263 2008-02-01 Kenichi Handa <handa@m17n.org>
6264
6265 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
6266 s->face->font on determining underline position.
6267
6268 2008-02-01 Kenichi Handa <handa@m17n.org>
6269
6270 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
6271 (font_has_char): Accept font-object too.
6272 (font_find_for_lface): Try at first with a size specified in face.
6273
6274 2008-02-01 Kenichi Handa <handa@m17n.org>
6275
6276 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
6277 font_open_by_name.
6278
6279 2008-02-01 Kenichi Handa <handa@m17n.org>
6280
6281 * font.h (QCspacing, QCdpi): Extern them.
6282 (enum font_spacing): New enum.
6283 (FONT_PIXEL_SIZE_QUANTUM): New macro.
6284
6285 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
6286 (QCspacing, QCdpi): New variables.
6287 (syms_of_font): Initialize them.
6288 (font_pixel_size): New function.
6289 (font_put_extra): New function.
6290 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
6291 in FONT_EXTRA.
6292 (font_parse_fcname): Handle enumenrated values (e.g. bold).
6293 Fix handling font size. Add QCname property that contains only
6294 unknown properties.
6295 (font_score): Change argument. Change caller. Pay attention to
6296 FONT_PIXEL_SIZE_QUANTUM.
6297 (font_sort_entites, font_list_entities, font_find_for_lface)
6298 (font_open_for_lface, font_open_by_name): Fix handling of font size.
6299 (Ffont_spec): Add QCname property that contains only unknown properties.
6300
6301 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
6302 include weight in listing pattern, instead check weight of each
6303 listed font. Don't include scalable in pattern. Pay attention to
6304 FONT_PIXEL_SIZE_QUANTUM.
6305
6306 2008-02-01 Kenichi Handa <handa@m17n.org>
6307
6308 * font.c (font_parse_fcname): Fix parsing of point-size.
6309 (font_unparse_fcname): Produce symbolic names for style properties.
6310 (font_list_entities): Handle float size correctly.
6311 (font_open_by_name): Prefer `normal' property values if the name
6312 doesn't specify them.
6313
6314 * fontset.c (Finternal_char_font): Use font_get_name, not
6315 Ffont_xlfd_name.
6316
6317 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
6318 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
6319 pattern. Don't force scalable.
6320
6321 * xftfont.c (xftfont_open): For generating a name, start from
6322 96-byte buffer.
6323
6324 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6325
6326 * frame.h (x_new_fontset2): Fix prototype.
6327
6328 2008-02-01 Kenichi Handa <handa@m17n.org>
6329
6330 * font.h (struct font_driver): Delete member parse_name.
6331 (font_match_p, font_get_spec, font_parse_fcname)
6332 (font_unparse_fcname): Extern them.
6333 (font_get_name): Adjust prototype.
6334
6335 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
6336 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
6337 (font_expand_wildcards): Fix handling ENCODING field. Avoid
6338 unnecessary checks for weight, slant, and swidth.
6339 (font_parse_fcname): New function.
6340 (font_unparse_fcname): New function.
6341 (font_parse_name): New function.
6342 (font_match_p): New function.
6343 (font_get_name): Change return value to Lisp string.
6344 (font_get_spec): New function.
6345 (Qunspecified, Qignore_defface): Don't extern them.
6346 (font_find_for_lface): Assume that LFACE is fully specified.
6347 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
6348 object, use it for FACE.
6349 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
6350 driver->parse_name.
6351 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
6352
6353 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
6354 prototype.
6355
6356 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
6357 argument F. Don't call Fnew_fontset. Instead, directly call
6358 make_fontset.
6359
6360 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
6361
6362 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
6363 of x_new_fontset2.
6364
6365 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
6366 (Qsans__serif): New variables.
6367 (ftfont_generic_family_list): New variable.
6368 (syms_of_ftfont): Initialize the above variables.
6369 (ftfont_pattern_entity): Delete argument NAME.
6370 (ftfont_list_generic_family): New function.
6371 (ftfont_parse_name): Delete this function.
6372 (ftfont_list): Try generic family only when FcFontList found no font.
6373 (ftfont_list_family): Fix args to FcObjectSetBuild.
6374
6375 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
6376 object in attrs[LFACE_FONT_INDEX].
6377 (set_lface_from_font_name): Cancel all changes for font-backend.
6378 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
6379 function.
6380 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
6381 font object in QCfont attribute.
6382 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
6383 (realize_default_face) [USE_FONT_BACKEND]: Call
6384 set_lface_from_font_and_fontset.
6385
6386 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
6387 "fixed", and signal error here if no suitable font was found.
6388
6389 * xfont.c (xfont_parse_name): Delete this function.
6390
6391 * xftfont.c (xftfont_open): Change coding style of error
6392 handling. Generate fontconfig's fontname pattern.
6393
6394 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
6395 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
6396
6397 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
6398 Both args FONTSET and FONT_OBJECT must be existing ones.
6399
6400 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6401
6402 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
6403
6404 2008-02-01 Kenichi Handa <handa@m17n.org>
6405
6406 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
6407
6408 * font.h (struct font): Fix typo.
6409
6410 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
6411 XLFD_XXX_INDEX.
6412 (enum xlfd_field_mask): New enum.
6413 (intern_font_field): Changed argument. Change caller. If digits
6414 are followed by non-digits, return a symbol.
6415 (font_expand_wildcards): New function.
6416 (font_parse_xlfd): Fix wildcard handling.
6417 (Ffont_spec): If :name is specified, reflect the info in the other
6418 properties.
6419
6420 * ftfont.c (ftfont_pattern_entity): Fix typo.
6421 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
6422 locale.
6423
6424 2008-02-01 Kenichi Handa <handa@m17n.org>
6425
6426 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
6427
6428 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
6429 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
6430 registry doesn't specify encoding part.
6431 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
6432 (font_open_by_name): At first try parsing the name.
6433 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
6434 as Lisp symbols.
6435
6436 * fontset.c (reorder_font_vector): Pay attention to the case that
6437 the 3rd element of font_def is nil.
6438 (fontset_font): For the default fontset, append one more fontset
6439 elements for a script-based font specification. Don't add script
6440 attribute on finding a font.
6441 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
6442 font name.
6443 (fontset_ascii_font): If a font can't be opened, return nil.
6444
6445 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
6446 (ftfont_pattern_entity): New function.
6447 (ftfont_get_cache): Assume that freetype_font_cache is already
6448 initialized.
6449 (ftfont_list): Handle the case that a file is specified in font
6450 name. Use ftfont_pattern_entity to generate entities.
6451 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
6452 (syms_of_ftfont): Initialize freetype_font_cache.
6453
6454 * xftfont.c (xftfont_open): Make the font name fontconfig's
6455 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
6456 (xftfont_close): Free font->font.name if not NULL.
6457
6458 * xfont.c (xfont_list): If script is specified for a font, return
6459 null_vector.
6460 (xfont_list_family): Declare argument type.
6461
6462 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
6463 name, set LFACE_FONT (lface) to nil.
6464
6465 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
6466 return Qnil.
6467
6468 2008-02-01 Kenichi Handa <handa@m17n.org>
6469
6470 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
6471 (standard_args): Add "-enable-font-backend".
6472
6473 2008-02-01 Kenichi Handa <handa@m17n.org>
6474
6475 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
6476 (struct xftdraw_list, xftdraw_list): Delete them.
6477 (register_xftdraw, check_xftdraw): Delete them.
6478 (xftfont_prepare_face): Don't call register_xftdraw.
6479 (xftfont_done_face): Don't call check_xftdraw.
6480 (xftfont_draw): Get backroudn color only when with_background is
6481 nonzero.
6482
6483 * xfont.c (xfont_encode_char): Fix calculation of char2b.
6484
6485 2008-02-01 Kenichi Handa <handa@m17n.org>
6486
6487 These changes are for the new font handling codes.
6488
6489 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
6490 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
6491 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
6492 (FONTSRC, FONTOBJ): New variables.
6493 (obj): Add $(FONTOBJ).
6494 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
6495 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
6496 @LIBOTF_LIBS@.
6497 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
6498 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
6499
6500 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
6501
6502 * character.h (Vscript_representative_chars): Extern it.
6503
6504 * character.c (Vscript_representative_chars): New variable.
6505 (syms_of_character): Declare it as a Lisp variable.
6506
6507 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
6508 enable_font_backend is nonzero, accept the composition method
6509 COMPOSITION_WITH_GLYPH_STRING.
6510
6511 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
6512 enumeration COMPOSITION_WITH_GLYPH_STRING.
6513
6514 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
6515 members clip_x, clip_y, clip_width, and clip_height.
6516 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
6517
6518 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
6519 --enable-font-backend. Call syms_of_font.
6520
6521 * fns.c (assoc_no_quit): New function.
6522
6523 * fontset.h (FONT_INFO_FROM_FACE): New macro.
6524 (face_for_font, new_fontset_from_font)
6525 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
6526
6527 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
6528 (fontset_font, fontset_ascii, face_for_char)
6529 (make_fontset_for_ascii_face, Ffont_info)
6530 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
6531 is nonzero, use font-backend mechanism.
6532 (find_font_encoding): Make it non-static.
6533 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
6534 New functions.
6535
6536 * frame.h (struct frame): New members resx and resy.
6537 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
6538 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
6539
6540 * frame.c [USE_FONT_BACKEND]: Include "font.h".
6541 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
6542
6543 * lisp.h (assoc_no_quit): Extern it.
6544
6545 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
6546 Through out the file, use FONT_INFO_FROM_FACE instead of
6547 FONT_INFO_FROM_ID, use get_per_char_metric instead of
6548 rif->per_char_metric.
6549 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
6550 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
6551 (get_glyph_face_and_encoding, fill_composite_glyph_string)
6552 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6553 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
6554 nonzero, use font-backend mechanism.
6555 (get_per_char_metric): New function.
6556
6557 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
6558 (set_lface_from_font_name)
6559 (set_font_frame_param, free_realized_face)
6560 (prepare_face_for_display, clear_face_gcs)
6561 (Finternal_set_font_selection_order, realize_x_face)
6562 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
6563 font-backend mechanism.
6564 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
6565 (load_face_font) [USE_FONT_BACKEND]: Abort.
6566 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
6567 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
6568
6569 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
6570 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
6571 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
6572 nonzero, register all available font drivers. Call
6573 x_default_font_parameter for deciding a font.
6574 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
6575
6576 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
6577 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
6578 (x_set_glyph_string_clipping_exactly)
6579 (x_compute_glyph_string_overhangs)
6580 (x_draw_glyph_string_foreground)
6581 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
6582 (x_free_frame_resources) [USE_FONT_BACKEND]: If
6583 enable_font_backend is nonzero, use font-backend mechanism.
6584 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
6585
6586 2008-02-01 Kenichi Handa <handa@m17n.org>
6587
6588 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
6589 system_eol_type.
6590 (syms_of_coding): Initialize system_eol_type.
6591
6592 * process.c (Fset_process_coding_system): Inherit system's eol
6593 format if necessary.
6594
6595 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6596
6597 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
6598
6599 2008-02-01 Kenichi Handa <handa@m17n.org>
6600
6601 * coding.c (decode_eol): Pay attention to buffer relocation in
6602 del_range_2.
6603 (decode_coding): Call decode_eol before restoring undo_list.
6604
6605 2008-02-01 Kenichi Handa <handa@m17n.org>
6606
6607 * charset.c (Fdefine_charset_internal): Fix setting of
6608 emacs_mule_bytes.
6609
6610 2008-02-01 Kenichi Handa <handa@m17n.org>
6611
6612 * keyboard.c (read_char): Check if C is a character or not before
6613 looking up Vkeyboard_translate_table.
6614
6615 2008-02-01 Kenichi Handa <handa@m17n.org>
6616
6617 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
6618 condition to terminate the loop.
6619
6620 2008-02-01 Kenichi Handa <handa@m17n.org>
6621
6622 * coding.c (produce_composition): Compare charbuf[i] instead of
6623 args[i] against 0.
6624 (Fterminal_coding_system): Use EQ to compare Lisp objects.
6625
6626 2008-02-01 Kenichi Handa <handa@m17n.org>
6627
6628 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
6629 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
6630 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
6631 detect_coding.
6632 (emacs_mule_char): Handle old style (Emacs 20) component character
6633 of a composition.
6634 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
6635 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
6636 composition rule.
6637 (decode_coding_emacs_mule): Handle invalid bytes correctly.
6638
6639 2008-02-01 Kenichi Handa <handa@m17n.org>
6640
6641 * coding.c (encode_coding_ccl): Allocate destination dynamically
6642 when necessary.
6643
6644 2008-02-01 Kenichi Handa <handa@m17n.org>
6645
6646 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
6647 the loop. When quitted, show a proper error message.
6648
6649 2008-02-01 Kenichi Handa <handa@m17n.org>
6650
6651 * xterm.c (x_set_glyph_string_clipping_exactly): Set
6652 src->clip_head and src->clip_tail temporarily instead of src->hl.
6653
6654 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
6655 character sequence.
6656 (Fccl_execute_on_string): Use ASET, not XSET.
6657
6658 2008-02-01 Kenichi Handa <handa@m17n.org>
6659
6660 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
6661
6662 2008-02-01 Kenichi Handa <handa@m17n.org>
6663
6664 * coding.c (decode_coding): Fix the condition of terminating the
6665 decoding loop.
6666
6667 2008-02-01 Kenichi Handa <handa@m17n.org>
6668
6669 * data.c (Faset): On setting a character bigger than 255 in a
6670 unibyte string, signal an error instead of make the string multibyte.
6671
6672 2008-02-01 Kenichi Handa <handa@m17n.org>
6673
6674 * charset.c (map_charset_chars): Fix for ascii-compatible charset
6675 made by a mapping table.
6676
6677 2008-02-01 Kenichi Handa <handa@m17n.org>
6678
6679 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
6680 not.
6681 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
6682 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
6683
6684 * xterm.c (x_draw_composite_glyph_string_foreground): Check
6685 s->face is NULL or not.
6686
6687 2008-02-01 Kenichi Handa <handa@m17n.org>
6688
6689 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
6690 (x_draw_glyph_string): Fix drawing of right_overhang and
6691 left_overhang around/on cursor.
6692
6693 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
6694
6695 2008-02-01 Kenichi Handa <handa@m17n.org>
6696
6697 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
6698
6699 2008-02-01 Kenichi Handa <handa@m17n.org>
6700
6701 * coding.c (Fdefine_coding_system_internal)
6702 (Fdefine_coding_system_alias): Avoid a duplicated element in
6703 Vcoding_system_alist.
6704
6705 2008-02-01 Kenichi Handa <handa@m17n.org>
6706
6707 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6708
6709 * coding.c (Qcoding_system_define_form): New variable.
6710 (syms_of_coding): Intern and staticpro it.
6711 (Fcoding_system_p): Check Qcoding_system_define_form.
6712 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
6713
6714 * coding.h (CODING_SYSTEM_P): If ID is not available, call
6715 Fcoding_system_p.
6716 (CHECK_CODING_SYSTEM): If ID is not available, call
6717 Fcheck_coding_system.
6718 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
6719 Try also Fcheck_coding_system.
6720
6721 2008-02-01 Kenichi Handa <handa@m17n.org>
6722
6723 * coding.c (code_conversion_restore): GCPRO arg.
6724
6725 2008-02-01 Kenichi Handa <handa@m17n.org>
6726
6727 * character.c (lisp_string_width): Check multibyteness of STRING.
6728
6729 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6730
6731 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
6732 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
6733 (decode_mac_font_name): Use decode_coding_c_string instead of
6734 decode_coding.
6735 (x_load_font): Initialize fontp->fontset to -1. Set
6736 fontp->encoding_type.
6737
6738 2008-02-01 Kenichi Handa <handa@m17n.org>
6739
6740 * search.c (search_buffer): Give up BM search on case-fold-search
6741 if one of a target character has a case-equivalence of different
6742 byte length even if that target charcter is an ASCII.
6743 (simple_search): Fix calculation of byte length of matched text.
6744 (boyer_moore): Fix handling of case-equivalent multibyte characters.
6745
6746 2008-02-01 Kenichi Handa <handa@m17n.org>
6747
6748 * coding.c (decode_coding): Fix handling of invalid bytes.
6749
6750 2008-02-01 Kenichi Handa <handa@m17n.org>
6751
6752 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6753 Unicode characters.
6754
6755 2008-02-01 Kenichi Handa <handa@m17n.org>
6756
6757 * coding.c (encode_coding_object): If a pre-write-conversion
6758 function makes a new buffer, kill it.
6759
6760 2008-02-01 Kenichi Handa <handa@m17n.org>
6761
6762 * coding.c (QCascii_compatible_p): New variable.
6763 (syms_of_coding): Initialize it.
6764 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
6765 calling string_char.
6766 (record_conversion_result): Add `default:' case.
6767 (coding_charset_list): Delete unused variable `coding_type'.
6768 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
6769 property in the plist of the coding system.
6770 (Fcoding_system_put): Check QCascii_compatible_p.
6771
6772 2008-02-01 Miles Bader <miles@gnu.org>
6773
6774 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
6775 removed calculation of frame `f', as it's now used.
6776
6777 2008-02-01 Kenichi Handa <handa@m17n.org>
6778
6779 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
6780 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
6781 (UNIDATA): New variable.
6782 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
6783 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
6784 $(RUN_TEMACS) unconditionally.
6785
6786 2008-02-01 Kenichi Handa <handa@m17n.org>
6787
6788 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
6789 (admindir): New variable.
6790 ($(lispsource)international/charprop.el): New target.
6791
6792 2008-02-01 Miles Bader <miles@gnu.org>
6793
6794 * character.c (chars-in-region): Remove obsolete function.
6795 (syms_of_character): Remove its initialization.
6796
6797 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
6798
6799 * w32select.c (validate_coding_system)
6800 (setup_windows_coding_system): New functions.
6801 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
6802 setup_windows_coding_system.
6803 (setup_config, Fw32_get_clipboard_data): Use
6804 validate_coding_system.
6805 (Fx_selection_exists): Move call to setup_config to a place
6806 where signals are allowed.
6807
6808 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
6809 (Fcheck_coding_system): Add declarations.
6810
6811 2008-02-01 Kenichi Handa <handa@m17n.org>
6812
6813 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
6814
6815 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6816
6817 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
6818 string as the second argument for x_new_fontset.
6819
6820 2008-02-01 Kenichi Handa <handa@m17n.org>
6821
6822 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
6823 (encode_coding_object): Use safe_call instead of call2.
6824
6825 2008-02-01 Kenichi Handa <handa@m17n.org>
6826
6827 * fontset.c (Fset_fontset_font): Check family element of a given vector.
6828
6829 * Makefile.in (lisp): Include charprop.el.
6830
6831 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6832
6833 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
6834 Not sure if it's unnecessary.
6835
6836 2008-02-01 Steven Tamm <steventamm@mac.com>
6837
6838 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
6839 some possibly unnecessary fontset checking code that crashed
6840 when creating a new frame.
6841
6842 2008-02-01 Kenichi Handa <handa@m17n.org>
6843
6844 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
6845 lookup_face.
6846
6847 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
6848
6849 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
6850
6851 2008-02-01 Kenichi Handa <handa@m17n.org>
6852
6853 * coding.c: Cancel the change done in HEAD on 2008-02-01.
6854 (coding_charset_list): New function.
6855
6856 * coding.h (coding_charset_list): Extern it.
6857
6858 2008-02-01 Kenichi Handa <handa@m17n.org>
6859
6860 * fontset.c (Fset_fontset_font): Call find_font_encoding with
6861 concatenation of family and registry.
6862
6863 2008-02-01 Kenichi Handa <handa@m17n.org>
6864
6865 * character.h (BYTE8_STRING): Fix typo.
6866
6867 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
6868 string to multibyte (sync to HEAD).
6869
6870 * casefiddle.c (casify_region): Handle changes in byte-length
6871 using replace_range_2 (sync to HEAD).
6872
6873 2008-02-01 Andreas Schwab <schwab@suse.de>
6874
6875 * chartab.c (map_char_table): GCPRO table and arg.
6876
6877 2008-02-01 Kenichi Handa <handa@m17n.org>
6878
6879 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
6880 already at limit.
6881
6882 2008-02-01 Kenichi Handa <handa@m17n.org>
6883
6884 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
6885 instead of fast_c_string_match_ignore_case.
6886 (find_font_encoding): Change argument to Lisp_Object. Use
6887 fast_string_match_ignore_case instead of
6888 fast_c_string_match_ignore_case. Change caller.
6889
6890 2008-02-01 Kenichi Handa <handa@m17n.org>
6891
6892 * xdisp.c (get_next_display_element): In unibyte case, decide to
6893 display in octal form by checking a chacter by
6894 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
6895
6896 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
6897
6898 * character.c (unibyte_has_multibyte_table): New variable.
6899
6900 * character.h (unibyte_has_multibyte_table): Extern it.
6901 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
6902
6903 2008-02-01 Kenichi Handa <handa@m17n.org>
6904
6905 * coding.c (encode_coding_iso_2022): Fix handling of charset
6906 annotation.
6907
6908 2008-02-01 Kenichi Handa <handa@m17n.org>
6909
6910 * coding.c (setup_coding_system): If coding_system is nil, use
6911 Qundecided.
6912 (Fterminal_coding_system): Return nil if terminal coding system is
6913 `undecided'.
6914 (syms_of_coding): Define coding-system `undecided' here. Setup
6915 terminal_coding as `undecided'.
6916
6917 2008-02-01 Kenichi Handa <handa@m17n.org>
6918
6919 * xdisp.c (message_dolog, set_message_1): Call
6920 unibyte_char_to_multibyte with arg type int.
6921
6922 * lread.c (read1): Fix reading of a char-table.
6923
6924 * print.c (print_object): Include sub char-table in cicularities
6925 detection.
6926
6927 2008-02-01 Kenichi Handa <handa@m17n.org>
6928
6929 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
6930 cons. Append the found sequences in car of ARGS instead of prepending.
6931
6932 2008-02-01 Kenichi Handa <handa@m17n.org>
6933
6934 * fileio.c (report_file_error): Make a unibyte string from
6935 strerror (errorno).
6936 (Fsubstitute_in_file_name): Fix the arg to
6937 unibyte_char_to_multibyte. It is evaluated twice.
6938
6939 2008-02-01 Kenichi Handa <handa@m17n.org>
6940
6941 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
6942
6943 2008-02-01 Kenichi Handa <handa@m17n.org>
6944
6945 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
6946 BOM is not found.
6947 (detect_coding, detect_coding_system): Optimization for ISO-2022
6948 when no 8-bit data is found.
6949
6950 2008-02-01 Jason Rumney <jasonr@gnu.org>
6951
6952 * w32fns.c (x_to_w32_font): Update to use new coding struct.
6953
6954 2008-02-01 Kenichi Handa <handa@m17n.org>
6955
6956 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
6957 CHARS.
6958
6959 2008-02-01 Steven Tamm <steventamm@mac.com>
6960
6961 * macterm.c (mac_encode_char): Add charset argument and update
6962 to use encoding_type.
6963 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
6964 switch to pure fontset.
6965 (decode_mac_font_name): Temporarily remove decoding.
6966 (x_font_name_to_mac_font_name): Temporarily remove encoding.
6967 (x_load_font): Temporarily remove encoding.
6968
6969 2008-02-01 Kenichi Handa <handa@m17n.org>
6970
6971 * xfaces.c (Fface_font): If frame is not on a window system,
6972 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
6973 refer to face->font.
6974 (split_font_name_into_vector, build_font_name_from_vector)
6975 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
6976 whne HAVE_WINDOW_SYSTEM is defined.
6977
6978 2008-02-01 Kenichi Handa <handa@m17n.org>
6979
6980 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
6981 (x_produce_glyphs): Fix setting of members of cmp in case
6982 cmp->glyph_len is zero.
6983
6984 * fontset.c (Fset_fontset_font): Fix docstring.
6985 (Ffontset_info): Make it backward compatible. New arg ALL.
6986
6987 2008-02-01 Kim F. Storm <storm@cua.dk>
6988
6989 * process.c (read_process_output): Grow decoding_buf when needed;
6990 this could cause a crash in allocate_string and compact_small_strings.
6991
6992 2008-02-01 Kenichi Handa <handa@m17n.org>
6993
6994 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
6995
6996 2008-02-01 Kenichi Handa <handa@m17n.org>
6997
6998 * coding.c (setup_coding_system): Set coding->common_flags
6999 correctly for raw-text.
7000 (consume_chars): On encoding unibyte text by raw-text, don't check
7001 multibyte form.
7002 (encode_coding): On encoding by raw-text, never use translation tables.
7003
7004 * fileio.c (e_write): Short cut for the case of no encoding.
7005
7006 2008-02-01 Kenichi Handa <handa@m17n.org>
7007
7008 * coding.c (detect_coding, detect_coding_system): Delete unused
7009 variables.
7010
7011 2008-02-01 Kenichi Handa <handa@m17n.org>
7012
7013 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
7014 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
7015
7016 2008-02-01 Kenichi Handa <handa@m17n.org>
7017
7018 * coding.c (Ffind_coding_systems_region_internal): Include
7019 raw-text and no-conversion in the result.
7020
7021 2008-02-01 Kenichi Handa <handa@m17n.org>
7022
7023 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
7024 (load_font_get_repertory): Delete unnecessary check of ENCODING of
7025 FONT_DEF.
7026 (font_def_arg, add_arg, from_arg, to_arg): New args.
7027 (set_fontset_font): Change argument.
7028 (Fset_fontset_font): Fix for the case that TARGET is a script
7029 name and charset name.
7030 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
7031
7032 2008-02-01 Kenichi Handa <handa@m17n.org>
7033
7034 * fontset.c (fontset_font): Rename from fontset_face. Change return
7035 value.
7036 (face_suitable_for_char_p, face_for_char): Adjust for the change
7037 of fontset_font.
7038 (make_fontset_for_ascii_face): Fix setting of the fontset element
7039 for ASCII.
7040 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
7041 to get a font name.
7042 (Ffontset_info): Adjust for the change of fontset_font.
7043
7044 * coding.c (emacs_mule_char): Check invalid code more regidly.
7045
7046 * character.h (LEADING_CODE_LATIN_1_MIN)
7047 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
7048
7049 2008-02-01 Kenichi Handa <handa@m17n.org>
7050
7051 * editfns.c (check_translation): New function.
7052 (Ftranslate_region_internal): Handle M:N mapping.
7053
7054 2008-02-01 Kenichi Handa <handa@m17n.org>
7055
7056 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
7057
7058 2008-02-01 Kenichi Handa <handa@m17n.org>
7059
7060 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
7061 goto invalid_code.
7062 (decode_coding_iso_2022): Fix handling of invalid designation.
7063
7064 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
7065 after calling code_conversion_save.
7066
7067 2008-02-01 Kenichi Handa <handa@m17n.org>
7068
7069 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
7070
7071 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
7072
7073 * fontset.c: Include "intervals.h".
7074 (fontset_face): Fix comparing of Lisp_Objects.
7075 (free_face_fontset, new_fontset_from_font_name): Fix
7076 Lisp_Object/int mixup.
7077
7078 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
7079
7080 * coding.c: Add many prototypes for static functions.
7081 (get_translation_table): Allow max_lookup to be NULL.
7082 (decode_coding, Ffind_coding_systems_region_internal)
7083 (Funencodable_char_position, Fcheck_coding_systems_region): Call
7084 get_translation_table with max_lookup NULL.
7085
7086 2008-02-01 Kenichi Handa <handa@m17n.org>
7087
7088 * coding.c (get_translation_table): Declare it as Lisp_Object.
7089 (LOOKUP_TRANSLATION_TABLE): New macro.
7090 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
7091 instead of CHAR_TABLE_REF.
7092
7093 2008-02-01 Kenichi Handa <handa@m17n.org>
7094
7095 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
7096 annotation data format.
7097 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
7098 Change arguments FROM and TO to single argument NCHARS. Change caller.
7099 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
7100 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7101 (decode_coding_ccl, decode_coding_charset): Pay attention to
7102 coding->charbuf_used.
7103 (get_translation): New function.
7104 (produce_chars): New arguments translation_table and last_block.
7105 Translate characters here. Return number of carryover chars.
7106 Change caller.
7107 (produce_composition): New argument pos. Change caller.
7108 Adjust for the change of annotation data format.
7109 (produce_charset, produce_annotation): Likewise.
7110 (decode_coding, encode_coding): Don't call translate_chars.
7111 (consume_chars): New arg translation_table. Change caller.
7112 (translate_chars): Delete.
7113 (syms_of_coding): Make translation-table's number of extra slots 2.
7114
7115 2008-02-01 Kenichi Handa <handa@m17n.org>
7116
7117 * search.c (simple_search): Fix setting this_pos_byte in backward
7118 search.
7119
7120 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
7121 byte sequence.
7122 (detect_coding_ccl): Fix setting of the variable valids.
7123
7124 2008-02-01 Kenichi Handa <handa@m17n.org>
7125
7126 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
7127
7128 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
7129
7130 * editfns.c (Ftranslate_region_internal): Rename from
7131 Ftranslate_region. Accept a char-table in TABLE.
7132 (syms_of_editfns): Defsubr Stranslate_region_internal.
7133
7134 * xfaces.c (set_lface_from_font_name): If a font is specified for
7135 a frame, generate a fontset from the font.
7136 (build_scalable_font_name): If the scalable font is requested for
7137 a specific size, don't change that size.
7138 (try_font_list): Try a scalable font also in the case that a
7139 pattern string is specified.
7140
7141 2008-02-01 Kenichi Handa <handa@m17n.org>
7142
7143 * xfaces.c (Fface_font): New optional arg CHARACTER.
7144
7145 2008-02-01 Kenichi Handa <handa@m17n.org>
7146
7147 * charset.h (CHARSET_OFFSET): New macro.
7148
7149 2008-02-01 Kenichi Handa <handa@m17n.org>
7150
7151 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
7152
7153 * fontset.c (fontset_face): Handle the case that repertory is a
7154 char-table.
7155 (find_font_encoding): Return nil for unknown encoding.
7156 (Fset_fontset_font): Ignore a font of unknown encoding.
7157
7158 2008-02-01 Kenichi Handa <handa@m17n.org>
7159
7160 * keymap.c (describe_vector): Handle default value of a char table.
7161
7162 * fontset.c (fontset_face): Handle fallback fonts correctly.
7163 (Ffontset_info): Return infomation about fallback fonts.
7164
7165 2008-02-01 Kenichi Handa <handa@m17n.org>
7166
7167 * fontset.c (FONTSET_DEFAULT): New macro.
7168 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
7169 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
7170 the case that it is nil.
7171 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
7172 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
7173
7174 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
7175 subset or superset.
7176
7177 2008-02-01 Kenichi Handa <handa@m17n.org>
7178
7179 * emacs.c (main): Call init_charset after syms_of_XXX.
7180
7181 * charset.c (Vcharset_map_directory): Delete.
7182 (Vcharset_map_path): New variable.
7183 (load_charset_map_from_file): Use Vcharset_map_path instead.
7184 (init_charset): Initialize Vcharset_map_path.
7185 (syms_of_charset): Delete declaration of "charset-map-directory",
7186 add declaration of "charset-map-path".
7187
7188 2008-02-01 Kenichi Handa <handa@m17n.org>
7189
7190 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
7191 ASCII only string.
7192
7193 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
7194
7195 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
7196 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
7197
7198 2008-02-01 Kenichi Handa <handa@m17n.org>
7199
7200 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
7201
7202 * coding.c (QCmnemonic, QCdefalut_char)
7203 (QCdecode_translation_table, QCencode_translation_table)
7204 (QCpost_read_conversion, QCpre_write_conversion): New variables.
7205 (get_translation_table): Return a list of translation tables if
7206 necessary.
7207 (decode_coding): Call get_translation_table with ENCODEP 0.
7208 (char_encodable_p): If translation_table is non-nil, always call
7209 translate_char.
7210 (Fdefine_coding_system_internal): Accept list of translation
7211 tables as :encode-translation-table and :decode-translation-table.
7212 (Fcoding_system_put): New function.
7213 (syms_of_coding): Declare new symbols. Defsubr
7214 Scoding_system_put.
7215 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
7216 typically JISX0212.
7217
7218 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
7219 when the charset is superset type.
7220
7221 * character.c (translate_char): Accept list of translation tables.
7222
7223 2008-02-01 Kenichi Handa <handa@m17n.org>
7224
7225 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
7226 (CODING_ATTR_TRANS_TBL): New macro.
7227
7228 * coding.c (get_translation_table): New function.
7229 (translate_chars): Fix the bug of skipping annotation data.
7230 (decode_coding, encode_coding): Utilize get_translation_table.
7231 (char_encodable_p, Funencodable_char_position): Translate char if
7232 necessary.
7233 (Ffind_coding_systems_region_internal)
7234 (Fcheck_coding_systems_region): Setup translation table for encode
7235 in a coding system attribute vector in advance.
7236 (Fdefine_coding_system_internal): Allow a symbol as translation
7237 table. For shift-jis type coding system, allow 4th charset.
7238
7239 2008-02-01 Kenichi Handa <handa@m17n.org>
7240
7241 * coding.c (decode_coding_sjis): Check the first byte rigidly.
7242
7243 * xdisp.c (get_next_display_element): Pass -1 as POS to
7244 FACE_FOR_CHAR if displaying a C-string.
7245
7246 2008-02-01 Kenichi Handa <handa@m17n.org>
7247
7248 * composite.c (get_composition_id): Handle xoff and yoff in a
7249 composition rule.
7250
7251 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
7252 (struct composition): New member lbearing and rbearing.
7253
7254 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
7255 (x_get_glyph_overhangs): Handle a composition glyph.
7256 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
7257
7258 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
7259 composition glyph.
7260
7261 2008-02-01 Kenichi Handa <handa@m17n.org>
7262
7263 * print.c: Include charset.h.
7264 (Vprint_charset_text_property): New variable.
7265 (Qdefault): Extern it.
7266 (PRINT_STRING_NON_CHARSET_FOUND)
7267 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
7268 (print_check_string_result): New variable.
7269 (print_check_string_charset_prop): New function.
7270 (print_prune_charset_plist): New variable.
7271 (print_prune_string_charset): New function.
7272 (print_object): Call print_prune_string_charset if
7273 Vprint_charset_text_property is not t.
7274 (print_interval): Print nothing if itnerval->plist is nil.
7275 (syms_of_print): Declare Vprint_charset_text_property as a lisp
7276 variable. Init and staticpro print_prune_charset_plist.
7277
7278 2008-02-01 Kenichi Handa <handa@m17n.org>
7279
7280 * fontset.c (new_fontset_from_font_name): Use the specified font
7281 for all characters in the new fontset.
7282
7283 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7284 OBJECT args.
7285
7286 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
7287 OBJECT args for composition too.
7288
7289 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7290 OBJECT args.
7291
7292 2008-02-01 Kenichi Handa <handa@m17n.org>
7293
7294 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
7295
7296 * fontset.c (reorder_font_vector): Adjust for the change of
7297 FONT_DEF format.
7298 (fontset_face): New arg id. Change caller.
7299 (face_for_char): New args pos and object.
7300 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
7301 (fs_query_fontset): Check NAME by Fassoc too.
7302 (Fset_fontset_font): Allow non-XLFD font name.
7303 (Ffontset_info): Adjust for the change of FONT_DEF format.
7304
7305 * fontset.h (face_for_char): Adjust prototype.
7306
7307 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
7308 (append_space, extend_face_to_end_of_line)
7309 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7310 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
7311
7312 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
7313 POS and OBJECT args.
7314
7315 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
7316 POS and OBJECT args.
7317
7318 2008-02-01 Jason Rumney <jasonr@gnu.org>
7319
7320 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
7321 of GlobalAlloc'ed memory.
7322
7323 2008-02-01 Kenichi Handa <handa@m17n.org>
7324
7325 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
7326
7327 * charset.h (charset_table_used): Delete extern.
7328
7329 * charset.c (charset_table_used): Make it static.
7330 (map_charset_chars): Fix args to c_function with.
7331
7332 * chartab.c (map_sub_char_table_for_charset): Fix args to
7333 c_function with.
7334
7335 * coding.h (enum coding_result_code): Delete
7336 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
7337
7338 * coding.c (Qinsufficient_source, Qinconsistent_eol)
7339 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
7340 (Vlast_code_conversion_error): New variables.
7341 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
7342 (ONE_MORE_BYTE): Record error if any instead of signaling an
7343 error. If non-ASCII multibyte char is found, return the negative
7344 value of the code. All callers changed to check it.
7345 (ONE_MORE_BYTE_NO_CHECK): Likewise.
7346 (record_conversion_result): New function. Change all codes setting
7347 coding->result to call this function.
7348 (detect_coding_utf_8, decode_coding_utf_8)
7349 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
7350 Don't use the local variable incomplete.
7351 (emacs_mule_char): Change the second arg to `const'.
7352 (decode_coding): Fix of flushing out unprocessed data.
7353 (make_conversion_work_buffer): Fix making of a work buffer.
7354 (decode_coding_object): Return coding->dst_object.
7355
7356 * fontset.c (set_fontset_font): Fix args.
7357
7358 * lisp.h (CHARACTERBITS): Define as 22.
7359
7360 * process.c (send_process): Be sure to set coding->src_multibyte.
7361
7362 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
7363
7364 2008-02-01 Kenichi Handa <handa@m17n.org>
7365
7366 * xdisp.c (handle_auto_composed_prop): Give limit to
7367 Fnext_single_char_property_change.
7368
7369 2008-02-01 Kenichi Handa <handa@m17n.org>
7370
7371 * composite.c (syms_of_composite): Don't make the composition hash
7372 table weak.
7373
7374 * fontset.c (Fset_fontset_font): Fix docstring.
7375
7376 * lisp.h (detect_coding_system): Adjust prototype.
7377
7378 * fileio.c (kill_workbuf_unwind): Delete this function.
7379 (Finsert_file_contents): Adjust the call of detect_coding_system.
7380 Get conversion_buffer by code_conversion_save. Use the macor
7381 CODING_MAY_REQUIRE_DECODING. After decoding, update
7382 coding_system.
7383
7384 * coding.h (make_conversion_work_buffer): Delete extern.
7385 (code_conversion_save): Extern it.
7386
7387 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
7388 (CODING_GET_INFO): Delete argument eol_type. Change callers.
7389 (decode_coding_utf_8): Don't do eol converion.
7390 (detect_coding_utf_16): Check coding->src_chars, not
7391 coding->src_bytes. Add heuristics for those that have no signature.
7392 (decode_coding_emacs_mule, decode_coding_iso_2022)
7393 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7394 Don't do eol converion.
7395 (adjust_coding_eol_type): Return a new coding system.
7396 (detect_coding): Don't detect eol. Fix for utf-16 detection.
7397 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
7398 each change.
7399 (decode_coding): Pay attention to undo_list. Do eol convesion for
7400 all types of coding-systems (if necessary).
7401 (Vcode_conversion_work_buf_list): Delete it.
7402 (Vcode_conversion_reused_workbuf): Rename from
7403 Vcode_conversion_reused_work_buf.
7404 (Vcode_conversion_workbuf_name): New variable.
7405 (reused_workbuf_in_use): New variable.
7406 (make_conversion_work_buffer): Delete the arg DEPTH.
7407 (code_conversion_restore): Change argument to cons.
7408 (code_conversion_save): Delete the argument BUFFER. Change callers.
7409 (detect_coding_system): New argument src_chars. Change callers.
7410 Fix for utf-16 detection.
7411 (init_coding_once): Don't use ISO_carriage_return.
7412 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
7413 reused_workbuf_in_use.
7414
7415 2008-02-01 Kenichi Handa <handa@m17n.org>
7416
7417 * keymap.c (store_in_keymap): Pay attention to the case that idx
7418 is a cons specifying a character range.
7419
7420 2008-02-01 Kenichi Handa <handa@m17n.org>
7421
7422 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
7423 HANDLED_RECOMPUTE_PROPS.
7424
7425 * coding.c (Fdefine_coding_system_internal): Fix checking of
7426 ascii compatibility.
7427
7428 2008-02-01 Kenichi Handa <handa@m17n.org>
7429
7430 * charset.c (find_charsets_in_text): Delete unused locale variable.
7431 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
7432
7433 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
7434 Resync charset_list to Vemacs_mule_charset_list.
7435
7436 * keymap.c (store_in_keymap): Pay attention to the case that idx
7437 is a cons specifying a character range.
7438
7439 2008-02-01 Kenichi Handa <handa@m17n.org>
7440
7441 * composite.c (update_compositions): Bind inhibit-read-only, etc
7442 to t before calling remove-list-of-text-properties.
7443
7444 * print.c (print_object): Always print ASCII chars as is.
7445
7446 2008-02-01 Kenichi Handa <handa@m17n.org>
7447
7448 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
7449
7450 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
7451 is a char table.
7452
7453 2008-02-01 Kenichi Handa <handa@m17n.org>
7454
7455 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
7456
7457 2008-02-01 Kenichi Handa <handa@m17n.org>
7458
7459 * xfaces.c (set_lface_from_font_name): Fix for the case that
7460 FONTNAME is not fontset name.
7461
7462 2008-02-01 Kenichi Handa <handa@m17n.org>
7463
7464 * fns.c (base64_encode_1): Fix previous change.
7465
7466 2008-02-01 Kenichi Handa <handa@m17n.org>
7467
7468 * fontset.c (set_fontset_font): New function.
7469 (Fset_fontset_font): If a font is specified for a charset, use
7470 map_charset_chars to store the font spec in a fontset.
7471
7472 2008-02-01 Kenichi Handa <handa@m17n.org>
7473
7474 * fontset.c (fontset_face): Create a fallback fontset on demand.
7475 (make_fontset): Don't create a fallback fontset here.
7476 (free_face_fontset): Free a fallback fontset (if any) too.
7477 (n_auto_fontsets): Delete this variable.
7478 (auto_fontset_alist): New variable.
7479 (new_fontset_from_font_name): Check auto_fontset_alist.
7480 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
7481 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
7482 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
7483 Defsubr Sfontset_list_all.
7484
7485 2008-02-01 Kenichi Handa <handa@m17n.org>
7486
7487 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7488
7489 2008-02-01 Kenichi Handa <handa@m17n.org>
7490
7491 * fontset.c (Fnew_fontset): Check NAME more rigidly.
7492
7493 2008-02-01 Kenichi Handa <handa@m17n.org>
7494
7495 * editfns.c (Fgoto_char): Fix docstring.
7496
7497 2008-02-01 Kenichi Handa <handa@m17n.org>
7498
7499 * insdel.c (insert_from_gap): Adjust intervals correctly.
7500
7501 2008-02-01 Jason Rumney <jasonr@gnu.org>
7502
7503 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
7504 (pfnGetFontUnicodeRanges): New dynamically loaded function.
7505 (w32_initialize): Try to load it.
7506 (x_get_font_repertory): Use it if available.
7507 (w32_encode_char): Add shortcut for unicode output.
7508
7509 * w32fns.c (w32_load_system_font): Default charset to -1.
7510 (x_to_w32_charset): Match all fonts for unicode.
7511 (w32_to_x_charset): New parameter matching. Don't return partial
7512 or wildcard charsets.
7513 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
7514 (w32_codepage_for_font): Return CP_UNICODE for unicode.
7515 (w32_to_x_font): Match charset to real charset.
7516 (enum_font_cb2): Always list unicode versions.
7517
7518 * makefile.w32-in (temacs): Increase EMHEAP.
7519
7520 2008-02-01 Jason Rumney <jasonr@gnu.org>
7521
7522 * w32term.c (w32_encode_char): New charset parameter.
7523 font_info.encoding becomes encoding_type.
7524 (x_get_font_repertory): New function. Warning: stub only!
7525 (x_new_font): Return quickly if font already set.
7526 (x_new_fontset): fontsetname parameter is Lisp_Object.
7527 Use new fs_query_fontset. Try new_fontset_from_font_name.
7528 Use fontset_name for return value.
7529
7530 * w32term.h: Declare x_get_font_repertory.
7531
7532 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
7533 place of find_charset_in_text. Use encode_coding_object in place
7534 of encode_coding.
7535 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
7536 decode_coding.
7537
7538 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
7539 of x_new_fontset.
7540 (w32_load_system_font): Initialize charset as unicode.
7541 font_info.encoding becomes encoding_type.
7542 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
7543 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
7544 (syms_of_w32fns): Set get_font_repertory_func.
7545
7546 * w32console.c: Include character.h. Use terminal_encode_buffer
7547 from term.c.
7548 (write_glyphs): Use new version of encode_terminal_code. Use
7549 encode_coding_object in place of encode_coding.
7550
7551 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
7552 encoding becomes encoding_type.
7553
7554 * term.c (terminal_encode_buffer): Make externally visible.
7555
7556 * makefile.w32-in: Add character.h dependancies.
7557 (character.o, chartab.o): New targets.
7558
7559 2008-02-01 Kenichi Handa <handa@m17n.org>
7560
7561 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
7562 CODING_ID_EOL_TYPE.
7563
7564 2008-02-01 Andreas Schwab <schwab@suse.de>
7565
7566 * coding.c (produce_chars): Revert last change.
7567
7568 2008-02-01 Kenichi Handa <handa@m17n.org>
7569
7570 * charset.h (charset_unicode): Extern it.
7571
7572 * charset.c (string_xstring_p): Check by (C >= 0x100).
7573 (find_charsets_in_text): Change format of the arc CHARSETS. New
7574 arg MULTIBYTE.
7575 (Ffind_charset_region, Ffind_charset_string): Adjust for the
7576 change of find_charsets_in_text.
7577 (Fsplit_char): Fix doc. Never return unknown.
7578
7579 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
7580
7581 * coding.c (Fdefine_coding_system_alias): Update
7582 Vcoding_system_list.
7583
7584 * fontset.c (load_font_get_repertory): Pay attention to the case
7585 that ENCODING of a font is specified by a char-table.
7586
7587 * xterm.c (x_get_font_repertory): Handle the case that the
7588 encoding of font is other than Unicode.
7589
7590 2008-02-01 Kenichi Handa <handa@m17n.org>
7591
7592 * term.c (encode_terminal_code): Don't handle glyph-table. Check
7593 if a character is encodable by the terminal coding system. If
7594 not, produces proper number of `?'s. Update
7595 terminal_encode_buffer and terminal_encode_buf_size if necessary.
7596 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
7597
7598 2008-02-01 Kenichi Handa <handa@m17n.org>
7599
7600 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
7601 variables.
7602 (encode_terminal_code): Change argument. Encode multiple
7603 characters at once. Store the result of encoding in
7604 terminal_encode_buffer.
7605 (write_glyphs, insert_glyphs): Adjust for the change of
7606 encode_terminal_code.
7607 (term_init): Initialize terminal_encode_buffer and
7608 terminal_encode_buf_size.
7609
7610 * coding.c (consume_chars): If coding->src_object is nil, don't
7611 check annotation.
7612
7613 2008-02-01 Kenichi Handa <handa@m17n.org>
7614
7615 * character.c (char_string): Use ASCII_CHAR_P instead of
7616 SINGLE_BYTE_CHAR_P.
7617
7618 2008-02-01 Kenichi Handa <handa@m17n.org>
7619
7620 * xdisp.c (handle_auto_composed_prop): Check if the last
7621 characters of auto-composed region is newly composed with the
7622 following characters.
7623 (handle_composition_prop): Fix checking of point being inside
7624 composition.
7625
7626 2008-02-01 Kenichi Handa <handa@m17n.org>
7627
7628 * fns.c (concat): Don't change multibyteness of the result by
7629 concatenating an 8-bit character.
7630
7631 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
7632 multibyteness of the result when newelt is an 8-bit character.
7633
7634 2008-02-01 Dave Love <fx@gnu.org>
7635
7636 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
7637 EMACS_INT.
7638
7639 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
7640
7641 * xfaces.c (face_numeric_value): Declare dim size_t.
7642 (Finternal_lisp_face_equal_p): Remove unused f.
7643
7644 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
7645 (MATRIX_ROW): Remove unused vars.
7646 (draw_glyphs, x_insert_glyphs, fast_find_position)
7647 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
7648 byte/char counts.
7649
7650 * regex.c (regex_compile): Remove unused var.
7651
7652 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7653
7654 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7655 (Faccessible_keymaps, where_is_internal): Remove unused vars.
7656
7657 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
7658
7659 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
7660
7661 * fileio.c (Fwrite_region): Remove unused var.
7662
7663 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
7664 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
7665
7666 * composite.c (Fremove_list_of_text_properties): Declare.
7667
7668 * coding.c (inhibit_pre_post_conversion): Remove (unused).
7669 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
7670 (coding_inherit_eol_type): Remove unused attrs.
7671 (detect_coding): Cast arg of detect_eol.
7672
7673 * charset.c (syms_of_charset): Remove unused var p.
7674 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
7675 byte/char counts.
7676
7677 * casetab.c (set_case_table): Remove unused var.
7678
7679 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
7680 unused vars.
7681
7682 2008-02-01 Dave Love <fx@gnu.org>
7683
7684 * xterm.c (x_bitmap_mask): Declare.
7685
7686 2008-02-01 Dave Love <fx@gnu.org>
7687
7688 * xterm.c (x_term_init): Fix type error.
7689
7690 * lisp.h: Add Funibyte_char_to_multibyte.
7691
7692 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
7693 (Fset_coding_system_priority): Doc fix.
7694
7695 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
7696
7697 * indent.c (check_composition): Make start and end EMACS_INT.
7698
7699 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
7700
7701 * xdisp.c (handle_composition_prop, check_point_in_composition):
7702 Make buffer positions EMACS_INT.
7703
7704 * composite.c (find_composition, run_composition_function)
7705 (update_compositions, Ffind_composition_internal): Make buffer
7706 positions EMACS_INT.
7707
7708 * composite.h (find_composition, update_compositions): Make
7709 position args EMACS_INT.
7710
7711 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
7712
7713 * intervals.c (get_property_and_range):
7714 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
7715
7716 * unexalpha.c: Don't include varargs.h.
7717
7718 2008-02-01 Dave Love <fx@gnu.org>
7719
7720 * coding.h (ENCODE_UTF_8): New.
7721
7722 * Makefile.in (gtkutil.o): Depend on coding.h.
7723
7724 * coding.c (Fset_coding_system_priority): Doc fix.
7725
7726 2008-02-01 Kenichi Handa <handa@m17n.org>
7727
7728 * fileio.c (Finsert_file_contents): Call setup_coding_system in
7729 the case of auto saving.
7730
7731 2008-02-01 Andreas Schwab <schwab@suse.de>
7732
7733 * chartab.c (map_char_table, map_char_table_for_charset): Protect
7734 `range' from GC.
7735
7736 2008-02-01 Kenichi Handa <handa@m17n.org>
7737
7738 * coding.c (decode_coding_sjis): Check bytes more rigidly.
7739
7740 2008-02-01 Kenichi Handa <handa@m17n.org>
7741
7742 * fileio.c (choose_write_coding_system): Return a decided coding system.
7743 (Fwrite_region): Set Vlast_coding_system_used to the return value
7744 of choose_write_coding_system.
7745
7746 2008-02-01 Kenichi Handa <handa@m17n.org>
7747
7748 * charset.c (Fset_charset_priority): Pay attention to duplicated
7749 arguments.
7750
7751 * coding.c (QCcategory): New variable.
7752 (syms_of_coding): Defsym it. Set all elements of
7753 Vcoding_category_table and their symbol values.
7754 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
7755 coding-category-XXX, and coding-category-list.
7756 (Fdefine_coding_system_internal): Add category in the plist.
7757
7758 2008-02-01 Kenichi Handa <handa@m17n.org>
7759
7760 * callproc.c (Fcall_process): Handle carryover correctly.
7761
7762 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
7763 (raw_text_coding_system): Check NILP (coding_system).
7764 (coding_inherit_eol_type): Check NILP (coding_system) and
7765 NILP (parent).
7766 (consume_chars): Fix for the case of raw-text.
7767
7768 * process.c (read_process_output): Handle carryover correctly.
7769
7770 2008-02-01 Dave Love <fx@gnu.org>
7771
7772 * regex.c (re_search_2): Fix last change.
7773
7774 2008-02-01 Kenichi Handa <handa@m17n.org>
7775
7776 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
7777 target_multibyte. Even in a unibyte case, return a converted
7778 multibyte char.
7779 (GET_CHAR_AFTER): New macro.
7780 (PATFETCH): Translate via multibyte char.
7781 (HANDLE_UNIBYTE_RANGE): Delete this macro.
7782 (SETUP_MULTIBYTE_RANGE): New macro.
7783 (regex_compile): Setup compiled code so that its multibyteness
7784 matches that of a target. Fix the handling of "[X-YZ]" using
7785 SETUP_MULTIBYTE_RANGE.
7786 (analyse_first) <charset>: For filling fastmap for all multibyte
7787 characters, don't check by BASE_LEADING_CODE_P.
7788 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
7789 the same as RE_MULTIBYTE_P (bufp) now.
7790 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
7791 (TARGET_CHAR_AND_LENGTH): Delete this macro.
7792 (TRANSLATE_VIA_MULTIBYTE): New macro.
7793 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
7794 It is the same as RE_MULTIBYTE_P (bufp) now.
7795 <exactn>: Translate via multibyte.
7796 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
7797 translate it.
7798 <charset, charset_not>: Fetch a character by
7799 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
7800 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
7801 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
7802 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
7803 by GET_CHAR_AFTER.
7804 (bcmp_translate): Likewise.
7805
7806 * search.c (compile_pattern): Check the member target_multibyte,
7807 not the member multibyte of buf.
7808
7809 * lread.c (read1): While reading a string, set force_singlebyte
7810 and force_multibyte correctly.
7811
7812 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
7813 up of unibyte_to_multibyte_table.
7814
7815 2008-02-01 Kenichi Handa <handa@m17n.org>
7816
7817 * coding.c (setup_coding_system): If coding has
7818 post-read-conversion or pre-write-conversion, set
7819 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
7820 respectively.
7821 (decode_coding_gap): Run post-read-conversion if any.
7822
7823 * fileio.c (Finsert_file_contents): Even if we read into a
7824 unibyte buffer, check if we must decode the result or not.
7825
7826 2008-02-01 Kenichi Handa <handa@m17n.org>
7827
7828 * coding.c (make_conversion_work_buffer): Change the work buffer
7829 name to the same one as that of Emacs 21.
7830
7831 2008-02-01 Kenichi Handa <handa@m17n.org>
7832
7833 * coding.h (make_conversion_work_buffer): Adjust prototype.
7834 (code_conversion_restore): Don't extern it.
7835
7836 * coding.c (detected_mask): Delete unused variable.
7837 (decode_coding_iso_2022): Pay attention to the byte sequence of
7838 CTEXT extended segment, and retain those bytes as is.
7839 (decode_coding_ccl): Delete unused variable `valids'.
7840 (setup_coding_system): Delete unused variable `category'.
7841 (consume_chars): Delete unused variable `category'. Make it work
7842 for non-multibyte case.
7843 (make_conversion_work_buffer): Change argument.
7844 (saved_coding): Delete unused variable.
7845 (code_conversion_restore): Don't check saved_coding->destination.
7846 (code_conversion_save): New function.
7847 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
7848 instead of record_unwind_protect.
7849 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
7850 (detect_coding_system): Delete unused variable `mask'.
7851 (Fdefine_coding_system_internal): Delete unused vaiable id.
7852
7853 * fileio.c (kill_workbuf_unwind): New function.
7854 (Finsert_file_contents): On replacing, call
7855 make_conversion_work_buffer with correct args, and call
7856 record_unwind_protect with the first arg kill_workbuf_unwind.
7857
7858 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
7859
7860 2008-02-01 Kenichi Handa <handa@m17n.org>
7861
7862 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
7863 (fontset_add): Fix for the case that TO is less than TO1.
7864 (Ffontset_info): Don't use fallback fontset on checking the
7865 default fontset.
7866 (dump_fontset): New function for debugging.
7867
7868 * coding.c (Fdefine_coding_system_internal): Fix for the case that
7869 coding_type is Qcharset.
7870
7871 2008-02-01 Kenichi Handa <handa@m17n.org>
7872
7873 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
7874 (map_char_table): Don't inherit the value from the parent on
7875 initializing VAL. Adjust for the above change.
7876
7877 2008-02-01 Kenichi Handa <handa@m17n.org>
7878
7879 * coding.c (Qsignature, Qendian): Delete these variables.
7880 (syms_of_coding): Don't initialize them.
7881 (CATEGORY_MASK_UTF_16_AUTO): New macro.
7882 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
7883 detect_info->found.
7884 (decode_coding_utf_16): Don't detect BOM here.
7885 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
7886 is NOT utf_16_without_bom.
7887 (setup_coding_system): For a coding system of type utf-16, check
7888 if the attribute :endian is Qbig or not (not nil or not), and set
7889 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
7890 (detect_coding): If coding type is utf-16 and BOM detection is
7891 required, detect it.
7892 (Fdefine_coding_system_internal): For a coding system of type
7893 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
7894
7895 2008-02-01 Kenichi Handa <handa@m17n.org>
7896
7897 * coding.c (coding_set_source): Fix for the case that the current
7898 buffer is different from coding->src_object.
7899 (decode_coding_object): Don't use the conversion work buffer if
7900 DST_OBJECT is a buffer.
7901
7902 2008-02-01 Dave Love <fx@gnu.org>
7903
7904 * lread.c (read_emacs_mule_char) [len==2]: Index
7905 emacs_mule_charset correctly.
7906
7907 2008-02-01 Dave Love <fx@gnu.org>
7908
7909 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
7910 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
7911 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
7912 treated specially.)
7913 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
7914 (detected_mask): Remove Big5 bits.
7915
7916 2008-02-01 Kenichi Handa <handa@m17n.org>
7917
7918 The following changes are to make the font rescaling facility
7919 compatible with Emacs 21.
7920
7921 * xfaces.c (Vface_font_rescale_alist): Rename from
7922 Vface_resizing_fonts.
7923 (struct font_name): Rename member resizing_ratio to rescale_ratio.
7924 (font_rescale_ratio): Rename from font_resizing_ratio.
7925 (split_font_name): Set font->rescale_ratio.
7926 (better_font_p): Pay attention to font->rescale_ratio.
7927 (build_scalable_font_name): Likewise. Change RESX, and RESY
7928 fields.
7929 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
7930
7931 2008-02-01 Kenichi Handa <handa@m17n.org>
7932
7933 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
7934 (Qutf_16_le): Remove these variables.
7935 (syms_of_coding): Don't DEFSYM them.
7936 (decode_coding_utf_16): Fix handling of BOM.
7937 (encode_coding_utf_16): Fix handling of BOM.
7938
7939 2008-02-01 Kenichi Handa <handa@m17n.org>
7940
7941 * fileio.c (Finsert_file_contents): On replacing, before decoding
7942 the file into the work buffer, set point of the work buffer to the end.
7943
7944 2008-02-01 Dave Love <fx@gnu.org>
7945
7946 * coding.c (Fcheck_coding_systems_region): Fix type errors.
7947
7948 2008-02-01 Dave Love <fx@gnu.org>
7949
7950 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7951 and fix C types.
7952
7953 2008-02-01 Kenichi Handa <handa@m17n.org>
7954
7955 * xdisp.c (SKIP_GLYPHS): New macro.
7956 (set_cursor_from_row): Pay attention to string display properties.
7957
7958 * category.c (copy_category_entry): Fix for the case that RANGE
7959 is an integer.
7960
7961 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
7962
7963 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
7964
7965 2008-02-01 Kenichi Handa <handa@m17n.org>
7966
7967 * charset.c (Fcharset_id_internal): New function.
7968 (syms_of_charset): Defsubr it.
7969
7970 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
7971 with the last arg charset_list acquired from coding.
7972 (Fdefine_coding_system_internal): For ccl-based coding system, fix
7973 the attribute coding_attr_ccl_valids.
7974
7975 * coding.h (enum define_coding_ccl_arg_index): Set the first
7976 member coding_arg_ccl_decoder to coding_arg_max.
7977
7978 * ccl.h (ccl_driver): Adjust prototype.
7979
7980 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
7981 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
7982 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
7983 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
7984 last arg Qnil.
7985
7986 2008-02-01 Kenichi Handa <handa@m17n.org>
7987
7988 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
7989 call encode_char.
7990
7991 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
7992
7993 2008-02-01 Dave Love <fx@gnu.org>
7994
7995 * composite.c (syms_of_composite): Make composition_hash_table weak.
7996
7997 2008-02-01 Kenichi Handa <handa@m17n.org>
7998
7999 * dispextern.h (check_face_attributes, generate_ascii_font_name)
8000 (font_name_registry): Don't extern them.
8001 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
8002
8003 * fontset.h (Qfontset): Don't extern it.
8004 (new_fontset_from_font_name): Extern it.
8005
8006 * fontset.c: Give 8 extra slots to fontset objects.
8007 (Qfontset_info): New variable.
8008 (syms_of_fontset): Defsym it.
8009 (FONTSET_FALLBACK): New macro.
8010 (fontset_face): Try also the default fontset.
8011 (make_fontset): Realize a fallback fontset from the default fontset.
8012 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
8013 using split_font_name_into_vector and build_font_name_from_vector.
8014 (Fset_fontset_font): Access the elements of font_spec by enum
8015 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
8016 name by using split_font_name_into_vector.
8017 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
8018 generate a proper font name from the fontset name. Update
8019 Vfontset_alias_alist.
8020 (n_auto_fontsets): New variable.
8021 (new_fontset_from_font_name): New function.
8022 (Ffont_info): Store the information about fonts generated from the
8023 default fontset in the first extra slot of the returned char-table.
8024
8025 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
8026 (font_name_registry): Delete function.
8027 (split_font_name_into_vector): New function.
8028 (build_font_name_from_vector): New function.
8029 (font_list): The argument REGISTRY is now a list of registry names.
8030 (choose_face_font): If we are choosing an ASCII font, and ATTRS
8031 specifies an explicit font name, return the name as is. Make a
8032 list of registy names.
8033
8034 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
8035 of x_new_fontset.
8036 (Fx_create_frame): Don't call x_new_fontset here. Just use
8037 x_list_fonts to check the existence of fonts.
8038
8039 * xterm.h (x_new_fontset): Adjust prototype.
8040
8041 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
8042 string. Use new_fontset_from_font_name to create a fontset from a
8043 font name.
8044
8045 2008-02-01 Kenichi Handa <handa@m17n.org>
8046
8047 * syntax.c (Vfind_word_boundary_function_table): New name for
8048 Vnext_word_boundary_function_table.
8049 (find-word-boundary-function-table): New name for
8050 next-word-boundary-function-table.
8051
8052 2008-02-01 Dave Love <fx@gnu.org>
8053
8054 * Makefile.in: Fix some dependencies.
8055
8056 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
8057 set it to nil before returning.
8058
8059 * composite.c (update_compositions): Fix type error.
8060
8061 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
8062
8063 2008-02-01 Kenichi Handa <handa@m17n.org>
8064
8065 * xterm.c (x_new_font): Optimize for the case that the font is
8066 already set for the frame.
8067
8068 2008-02-01 Kenichi Handa <handa@m17n.org>
8069
8070 * chartab.c (char_table_ascii): Check if the char table contents
8071 is sub-char-table or not.
8072 (char_table_set, char_table_set_range): Fix argument to
8073 char_table_ascii.
8074
8075 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
8076 (detect_coding_utf_8, detect_coding_utf_16)
8077 (detect_coding_emacs_mule, detect_coding_iso_2022)
8078 (detect_coding_sjis, detect_coding_big5)
8079 (detect_coding_ccl, detect_coding_charset): Change argument MASK
8080 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
8081 sequence is valid in this coding system. Change callers.
8082 (MAX_ANNOTATION_LENGTH): New macro.
8083 (ADD_ANNOTATION_DATA): New macro.
8084 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
8085 ADD_ANNOTATION_DATA. Change the format of annotation data.
8086 (ADD_CHARSET_DATA): New macro.
8087 (emacs_mule_char): New argument ID. Change callers.
8088 (decode_coding_emacs_mule, decode_coding_iso_2022)
8089 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8090 Produce charset annotation data in coding->charbuf.
8091 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
8092 to charset annotation data in coding->charbuf.
8093 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
8094 coding->common_flags if the coding system is iso-2022 based and
8095 uses designation.
8096 (produce_composition): Adjust for the new annotation data format.
8097 (produce_charset): New function.
8098 (produce_annotation): Handle charset annotation.
8099 (handle_composition_annotation, handle_charset_annotation): New
8100 functions.
8101 (consume_chars): Handle charset annotation. Utilize the above two
8102 functions.
8103 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
8104 buffer, get the deleted text as a string and set
8105 coding->src_object to that string.
8106 (detect_coding, detect_coding_system): Use the new struct
8107 coding_detection_info.
8108
8109 * coding.h (struct coding_detection_info): New structure.
8110 (struct coding_system): Adjust prototype of the member `detector'.
8111 (CODING_ANNOTATE_CHARSET_MASK): New macro.
8112
8113 2008-02-01 Kenichi Handa <handa@m17n.org>
8114
8115 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
8116
8117 2008-02-01 Dave Love <fx@gnu.org>
8118
8119 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
8120 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
8121 to new local and nullify apropos_accumulate before returning.
8122 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
8123
8124 2008-02-01 Kenichi Handa <handa@m17n.org>
8125
8126 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
8127 correctly.
8128
8129 2008-02-01 Dave Love <fx@gnu.org>
8130
8131 * fns.c (Flanginfo): Call synchronize_system_time_locale.
8132
8133 2008-02-01 Kenichi Handa <handa@m17n.org>
8134
8135 The following changes are to make character composition happen
8136 automatically on displaying.
8137
8138 * Makefile.in (lisp, shortlisp): Add composite.elc.
8139
8140 * composite.h (Qauto_composed, Vauto_composition_function)
8141 (Qauto_composition_function): Extern them.
8142
8143 * composite.c (Vcomposition_function_table)
8144 (Qcomposition_function_table): Delete variables.
8145 (Qauto_composed, Vauto_composition_function)
8146 (Qauto_composition_function): New variables.
8147 (run_composition_function): Don't call
8148 compose-chars-after-function.
8149 (update_compositions): Clear `auto-composed' text property.
8150 (compose_chars_in_text): Delete this function.
8151 (syms_of_composite): Staticpro Qauto_composed and
8152 Qauto_composition_function. Declare Vauto_composition_function as
8153 a Lisp variable.
8154
8155 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
8156
8157 * xdisp.c (it_props): Add an entry for Qauto_composed.
8158 (handle_auto_composed_prop): New function.
8159
8160 * xselect.c (selection_data_to_lisp_data): Don't call
8161 compose_chars_in_text.
8162
8163 2008-02-01 Dave Love <fx@gnu.org>
8164
8165 * keyboard.c (read_char): Modify checking around use of
8166 Vkeyboard_translate_table.
8167
8168 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8169 and fix C types.
8170
8171 2008-02-01 Kenichi Handa <handa@m17n.org>
8172
8173 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
8174 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8175 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
8176 the case that the last byte is '\r' correctly.
8177 (decode_coding): Flush out the unprocessed data correctly.
8178 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
8179
8180 2008-02-01 Dave Love <fx@gnu.org>
8181
8182 * xterm.c (XTread_socket): Fix changes for defined keysyms.
8183 Add XK_ISO... case.
8184 (xaw_scroll_callback): Revert last change.
8185
8186 2008-02-01 Kenichi Handa <handa@m17n.org>
8187
8188 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
8189
8190 2008-02-01 Kenichi Handa <handa@m17n.org>
8191
8192 * xfaces.c (Vface_resizing_fonts): New variable.
8193 (struct font_name): New member `resizing_ratio'.
8194 (font_resizing_ratio): New function.
8195 (split_font_name): Set font->resizing_ratio.
8196 (better_font_p): Pay attention to font->resizing_ratio.
8197 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
8198 RESX, and RESY fields.
8199 (try_alternative_families): Try scalable fonts if
8200 Vscalable_fonts_allowed is not Qt.
8201 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
8202
8203 2008-02-01 Dave Love <fx@gnu.org>
8204
8205 * xterm.c (xaw_scroll_callback): Cast correctly.
8206
8207 2008-02-01 Dave Love <fx@gnu.org>
8208
8209 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
8210 (lispy_kana_keys): Comment out.
8211 (make_lispy_event) [XK_kana_A]: Comment out.
8212
8213 * xterm.c (xaw_scroll_callback): Cast call_data.
8214 (XTread_socket): Deal with ASCII keysyms.
8215 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
8216
8217 2008-02-01 Dave Love <fx@gnu.org>
8218
8219 * xterm.c (Vx_keysym_table): New.
8220 (syms_of_xterm): Initialize it.
8221 (XTread_socket): Use it.
8222 From head: Eliminate incorrect optimization that tried to avoid
8223 decoding the output of X*LookupString.
8224 (x_get_font_repertory): Delete charset declaration.
8225
8226 2008-02-01 Kenichi Handa <handa@m17n.org>
8227
8228 * coding.c (detect_coding_charset): If only ASCII bytes are found,
8229 return 0.
8230 (Fdefine_coding_system_internal): Setup
8231 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
8232
8233 2008-02-01 Dave Love <fx@gnu.org>
8234
8235 * coding.c (Fcheck_coding_system): Doc fix.
8236
8237 * editfns.c (Finsert_byte): Return a proper value.
8238
8239 2008-02-01 Kenichi Handa <handa@m17n.org>
8240
8241 * coding.c (decode_coding): Fix args to translate_chars. Pay
8242 attention to Vstandard_translation_table_for_decode.
8243 (encode_coding): Fix args to translate_chars. Pay attention to
8244 Vstandard_translation_table_for_encode.
8245
8246 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
8247 SINGLE_BYTE_CHAR_P.
8248
8249 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
8250 not by SINGLE_BYTE_CHAR_P.
8251
8252 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
8253 SINGLE_BYTE_CHAR_P.
8254
8255 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
8256 SINGLE_BYTE_CHAR_P.
8257
8258 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
8259 by SINGLE_BYTE_CHAR_P.
8260
8261 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
8262 SINGLE_BYTE_CHAR_P.
8263
8264 2008-02-01 Dave Love <fx@gnu.org>
8265
8266 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
8267
8268 2008-02-01 Dave Love <fx@gnu.org>
8269
8270 * fns.c (Flanginfo): Fix typo.
8271
8272 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
8273
8274 2008-02-01 Kenichi Handa <handa@m17n.org>
8275
8276 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
8277 (detect_coding_emacs_mule, detect_coding_iso_2022)
8278 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
8279 incomplete byte sequence. Don't update *mask when correctly detected.
8280 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
8281 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
8282 (detect_coding, detect_coding_system): Adjust for the changes above.
8283
8284 2008-02-01 Kenichi Handa <handa@m17n.org>
8285
8286 * character.c (char_string): Rename from
8287 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
8288 (string_char): Rename from string_char.
8289
8290 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
8291 if C is greater than MAX_3_BYTE_CHAR.
8292 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
8293 string_char instead of string_char_with_unification.
8294
8295 2008-02-01 Dave Love <fx@gnu.org>
8296
8297 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
8298
8299 2008-02-01 Kenichi Handa <handa@m17n.org>
8300
8301 * keymap.c (push_key_description): Pay attention to force_multibyte.
8302
8303 * regex.c (re_search_2): Fix for the case of unibyte buffer.
8304
8305 2008-02-01 Dave Love <fx@gnu.org>
8306
8307 * charset.c (define_charset_internal): Rename `supprementary'.
8308
8309 * Makefile.in (lisp, shortlisp): Remove latin-N.
8310
8311 2008-02-01 Dave Love <fx@gnu.org>
8312
8313 * xfns.c (x_window, x_window): Use use_xim.
8314
8315 * xterm.c (use_xim): Initialize.
8316 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8317 (x_term_init): Maybe set use_xim.
8318
8319 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8320
8321 2008-02-01 Kenichi Handa <handa@m17n.org>
8322
8323 * search.c (search_buffer): Fix case-fold-search of multibyte
8324 characters.
8325 (boyer_moore): Rename the last argument to char_high_bits.
8326
8327 2008-02-01 Kenichi Handa <handa@m17n.org>
8328
8329 * xdisp.c (display_string): Fix for the case of zero width glyph.
8330
8331 * xfns.c (x_set_font): Change the error message of the case that
8332 x_new_fontset returns Qt.
8333
8334 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
8335 (Finternal_set_lisp_face_attribute): Use signal_error for the
8336 error of invalid fontset.
8337
8338 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
8339 fontset, return Qt.
8340
8341 2008-02-01 Dave Love <fx@gnu.org>
8342
8343 * unexelf.c (unexec): Make .got handling not SGI-specific.
8344
8345 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
8346
8347 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
8348
8349 * keyboard.c (read_key_sequence): Fix type error.
8350
8351 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
8352 type error.
8353
8354 * fontset.c (fontset_add): Return Lisp_Object.
8355
8356 2008-02-01 Dave Love <fx@gnu.org>
8357
8358 * charset.h (charset_ordered_list_tick): Declare extern.
8359
8360 2008-02-01 Kenichi Handa <handa@m17n.org>
8361
8362 The following changes (and some of 2008-02-01 changes of mine) are
8363 for handling syntax, category, and case conversion for unibyte
8364 characters by converting them to multibyte on the fly. With these
8365 changes, we don't have to setup syntax and case tables for unibyte
8366 characters in each language environment.
8367
8368 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
8369 multibyte if necessary.
8370
8371 * bytecode.c (Fbyte_code): Likewise.
8372
8373 * character.h (LEADING_CODE_LATIN_1_MIN)
8374 (LEADING_CODE_LATIN_1_MAX): New macros.
8375 (unibyte_to_multibyte_table): Extern it.
8376 (unibyte_char_to_multibyte): New macro.
8377 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
8378 (CHAR_LEADING_CODE): New macro.
8379 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
8380
8381 * character.c (unibyte_to_multibyte_table): New variable.
8382 (unibyte_char_to_multibyte): Move to character.h and define as macro.
8383 (multibyte_char_to_unibyte): If C is an eight-bit character,
8384 convert it to the corresponding byte value.
8385
8386 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
8387 not 1, singals an error. Update the elements of
8388 unibyte_to_multibyte_table.
8389 (init_charset_once): Initialize unibyte_to_multibyte_table.
8390 (syms_of_charset): Define the charset `iso-8859-1'.
8391
8392 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
8393 as is without converting it to unibyte. In a unibyte buffer,
8394 convert C to multibyte before checking the syntax.
8395
8396 * lisp.h (unibyte_char_to_multibyte): Delete extern.
8397
8398 * minibuf.c (Fminibuffer_complete_word): Use the macro
8399 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
8400
8401 * regex.h (struct re_pattern_buffer): New member target_multibyte.
8402
8403 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
8404 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
8405 that is zero, convert an eight-bit char to multibyte.
8406 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
8407 non-emacs case.
8408 (PATFETCH): Convert an eight-bit char to multibyte.
8409 (HANDLE_UNIBYTE_RANGE): New macro.
8410 (regex_compile): Setup the compiled pattern for multibyte chars
8411 even if the given regex string is unibyte. Use PATFETCH_RAW
8412 instead of PATFETCH in many places. To handle `charset'
8413 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
8414 only for ASCII chars.
8415 (analyse_first) <exactn>: Simplify because the compiled pattern
8416 is multibyte.
8417 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
8418 <charset>: Use CHAR_LEADING_CODE to get leading codes.
8419 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
8420 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
8421 multibyte always 1.
8422 (re_search_2): In emacs, set the locale variable multibyte to 1,
8423 otherwise to 0. New local variable target_multibyte. Check it
8424 to decide the multibyteness of STR1 and STR2. If
8425 target_multibyte is zero, convert unibyte chars to multibyte
8426 before translating and checking fastmap.
8427 (TARGET_CHAR_AND_LENGTH): New macro.
8428 (re_match_2_internal): In emacs, set the locale variable multibyte
8429 to 1, otherwise to 0. New local variable target_multibyte. Check
8430 it to decide the multibyteness of STR1 and STR2. Use
8431 TARGET_CHAR_AND_LENGTH to fetch a character from D.
8432 <charset, charset_not>: If multibyte is nonzero, check fastmap
8433 only for ASCII chars. Call bcmp_translate with
8434 target_multibyte, not with multibyte.
8435 <begline>: Declare the local variable C as `unsigned'.
8436 (bcmp_translate): Change the last arg name to target_multibyte.
8437
8438 * search.c (compile_pattern_1): Don't adjust the multibyteness of
8439 the regexp pattern and the matching target. Set cp->buf.multibyte
8440 to the multibyteness of the regexp pattern. Set
8441 cp->but.target_multibyte to the multibyteness of the matching target.
8442 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
8443 FETCH_STRING_CHAR_ADVANCE.
8444 (Freplace_match): Convert unibyte chars to multibyte.
8445
8446 * syntax.c (char_quoted, back_comment, scan_words)
8447 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
8448 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
8449 unibyte chars to multibyte.
8450 (skip_chars): Delete the arg syntaxp, and move the code for
8451 handling syntaxes to skip_syntaxes. Change callers.
8452 Fix the case that the multibyteness of STRING and the current
8453 buffer doesn't match.
8454 (skip_syntaxes): New function.
8455 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
8456 SINGLE_BYTE_CHAR_P.
8457
8458 2008-02-01 Kenichi Handa <handa@m17n.org>
8459
8460 * xfaces.c (QCfontset): New variable.
8461 (LFACE_FONTSET): New macro.
8462 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
8463 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
8464 (Finternal_set_lisp_face_attribute)
8465 (Finternal_get_lisp_face_attribute): Handle QCfontset.
8466 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
8467 check also LFACE_FONTSET_INDEX.
8468 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
8469 attrs[LFACE_FONT_INDEX].
8470 (syms_of_xfaces): Intern and staticpro QCfontset.
8471
8472 * dispextern.h (enum lface_attribute_index): New member
8473 LFACE_FONTSET_INDEX.
8474
8475 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
8476
8477 2008-02-01 Kenichi Handa <handa@m17n.org>
8478
8479 * coding.c (coding_set_destination): Fix coding->destination for
8480 the case converting a region.
8481 (encode_coding_utf_8): Encode eight-bit chars as single byte.
8482 (encode_coding_object): Fix coding->dst_pos and
8483 coding->dst_pos_byte for the case converting a region.
8484
8485 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
8486
8487 * character.h (BYTE8_STRING): New macro.
8488
8489 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
8490
8491 2008-02-01 Kenichi Handa <handa@m17n.org>
8492
8493 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
8494 characters by octal form.
8495
8496 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8497
8498 * buffer.h (_fetch_multibyte_char_len): Delete extern.
8499 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
8500 _fetch_multibyte_char_len.
8501 (FETCH_CHAR_AS_MULTIBYTE): New macro.
8502
8503 * casetab.c (set_canon, set_identity, shuffle): Simplify.
8504
8505 * casefiddle.c (casify_object): Simplify. Handle the case that
8506 the case conversion change the byte length.
8507 (casify_region): Likewise.
8508
8509 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
8510
8511 * character.c (_fetch_multibyte_char_len): Delet this variable.
8512 (syms_of_character): Setup Vprintable_chars.
8513
8514 * editfns.c (Fchar_equal): Fix for the unibyte case.
8515 (Finsert_byte): New function.
8516 (syms_of_editfns): Defsubr it.
8517
8518 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
8519 of direct code 0x3ffff.
8520
8521 * search.c (Freplace_match): Fix for the unibyte case.
8522
8523 2008-02-01 Kenichi Handa <handa@m17n.org>
8524
8525 * lread.c (safe_to_load_p): Fix the logic.
8526
8527 * syntax.c (scan_words): Don't treat characters belonging to
8528 different scripts as constituting a word.
8529
8530 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8531
8532 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
8533
8534 * emacs.c (main): In the case of --unibyte, instead of aborting on
8535 finding non-empty buffer, make it unibyte.
8536
8537 2008-02-01 Kenichi Handa <handa@m17n.org>
8538
8539 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
8540 to create a fontset.
8541
8542 2008-02-01 Dave Love <fx@gnu.org>
8543
8544 * character.c (Funibyte_char_to_multibyte): Doc fix.
8545
8546 * xfns.c [HAVE_STDLIB_H]: Fix last change.
8547
8548 2008-02-01 Kenichi Handa <handa@m17n.org>
8549
8550 * fontset.c (fontset_add): Make the type `int'.
8551 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
8552
8553 * character.c (unibyte_char_to_multibyte)
8554 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
8555 charset_unibyte, not charset_primary.
8556
8557 * charset.h (charset_unibyte): Extern it instead of charset_primary.
8558
8559 * charset.c (charset_unibyte): Rename from charset_primary.
8560 (Funibyte_charset): Rename from Fprimary_charset.
8561 (Fset_unibyte_charset): Rename from Fset_primary_charset.
8562 (syms_of_charset): Adjust for the above changes.
8563
8564 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8565 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8566 it->multibyte_p is zero.
8567
8568 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
8569 Delete extern.
8570
8571 2008-02-01 Kenichi Handa <handa@m17n.org>
8572
8573 * coding.c (Fdefine_coding_system_internal): Fix category setting
8574 for a coding system of type iso-2022.
8575
8576 2008-02-01 Kenichi Handa <handa@m17n.org>
8577
8578 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
8579
8580 2008-02-01 Kenichi Handa <handa@m17n.org>
8581
8582 * syntax.c (Vnext_word_boundary_function_table): New variable.
8583 (next-word-boundary-function-table): Declare it as a Lisp variable
8584 in syms_of_syntax.
8585 (scan_words): Call functions in Vnext_word_boundary_function_table
8586 if any.
8587
8588 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
8589
8590 * fontset.c (fs_load_font): If fontp->charset is not negative,
8591 return fontp without setting its members.
8592
8593 2008-02-01 Dave Love <fx@gnu.org>
8594
8595 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
8596
8597 * m/sparc.h (HAVE_ALLOCA): Delete.
8598
8599 * s/irix6-5.h: Don't include strings.h.
8600 (bcopy, bzero, bcmp): Don't undef.
8601
8602 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
8603
8604 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
8605 (TIOCSIGSEND): Don't test IRIX6.
8606 (bcopy, bzero, bcmp): Define conditionally.
8607
8608 2008-02-01 Kenichi Handa <handa@m17n.org>
8609
8610 * buffer.c (Qas, Qmake, Qto): New variables.
8611 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
8612 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
8613
8614 * callproc.c (Fcall_process): Don't call insert_1_both directly if
8615 we are inserting a process output into a multibyte buffer.
8616
8617 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
8618 multibyte_char_to_unibyte.
8619
8620 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
8621 by the primary charset, make it eight-bit char.
8622 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
8623
8624 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
8625 (charset_8_bit__control, charset_8_bit_graphic)
8626 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
8627 (define_charset_internal): New function.
8628 (syms_of_charset): Call define_charset_internal for pre-defined
8629 charsets.
8630
8631 * charset.h (charset_8_bit): Extern it.
8632
8633 * coding.c (make_conversion_work_buffer): Adjust for the change
8634 of Fset_buffer_multibyte.
8635 (encode_coding_raw_text): Increment p0 in the loop.
8636
8637 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
8638
8639 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
8640 for the change of Fset_buffer_multibyte.
8641
8642 * fns.c (Fstring_to_multibyte): New function.
8643 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
8644
8645 2008-02-01 Dave Love <fx@gnu.org>
8646
8647 * xfns.c (x_put_x_image): Declare args.
8648
8649 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
8650 (try_font_list): Declare an arg.
8651
8652 * xdisp.c (message2_nolog, set_message): Declare an arg.
8653
8654 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
8655
8656 * syntax.c (scan_sexps_forward): Declare an arg.
8657
8658 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8659 Declare an arg.
8660
8661 * lisp.h (Fnew_fontset): Declare.
8662
8663 * keymap.c (push_key_description): Call CHARACTERP correctly.
8664
8665 * fontset.c (fontset_add): Declare args. Call make_number correctly.
8666 (face_for_char): Delete unused vars.
8667 (Fset_fontset_font): Doc fix. Delete unused vars.
8668
8669 * doc.c (Fsubstitute_command_keys): Delete unused vars.
8670
8671 * composite.c (update_compositions): Declare arg.
8672
8673 * cm.c (calccost, cmgoto): Declare args.
8674
8675 * charset.c: Remove `emacs' conditional. Doc fixes.
8676 (map_char_table_for_charset): Declare.
8677
8678 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
8679
8680 * ccl.c: Remove `emacs' conditional.
8681
8682 2008-02-01 Kenichi Handa <handa@m17n.org>
8683
8684 The following changes are to allow specifying multiple font
8685 patterns for a character range (specified by script or charset).
8686
8687 * Makefile.in (abbrev.o): Depend on syntax.h.
8688 (xfaces.o): Depend on charset.h.
8689
8690 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
8691 SINGLE_BYTE_CHAR_P.
8692
8693 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
8694
8695 * character.h (Vchar_script_table): Extern it.
8696
8697 * character.c (Vscript_alist): Delete.
8698 (Vchar_script_table, Qchar_script_table): New variable.
8699 (syms_of_character): Declare Vchar_script_table as a lisp variable
8700 and initialize it.
8701
8702 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
8703 have property char-table-extra-slots, make no extra slot.
8704
8705 * dispextern.h (struct face): Delete member `charset'.
8706 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
8707 SINGLE_BYTE_CHAR_P.
8708 (choose_face_font, lookup_non_ascii_face, font_name_registry):
8709 Add prototypes.
8710 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
8711 (generate_ascii_font_name): Rename from generate_ascii_font.
8712
8713 * fontset.h (get_font_repertory_func): New prototype.
8714 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
8715 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
8716
8717 * fontset.c (Qprepend, Qappend): New variables.
8718 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
8719 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
8720 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
8721 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
8722 (fontset_ref_and_range, fontset_add, reorder_font_vector)
8723 (load_font_get_repertory): New functions.
8724 (fontset_set): Delete.
8725 (fontset_face): New arg FACE. Return face ID, not face.
8726 Complete re-write to handle new fontset structure. Change caller.
8727 (free_face_fontset): Use ASET istead of AREF (X) = Y.
8728 (face_for_char): Don't call lookup_face.
8729 (make_fontset_for_ascii_face): New arg FACE.
8730 (fs_load_font): New arg CHARSET_ID. Don't check
8731 Vfont_encoding_alist here.
8732 (find_font_encoding): New function.
8733 (list_fontsets): Use STRINGP, not ! NILP.
8734 (accumulate_script_ranges): New function.
8735 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
8736 re-written to handle new fontset structure.
8737 (Ffontset_font): Return a copy of element.
8738 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
8739 docstring of font-encoding-alist.
8740
8741 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
8742 (Fset_fotset_font): Fix arguments to 5.
8743
8744 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
8745
8746 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
8747 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8748 (highlight_trailing_whitespace): Adjust for the change of
8749 lookup_named_face.
8750
8751 * xfaces.c: Include charset.h.
8752 (load_face_font): Delete argument C. Change caller.
8753 (generate_ascii_font_name): Rename from generate_ascii_font.
8754 (font_name_registry): New function.
8755 (cache_face): Store ascii faces before non-ascii faces in buckets.
8756 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
8757 Lookup only ascii faces.
8758 (lookup_non_ascii_face): New function.
8759 (lookup_named_face): Delete argument C. Change caller.
8760 (lookup_derived_face): Delete argument C. Change caller.
8761 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
8762 a string, just call font_list with it.
8763 (choose_face_font): Delete arguments FACE and C. New arg
8764 FONT_SPEC. Change caller.
8765 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
8766 Change caller.
8767 (realize_non_ascii_face): New function.
8768 (realize_x_face): Call load_face_font here.
8769 (realize_tty_face): Delete argument C. Change caller.
8770 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
8771 get a face ID.
8772 (dump_realized_face): Don't print charset of FACE.
8773
8774 * xfns.c (x_set_font): Always call x_new_fontset and
8775 store_frame_parameter.
8776 (Fx_create_frame): Call x_new_fontset, not x_new_font.
8777 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
8778
8779 * xterm.h (x_get_font_repertory): Extern it.
8780
8781 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8782 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8783 it->multibyte_p is zero.
8784 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8785 (x_new_fontset): If FONTSETNAME doesn't match any existing
8786 fontsets, create a new one.
8787 (x_get_font_repertory): New function.
8788
8789 2008-02-01 Kenichi Handa <handa@m17n.org>
8790
8791 * coding.c (Ffind_coding_systems_region_internal): Detect an
8792 ASCII only string correctly.
8793
8794 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
8795 version is 0.
8796
8797 2008-02-01 Kenichi Handa <handa@m17n.org>
8798
8799 * lread.c: Include "coding.h".
8800 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
8801 (load_each_byte, unread_char): New variables.
8802 (readchar_backlog): Delete.
8803 (readchar): Return a character unless load_each_byte is nonzero.
8804 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
8805 cons. If unread_char is not -1, simply return it.
8806 (unreadchar): Handle the case that readcharfun is
8807 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
8808 (read_multibyte): Delete.
8809 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
8810 (read_emacs_mule_char): New functions.
8811 (Fload): Even if the file doesn't have the extention ".elc", if
8812 safe_to_load_p returns a positive version number, assume that the
8813 file contains bytecompiled code. If the version is less than 22,
8814 load the file while decoding multibyte sequences by emacs-mule.
8815 (readevalloop): Don't use readchar_backlog.
8816 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
8817 (Fread_from_string): Pay attention to the case that STREAM is a cons.
8818 (read_escape): Delete the arg BYTEREP.
8819 (read1): Set load_each_byte to 1 temporarily while handling
8820 #@NUMBER. Don't call read_multibyte.
8821 (read_vector): Call Fread with a cons. If readcharfun is
8822 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
8823 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
8824 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
8825 and Qload_force_doc_strings.
8826
8827 2008-02-01 Kenichi Handa <handa@m17n.org>
8828
8829 * xdisp.c (face_before_or_after_it_pos): Call
8830 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8831
8832 2008-02-01 Kenichi Handa <handa@m17n.org>
8833
8834 * character.h (TRAILING_CODE_P): New macro.
8835 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
8836 (string_char_with_unification): Fix prototype.
8837 (Vscript_alist): Extern it.
8838
8839 * character.c (Vscript_alist): New variable.
8840 (string_char_with_unification, str_as_unibyte)
8841 (string_escape_byte8): Add `const' to local variables.
8842 (syms_of_character): Declare script-alist as a Lisp variable.
8843
8844 * charset.h (Vcharset_ordered_list): Extern it.
8845 (charset_ordered_list_tick): Extern it.
8846 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
8847 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
8848 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
8849 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
8850 (Funify_charset): Adjust for the change of Funify_charset.
8851
8852 * charset.c (charset_ordered_list_tick): New variable.
8853 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
8854 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
8855 deunify intead of unify a charset.
8856 (string_xstring_p): Add `const' to local variables.
8857 (find_charsets_in_text): Add `const' to arguemnts and local variables.
8858 (encode_char): Adjust for the change of Funify_charset. Fix
8859 detecting of invalid code.
8860 (Fset_charset_priority): Increment charset_ordered_list_tick.
8861 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
8862 and TO_CODE.
8863
8864 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
8865 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
8866 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
8867 (decode_coding_ccl, consume_chars)
8868 (Ffind_coding_systems_region_internal)
8869 (Fcheck_coding_systems_region): Add `const' to local variables.
8870
8871 * print.c (print_object): Use octal form for printing the
8872 contents of a bool vector.
8873
8874 2008-02-01 Dave Love <fx@gnu.org>
8875
8876 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
8877 <version == 20>: Refuse to load.
8878
8879 2008-02-01 Dave Love <fx@gnu.org>
8880
8881 * fns.c: Move coding.h.
8882 (Qcodeset, Qdays, Qmonths): New.
8883 (concat): Use CHARACTERP instead of INTERGERP.
8884 (Flocale_codeset): Delete.
8885 (Flanginfo): New function.
8886 (syms_of_fns): Change accordingly.
8887
8888 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
8889
8890 2008-02-01 Dave Love <fx@gnu.org>
8891
8892 * casetab.c (init_casetab_once, init_casetab_once): Fix
8893 CHAR_TABLE_SET call.
8894
8895 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
8896
8897 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
8898
8899 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
8900 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
8901 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
8902
8903 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
8904
8905 * coding.c (ENCODE_DESIGNATION, decode_eol)
8906 (make_conversion_work_buffer, code_conversion_restore)
8907 (Fdefine_coding_system_internal): Convert Lisp types.
8908 (code_conversion_restore): Use EQ, not ==.
8909 (Fencode_coding_string): Fix code_convert_string call.
8910
8911 * coding.h (code_convert_region): Fix prototype.
8912
8913 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
8914
8915 * fontset.c (fontset_ref, fontset_set, fs_load_font)
8916 (Ffontset_info): Convert Lisp types.
8917
8918 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
8919
8920 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
8921
8922 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
8923
8924 * chartab.c: Include "...h", not <...h> in some cases.
8925
8926 * callproc.c (Fcall_process): Remove unused variables.
8927
8928 2008-02-01 Dave Love <fx@gnu.org>
8929
8930 * coding.c (Fset_coding_system_priority): Allow null arg list.
8931
8932 2008-02-01 Dave Love <fx@gnu.org>
8933
8934 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8935 (Fself_insert_and_exit): Use CHARACTERP.
8936
8937 * callproc.c (Fcall_process): Remove unused vars.
8938
8939 * xterm.c (XTread_socket): Add extra dead keysyms.
8940
8941 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
8942
8943 * dispextern.h: Remove prototypes for redraw_frame,
8944 redraw_garbaged_frames.
8945
8946 * cmds.c (Fself_insert_command): Use CHARACTERP.
8947
8948 * chartab.c (make_sub_char_table): Remove unused var.
8949 (Fset_char_table_default, Fmap_char_table): Doc fix.
8950
8951 * keymap.c (access_keymap): Remove generic char code.
8952 (push_key_description): Use CHARACTERP.
8953
8954 2008-02-01 Dave Love <fx@gnu.org>
8955
8956 * charset.c: Doc fixes.
8957 (Funify_charset): Extra checking.
8958
8959 2008-02-01 Dave Love <fx@gnu.org>
8960
8961 * lread.c: Remove some unused variables.
8962 (safe_to_load_p): If safe, return the magic number version byte.
8963 (Fload): Maybe use load-with-code-conversion.
8964
8965 2008-02-01 Kenichi Handa <handa@m17n.org>
8966
8967 * category.c (Fmodify_category_entry): Don't modify the contents
8968 of category_set for characters out of the range. Avoid
8969 unnecessary modification.
8970
8971 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
8972 Vchar_unify_table. The default value of the table is now nil.
8973
8974 * character.c (syms_of_character): Setup Vchar_width_table for
8975 eight-bit-control and raw-byte chars.
8976
8977 * charset.h (enum define_charset_arg_index): Delete
8978 charset_arg_parents and add charset_arg_subset and
8979 charset_arg_superset.
8980 (enum charset_attr_index): Delete charset_parents and add
8981 charset_subset and charset_superset.
8982 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
8983 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
8984 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
8985 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
8986 (CHARSET_SUPERSET): New macros.
8987 (charset_work): Extern it.
8988 (ENCODE_CHAR): Use charset_work.
8989 (CHAR_CHARSET_P): Adjust for the change of encoder format.
8990 (map_charset_chars): Extern it.
8991
8992 * charset.c (load_charset_map): Set the default value of encoder
8993 and deunifier char-tables to nil.
8994 (map_charset_chars): Change argument. Change callers. Use
8995 map_char_table_for_charset instead of map_char_table.
8996 (Fmap_charset_chars): New optional args from_code and to_code.
8997 (Fdefine_charset_internal): Adjust for the change of
8998 `define-charset' (:parents -> :subset or :superset).
8999 (charset_work): New variable.
9000 (encode_char, syms_of_charset): Adjust for the change of
9001 Fdefine_charset_internal.
9002 (Ffind_charset_string): Setup the vector `charsets' correctly.
9003
9004 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
9005 the previous change.
9006 (char_table_ref_and_range): Adjust for the above change.
9007 (map_sub_char_table_for_charset): New function.
9008 (map_char_table_for_charset): New function.
9009
9010 * keymap.c (describe_vector): Handle a char-table directly here.
9011 (describe_char_table): Delete.
9012
9013 * lisp.h (map_charset_chars): Delete.
9014
9015 2008-02-01 Dave Love <fx@gnu.org>
9016
9017 * fns.c (count_combining): Comment out (unused).
9018 (Flocale_codeset): New.
9019 (syms_of_fns): Defsubr it.
9020
9021 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
9022 (size_t): Remove.
9023
9024 2008-02-01 Dave Love <fx@gnu.org>
9025
9026 * Makefile.in (chartab.o): Depend on charset.h.
9027
9028 2008-02-01 Kenichi Handa <handa@m17n.org>
9029
9030 * character.c (syms_of_character): Set the default value of
9031 Vprintable_chars to Qnil.
9032
9033 2008-02-01 Dave Love <fx@gnu.org>
9034
9035 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
9036
9037 2008-02-01 Kenichi Handa <handa@m17n.org>
9038
9039 * charset.c (load_charset_map): Handle the case that from < to
9040 correctly.
9041
9042 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
9043 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
9044 Pay attention to raw-8-bit chars.
9045
9046 2008-02-01 Kenichi Handa <handa@m17n.org>
9047
9048 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
9049 It is not bytecompiled now.
9050
9051 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
9052 (charset_jisx0208): New variables.
9053 (Fdefine_charset_internal): Setup them if appropriate.
9054 (init_charset_once): Initialize them to -1.
9055
9056 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
9057 (charset_jisx0208): Extern them.
9058
9059 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
9060 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
9061 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
9062 (setup_iso_safe_charsets): Fix arguments to Fassq.
9063 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
9064 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
9065 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
9066 (encode_coding_iso_2022): Change the 1st arg to
9067 ENCODE_ISO_CHARACTER to a variable.
9068
9069 2008-02-01 Kenichi Handa <handa@m17n.org>
9070
9071 * charset.h (enum define_charset_arg_index): New enums
9072 charset_arg_min_code and charset_arg_max_code.
9073 (struct charset): New member char_index_offset.
9074
9075 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
9076 Take charset->char_index_offset into account.
9077 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
9078 args[charset_arg_max_code]. Setup charset.char_index_offset.
9079 (syms_of_charset): Fix args to Fdefine_charset_internal.
9080
9081 2008-02-01 Dave Love <fx@gnu.org>
9082
9083 * coding.c (decode_coding_utf_8): Reject overlong sequences.
9084
9085 2008-02-01 Dave Love <fx@gnu.org>
9086
9087 * coding.c: Doc fixes.
9088 (Fcoding_system_aliases): Fix return value.
9089 (Qmac): Remove (duplicated) definition.
9090
9091 2008-02-01 Dave Love <fx@gnu.org>
9092
9093 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
9094 functions.
9095
9096 * character.c (Fstring): Doc fix.
9097
9098 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
9099
9100 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
9101 ids.
9102 (font-encoding-alist): Doc fix.
9103
9104 2008-02-01 Dave Love <fx@gnu.org>
9105
9106 * term.c (costs_set): Declare static, non-initialized for pcc.
9107 (encode_terminal_code): Remove unused var.
9108
9109 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9110 for K&R.
9111
9112 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
9113
9114 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
9115 (suffixes): Move out of make_subsidiaries for K&R.
9116
9117 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
9118
9119 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
9120
9121 2008-02-01 Dave Love <fx@gnu.org>
9122
9123 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
9124
9125 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
9126
9127 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
9128
9129 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
9130
9131 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
9132
9133 2008-02-01 Kenichi Handa <handa@m17n.org>
9134
9135 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
9136 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
9137
9138 2008-02-01 Kenichi Handa <handa@m17n.org>
9139
9140 * coding.c (decode_coding_charset): Adjust for the change of
9141 Fdefine_coding_system_internal.
9142 (Fdefine_coding_system_internal): For a coding system of
9143 `charset' type, store a list of charset IDs in
9144 `charset_attr_charset_valids' element of coding attributes.
9145
9146 2008-02-01 Kenichi Handa <handa@m17n.org>
9147
9148 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
9149 (emacs_mule_char): New arg src. Delete arg `composition'. Change
9150 caller. Handle 2-byte and 3-byte charsets correctly.
9151 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
9152 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
9153 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
9154 (DECODE_EMACS_MULE_21_COMPOSITION): Call
9155 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
9156 sequence.
9157 (decode_coding_emacs_mule): Handle composition correctly. Rewind
9158 `src' and `consumed_chars' correctly before calling emacs_mule_char.
9159 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
9160 and alt&rule composition.
9161 (decode_coding_iso_2022): Handle composition correctly.
9162 (init_coding_once): Setup emacs_mule_bytes for private charsets.
9163
9164 * charset.c (Fdefine_charset_internal): Fix bug for the case of
9165 re-defining a charset. If the charset has :emacs-mule-id, setup
9166 emacs_mule_bytes.
9167 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
9168
9169 2008-02-01 Kenichi Handa <handa@m17n.org>
9170
9171 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
9172 (encode_coding_big5, encode_coding_charset): If coding requires safe
9173 encoding, produce a character specified by
9174 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
9175
9176 2008-02-01 Dave Love <fx@gnu.org>
9177
9178 * xterm.c (XSetIMValues): Declare.
9179
9180 * process.c: Conditionally include sys/wait.h, pty.h.
9181
9182 * print.c (print_object): Fix print format for 64-bit systems.
9183
9184 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
9185
9186 * buffer.c (emacs_strerror): Declare.
9187
9188 * fontset.c (Fclear_face_cache): Declare.
9189 (accumulate_font_info): Comment-out (unused).
9190 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
9191 variables.
9192
9193 * character.h (string_escape_byte8): Declare.
9194
9195 * charset.c (load_charset_map, load_charset_map_from_file): Remove
9196 unused vars.
9197 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
9198 (Fmap_charset_chars): Doc fix.
9199
9200 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
9201 (Fset_coding_system_priority, Fset_coding_system_priority)
9202 (Fdefine_coding_system_internal): Doc fix.
9203
9204 2008-02-01 Dave Love <fx@gnu.org>
9205
9206 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
9207
9208 2008-02-01 Kenichi Handa <handa@m17n.org>
9209
9210 * character.c (string_escape_byte8): Make multibyte string with
9211 correct size.
9212
9213 * charset.c (Fmake_char): Delete unnecessary code.
9214
9215 2008-02-01 Kenichi Handa <handa@m17n.org>
9216
9217 * xfns.c (x_encode_text): Allocate coding.destination here, and
9218 call encode_coding_object with dst_object Qnil.
9219
9220 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
9221 multibyte form correctly.
9222
9223 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
9224 against Vfont_encoding_alist.
9225
9226 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
9227 handling of charset list.
9228 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
9229 (decode_coding_object): Move point to coding->dst_pos before
9230 calling post-read-conversion function.
9231 (encode_coding_object): Give correct arguments to
9232 pre-write-conversion. Ignore the return value of
9233 pre-write-conversion function. Pay attention to the case that
9234 pre-write-conversion changes the current buffer. If dst_object is
9235 Qt, even if coding->src_bytes is zero, allocate at least one byte
9236 to coding->destination.
9237
9238 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
9239
9240 * charset.c (Fmake_char): Make it more backward compatible.
9241 (Fmap_charset_chars): Fix docstring.
9242
9243 2008-02-01 Dave Love <fx@gnu.org>
9244
9245 * coding.c: Doc fixes.
9246 (Fdefine_coding_system_alias): Use names, not symbols, in
9247 coding-system-alist.
9248
9249 2008-02-01 Kenichi Handa <handa@m17n.org>
9250
9251 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
9252 of calling free_realized_face.
9253
9254 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
9255
9256 * charset.c (read_hex): Don't treat SPC as a comment starter.
9257 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
9258 (Fdecode_char): Fix typo.
9259
9260 2008-02-01 Kenichi Handa <handa@m17n.org>
9261
9262 * charset.h (struct charset): New member `code_space_mask'.
9263
9264 * coding.c (coding_set_source): Delete the local variable beg_byte.
9265 (encode_coding_charset, Fdefine_coding_system_internal):
9266 Delete the local variable charset.
9267 (Fdefine_coding_system_internal): Setup
9268 attrs[coding_attr_charset_valids] correctly.
9269
9270 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
9271 member to check if CODE is valid or not.
9272 (Fdefine_charset_internal): Initialize `code_space_mask' member.
9273 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
9274 is within the range of charset->min_code and carset->max_code.
9275
9276 2008-02-01 Dave Love <fx@gnu.org>
9277
9278 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
9279
9280 * dispextern.h (generate_ascii_font): Fix return type.
9281
9282 * xfaces.c (generate_ascii_font): Fix arg declaration.
9283
9284 * coding.c (coding_inherit_eol_type)
9285 (Fset_terminal_coding_system_internal)
9286 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
9287
9288 2008-02-01 Kenichi Handa <handa@m17n.org>
9289
9290 * coding.c (decode_coding_charset, encode_coding_charset): Handle
9291 multiple charsets correctly.
9292
9293 2008-02-01 Kenichi Handa <handa@m17n.org>
9294
9295 * search.c (boyer_moore): Fix handling of mulitbyte character
9296 translation.
9297
9298 * xdisp.c (display_mode_element): When the variable `elt' is
9299 changed, update `this' and `lisp_string'.
9300
9301 2008-02-01 Kenichi Handa <handa@m17n.org>
9302
9303 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
9304
9305 * callproc.c (Fcall_process): Be sure to give the current buffer
9306 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
9307
9308 * charset.c (struct charset_map_entries): New struct.
9309 (load_charset_map): Rename from parse_charset_map. New args
9310 entries and n_entries. Change caller.
9311 (load_charset_map_from_file): Rename from load_charset_map.
9312 Change caller. New arg control_flag. Call load_charset_map at
9313 the tail.
9314 (load_charset_map_from_vector): New function.
9315 (Fdefine_charset_internal): Setup charset.compact_codes_p.
9316 (encode_char): If the charset is compact, change a character index
9317 to a code point.
9318
9319 * coding.c (coding_alloc_by_making_gap): Check the case that the
9320 source and destination are the same correctly.
9321 (decode_coding_raw_text): Set coding->consumed_char and
9322 coding->consumed to 0.
9323 (produce_chars): If coding->chars_at_source is nonzero, update
9324 coding->consumed_char and coding->consumed before calling
9325 alloc_destination.
9326 (Fdefine_coding_system_alias): Register ALIAS in
9327 Vcoding_system_alist.
9328 (syms_of_coding): Define `no-convesion' coding system at the tail.
9329
9330 * fileio.c (Finsert_file_contents): Set coding_system instead of
9331 val. If the current buffer is multibyte, always call
9332 decode_coding_gap.
9333
9334 * xfaces.c (try_font_list): Give higher priority to fontset's
9335 family than face's family.
9336
9337 2008-02-01 Kenichi Handa <handa@m17n.org>
9338
9339 * callproc.c (Fcall_process): Be sure to give the current buffer
9340 to decode_coding_c_string.
9341
9342 * xfaces.c (try_font_list): Give a family specified in a fontset
9343 higher priority than a family specified in a face.
9344
9345 2008-02-01 Kenichi Handa <handa@m17n.org>
9346
9347 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
9348 Fix arguments to insert_from_buffer.
9349
9350 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
9351
9352 2008-02-01 Kenichi Handa <handa@m17n.org>
9353
9354 * coding.c (produce_chars): Set the variable `multibytep' correctly.
9355 (decode_coding_gap): Set coding->dst_multibyte correctly.
9356
9357 2008-02-01 Kenichi Handa <handa@m17n.org>
9358
9359 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
9360 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
9361 (encode_coding_utf_16): Substitute coding->default_char for
9362 non-Unicode characters.
9363 (decode_coding): Don't call record_insert here.
9364 (setup_coding_system): Initialize `surrogate' of
9365 coding->spec.utf_16 to 0.
9366 (EMIT_ONE_BYTE): Fix for multibyte case.
9367
9368 * insdel.c (insert_from_gap): Call record_insert.
9369
9370 2008-02-01 Kenichi Handa <handa@m17n.org>
9371
9372 * casefiddle.c (casify_region): Fix multibyte case.
9373
9374 * character.c (c_string_width): Add return type `int'.
9375 (char_string_with_unification): Delete arg ADVANCED.
9376
9377 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
9378 (CHAR_STRING): Adjust for the change of char_string_with_unification.
9379 (CHAR_STRING_ADVANCE): Make it do-while statement.
9380
9381 * chartab.c (sub_char_table_set_range): Optimize for the case
9382 DEPTH == 3. Add workaround code for a GCC optimization bug.
9383
9384 * charset.c (parse_charset_map): Remove an unused variable.
9385
9386 * coding.c: Delete unused variables.
9387
9388 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
9389 earlier. If inserted is zero and the coding system doesn't
9390 require flushing, don't call decode_coding_gap.
9391
9392 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
9393
9394 2008-02-01 Kenichi Handa <handa@m17n.org>
9395
9396 The following changes are for using Unicode as an internal
9397 character model, and use UTF-8 format for buffer/string
9398 representation.
9399
9400 * .gdbinit (xchartable): Adjust for the change of char table structure.
9401 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
9402
9403 * Makefile.in (obj): Add character.o and chartab.o.
9404 (lisp, shortlisp): Remove utf-8.elc.
9405 (*.o): For many files, change dependency on charset.h to
9406 character.h, and add dependency on character.h.
9407 (character.o, chartab.o): New targets.
9408
9409 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
9410 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
9411 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
9412 of "charset.h".
9413
9414 * dired.c, filelock.c: Include "character.h".
9415
9416 * alloc.c: Include "character.h" instead of "charset.h".
9417 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
9418 (syms_of_alloc): Remove defsubr for Smake_char_table.
9419
9420 * buffer.c: Include "character.h" instead of "charset.h", don't
9421 include "coding.h".
9422 (Fset_buffer_multibyte): Adjust for UTF-8.
9423
9424 * buffer.h: EXFUN Fbuffer_live_p.
9425
9426 * callproc.c: Include "character.h" instead of "charset.h".
9427 (Fcall_process): Big change for the new code-conversion APIs.
9428
9429 * casetab.c: Include "character.h" instead of "charset.h".
9430 (set_canon, set_identity, shuffle): Adjust for the new
9431 map_char_table spec.
9432 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
9433 accessing the char table structure.
9434
9435 * chartab.c: New file that implements char table.
9436
9437 * category.c: Include "character.h".
9438 (copy_category_entry): New function.
9439 (copy_category_table): Call map_char_table and copy_category_entry.
9440 (Fmake_category_table): Initialize all top-vel slots.
9441 (char_category_set): New function.
9442 (modify_lower_category_set): Delete.
9443 (Fmodify_category_entry): Call char_table_ref_and_range.
9444
9445 * category.h (CATEGORY_SET): Just call char_category_set.
9446
9447 * ccl.c: Include "character.h".
9448 (Qccl, Qcclp): New variables.
9449 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
9450 it's less than 256.
9451 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
9452 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
9453 and DST type.
9454 (ccl_driver): Change types of argument, adjust code accordingly.
9455 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
9456 ccl_driver.
9457 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
9458
9459 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
9460 New members src_multibyte, dst_multibyte, consumed, and produced.
9461 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
9462 (CODING_SPEC_CCL_PROGRAM): New macro.
9463 (ccl_driver): Update prototype.
9464 (Qccl, Qcclp, Fccl_program_p): Extern them.
9465 (CHECK_CCL_PROGRAM): New macro.
9466
9467 * character.c, character.h, chartab.c: New files.
9468
9469 * charset.c: Mostly re-written. Move character and multibyte sequence
9470 handling codes to character.c.
9471
9472 * charset.h: Mostly re-written. Move character and multibyte sequence
9473 handling codes to character.h.
9474
9475 * coding.c, coding.h: Mostly re-written.
9476
9477 * composite.c: Include "character.h" instead of "charset.h".
9478 (CHAR_WIDTH): Move to character.h.
9479 (HASH_KEY, HASH_VALUE): Delete.
9480
9481 * composite.h (enum composition_method): Change order of enumeration
9482 symbols.
9483
9484 * data.c: Include "character.h" instead of "charset.h".
9485 (Faref): Call CHAR_TABLE_REF for a char table.
9486 (Faset): Call CHAR_TABLE_SET for a char table.
9487
9488 * dispextern.h (free_realized_face, check_face_attribytes)
9489 (generate_ascii_font): Extern them.
9490 (free_realized_multibyte_face): Delete extern.
9491
9492 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
9493 table structure.
9494
9495 * editfns.c: Include "character.h" instead of "charset.h".
9496 (Fchar_to_string): Always call CHAR_STRING.
9497
9498 * emacs.c (main): Call init_charset_once, init_charset,
9499 syms_of_chartab, and syms_of_character.
9500
9501 * fileio.c: Include "character.h" instead of "charset.h".
9502 (Finsert_file_contents): Big change for the new code-conversion API.
9503 (choose_write_coding_system, Fwrite_region): Likewise.
9504 (build_annotations_2): Delete.
9505 (e_write): Big change for the new code-conversion API.
9506
9507 * fns.c: Include "character.h" instead of "charset.h".
9508 (copy_sub_char_table): Move to chartab.c.
9509 (Fcopy_sequence): Call copy_char_table for a char table.
9510 (concat): Delete codes calling count_multibyte.
9511 (string_char_to_byte, string_byte_to_char): Adjust for the new
9512 multibyte form.
9513 (internal_equal): Adjust for the change of char table structure.
9514 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
9515 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
9516 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
9517 (char_table_translate, optimize_sub_char_table)
9518 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
9519 chartab.c.
9520 (char_table_ref_and_index): Delete.
9521 (HASH_KEY, HASH_VALUE): Move to lisp.h.
9522 (Fmd5): Call preferred_coding_system instead of accessing
9523 Vcoding_category_list. Adjust for the new code-conversion API.
9524 (syms_of_fns): Move defsubr for char table related functions to
9525 chartab.c.
9526
9527 * fontset.c: Mostly re-written.
9528
9529 * fontset.h (struct font_info): Change type of the member encoding_type.
9530 (enum FONT_SPEC_INDEX): New enum.
9531 (fontset_font_pattern, fs_load_font): Update prototype.
9532 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
9533
9534 * indent.c: Include "character.h" instead of "charset.h".
9535 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
9536
9537 * insdel.c: Include "character.h" instead of "charset.h".
9538 (copy_text): Don't refer to Vnonascii_translation_table.
9539 (insert_from_gap): New function.
9540
9541 * keyboard.c: Include "character.h" instead of "charset.h".
9542 (command_loop_1): Never call direct_output_forward_char before
9543 a non-ASCII character.
9544 (read_char): If Vkeyboard_translate_table is a char table, always
9545 translate a character.
9546
9547 * keymap.c: Include "character.h".
9548 (store_in_keymap): Handle the case that IDX is a cons.
9549 (Fdefine_key): Handle the case that KEY is a cons and the car part
9550 is also a cons (range).
9551 (push_key_description): Adjust for the new character code.
9552 (describe_vector): Call describe_char_table for a char table.
9553 (describe_char_table): New function.
9554
9555 * keymap.h (describe_char_table): Extern it.
9556
9557 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
9558 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
9559 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
9560 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
9561 Delete.
9562 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
9563 structure.
9564 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
9565 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
9566 (CHARTAB_SIZE_BITS_3): New macros.
9567 (chartab_size): Extern it.
9568 (struct Lisp_Char_Table): Re-design.
9569 (struct Lisp_Sub_Char_Table): New structure.
9570 (HASH_KEY, HASH_VALUE): Move from fns.c.
9571 (CHARACTERBITS): Define as 22.
9572 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
9573 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
9574 (GC_SUB_CHAR_TABLE_P): New macro.
9575 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
9576 (code_convert_string_norecord): Deleted extern.
9577 (init_character_once, syms_of_character, init_charset)
9578 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
9579
9580 * lread.c: Include "character.h".
9581 (read_multibyte): New arg NBYTES.
9582 (read_escape): Change the meaning of returned *BYTEREP.
9583 (to_multibyte): Delete.
9584 (read1): Adjust the handling of char table and string.
9585
9586 * print.c: Include "character.h" instead of "charset.h".
9587 (print_string): Convert 8-bit raw bytes to octal form by
9588 string_escape_byte8.
9589 (print_object): Adjust for the new multibyte form. Print 8-bit
9590 raw bytes always in octal form. Handle sub char table correctly.
9591
9592 * process.c: Include "character.h" instead of "charset.h".
9593 (read_process_output, send_process): Adjust for the new
9594 code-conversion API.
9595
9596 * puresize.h (BASE_PURESIZE): Increase.
9597
9598 * regex.c: Include "character.h" instead of "charset.h".
9599 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
9600 (regex_compile): Accept a range whose starting and ending
9601 character have different leading bytes.
9602 (analyse_first): Adjust for the above change.
9603
9604 * search.c: Include "character.h" instead of "charset.h".
9605 (search_buffer, boyer_moore): Adjust for the new multibyte form.
9606 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
9607
9608 * syntax.c: Include "character.h" instead of "charset.h".
9609 (syntax_parent_lookup): Delete.
9610 (Fmodify_syntax_entry): Accept a cons as CHAR.
9611 (skip_chars): Adjust for the new multibyte form.
9612 (init_syntax_once): Call char_table_set_range instead of directly
9613 accessing the structure of a char table.
9614
9615 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
9616 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
9617 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
9618 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
9619
9620 * term.c: Include "buffer.h" and "character.h".
9621 (encode_terminal_code, write_glyphs): Adjust for the new
9622 code-conversion API.
9623 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
9624
9625 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
9626
9627 * xdisp.c: Include "character.h".
9628 (get_next_display_element): Adjust for the new multibyte form.
9629 (disp_char_vector): Adjust for the new char table structure.
9630 (decode_mode_spec_coding): Adjust for the new structure of
9631 coding system.
9632 (decode_mode_spec): Adjust for the new code-conversion API.
9633
9634 * xfaces.c: Include "character.h" instead of "charset.h".
9635 (load_face_font): Adjust for the change of choose_face_font and
9636 FS_LOAD_FONT.
9637 (generate_ascii_font): New function.
9638 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
9639 (set_font_frame_param): Adjust for the change of choose_face_font.
9640 (free_realized_face): Make it public.
9641 (free_realized_faces_for_fontset): Rename from
9642 free_realized_multibyte_face. Free also faces realized for ASCII.
9643 (choose_face_font): Change arguments. Adjust for the change of
9644 fontset_font_pattern and FS_LOAD_FONT.
9645
9646 * xfns.c: Include "character.h".
9647 (x_encode_text): Adjust for the new code-conversion API.
9648
9649 * xselect.c: Don't include "charset.h".
9650 (selection_data_to_lisp_data): Adjust for the new code conversion API.
9651
9652 * xterm.c: Include "character.h".
9653 (x_encode_char): New argument CHARSET. Change caller.
9654 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
9655 Call ENCODE_CHAR instead of SPLIT_CHAR.
9656 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
9657 CHAR_WIDTH instead of CHARSET_WIDTH.
9658 (XTread_socket): Adjust for the new code-conversion API.
9659 (x_new_font): Adjust for the change of FS_LOAD_FONT.
9660 (x_load_font): Adjust for the change of struct font.
9661
9662 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9663
9664 * xfaces.c (face_at_buffer_position): Remove unused vars.
9665
9666 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9667
9668 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
9669 Fix overflow checking.
9670
9671 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9672
9673 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
9674 Cancel previous change.
9675
9676 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9677
9678 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
9679 ccl->eight_bit_control. Fix check for buffer overflow.
9680 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
9681 (ccl_driver): Initialize extra_bytes to 0.
9682
9683 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9684
9685 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
9686 return it ORed with ctrl_modifier.
9687
9688 2008-01-29 Miles Bader <miles@gnu.org>
9689
9690 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
9691
9692 2008-01-28 Jason Rumney <jasonr@gnu.org>
9693
9694 * w32.c (stat): Don't double check for networked drive.
9695
9696 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9697
9698 * window.c (run_window_configuration_change_hook): New function.
9699 Code extracted from set_window_buffer. Set the selected frame.
9700 (set_window_buffer): Use it.
9701 * window.h (run_window_configuration_change_hook): Declare.
9702 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
9703
9704 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
9705
9706 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
9707
9708 * Makefile.in: Remove references to unused macros.
9709
9710 2008-01-26 Eli Zaretskii <eliz@gnu.org>
9711
9712 * w32.c (g_b_init_get_sid_sub_authority)
9713 (g_b_init_get_sid_sub_authority_count): New static variables.
9714 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
9715 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
9716 (init_user_info): Use them to retrieve uid and gid.
9717 Use 500/513, the Windows defaults, as Administrator's uid/gid.
9718 (fstat): Use pw_uid and pw_gid from the_passwd structure for
9719 st_uid and st_gid of the file.
9720
9721 2008-01-26 Jason Rumney <jasonr@gnu.org>
9722
9723 * w32.c (logon_network_drive): New function.
9724 (stat): Use it.
9725
9726 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
9727
9728 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
9729 invisible text covered with an ellipsis.
9730
9731 2008-01-25 Richard Stallman <rms@gnu.org>
9732
9733 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
9734 jump back to beginning. Move some other initializations after that.
9735 (Qwindow_text_change_functions, Vwindow_text_change_functions):
9736 New variables.
9737 (syms_of_xdisp): Init them.
9738
9739 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
9740
9741 * buffer.c (reset_buffer_local_variables):
9742 Implement `permanent-local-hook'.
9743 (Qpermanent_local_hook): New variable.
9744 (syms_of_buffer): Init and staticpro it.
9745
9746 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
9747
9748 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
9749
9750 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
9751
9752 * fns.c (Fclrhash): Return TABLE.
9753
9754 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9755
9756 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
9757 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
9758 is set even without positional changes.
9759 (x_scroll_bar_clear): Set bar->redraw_needed_p.
9760
9761 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
9762
9763 2008-01-23 Jason Rumney <jasonr@gnu.org>
9764
9765 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
9766
9767 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
9768 the unicode range available in MULE by locale-coding-system.
9769 Improve dbcs lead byte detection. Set event timestamp and modifiers
9770 earlier.
9771
9772 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9773
9774 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
9775 [MAC_OSX] (init_mac_osx_environment): Initialize it.
9776 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
9777 when used on child processes.
9778
9779 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
9780
9781 * dbusbind.c (Fdbus_method_return_internal): Rename from
9782 Fdbus_method_return.
9783 (Fdbus_unregister_object): Move to dbus.el.
9784 (Fdbus_call_method, Fdbus_method_return_internal)
9785 (Fdbus_send_signal): Improve debug messages.
9786
9787 2008-01-20 Martin Rudalics <rudalics@gmx.at>
9788
9789 * undo.c (undo_inhibit_record_point): New variable.
9790 (syms_of_undo): Initialize it.
9791 (record_point): Don't record point when undo_inhibit_record_point
9792 is set.
9793
9794 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
9795
9796 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
9797
9798 * xdisp.c (Qauto_hscroll_mode): New var.
9799 (syms_of_xdisp): Initialize it.
9800 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
9801 window's buffer.
9802 (hscroll_windows): Don't check automatic_hscrolling_p here.
9803
9804 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
9805 vscroll if we're setting window-buffer to the value it already has.
9806
9807 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
9808
9809 * m/intel386.h: Remove references to XENIX.
9810
9811 2008-01-17 Andreas Schwab <schwab@suse.de>
9812
9813 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
9814 instead of HAVE_X86_64_LIB64_DIR.
9815 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
9816
9817 2008-01-17 Glenn Morris <rgm@gnu.org>
9818
9819 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
9820 to HAVE_X86_64_LIB64_DIR.
9821
9822 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
9823
9824 * s/irix3-3.h:
9825 * s/irix4-0.h:
9826 * s/386-ix.h:
9827 * s/domain.h:
9828 * s/hpux9-x11r4.h:
9829 * s/hpux9shxr4.h: Remove files for systems no longer supported.
9830
9831 * sysdep.c: Remove code containing references to symbols defined
9832 by unsupported systems.
9833
9834 2008-01-16 Glenn Morris <rgm@gnu.org>
9835
9836 * coding.c (select-safe-coding-system-function): Doc fix.
9837
9838 2008-01-15 Glenn Morris <rgm@gnu.org>
9839
9840 * config.in: Revert 2008-01-13 change: this is a generated file.
9841
9842 2008-01-13 Tom Tromey <tromey@redhat.com>
9843
9844 * lisp.h: Fix typo.
9845
9846 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9847
9848 * m/sequent-ptx.h:
9849 * m/sequent.h:
9850 * s/ptx.h:
9851 * s/ptx4-2.h:
9852 * s/ptx4.h: Remove files for systems no longer supported.
9853
9854 * callproc.c (Fcall_process): Fix previous change.
9855
9856 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9857
9858 * unexsunos4.c: Remove file, system not supported anymore.
9859
9860 * m/mips.h:
9861 * m/intel386.h:
9862 * callproc.c:
9863 * config.in:
9864 * ecrt0.c:
9865 * emacs.c:
9866 * fileio.c:
9867 * frame.c:
9868 * getpagesize.h:
9869 * keyboard.c:
9870 * lread.c:
9871 * process.c:
9872 * puresize.h:
9873 * sysdep.c:
9874 * systty.h:
9875 * syswait.h:
9876 * unexec.c:
9877 * xdisp.c:
9878 * alloc.c: Remove code containing references to symbols defined by
9879 unsupported systems.
9880
9881 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
9882
9883 * coding.c (detect_coding_mask): Fix previous change.
9884
9885 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
9886
9887 * coding.c (detect_coding_iso2022): New arg
9888 latin_extra_code_state. Allow Latin extra codes only
9889 when *latin_extra_code_state is nonzero.
9890 (detect_coding_mask): If there is a NULL byte, detect the encoding
9891 as UTF-16 or binary. If Latin extra codes exist, detect the
9892 encoding as ISO-2022 only when there's no other proper encoding is
9893 found.
9894
9895 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9896
9897 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
9898 #ifdef MAC_OS.
9899
9900 2008-01-08 Richard Stallman <rms@gnu.org>
9901
9902 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
9903
9904 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
9905
9906 * keyboard.c (parse_menu_item): Don't enclose key bindings on
9907 menu bar in parentheses.
9908
9909 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
9910
9911 * m/7300.h:
9912 * m/acorn.h:
9913 * m/alliant-2800.h:
9914 * m/alliant.h:
9915 * m/alliant1.h:
9916 * m/alliant4.h:
9917 * m/altos.h:
9918 * m/amdahl.h:
9919 * m/apollo.h:
9920 * m/att3b.h:
9921 * m/aviion-intel.h:
9922 * m/aviion.h:
9923 * m/celerity.h:
9924 * m/clipper.h:
9925 * m/cnvrgnt.h:
9926 * m/convex.h:
9927 * m/cydra5.h:
9928 * m/delta88k.h:
9929 * m/dpx2.h:
9930 * m/dual.h:
9931 * m/elxsi.h:
9932 * m/f301.h:
9933 * m/gould-np1.h:
9934 * m/gould.h:
9935 * m/i860.h:
9936 * m/ibmps2-aix.h:
9937 * m/ibmrt-aix.h:
9938 * m/ibmrt.h:
9939 * m/irist.h:
9940 * m/is386.h:
9941 * m/isi-ov.h:
9942 * m/mega68.h:
9943 * m/mg1.h:
9944 * m/news-r6.h:
9945 * m/news-risc.h:
9946 * m/news.h:
9947 * m/nh3000.h:
9948 * m/nh4000.h:
9949 * m/ns16000.h:
9950 * m/ns32000.h:
9951 * m/nu.h:
9952 * m/orion.h:
9953 * m/orion105.h:
9954 * m/paragon.h:
9955 * m/pfa50.h:
9956 * m/plexus.h:
9957 * m/pyramid.h:
9958 * m/pyrmips.h:
9959 * m/sh3el.h:
9960 * m/sps7.h:
9961 * m/sr2k.h:
9962 * m/stride.h:
9963 * m/sun1.h:
9964 * m/sun2.h:
9965 * m/sun3-68881.h:
9966 * m/sun3-fpa.h:
9967 * m/sun3-soft.h:
9968 * m/sun3.h:
9969 * m/sun386.h:
9970 * m/symmetry.h:
9971 * m/tad68k.h:
9972 * m/tahoe.h:
9973 * m/targon31.h:
9974 * m/tek4300.h:
9975 * m/tekxd88.h:
9976 * m/tower32.h:
9977 * m/tower32v3.h:
9978 * m/ustation.h:
9979 * m/wicat.h:
9980 * m/xps100.h:
9981 * s/cxux.h:
9982 * s/cxux7.h:
9983 * s/dgux.h:
9984 * s/dgux4.h:
9985 * s/dgux5-4-3.h:
9986 * s/dgux5-4r2.h:
9987 * s/esix.h:
9988 * s/esix5r4.h:
9989 * s/hiuxmpp.h:
9990 * s/hiuxwe2.h:
9991 * s/iris3-5.h:
9992 * s/iris3-6.h:
9993 * s/isc2-2.h:
9994 * s/isc3-0.h:
9995 * s/isc4-0.h:
9996 * s/isc4-1.h:
9997 * s/newsos5.h:
9998 * s/newsos6.h:
9999 * s/osf1.h:
10000 * s/osf5-0.h:
10001 * s/riscix1-1.h:
10002 * s/riscix12.h:
10003 * s/sco4.h:
10004 * s/sco5.h:
10005 * s/sunos4-0.h:
10006 * s/sunos4-1.h:
10007 * s/sunos413.h:
10008 * s/sunos4shr.h:
10009 * s/umax.h:
10010 * s/unipl5-2.h:
10011 * s/xenix.h:
10012 * cxux-crt0.s:
10013 * unexapollo.c:
10014 * unexconvex.c:
10015 * unexenix.c:
10016 * unexsni.c: Remove files for systems no longer supported.
10017
10018 * m/intel386.h: Remove references to unsupported systems.
10019
10020 * w32.c (get_emacs_configuration): Remove reference to i860.
10021
10022 * sysdep.c: Remove dead code.
10023
10024 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
10025
10026 * s/rtu.h:
10027 * m/masscomp.h: Remove files. Platform is obsolete.
10028
10029 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
10030
10031 * dbusbind.c (Fdbus_method_return): New function.
10032 (xd_read_message): Add the serial number to the event.
10033 (Fdbus_register_method): Activate the function.
10034
10035 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
10036
10037 * keyboard.c (read_key_sequence): Fix typo.
10038
10039 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
10040
10041 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
10042 (xd_signature, xd_append_arg): Handle element type detection for
10043 empty arrays.
10044 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
10045 SDATA () calls; this must be solved more general.
10046 (Fdbus_register_signal): Use SBYTES instead of strlen.
10047
10048 2008-01-03 Magnus Henoch <magnus@zemdatav>
10049
10050 * dbusbind.c (xd_append_arg): Use unsigned char instead of
10051 unsigned int for byte values (necessary for big-endian platform).
10052 (Fdbus_call_method): Handle the case of no returned arguments.
10053
10054 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
10055
10056 * dbusbind.c (xd_read_message): Use non-static input_event struct.
10057
10058 2007-12-31 Magnus Henoch <mange@freemail.hu>
10059
10060 * dbusbind.c (xd_signature): Signature of variant is just "v".
10061
10062 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
10063
10064 * dbusbind.c: Fix several errors and compiler warnings.
10065 Reported by Tom Tromey <tromey@redhat.com>.
10066 (XD_ERROR, XD_DEBUG_MESSAGE)
10067 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
10068 (xd_append_arg): Part for basic D-Bus types rewitten.
10069 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
10070 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
10071 appropriate.
10072 (xd_read_message): Return Qnil. Don't signal an error; it is not
10073 useful during event reading.
10074 (Fdbus_register_signal): Signal an error if the check for
10075 FUNCTIONP fails.
10076 (Fdbus_register_method): New function. The implementation is not
10077 complete, the call of the function signals an error therefore.
10078 (Fdbus_unregister_object): New function, renamed from
10079 Fdbus_unregister_signal. The initial check signals an error, if
10080 the object is not well formed.
10081
10082 2007-12-30 Richard Stallman <rms@gnu.org>
10083
10084 * textprop.c (get_char_property_and_overlay):
10085 Signal error if POSITION is out of range in a buffer.
10086
10087 2007-12-29 Martin Rudalics <rudalics@gmx.at>
10088
10089 * w32fns.c (Fx_create_frame): Make copy of frame parameters
10090 because the original parameters are in pure storage now.
10091
10092 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10093
10094 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
10095
10096 2007-12-22 Eli Zaretskii <eliz@gnu.org>
10097
10098 * callint.c (syms_of_callint) <command-history>: Add reference to
10099 history-length in the doc string.
10100
10101 2007-12-17 Jason Rumney <jasonr@gnu.org>
10102
10103 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
10104 before passing as wParam.
10105
10106 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
10107
10108 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
10109 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
10110 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
10111 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
10112 as number.
10113 (Fdbus_call_method): Fix docstring.
10114
10115 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
10116
10117 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
10118 New macros.
10119 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
10120 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
10121 Simplify.
10122 (xd_signature): New function.
10123 (xd_append_arg): Compute also signatures. Major rewrite.
10124 (xd_retrieve_arg): Make debug messages friendly.
10125 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
10126 Check for signatures of arguments.
10127
10128 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
10129
10130 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
10131 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
10132 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
10133 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
10134 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
10135 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
10136 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
10137 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
10138 (xd_retrieve_value): Remove. Functionality included in ...
10139 (xd_append_arg): New function.
10140 (Fdbus_call_method, Fdbus_send_signal): Apply it.
10141
10142 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
10143
10144 * dbusbind.c (top): Include <stdio.h>.
10145 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
10146 dbus_message_new_method_call and dbus_message_new_signal.
10147 (Fdbus_register_signal): Rename unique_name to uname.
10148 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
10149 non-existing unique name. Fix typos in matching rule. Return an
10150 object which is useful in Fdbus_unregister_signal.
10151 (Fdbus_unregister_signal): Reimplementation, in order to remove
10152 only the corresponding entry.
10153 (Vdbus_registered_functions_table): Change the order of entries.
10154 Apply these changes in xd_read_message and Fdbus_register_signal.
10155
10156 2007-12-16 Andreas Schwab <schwab@suse.de>
10157
10158 * fileio.c (Finsert_file_contents): Fix overflow check to not
10159 depend on undefined integer overflow.
10160
10161 2007-12-14 Jason Rumney <jasonr@gnu.org>
10162
10163 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
10164 for characters above 127.
10165
10166 2007-12-13 Jason Rumney <jasonr@gnu.org>
10167
10168 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
10169 before dereferencing array.
10170 (lookup_vk_code): Remove zero comparison.
10171
10172 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
10173
10174 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
10175 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
10176 Use `unsigned int' instead of `uint'.
10177 (xd_read_message, Fdbus_register_signal): Split expressions into
10178 multiple lines before operators "&&" and "||", according to the
10179 GNU Coding Standards.
10180
10181 2007-12-14 Eli Zaretskii <eliz@gnu.org>
10182
10183 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
10184
10185 2007-12-12 Juri Linkov <juri@jurta.org>
10186
10187 * buffer.c (Frename_buffer): In interactive spec replace
10188 `read-buffer' with `read-string' that uses `buffer-name-history'
10189 as history, and the current buffer's name as default.
10190
10191 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
10192
10193 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
10194 manipulating the backtrace manually.
10195 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
10196 (struct backtrace, backtrace_list): Remove.
10197 (command_loop_1): Remove dead var `no_direct'.
10198
10199 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
10200 preserve non-built-in buffer-local variables.
10201 (Fkill_all_local_variables): Don't re-create&re-set permanent
10202 buffer-local variables.
10203
10204 2007-12-09 Juri Linkov <juri@jurta.org>
10205
10206 * buffer.c (Frename_buffer): Change interactive spec from "s" to
10207 Lisp code that uses `read-buffer' with current buffer as default.
10208
10209 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
10210
10211 * dbusbind.c (xd_read_message): Generate an event for every
10212 registered handler. There might be several handlers registered
10213 for the same signal.
10214 (Fdbus_register_signal): Don't overwrite a registration for the
10215 same signal. Add a new registration if handlers are different.
10216 (Vdbus_registered_functions_table): Rework doc string.
10217
10218 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
10219
10220 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
10221 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
10222 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
10223 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
10224 Unify argument lists.
10225 (xd_read_message, Fdbus_register_signal): Reorder and extend event
10226 arguments and hash table keys. Use unique name for service.
10227 (Fdbus_unregister_signal): Remove checks.
10228 (Vdbus_registered_functions_table): Fix doc string.
10229
10230 2007-12-05 Magnus Henoch <mange@freemail.hu>
10231
10232 * process.c (make_process): Initialize pty_flag to 0.
10233
10234 2007-12-05 Jason Rumney <jasonr@gnu.org>
10235
10236 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
10237 specified XBMs.
10238
10239 2007-12-05 Richard Stallman <rms@gnu.org>
10240
10241 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
10242
10243 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10244
10245 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
10246 New variable.
10247 (mac_try_close_socket) [MAC_OSX]: New function.
10248 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
10249 Update cfsockets_for_select. Replace invalid CFRunLoop source.
10250
10251 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
10252 Use mac_try_close_socket.
10253
10254 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10255
10256 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
10257 reloc_base.
10258 (copy_dysymtab): Compute relocation base here.
10259 (rebase_reloc_address) [__ppc64__]: New function.
10260 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
10261 changed.
10262
10263 2007-12-05 Jason Rumney <jasonr@gnu.org>
10264
10265 * w32proc.c (sys_spawnve): Quote args with wildcards.
10266
10267 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10268
10269 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
10270 __objc_* sections.
10271 (unrelocate) [_LP64]: Set relocation base to address of data segment.
10272
10273 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
10274
10275 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
10276 Move check for Vdbus_registered_functions_table to
10277 xd_read_queued_messages.
10278 (xd_read_queued_messages): Protect xd_read_message calls by
10279 internal_condition_case_1.
10280
10281 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
10282
10283 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
10284 Qdbus_system_bus and Qdbus_session_bus, respectively.
10285 (Vdbus_intern_symbols): Remove.
10286 (Vdbus_registered_functions_table): New hash table.
10287 (XD_SYMBOL_INTERN_SYMBOL): Remove.
10288 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
10289 Rewrite in order to manage registered functions by hash table
10290 Vdbus_registered_functions_table.
10291
10292 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
10293
10294 * xterm.c: Update URL to Window Manager Specification in comment.
10295
10296 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
10297
10298 * config.in (HAVE_DBUS): Add.
10299
10300 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
10301 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
10302 (obj): Add $(DBUS_OBJ).
10303 (LIBES): Add $(DBUS_LIBS).
10304 (dbusbind.o): New target.
10305
10306 * dbusbind.c: New file.
10307
10308 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
10309
10310 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
10311 (Qdbus_event): New Lisp symbol.
10312 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
10313 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
10314 (keys_of_keyboard ): Define dbus-event.
10315
10316 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
10317
10318 2007-12-01 Richard Stallman <rms@gnu.org>
10319
10320 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
10321
10322 2007-11-30 Jason Rumney <jasonr@gnu.org>
10323
10324 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
10325 (w32con_reset_terminal_modes): Clear screen buffer.
10326 (w32_face_attributes): Don't use color indexes that are out of range.
10327 Only reverse the default colors.
10328
10329 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
10330 WINDOWSNT.
10331
10332 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
10333
10334 2007-11-29 Jason Rumney <jasonr@gnu.org>
10335
10336 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
10337 (w32_face_attributes): Use Vtty_defined_color_alist to determine
10338 if the terminal colors are initialized.
10339 (unspecified_fg, unspecified_bg): Remove unused declarations.
10340
10341 2007-11-29 Andreas Schwab <schwab@suse.de>
10342
10343 * keyboard.c (apply_modifiers): Fix typo.
10344
10345 2007-11-29 Richard Stallman <rms@gnu.org>
10346
10347 * keymap.c (Fcurrent_local_map): Doc fix.
10348
10349 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
10350
10351 * s/gnu-kfreebsd.h: New file.
10352
10353 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
10354
10355 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
10356 Don't cast redundantly.
10357
10358 * keyboard.c (KEY_TO_CHAR): New macro.
10359 (parse_modifiers, apply_modifiers): Accept integer arguments.
10360 (read_key_sequence): Use them to unify the "shift->unshift" mapping
10361 for chars and symbol keys.
10362 After doing such remapping, apply function-key-map again.
10363
10364 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
10365
10366 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
10367 compiled anymore.
10368
10369 2007-11-26 Andreas Schwab <schwab@suse.de>
10370
10371 * process.c (list_processes_1): Fix indentation level of the
10372 command column.
10373
10374 2007-11-23 Andreas Schwab <schwab@suse.de>
10375
10376 * editfns.c (Fformat): Handle %c specially since it requires the
10377 argument to be of type int.
10378
10379 2007-11-23 Markus Triska <markus.triska@gmx.at>
10380
10381 * emacs.c (main): Call init_editfns before init_process, since
10382 init_process sets Vprocess_connection_type depending on OS release.
10383
10384 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
10385
10386 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
10387 (find_symbol_value): Use do_symval_forwarding.
10388
10389 * data.c (set_internal): Set the value in the `cons-cell' (for
10390 Buffer_Local_values) not only for frame-local variables.
10391
10392 2007-11-22 Andreas Schwab <schwab@suse.de>
10393
10394 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
10395 values to sprintf.
10396 * keymap.c (Fsingle_key_description): Likewise.
10397 * print.c (print_object): Likewise.
10398
10399 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
10400
10401 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
10402 file for image is nil.
10403
10404 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
10405
10406 * term.c: Include stdarg.h.
10407 (fatal): Implement using varargs.
10408 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
10409
10410 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10411
10412 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
10413 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
10414 Update call to buffer_slot_type_mismatch.
10415 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
10416 (buffer_slot_type_mismatch): Update.
10417 * buffer.c (buffer_local_types): Remove.
10418 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
10419 (defvar_per_buffer): Set the type in the buffer_objfwd.
10420
10421 2007-11-21 Jason Rumney <jasonr@gnu.org>
10422
10423 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
10424 CreateFileMapping returns NULL on failure.
10425
10426 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10427
10428 * search.c (Fset_match_data): Remove the `evaporate' feature.
10429 (unwind_set_match_data): Don't use the `evaporate' feature.
10430
10431 2007-11-21 Jason Rumney <jasonr@gnu.org>
10432
10433 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
10434
10435 * w32console.c (w32con_write_glyphs): Remove unused variables.
10436
10437 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
10438
10439 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
10440
10441 * s/darwin.h (MULTI_KBOARD): Remove.
10442
10443 * macfns.c (x_create_tip_frame, Fx_create_frame)
10444 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
10445
10446 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10447
10448 * buffer.c (Fbuffer_local_value): Remove redundant test.
10449 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
10450 than in `current-buffer' to match the comment.
10451 Do the swap using swap_in_global_binding.
10452
10453 * data.c (store_symval_forwarding, set_internal):
10454 * eval.c (specbind): Remove dead code.
10455
10456 * coding.c (detect_coding, Fupdate_coding_systems_internal):
10457 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
10458 Since we do not want to see internal Lisp_*fwd objects here.
10459
10460 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
10461
10462 * sysdep.c (init_system_name): Use getaddrinfo if available.
10463
10464 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
10465 (x_scroll_bar_note_movement): start, end, with, height in struct
10466 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
10467
10468 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
10469
10470 * puresize.h (BASE_PURESIZE): Increase to 1190000.
10471
10472 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
10473
10474 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
10475 This undoes Richard's change of 14-Oct-2002.
10476
10477 * alloc.c (allocate_other_vector):
10478 * lisp.h (allocate_other_vector): Remove.
10479
10480 * window.c (struct save_window_data): Move non-lisp data to the end
10481 and make it `int' rather than Lisp_Object.
10482 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
10483 Done wrap/unwrap integer values.
10484 (Fset_window_configuration, compare_window_configurations):
10485 Update use of fields to their new types.
10486
10487 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
10488 Turn integer fields into `int'. Merge x_window_low and x_window_high.
10489 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
10490 (SET_SCROLL_BAR_X_WINDOW): Remove.
10491 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
10492 Access the new x_window field directly.
10493 * xterm.c (x_scroll_bar_create): Use a pseudovector.
10494 Don't wrap/unwrap integers into Lisp_Objects.
10495 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
10496 (x_scroll_bar_report_motion):
10497 Don't wrap/unwrap integers into Lisp_Objects.
10498 (x_term_init): Use SDATA.
10499 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
10500 (x_scroll_bar_set_handle, x_scroll_bar_remove)
10501 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
10502 (x_scroll_bar_report_motion, x_scroll_bar_clear):
10503 * xfns.c (x_set_background_color):
10504 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
10505 Access the new x_window field directly.
10506
10507 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
10508 (allocate_pseudovector): Make non-static.
10509
10510 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
10511 (allocate_pseudovector): Declare.
10512 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
10513
10514 2007-11-15 Andreas Schwab <schwab@suse.de>
10515
10516 * editfns.c (Fformat): Correctly format EMACS_INT values.
10517 Also take precision into account when formatting an integer.
10518
10519 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
10520
10521 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
10522
10523 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
10524 (syms_of_keyboard): Defsubr it.
10525
10526 * data.c (swap_in_global_binding): Fix longstanding bug where
10527 store_symval_forwarding was not called with the right second argument,
10528 thus causing objfwd-ing from being dropped.
10529
10530 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
10531
10532 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
10533 (Fx_display_pixel_height, Fx_display_planes)
10534 (Fx_display_color_cells, Fx_server_max_request_size)
10535 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10536 (Fx_display_visual_class, Fx_display_save_under):
10537 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
10538 (Fx_display_pixel_height, Fx_display_planes)
10539 (Fx_display_color_cells, Fx_server_max_request_size)
10540 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10541 (Fx_display_mm_height, Fx_display_mm_width)
10542 (Fx_display_backing_store, Fx_display_visual_class)
10543 (Fw32_select_font, Fx_display_save_under):
10544 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
10545 (Fx_display_pixel_height, Fx_display_planes)
10546 (Fx_display_color_cells, Fx_server_max_request_size)
10547 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10548 (Fx_display_save_under): Fix typos in docstrings.
10549
10550 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
10551
10552 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
10553 corresponding to deleted entries; they are an implementation detail.
10554 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
10555 Remove variables.
10556 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
10557 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
10558 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
10559 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
10560 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
10561 (Fw32_define_rgb_color, Fw32_load_color_file)
10562 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
10563 Fix typos in docstrings.
10564 (Fx_server_version): Reflow docstring.
10565 (Fw32_shell_execute): Doc fixes.
10566
10567 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
10568
10569 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
10570 if w32_parse_hot_key returned nil.
10571
10572 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10573
10574 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
10575
10576 2007-11-09 Jason Rumney <jasonr@gnu.org>
10577
10578 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
10579
10580 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
10581
10582 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
10583 Remove W32_SCROLL_BAR_CLICK_EVENT.
10584
10585 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
10586 Add MULTIMEDIA_KEY_EVENT.
10587
10588 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
10589 (lispy_multimedia_keys) [WINDOWSNT]: New array.
10590 (make_lispy_event) [WINDOWSNT]: Use it to translate
10591 MULTIMEDIA_KEY_EVENT.
10592
10593 * w32term.h (WM_APPCOMMAND): Define if not already.
10594 (GET_APPCOMMAND_LPARAM): Likewise.
10595
10596 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
10597 WM_APPCOMMAND.
10598
10599 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
10600 (syms_of_w32fns): Export and initialize it.
10601 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
10602
10603 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
10604
10605 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
10606 twice.
10607
10608 * xdisp.c (handle_face_prop): Fix last change.
10609
10610 2007-11-09 Richard Stallman <rms@gnu.org>
10611
10612 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
10613 not just for after-strings and before-strings.
10614 Call face_for_overlay_string and pass the overlay to it.
10615 (handle_display_prop): Determine whether property came from an overlay.
10616 Pass OVERLAY arg to handle_single_display_spec.
10617 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
10618 (load_overlay_strings): Fill in it->string_overlays.
10619 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
10620
10621 * xfaces.c (face_for_overlay_string): Function renamed from
10622 face_at_buffer_position_no_overlays, and add arg OVERLAY.
10623
10624 * dispextern.h (struct it): New elt string_overlays.
10625 New elt from_overlay, also in stack.
10626 Rearrange a few elements.
10627 (face_for_overlay_string): Decl renamed from
10628 face_at_buffer_position_no_overlays, and add argument.
10629
10630 2007-11-09 Richard Stallman <rms@gnu.org>
10631
10632 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
10633 to get the base face for an overlay string.
10634
10635 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
10636
10637 * xfaces.c (face_at_buffer_position_no_overlays): New function.
10638
10639 * xdisp.c (handle_stop): Move some code out of loop.
10640
10641 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10642
10643 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
10644 Fix conversion from Lisp object to ATSUFontID.
10645
10646 2007-11-09 Jason Rumney <jasonr@gnu.org>
10647
10648 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
10649
10650 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10651
10652 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
10653 Don't assume regions are aligned to page boundary.
10654 (print_load_command_name): Add LC_UUID if defined.
10655
10656 2007-11-09 Richard Stallman <rms@gnu.org>
10657
10658 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
10659
10660 2007-11-07 Jason Rumney <jasonr@gnu.org>
10661
10662 * s/windows95.h: Remove.
10663
10664 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
10665
10666 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
10667 abort with a message on unhandled store_type values.
10668
10669 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
10670
10671 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
10672 Remove HAVE_X11R5 and HAVE_X11R4.
10673
10674 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10675
10676 * Makefile.in: Remove references to sunfns.c and sunfns.o.
10677
10678 2007-11-01 Johan Bockgård <bojohan@gnu.org>
10679
10680 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
10681 Don't set s->stippled_p here, since it has already been set by
10682 x_set_glyph_string_gc from x_draw_glyph_string.
10683
10684 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10685
10686 * sunfns.c: Remove file.
10687
10688 * m/sun386.h:
10689 * m/sun2.h:
10690 * m/sparc.h: Remove Sun windows code.
10691
10692 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
10693
10694 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
10695 (init_keyboard): Set current_kboard's window-system to nil.
10696 (tty_read_avail_input): Typo.
10697 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
10698
10699 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
10700
10701 * s/usg5-4.h:
10702 * s/usg5-3.h:
10703 * s/ptx.h:
10704 * m/is386.h:
10705 * m/ibmps2-aix.h:
10706 * Makefile.in: Remove all mentions of X10.
10707
10708 * dispnew.c (syms_of_display): Don't mention version 10.
10709
10710 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
10711
10712 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
10713 ($(BLD)/abbrev.$(O)): Remove.
10714
10715 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10716
10717 Rewrite abbrev.c in Elisp.
10718 * image.c (Qcount): Don't declare as extern.
10719 (syms_of_image): Initialize and staticpro `Qcount'.
10720 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
10721 * emacs.c (main): Don't call syms_of_abbrev.
10722 * Makefile.in (obj): Remove abbrev.o.
10723 (abbrev.o): Remove.
10724 * abbrev.c: Remove.
10725
10726 2007-10-26 Martin Rudalics <rudalics@gmx.at>
10727
10728 * window.c (window_min_size_2): Don't count header-line.
10729
10730 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
10731
10732 * frame.h (struct frame): Move all bit fields after the first bit
10733 field to take advantage of the available space. Group all the
10734 chars together to reduce wasted space due to padding.
10735
10736 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
10737
10738 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
10739
10740 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
10741 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
10742 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
10743 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
10744 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
10745 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
10746 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
10747 (last_marked, mark_object_loop_halt): Make static.
10748
10749 * frame.c (syms_of_frame) <delete-frame-functions>:
10750 Fix typo in docstring.
10751
10752 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
10753
10754 * w32.c (init_environment): Fix tiny memory leak.
10755 (w32_get_resource): Remove unused variable `ok'.
10756
10757 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
10758
10759 Make `window-system' into a keyboard-local variable (rather than
10760 frame-local as done originally by multi-tty).
10761
10762 * keyboard.h (struct kboard): Add Vwindow_system.
10763 * keyboard.c (init_kboard): Set a default for Vwindow_system.
10764 (mark_kboards): Mark Vwindow_system.
10765
10766 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
10767 (init_display): Don't set the obsolete `window-system' frame-param.
10768
10769 * xterm.c (x_term_init):
10770 * w32term.c (w32_create_terminal):
10771 * term.c (init_tty): Set Vwindow_system.
10772 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
10773 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
10774
10775 * xfns.c (Fx_create_frame, x_create_tip_frame):
10776 * w32fns.c (Fx_create_frame, x_create_tip_frame):
10777 * macfns.c (Fx_create_frame):
10778 Don't set the obsolete `window-system' frame-param.
10779
10780 * frame.h (Qwindow_system): Remove.
10781 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
10782 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
10783
10784 2007-10-24 Richard Stallman <rms@gnu.org>
10785
10786 * frame.c (x_figure_window_size): For fullscreen case,
10787 set USPosition | PPosition without clobbering rest of window_prompting.
10788
10789 * keyboard.c (Fcurrent_idle_time): Doc fix.
10790
10791 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10792
10793 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10794
10795 * process.c (unwind_request_sigio): Only define if __ultrix__.
10796
10797 * callproc.c (child_setup): Remove spurious *.
10798
10799 * lisp.h (Fget_text_property): Declare.
10800 (have_menus_p): Declare it here rather than in sys-dep header files.
10801 * macterm.h (have_menus_p):
10802 * msdos.h (have_menus_p):
10803 * xterm.h (have_menus_p): Remove.
10804
10805 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10806 (Fmake_variable_frame_local): Just check the variable's const-ness
10807 rather than checking nil or t.
10808
10809 2007-10-22 Jason Rumney <jasonr@gnu.org>
10810
10811 * w32fns.c: Include math.h.
10812 (w32_abort): Declaration moved to nt/config.nt.
10813
10814 * s/ms-w32.h (HAVE_STDLIB_H): Define.
10815 (abort): Redefinition moved to nt/config.nt.
10816
10817 * m/windowsnt.h: Remove.
10818
10819 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
10820
10821 * emacs.c (Fdump_emacs): Fix typo in message.
10822 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
10823 <installation-directory>: Reflow docstring.
10824
10825 2007-10-22 Juri Linkov <juri@jurta.org>
10826
10827 * minibuf.c: Allow minibuffer default to be a list of default values.
10828 With empty input use the first element of this list as returned default.
10829 (string_to_object)
10830 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
10831 (read_minibuf): If defalt is cons, set histstring to its car.
10832 (Fread_string): If default_value is cons, set val to its car.
10833 (Fread_buffer): If def is cons, use its car.
10834 (Fcompleting_read): If defalt is cons, set val to its car.
10835
10836 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
10837
10838 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
10839
10840 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
10841
10842 * doc.c (Fdocumentation): Check for advice in all cases.
10843
10844 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
10845
10846 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
10847
10848 2007-10-19 Richard Stallman <rms@gnu.org>
10849
10850 * doc.c (Fdocumentation): Check for and handle an advised function.
10851
10852 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
10853
10854 * process.c (Fset_process_filter): Doc fix.
10855
10856 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10857
10858 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
10859 which caused key-translation-map to applied repeatedly (thus breaking
10860 double-mode).
10861
10862 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10863
10864 * xselect.c (x_own_selection, x_handle_selection_clear)
10865 (x_clear_frame_selections):
10866 * w32menu.c (list_of_panes, list_of_items):
10867 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
10868 * textprop.c (validate_plist, interval_has_all_properties)
10869 (interval_has_some_properties, interval_has_some_properties_list)
10870 (add_properties, text_property_list):
10871 * process.c (Fget_buffer_process, list_processes_1, status_notify):
10872 * minibuf.c (Fassoc_string):
10873 * macselect.c (x_own_selection, x_clear_frame_selections)
10874 (Fx_disown_selection_internal):
10875 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
10876 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
10877
10878 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
10879
10880 * process.c: Link to libs for calling res_init() if available.
10881 (Fmake_network_process): Call res_init() before getaddrinfo or
10882 gethostbyname, if possible.
10883
10884 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10885
10886 * lread.c (read1): Set pvectype for char_tables.
10887
10888 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
10889 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
10890 Add type checks.
10891 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
10892
10893 * alloc.c (free_misc): Use XMISCTYPE.
10894 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
10895
10896 2007-10-17 Glenn Morris <rgm@gnu.org>
10897
10898 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
10899 (syms_of_minibuf): Add Qcompletion_ignore_case.
10900 * dired.c (Qcompletion_ignore_case): Change to external.
10901 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
10902 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
10903 (Fread_file_name): Use it rather than intern'ing.
10904
10905 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
10906 (Fread_coding_system): Ignore case of user input.
10907
10908 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10909
10910 * xdisp.c (handle_display_prop): Ignore display specs after
10911 replacing one when string text is being replaced.
10912 (handle_single_display_spec): Pretend as if characters with display
10913 property haven't been consumed only when buffer text is being replaced.
10914
10915 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
10916
10917 * xfns.c (Fx_create_frame, Fx_display_list):
10918 * window.c (window_fixed_size_p, enlarge_window)
10919 (shrink_window_lowest_first):
10920 * macterm.c (init_font_name_table):
10921 * macfns.c (Fx_create_frame, Fx_display_list):
10922 * lread.c (close_load_descs):
10923 * keyboard.c (read_char_x_menu_prompt):
10924 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
10925 * coding.c (code_convert_region_unwind): Test the type of an object
10926 rather than just !NILP before extracting data from it.
10927
10928 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
10929
10930 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
10931 (XMISCANY): New macro.
10932 (XMISCTYPE): Use it.
10933 (struct Lisp_Misc_Any): New type.
10934 (union Lisp_Misc): Use it.
10935 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
10936 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
10937 (find_symbol_value, set_internal, default_value, Fset_default)
10938 (Fmake_variable_buffer_local, Fmake_local_variable)
10939 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
10940 (Flocal_variable_if_set_p, Fvariable_binding_locus):
10941 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
10942 * alloc.c (allocate_buffer): Set the size and tag.
10943 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
10944 Use XMISCANY.
10945 (die): Follow the GNU convention for error messages.
10946 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
10947 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
10948 tag any more.
10949 (set_buffer_internal_1):
10950 * frame.c (store_frame_param):
10951 * eval.c (specbind):
10952 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
10953
10954 * doc.c (Fsnarf_documentation): Simplify.
10955
10956 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10957
10958 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
10959 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
10960
10961 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
10962
10963 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
10964
10965 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
10966
10967 * eval.c (do_autoload): Don't save autoloads.
10968
10969 * data.c (Ffset): Save autoload of the function being set.
10970
10971 2007-10-07 John Paul Wallington <jpw@pobox.com>
10972
10973 * xfns.c (x_create_tip_frame): Set the `display-type' frame
10974 parameter before setting up faces.
10975
10976 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10977
10978 * ccl.c (Fregister_code_conversion_map):
10979 * keyboard.c (append_tool_bar_item): Reformat last change.
10980
10981 * lisp.h (eabs): Rename from `abs'. All callers changed.
10982
10983 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
10984
10985 * buffer.c (add_overlay_mod_hooklist):
10986 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
10987 * fontset.c (make_fontset):
10988 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
10989 (append_tool_bar_item):
10990 * macmenu.c (grow_menu_items):
10991 * w32menu.c (grow_menu_items):
10992 * xmenu.c (grow_menu_items): Use larger_vector.
10993
10994 2007-10-13 Eli Zaretskii <eliz@gnu.org>
10995
10996 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
10997 selected frame'' on MSDOS).
10998
10999 2007-10-12 Martin Rudalics <rudalics@gmx.at>
11000
11001 * frame.c (Qexplicit_name): New variable.
11002 (x_report_frame_params): Report it in parameter alist.
11003 (syms_of_frame): Intern and staticpro it.
11004
11005 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
11006
11007 * macfns.c (x_create_tip_frame): Set terminal for frame.
11008
11009 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
11010
11011 * frame.c (Qenvironment): Remove.
11012 (syms_of_frame) <Qenvironment>: Don't initialize.
11013 (Fdelete_frame): Don't treat the `environment' param specially.
11014 * frame.h (Qenvironment): Don't declare.
11015 * callproc.c (set_initial_environment): Don't set unused frame param.
11016
11017 * frame.c (Fframe_with_environment): Remove.
11018 (syms_of_frame) <Sframe_with_environment>: Don't declare.
11019
11020 * lisp.h (Fframe_with_environment): Don't declare.
11021
11022 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
11023
11024 * indent.c (indent_tabs_mode, last_known_column)
11025 (last_known_column_modified): Make static.
11026 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
11027
11028 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
11029
11030 * puresize.h (BASE_PURESIZE): Increase to 1170000.
11031
11032 2007-10-09 Jason Rumney <jasonr@gnu.org>
11033
11034 * w32term.c (x_set_window_size): Disable code that attempts to tell
11035 Lisp code about a size change before it actually happens.
11036
11037 2007-10-09 Richard Stallman <rms@gnu.org>
11038
11039 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
11040 return HANDLED_RETURN.
11041
11042 2007-10-08 Martin Rudalics <rudalics@gmx.at>
11043
11044 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
11045 when there's an unread command event.
11046
11047 * frame.c (focus_follows_mouse): Move here from frame.el to allow
11048 window autoselection act appropriately when leaving selected frame.
11049 (syms_of_frame): Initialize focus_follows_mouse.
11050 * frame.h (focus_follows_mouse): Extern it.
11051 * macterm.c (XTread_socket): When focus_follows_mouse is nil
11052 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
11053 * msdos.c (dos_rawgetc): Likewise.
11054 * w32term.c (w32_read_socket): Likewise.
11055 * xterm.c (handle_one_xevent): Likewise.
11056 * xdisp.c (syms_of_xdisp): In doc-string of
11057 mouse-autoselect-window mention focus-follows-mouse.
11058
11059 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11060
11061 * macterm.c (mac_load_query_font): Fix missing return value.
11062 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
11063 Add BLOCK_INPUT.
11064
11065 2007-10-08 Richard Stallman <rms@gnu.org>
11066
11067 * xdisp.c (get_window_cursor_type): Implement documented behavior
11068 for cursor-in-non-selected-windows = t.
11069
11070 2007-10-08 Jason Rumney <jasonr@gnu.org>
11071
11072 * w32.c (w32_get_resource): Always close registry keys.
11073
11074 2007-10-08 Jason Rumney <jasonr@gnu.org>
11075
11076 * makefile.w32-in (LIBS): Add COMCTL32.
11077
11078 * w32fns.c (globals_of_w32fns): Init common controls.
11079
11080 2007-10-08 Richard Stallman <rms@gnu.org>
11081
11082 * image.c (our_memory_buffer): Rename from omfib_buffer.
11083
11084 2007-10-08 Richard Stallman <rms@gnu.org>
11085
11086 * buffer.c (Foverlays_at): Doc fix.
11087
11088 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
11089
11090 * fns.c (Fplist_put): Preserve uneven tail data.
11091
11092 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
11093
11094 * termhooks.h (enum event_kind): Remove trailing comma.
11095
11096 * frame.h (enum): Remove trailing comma.
11097
11098 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11099
11100 * w32proc.c (delete_child): Don't terminate threads of zombies.
11101
11102 2007-10-08 Martin Rudalics <rudalics@gmx.at>
11103
11104 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
11105
11106 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
11107 last-repeatable-command.
11108 (init_kboard): Initialize Vlast_repeatable_command.
11109 (command_loop_1): Set it to real_this_command unless that was
11110 bound to an input event.
11111 (mark_kboards): Mark it.
11112
11113 2007-10-08 Richard Stallman <rms@gnu.org>
11114
11115 * eval.c (condition-case): Doc fix.
11116
11117 2007-10-08 Masatake YAMATO <jet@gyve.org>
11118
11119 * xfaces.c (tty_supports_face_attributes_p): Fix code
11120 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
11121 was copied and not edited.
11122
11123 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
11124
11125 Add new `input-decode-map' keymap and use it for terminal
11126 escape sequences.
11127 * keyboard.h (struct kboard): Add Vinput_decode_map.
11128 Remove Vlocal_key_translation_map.
11129 * keyboard.c (read_key_sequence): Add support for input-decode-map.
11130 (init_kboard): Init input-decode-map.
11131 Replace local-key-translation-map back with key-translation-map.
11132 (syms_of_keyboard): Declare input-decode-map.
11133 Remove local-key-translation-map. Update docstrings.
11134 (mark_kboards): Mark Vinput_decode_map.
11135 Don't mark Vlocal_key_translation_map.
11136 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
11137 Replace local-key-translation-map back with key-translation-map.
11138 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
11139 Bind in input-decode-map rather than function-key-map.
11140
11141 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
11142 This was made redundant by the previous introduction of XSETPVECTYPE.
11143
11144 2007-10-09 Richard Stallman <rms@gnu.org>
11145
11146 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
11147
11148 2007-09-29 Richard Stallman <rms@gnu.org>
11149
11150 * eval.c (internal_condition_case_2, internal_condition_case_1)
11151 (internal_condition_case): Reenable abort if x_catching_errors ()
11152 to see if that really happens and why.
11153
11154 2007-10-06 Andreas Schwab <schwab@suse.de>
11155
11156 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
11157
11158 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
11159
11160 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
11161
11162 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
11163
11164 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
11165
11166 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
11167
11168 * window.h (struct window):
11169 * window.c (struct save_window_data, struct saved_window):
11170 * termhooks.h (struct terminal):
11171 * process.h (struct Lisp_Process):
11172 * frame.h (struct frame):
11173 * buffer.h (struct buffer):
11174 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
11175 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
11176 The size field of (pseudo)vectors is now unsigned.
11177 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
11178
11179 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
11180 Turn `count' into an integer.
11181
11182 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
11183 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
11184 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
11185 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
11186 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
11187
11188 * alloc.c (allocate_pseudovector): New fun.
11189 (ALLOCATE_PSEUDOVECTOR): New macro.
11190 (allocate_window, allocate_terminal, allocate_frame)
11191 (allocate_process): Use it.
11192 (mark_vectorlike): New function.
11193 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
11194 (mark_terminals): Use it.
11195 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
11196 (Fmake_byte_code): Use XSETPVECTYPE.
11197
11198 * frame.c (Fframe_parameters): Minor simplification.
11199
11200 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
11201
11202 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
11203
11204 * buffer.c (Fget_buffer_create, init_buffer_once):
11205 * lread.c (defsubr):
11206 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
11207
11208 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
11209 defined differently in the m/*.h files.
11210 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
11211 (XSETPVECTYPE): New macro.
11212 (XSETPSEUDOVECTOR): Use it.
11213
11214 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
11215 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
11216
11217 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
11218 * lread.c (defvar_per_buffer):
11219 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
11220
11221 * window.c (candidate_window_p): Only consider as visible frames that
11222 are on the same terminal.
11223
11224 * m/ibms390x.h (MARKBIT): Remove unused macro.
11225
11226 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
11227
11228 * lread.c (Fload): Fix typo in docstring.
11229
11230 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
11231
11232 * floatfns.c (Fexpt): Manually check for overflows, so that a power
11233 of a non-zero value can't yield zero.
11234
11235 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
11236
11237 * term.c (term_clear_mouse_face, term_mouse_highlight)
11238 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
11239
11240 * print.c (safe_debug_print): Use XHASH.
11241
11242 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
11243 Lisp elements such as tags.
11244 (XHASH): New macro.
11245 (EQ): Use it.
11246 (SREF, SSET, STRING_COPYIN): Use SDATA.
11247 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
11248
11249 * alloc.c (mark_terminal): Remove left-over declaration.
11250 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
11251 (allocate_vectorlike): Remove type argument. Adjust callers.
11252 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
11253 Only handle the one remaining MEM_TYPE_VECTORLIKE.
11254
11255 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
11256 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
11257 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
11258 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
11259 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
11260 Use them.
11261
11262 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
11263 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
11264 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
11265
11266 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11267
11268 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
11269 loaded by default.
11270
11271 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11272
11273 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
11274 on this tty.
11275 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
11276
11277 * term.c (mouse_face_window): Rename from Qmouse_face_window.
11278 Update all users.
11279 (handle_one_term_event): Use Gpm_DrawPointer.
11280 (Fgpm_mouse_start): Rename from Fterm_open_connection.
11281 Signal errors instead of returning nil. Always return nil.
11282 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
11283 Make it a noop if gpm-mouse was not activated.
11284 (syms_of_term): Update names.
11285
11286 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
11287
11288 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
11289 (init_sys_modes): Check that gpm_tty is the current tty.
11290
11291 * alloc.c (allocate_terminal): Set the vector size to only count the
11292 lisp fields. Initialize those to nil.
11293 (mark_object): Don't treat terminals specially.
11294 (mark_terminal): Remove.
11295 (mark_terminals): Use mark_object instead.
11296
11297 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
11298 the GC to the beginning.
11299
11300 * indent.h:
11301 * indent.c: Use EMACS_INT for ints coming from Elisp data.
11302
11303 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
11304
11305 2007-09-25 Jason Rumney <jasonr@gnu.org>
11306
11307 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
11308
11309 * w32console.c (create_w32cons_output): Remove.
11310
11311 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
11312
11313 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
11314 (reset_sys_modes): Use reset_terminal_modes_hook.
11315
11316 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
11317
11318 * eval.c (do_autoload): Don't output any message.
11319
11320 2007-09-24 Juri Linkov <juri@jurta.org>
11321
11322 * emacs.c (standard_args): Change priority of "--no-splash"
11323 from 40 to 3. Add "--no-desktop" with the same priority.
11324
11325 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
11326
11327 * alloc.c (gc_sweep): Check cons cell mark bits word by word
11328 and optimize the case where they are all 1.
11329
11330 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
11331
11332 * lisp.h (abs): Define if not defined.
11333 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
11334 Don't define `abs', since it's defined in lisp.h.
11335
11336 2007-09-22 Eli Zaretskii <eliz@gnu.org>
11337
11338 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
11339 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
11340 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
11341 (init_tty): Use DEV_TTY instead of "/dev/tty".
11342 [WINDOWSNT]: No need to protect from NAME arg being null.
11343
11344 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11345
11346 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
11347 up the tty state.
11348
11349 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11350
11351 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
11352 (gpm_tty): Change its type.
11353 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
11354 (gpm_tty): Change its type and initialize it.
11355 (Fterm_open_connection): Check the frame is indeed a tty.
11356 Use the new gpm_tty.
11357 (Fterm_close_connection): Use the new gpm_tty.
11358 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
11359 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
11360
11361 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
11362
11363 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
11364 underline_color, to draw strike-through.
11365
11366 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11367
11368 * lisp.h (allocate_terminal): Declare.
11369
11370 * window.c (candidate_window_p): Consider frames that are being placed
11371 by the user as somewhere between visible and iconified.
11372 (window_loop): Prefer windows on the current frame.
11373 (Fselect_window): Move the use of select-frame to the beginning so we
11374 can just delegate all the work (it'll call us back anyway).
11375
11376 * frame.c (Qdisplay_environment_variable):
11377 * frame.h (Qdisplay_environment_variable): Delete.
11378
11379 * .gdbinit (xbacktrace): Print the arg's address rather than the value
11380 of the first arg, since that value may be a union.
11381
11382 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
11383 parameter rather than Qdisplay_environment_variable. If all else
11384 fails, look for DISPLAY in initial-environment.
11385
11386 2007-09-21 Glenn Morris <rgm@gnu.org>
11387
11388 * Makefile.in (emacstool): Remove target.
11389 (lisp, shortlisp): Remove termdev.elc.
11390
11391 2007-09-21 Markus Triska <markus.triska@gmx.at>
11392
11393 * xterm.c (x_delete_display): Compile session management conditionally.
11394
11395 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
11396
11397 * callproc.c (getenv_internal_1): New function.
11398 (getenv_internal): Use it.
11399 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
11400
11401 * terminal.c (get_terminal): Don't accept ints to represent terminals.
11402 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
11403 (Fset_terminal_parameter): Work with dead terminals as well.
11404 (Fmodify_terminal_parameters): Remove.
11405
11406 * terminal.c (get_terminal): Handle terminals.
11407 Make sure the terminal returned is live.
11408 (create_terminal): Use allocate_terminal.
11409 (mark_terminals): Move to alloc.c.
11410 (delete_terminal): Use terminal->name as liveness status.
11411 NULL out fields after freeing their contents.
11412 Don't deallocate the object.
11413 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
11414 rather than an int.
11415 (Fterminal_live_p): Accept non-integer arguments.
11416 (Fterminal_list): Return terminal objects rather than an ints.
11417
11418 * alloc.c (enum mem_type): New member for `terminal' objects.
11419 (allocate_terminal): New function.
11420 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
11421 Handle terminals.
11422 (mark_terminal): New fun.
11423 (mark_terminals): Move from terminal.c.
11424
11425 * term.c (get_tty_terminal): Don't treat output_initial specially.
11426 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
11427 (delete_tty): Use terminal->name as liveness status.
11428
11429 * termhooks.h (struct terminal): Make it into a pseudovector.
11430 Remove `deleted' replaced by checking `name's nullness.
11431
11432 * print.c (print_object): Handle terminals.
11433
11434 * lisp.h (enum pvec_type): New `terminal' pseudovector.
11435 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
11436
11437 * frame.c (make_terminal_frame):
11438 * keyboard.c (tty_read_avail_input):
11439 * w32term.c (x_delete_terminal):
11440 * xfns.c (Fx_create_frame, x_create_tip_frame):
11441 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
11442
11443 2007-09-20 Glenn Morris <rgm@gnu.org>
11444
11445 * process.c (Fmake_network_process): Doc fix.
11446
11447 2007-09-19 Jason Rumney <jasonr@gnu.org>
11448
11449 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
11450
11451 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
11452
11453 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
11454 Fix a C warning regarding variable constness.
11455
11456 * xterm.c (handle_one_xevent): Fix a C warning.
11457
11458 2007-09-18 Jason Rumney <jasonr@gnu.org>
11459
11460 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
11461
11462 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
11463
11464 * gtkutil.c (gdpy_def): New variable.
11465 (xg_initialize): Initialize gdpy_def.
11466 (xg_display_close): If no other display exists, set gdpy_def to a
11467 new connection.
11468
11469 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
11470
11471 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
11472 when we have no file name for the icon.
11473 (xg_tool_bar_expose_callback): Remove.
11474 (xg_create_tool_bar): Don't connect expose signal to
11475 xg_tool_bar_expose_callback.
11476 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
11477
11478 2007-09-16 Andreas Schwab <schwab@suse.de>
11479
11480 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
11481 values instead of zapping them.
11482
11483 2007-09-14 Glenn Morris <rgm@gnu.org>
11484
11485 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
11486 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
11487 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
11488 scope and rename to omfib_buffer for clarity.
11489 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
11490
11491 2007-09-14 Kenichi Handa <handa@m17n.org>
11492
11493 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
11494
11495 2007-09-13 Jason Rumney <jasonr@gnu.org>
11496
11497 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
11498
11499 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
11500
11501 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
11502 (mac_term_init): Call here instead, passing rif.
11503
11504 2007-09-13 Glenn Morris <rgm@gnu.org>
11505
11506 * s/hpux.h: No longer define `static' as nothing.
11507
11508 2007-09-13 Johan Bockgård <bojohan@gnu.org>
11509
11510 * callint.c (Fcall_interactively): Remove unused var `fun'.
11511
11512 2007-09-12 Romain Francoise <romain@orebokech.com>
11513
11514 * window.c (prefer_window_split_horizontally, display_buffer):
11515 Revert 2007-09-08 change.
11516
11517 2007-09-12 Glenn Morris <rgm@gnu.org>
11518
11519 * alloca.c: Remove file.
11520 * Makefile.in (alloca): Do not undef.
11521 (allocaobj, alloca.o): Remove.
11522 (otherobj): Remove allocaobj.
11523 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
11524 * regex.c (C_ALLOCA): Remove all references and code that was only
11525 used when this was defined.
11526 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
11527 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
11528 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
11529
11530 * Makefile.in (SOURCES, unlock, relock): Delete.
11531
11532 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
11533 (menu_grab_callback): All uses changed.
11534
11535 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
11536 (x_reply_selection_request): All uses changed.
11537
11538 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11539
11540 * lread.c (load_warn_old_style_backquotes): Change message to look
11541 better when it appears in the middle of byte-compiler messages.
11542
11543 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
11544
11545 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
11546
11547 * xterm.c (x_create_terminal): Add comment.
11548
11549 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
11550
11551 2007-09-10 Richard Stallman <rms@gnu.org>
11552
11553 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
11554
11555 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
11556
11557 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
11558 (DEFUN): Document `intspec', use it instead of `prompt'.
11559
11560 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
11561
11562 * data.c (Finteractive_form): If the interactive specification starts
11563 with a `(', use it as a Lisp form.
11564
11565 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
11566 name and file modes.
11567
11568 * callint.c (Fcall_interactively): Comment fixes.
11569
11570 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11571
11572 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
11573 and compiled functions.
11574
11575 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
11576
11577 * window.c (prefer_window_split_horizontally): New variable.
11578 (display_buffer): Consider splitting window horizontally depending
11579 on prefer_window_split_horizontally.
11580
11581 2007-09-08 Eli Zaretskii <eliz@gnu.org>
11582
11583 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
11584
11585 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11586
11587 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
11588
11589 * frame.c (x_set_frame_parameters): Check number is positive before
11590 using XFASTINT.
11591
11592 * window.c (freeze_window_start): Don't presume selected_window holds
11593 a window object.
11594 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
11595
11596 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
11597
11598 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
11599
11600 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11601
11602 * window.c (Vsplit_window_preferred_function): New var.
11603 (Fdisplay_buffer): Use it.
11604 (syms_of_window): Export, and initialize it.
11605
11606 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
11607
11608 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
11609
11610 2007-09-06 Glenn Morris <rgm@gnu.org>
11611
11612 * gtkutil.c (menu_grab_callback) <cnt>:
11613 * xselect.c (x_reply_selection_request) <cnt>: Move static
11614 variable to file scope.
11615
11616 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
11617
11618 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
11619 consistent values of selected_frame and selected_window.
11620
11621 2007-09-04 Jason Rumney <jasonr@gnu.org>
11622
11623 * w32console.c (initialize_w32_display): Zero unused hooks.
11624
11625 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11626
11627 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
11628 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
11629
11630 2007-09-04 Jason Rumney <jasonr@gnu.org>
11631
11632 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
11633 in w32console.c. Set up input. Remove XXX comments that have been
11634 confirmed as correct.
11635
11636 * s/ms-w32.h (MULTI_KBOARD): Define.
11637
11638 * w32console.c (one_and_only_w32cons): Remove.
11639 (initialize_w32_display): Take terminal argument.
11640
11641 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
11642 initialize_w32_display.
11643 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
11644
11645 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
11646
11647 * keyboard.c (discard_mouse_events): Discard it.
11648 (make_lispy_event): Translate it to a lisp event.
11649 (lispy_wheel_names): Add wheel-left and right events.
11650 (syms_of_keyboard): Enlarge wheel_syms.
11651
11652 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
11653 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
11654
11655 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
11656
11657 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
11658 from WM_MOUSEHWHEEL.
11659 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
11660
11661 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
11662 terminal.
11663
11664 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
11665 keyboard for the terminal.
11666
11667 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11668
11669 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
11670 (Vresume_tty_hook): Rename from Vresume_tty_functions.
11671 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
11672 and resume-tty-function to resume-tty-hook.
11673 (Fsuspend_tty, Fresume_tty): Use new names.
11674
11675 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
11676
11677 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
11678 if it starts with "n:".
11679
11680 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
11681
11682 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
11683
11684 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11685
11686 * frame.h:
11687 * frame.c (Qterm_environment_variable): Remove.
11688 (syms_of_frame): Don't init and staticpro it.
11689
11690 * callproc.c (getenv_internal): Remove special case for $TERM.
11691
11692 * callproc.c (Vinitial_environment): New variable.
11693 (set_initial_environment): Initialize it.
11694 (syms_of_callproc): Declare it.
11695 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
11696 TERM under which a process runs is never related to the TERM in which
11697 Emacs is running.
11698
11699 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11700
11701 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
11702 * s/darwin.h: ... do it here.
11703
11704 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11705
11706 * lisp.h (set_initial_environment): Rename from set_global_environment.
11707
11708 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
11709 removed by mistake on the multi-tty branch.
11710
11711 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
11712 (Fmodify_frame_parameters): Return a value.
11713
11714 * image.c (png_load): Comment-out var only used in commented-out code.
11715
11716 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
11717 before passing it to mark_object.
11718
11719 * xfaces.c (internal_resolve_face_name): Return a value.
11720 (internal_resolve_face_name, resolve_face_name_error): Comment out.
11721
11722 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
11723 (x_icon): Comment-out var only used in commented-out code.
11724
11725 2007-08-29 Romain Francoise <romain@orebokech.com>
11726
11727 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
11728 QUIT hasn't been provided.
11729
11730 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11731
11732 * callproc.c (child_setup, getenv_internal): Use the
11733 display-environment-variable and term-environment-variable frame params.
11734 (set_initial_environment): Initialise Vprocess_environment.
11735
11736 * config.in: Disable multi-keyboard support on a mac.
11737
11738 * frame.c (Qterm_environment_variable)
11739 (Qdisplay_environment_variable): New variables.
11740 (syms_of_frame): Intern and staticpro them.
11741 (Fmake_terminal_frame): Disable output method test.
11742
11743 * frame.h: Declare them here.
11744
11745 * macfns.c (x_set_mouse_color): Get rif from the frame.
11746 (x_set_tool_bar_lines): Don't use updating_frame.
11747 (mac_window): Add 2 new parameters for consistency with other systems.
11748 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
11749 frame parameters following what is done in X11 and w32. Don't use
11750 FRAME_MAC_DISPLAY_INFO.
11751 (Fx_open_connection, start_hourglass): Remove window-system check.
11752 (x_create_tip_frame): Get the keyboard from the terminal.
11753
11754 * macmenu.c: Reorder includes.
11755 (Fx_popup_menu): Use terminal specific mouse_position_hook.
11756
11757 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
11758 terminal parameter.
11759 (x_clear_frame): Add a frame parameter.
11760 (note_mouse_movement): Get rif from the frame.
11761 (mac_term_init): Initialize the terminal.
11762 (mac_initialize): Make static and move terminal initialization ...
11763 (mac_create_terminal): ... to this new function.
11764
11765 * macterm.h (struct mac_display_info): Add terminal.
11766 (mac_initialize): Delete declaration.
11767
11768 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
11769
11770 * sysdep.c: Comment out text after #endif.
11771
11772 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
11773 is defined. Better initialize ttys in windows. Use terminal
11774 specific mouse_position_hook.
11775
11776 * termhooks.h (union display_info): Add mac_display_info.
11777
11778 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
11779 Set the default minibuffer frame, window_system and the rest of the
11780 frame parameters following what is done in X11.
11781
11782 * w32term.c (w32_initialize): Make static.
11783
11784 * xselect.c (x_handle_selection_clear): Only access
11785 terminal->kboard when MULTI_KBOARD is defined.
11786
11787 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
11788 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
11789
11790 2007-08-29 Jason Rumney <jasonr@gnu.org>
11791
11792 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
11793 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
11794
11795 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
11796 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
11797
11798 * keyboard.c (restore_kboard_configuration): Only define when
11799 MULTI_KBOARD defined.
11800
11801 * makefile.w32-in: Update dependancies from Makefile.in.
11802 (OBJ1): Add terminal.$(O)
11803
11804 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
11805 Don't define function body.
11806 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
11807
11808 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
11809
11810 * w32.c (request_sigio, unrequest_sigio): Remove.
11811
11812 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
11813 (w32con_clear_frame, w32con_clear_end_of_line)
11814 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
11815 (w32con_delete_glyphs, w32con_set_terminal_window)
11816 (scroll_line, w32_sys_ring_bell): Add frame arg.
11817 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
11818 Add terminal arg.
11819 (PICK_FRAME): Remove.
11820 (w32con_write_glyphs): Use frame specific terminal coding.
11821 (one_and_only_w32cons): New global variable.
11822 (initialize_w32_display): Use it for storing hooks.
11823 (create_w32cons_output): New function.
11824
11825 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
11826 arg a frame.
11827
11828 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
11829 Set window_system.
11830 (x_set_tool_bar_lines): Don't use updating_frame.
11831 (Fx_create_frame): Set terminal and ref count.
11832 (Fx_open_connection): Remove window-system check.
11833
11834 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
11835
11836 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
11837 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
11838 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
11839 Add frame arg.
11840 (x_delete_terminal, w32_create_terminal): New functions.
11841 (w32_term_init): Create a terminal.
11842 (w32_initialize): Move terminal specific initialization to
11843 w32_create_terminal.
11844
11845 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
11846 (w32_clear_rect, w32_clear_area): Use background from frame.
11847 (w32_display_info): Add terminal.
11848 (w32_sys_ring_bell, x_delete_display): Declare here.
11849
11850 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
11851
11852 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
11853
11854 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
11855
11856 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
11857 Fix get_named_tty calls for the controlling tty.
11858
11859 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
11860
11861 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
11862
11863 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
11864
11865 * term.c (tty_insert_glyphs): Add missing first parameter.
11866
11867 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
11868
11869 * buffer.c (Fbuffer_list, Fbury_buffer):
11870 Take frame->buried_buffer_list into account.
11871
11872 * cm.c (current_tty): New variable, for cmputc().
11873 (cmputc): Use it.
11874 (cmcheckmagic): Add tty parameter, look up terminal streams there.
11875 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
11876 (cmgoto): Add tty parameter. Pass it on to calccost().
11877 Use emacs_tputs() instead of tputs().
11878
11879 * cm.h (emacs_tputs): New macro to set current_tty, and then call
11880 tputs().
11881 (current_tty): New variable, for cmputc().
11882 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
11883
11884 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
11885 (internal_condition_case, internal_condition_case_1)
11886 (internal_condition_case_2): Don't abort when x_catching_errors.
11887
11888 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
11889 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
11890 prevent crashes caused by bogus longjmps in read_char.
11891
11892 * keymap.h (Fset_keymap_parent): Add EXFUN.
11893
11894 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
11895 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11896 Remove redundant definition.
11897
11898 * macfns.c (x_set_mouse_color, x_make_gc):
11899 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11900
11901 * w32term.c (x_free_frame_resources):
11902 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11903 (w32_initialize): Use the accessor macros for terminal characteristics.
11904
11905 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
11906 Use the accessor macros for terminal characteristics.
11907 * msdos.c (internal_terminal_init): Use the accessor macros for
11908 terminal characteristics.
11909 (ScreenVisualBell, internal_terminal_init):
11910 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11911
11912 * termopts.h (no_redraw_on_reenter): Declare.
11913
11914 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
11915 (mark_terminals, mark_ttys): Declare.
11916 (Fgarbage_collect): Call them.
11917 (mark_object): Mark buried_buffer_list.
11918
11919 * prefix-args.c: Include stdlib.h for exit.
11920
11921 * syssignal.h: Add comment.
11922
11923 * indent.c: Include stdio.h.
11924
11925 * window.h (Vinitial_window_system): Declare.
11926 (Vwindow_system): Delete declaration.
11927
11928 * fontset.c (Finternal_char_font): Use FRAME_RIF.
11929
11930 * image.c (lookup_image): Don't initialize `c' until the xasserts
11931 have been run.
11932
11933 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
11934 FRAME_FOREGROUND_PIXEL.
11935
11936 * print.c (print_preprocess): Don't lose print_depth levels while
11937 iterating.
11938
11939 * widget.c (update_from_various_frame_slots):
11940 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
11941
11942 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
11943 frames.
11944 (window_internal_height): Remove bogus make_number call.
11945 (init_window_once): Call make_terminal_frame with two zero parameters.
11946
11947 * fileio.c (Fread_file_name): Update comment.
11948
11949 * callint.c (Fcall_interactively):
11950 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
11951 Make sure it is correctly unwound.
11952
11953 * xsmfns.c (x_session_close): New function.
11954
11955 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
11956 Delete declarations.
11957
11958 * xterm.h: Remove declaration for x_fully_uncatch_errors.
11959 (x_output): Remove background_pixel and foreground_pixel fields.
11960 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
11961 (x_delete_device, x_session_close): Declare.
11962
11963 * lread.c: Include setjmp.h. Update declaration of `read_char'.
11964 (read_filtered_event): Call `read_char' with a local
11965 `wrong_kboard_jmpbuf'.
11966
11967 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
11968 Don't call single_kboard_state. Use FRAME_RIF.
11969
11970 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
11971 systems.
11972
11973 * lisp.h (set_process_environment): Rename to `set_global_environment'.
11974 (Fframe_with_environment, Fset_input_meta_mode)
11975 (Fset_quit_char): EXFUN.
11976 (x_create_device, tty_output, terminal, tty_display_info): Declare.
11977 (init_sys_modes, reset_sys_modes): Update prototypes.
11978 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
11979
11980 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
11981 Vlocal_key_translation_map, and Vkeyboard_translate_table.
11982 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
11983 Delete declarations.
11984 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
11985 (temporarily_switch_to_single_kboard, tty_read_avail_input):
11986 New declarations.
11987
11988 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
11989 already does that during init_display(). Call syms_of_keymap
11990 before syms_of_keyboard. Call `syms_of_terminal'.
11991 Call set_initial_environment, not set_process_environment.
11992 (shut_down_emacs): Call reset_all_sys_modes() instead of
11993 reset_sys_modes().
11994
11995 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
11996 (internal_resolve_face_name, resolve_face_name_error): New functions.
11997 (resolve_face_name): Protect against loops and errors thrown by Fget.
11998 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
11999 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
12000
12001 * scroll.c: Replace CURTTY() with local variables throughout the
12002 file (where applicable).
12003 (calculate_scrolling, calculate_direct_scrolling)
12004 (scrolling_1, scroll_cost): Use the accessor macros for terminal
12005 characteristics.
12006
12007 * keymap.c (Vfunction_key_map): Remove.
12008 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
12009 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
12010 (Vkey_translation_map): Remove.
12011 (syms_of_keymap): Remove DEFVAR for key-translation-map.
12012 (Fdescribe_buffer_bindings)
12013 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
12014 Update for terminal-local key-translation-map.
12015
12016 * Makefile.in (callproc.o): Update dependencies.
12017 (lisp, shortlisp): Add termdev.elc.
12018 (obj): Add terminal.o.
12019 (terminal.o): Add dependencies.
12020 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
12021 (data.o, fns.o): Add termhooks.h dependency.
12022 (SOME_MACHINE_LISP): Add dnd.elc.
12023 (minibuf.o): Fix typo.
12024 Update dependencies.
12025
12026 * data.c (do_symval_forwarding, store_symval_forwarding)
12027 (find_symbol_value): Use the selected frame's keyboard, not
12028 current_kboard.
12029
12030 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
12031 Vwindow_system.
12032
12033 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
12034 Fmenu_bar_open.
12035 (syms_of_xmenu): Update defsubr.
12036 (mouse_position_for_popup, Fx_popup_menu)
12037 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
12038 (set_frame_menubar, free_frame_menubar)
12039 (create_and_show_popup_menu, xmenu_show, )
12040 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
12041 an X frame.
12042
12043 * xselect.c (x_own_selection): Abort if not an X frame.
12044 (some_frame_on_display): Check if it is an X frame.
12045 (x_handle_selection_clear): Deal with MULTI_KBOARD.
12046
12047 * coding.c: Include frame.h and termhooks.h.
12048 (terminal_coding, keyboard_coding): Delete.
12049 (Fset_terminal_coding_system_internal)
12050 (Fset_keyboard_coding_system_internal)
12051 (Fkeyboard_coding_system)
12052 (Fterminal_coding_system): Add a terminal parameter.
12053 Get terminal_coding from the terminal.
12054 (init_coding_once): Don't call setup_coding_system here.
12055
12056 * dispextern.h (set_scroll_region, turn_off_insert)
12057 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
12058 (tty_clear_end_of_line, tty_setup_colors)
12059 (delete_tty, updating_frame)
12060 (produce_special_glyphs, produce_glyphs, write_glyphs)
12061 (insert_glyphs): Remove.
12062 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
12063 (tty_turn_off_highlight, get_tty_size): Add declaration.
12064 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
12065
12066 * frame.h (enum output_method): Add output_initial.
12067 (struct x_output): Delete.
12068 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12069 Access foreground_pixel and background_pixel directly from the frame.
12070 (tty_display): Delete.
12071 (struct frame): Add buried_buffer_list, foreground_pixel,
12072 background_pixel and terminal. Delete kboard.
12073 (union output_data): Add tty.
12074 (FRAME_KBOARD): Get the kboard from the terminal.
12075 (FRAME_INITIAL_P): New macro.
12076 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
12077 (Qterm_environment_variable, Qdisplay_environment_variable)
12078 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
12079 New declarations.
12080
12081 * termchar.h (tty_output, tty_display_info): New structures.
12082 (tty_list): Declare.
12083 (FRAME_TTY, CURTTY): New macros.
12084 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
12085 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
12086 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
12087 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
12088
12089 * callproc.c: Include frame.h and termhooks.h, for terminal
12090 parameters.
12091 (add_env): New function.
12092 (child_setup): Use it.
12093 (child_setup, getenv_internal): Handle the new Vprocess_environment.
12094 (getenv_internal): Fix get_terminal_param call.
12095 (Fgetenv_internal, egetenv): Update doc.
12096 (syms_of_callproc): Initialize Vprocess_environment to nil.
12097 Register and initialize them. Remove obsolete defvars. Update doc
12098 strings.
12099 (child_setup): Handle Vlocal_environment_variables.
12100 (getenv_internal): Add terminal parameter.
12101 Handle Vlocal_environment_variables.
12102 (Fgetenv_internal): Add terminal parameter.
12103 (child_setup, getenv_internal, Fgetenv_internal): Store the local
12104 environment in a frame (not terminal) parameter. Update doc strings.
12105 (set_initial_environment): Rename from set_global_environment.
12106 Store Emacs environment in initial frame parameter.
12107
12108 * xdisp.c (redisplay_internal): Update references to
12109 `previous_terminal_frame'.
12110 (display_mode_line, Fformat_mode_line): Replace calls to
12111 `push_frame_kboard' with `push_kboard'.
12112 (get_glyph_string_clip_rects): Add extra parentheses and
12113 braces to prevent compiler warnings.
12114 (calc_pixel_width_or_height): Add xassert to check that the
12115 frame is alive. Don't call `lookup_image' on a termcap frame.
12116 (message2_nolog, message3_nolog, redisplay_internal)
12117 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
12118 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
12119 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
12120 (Fx_display_pixel_width, Fx_display_pixel_height)
12121 (Fx_display_planes, Fx_display_color_cells)
12122 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
12123 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
12124 (Fx_display_backing_store, Fx_display_visual_class)
12125 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
12126 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
12127
12128 * xfns.c (x_set_foreground_color x_set_background_color)
12129 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
12130 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12131 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
12132 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
12133 terminal that is being deleted.
12134 (Fx_create_frame): Use `store_frame_param' to set `window-system'
12135 frame parameter, and make sure it overrides any user-supplied setting.
12136 (Fx_close_connection, Fx_synchronize): Unify argument names with
12137 the rest of the DEFUNs.
12138
12139 * dispnew.c (Fsend_string_to_terminal): Update call to
12140 `get_tty_terminal'.
12141 (Fredraw_frame, Fsend_string_to_terminal)
12142 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
12143 FRAME_TERMCAP_P and FRAME_TTY.
12144 (window_change_signal): Don't believe width/height values that are
12145 impossibly small.
12146 (Vinitial_window_system): Rename from Vwindow_system.
12147 (termscript, Wcm, rif): Delete.
12148
12149 * termhooks.h (struct terminal): New struct containing the
12150 previously global text display hooks and new members NAME,
12151 DELETED and PARAM_ALIST.
12152 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
12153 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
12154 (FRAME_RIF): New macros.
12155 (get_terminal_param, get_device): New declarations.
12156 (termscript): Delete declaration.
12157
12158 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
12159 (XTflash, x_free_frame_resources, x_scroll_bar_create)
12160 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
12161 FRAME_FOREGROUND_PIXEL.
12162 (x_fully_uncatch_errors): Disable definition.
12163 (x_scroll_bar_expose): Fix reference to foreground pixel.
12164 (XTread_socket): Disable loop on all X displays.
12165 (x_delete_terminal): Don't set terminal->deleted and let
12166 delete_terminal delete the frames on the terminal.
12167 (x_delete_display): Doc update to reflect changes in
12168 delete_terminal.
12169 (x_display_info) <terminal>: Move member earlier in the struct.
12170 (deleting_tty): Remove old variable.
12171 (Fsuspend_tty): Call clear_tty_hooks.
12172 (Fresume_tty, init_tty): Call set_tty_hooks.
12173 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
12174 errors on X frames.
12175 (x_catch_errors_unwind): Abort if x_error_message is NULL.
12176 (handle_one_xevent): Initialize `f' to NULL.
12177 (x_delete_terminal, x_create_terminal): New functions.
12178 (XTset_terminal_modes, XTreset_terminal_modes)
12179 (XTread_socket, x_connection_closed, x_term_init)
12180 (x_term_init, x_delete_display): Add terminal parameter.
12181 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
12182 X connections.
12183
12184 * frame.c: Include termchar.h.
12185 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
12186 (Qwindow_system, Qenvironment, Qterm_environment_variable)
12187 (Qdisplay_environment_variable): New vars.
12188 (Fframep): Deal with output_initial.
12189 (Fframe-live-p): Doc fix.
12190 (Fwindow-system): New function.
12191 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
12192 (make_terminal_frame): Don't create frames on a terminal that is
12193 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12194 (store_frame_param): Check for found_for_frame before calling XFRAME.
12195 (Fmake_terminal_frame): Handle NULL tty names correctly.
12196 (syms_of_frame): Enhance doc string of `default-frame-alist'.
12197 (Fdelete_frame): Remove unused variable `count'. Don't allow other
12198 frames to refer to a deleted frame in their 'environment parameter.
12199 (Fframe_with_environment): New function.
12200 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
12201 (get_future_frame_param): New function.
12202 (Fmake_terminal_frame): Use it.
12203 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
12204
12205 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
12206 * sysdep.c (reset_sys_modes): Update for renames.
12207
12208 * keyboard.c (tty_read_avail_input): New function.
12209 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
12210 (syms_of_keyboard): Defsubr them.
12211 (Fset_input_meta_mode, Fset_quit_char): New functions.
12212 (Fset_input_mode): Split to above functions.
12213 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
12214 parameter. Use it in call to `read_char'.
12215 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
12216 Set wrong_kboard_jmpbuf correctly in recursive calls.
12217 Use current_kboard to access Vkeyboard_translate_table.
12218 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
12219 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
12220 Update longjmp invocations. Remember the original current_kboard,
12221 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
12222 changes it. Comment out unnecessary calls to
12223 `record_single_kboard_state' and `any_kboard_state'.
12224 Update recursive calls.
12225 (wrong_kboard_jmpbuf): Remove global variable.
12226 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
12227 Handle deleted interrupted_kboards correctly; that is a legal
12228 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
12229 and read_char calls. Abort if interrupted_kboard died in read_char.
12230 (any_kboard_state, single_kboard_state)
12231 (push_frame_kboard): Remove function.
12232 (pop_kboard): Switch out of single_kboard mode if the kboard has
12233 been deleted. Remove unused variable. Help debugging by not
12234 changing current_kboard unnecessarily. Set current_kboard to the
12235 kboard of the selected frame when the stored kboard object has
12236 been deleted before pop_kboard.
12237 (temporarily_switch_to_single_kboard): Change first parameter to a
12238 frame pointer. Throw an error when caller wants to change kboards
12239 while in single_kboard mode. Don't push_kboard if we weren't in
12240 single kboard state. Don't pop_kboard if we popped into any
12241 kboard state.
12242 (restore_kboard_configuration): Abort if pop_kboard changed the
12243 kboard in single_kboard mode. Call pop_kboard only after setting
12244 up single_kboard mode.
12245 (Frecursive_edit): Switch to single_kboard mode only in nested
12246 command loops.
12247 (cmd_error, command_loop, command_loop_1, timer_check):
12248 Comment out unnecessary call to `any_kboard_state' and
12249 `record_single_kboard_state'.
12250 (delete_kboard): Exit single_kboard mode if we have just deleted
12251 that kboard. Use FRAME_KBOARD.
12252 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
12253 `fatal_error_signal'.
12254 (record_single_kboard_state): Don't push_kboard if we weren't in
12255 single kboard state. Don't pop_kboard if we popped into any
12256 kboard state.
12257 (push_frame_kboard): Rename to push_kboard.
12258 (kbd_buffer_get_event): Use FRAME_TERMINAL.
12259 (read_avail_input): Read input from all terminals.
12260 (mark_kboards): Also mark Vkeyboard_translate_table.
12261 (kbd_buffer_store_event_hold): Simplify condition.
12262 (read_key_sequence): Reinitialize fkey and keytran at each replay.
12263 (Vkeyboard_translate_table): Move to struct kboard.
12264 (init_kboard): Initialize Vkeyboard_translate_table.
12265 (syms_of_keyboard): Use DEFVAR_KBOARD to define
12266 Vkeyboard_translate_table. Update doc strings. Update docs of
12267 local-function-key-map and function-key-map.
12268
12269 * terminal.c: New file.
12270
12271 * term.c: Include errno.h.
12272 (Vring_bell_function, device_list, initial_device)
12273 (next_device_id, ring_bell, update_begin, update_end)
12274 (set_terminal_window, cursor_to, raw_cursor_to)
12275 (clear_to_end, clear_frame, clear_end_of_line)
12276 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
12277 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
12278 (syms_of_term): Move their initialization to terminal.c.
12279 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
12280 (Ftty_display_color_cells)
12281 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
12282 (clear_tty_hooks, set_tty_hooks)
12283 (init_tty, maybe_fatal): New functions.
12284 (Ftty_type): Return nil if terminal is not on a tty instead of
12285 throwing an error. Doc update.
12286 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
12287 Doc update. Initialize new subrs and variables.
12288 (delete_tty): Use terminal->deleted.
12289 (tty_set_terminal_modes): Rename from set_terminal_modes.
12290 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
12291 (set_scroll_region): Rename to `tty_set_scroll_region'.
12292 (turn_on_insert): Rename to `tty_turn_on_insert'.
12293 (turn_off_insert): Rename to `tty_turn_off_insert'.
12294 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
12295 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
12296 (toggle_highligh): Rename to `tty_toggle_highlight'.
12297 (background_highlight): Rename to `tty_background_highlight'.
12298 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
12299 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
12300 (tty_set_scroll_region, tty_background_highlight)
12301 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
12302 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
12303 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
12304 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
12305 Add static modifier.
12306 (tty_reset_terminal_modes, tty_set_terminal_window)
12307 (tty_set_scroll_region, tty_background_highlight)
12308 (tty_highlight_if_desired, tty_cursor_to)
12309 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
12310 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
12311 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
12312 renames.
12313
12314 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
12315
12316 * keyboard.c: Qrtl is new.
12317 (parse_tool_bar_item): Handle :rtl keyword.
12318 (syms_of_keyboard): Intern :rtl keyword.
12319
12320 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
12321
12322 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
12323 so no Lisp code is executed.
12324 (file_for_image, find_rtl_image): New functions.
12325 (xg_get_image_for_pixmap): Use file_for_image.
12326 (update_frame_tool_bar): If direction is RTL, use RTL image if
12327 defined. Use Gtk stock images if defined.
12328
12329 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12330
12331 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
12332 for nonexistent or zero-width glyph in composition glyph.
12333
12334 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
12335
12336 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
12337
12338 * xdisp.c (Finvisible_p): New function.
12339 (syms_of_xdisp): defsubr it.
12340
12341 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
12342
12343 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
12344 Doc fixes.
12345
12346 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12347
12348 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
12349
12350 2007-08-24 Martin Rudalics <rudalics@gmx.at>
12351
12352 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
12353 whether decoding has modified buffer contents.
12354
12355 2007-08-24 Jason Rumney <jasonr@gnu.org>
12356
12357 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
12358 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
12359 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
12360 (init_svg_functions) [HAVE_NTGUI]: New function.
12361 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
12362 (svg_load_image): Use them.
12363 (svg_load_image) [HAVE_NTGUI]: Implement background.
12364
12365 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12366
12367 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
12368 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
12369 (LIBX): Remove @RSVG_LIBS@.
12370 (LIBES): Add $(RSVG_LIBS).
12371
12372 * image.c (svg_load_image): Blend with specified background if exists.
12373 Use IMAGE_BACKGROUND. Add Mac OS Support.
12374
12375 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
12376 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
12377 Remove macros.
12378 [MAC_OSX] (socket_callback): Do nothing.
12379 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
12380 ReceiveNextEvent.
12381 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
12382 socket_callback.
12383 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
12384
12385 2007-08-22 Glenn Morris <rgm@gnu.org>
12386
12387 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
12388
12389 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
12390
12391 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
12392
12393 * image.c: Add support for SVG images. Some additional comments
12394 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
12395 (svg_image_p): New function to test for SVG image.
12396 (svg_load): New function to load SVG image.
12397 (svg_load_image): New function, helper for svg_load.
12398 (Qsvg): New Lisp_object.
12399 (svg_keyword_index): New enum.
12400 (svg_format): New static `image_keyword' struct.
12401 (svg_type): New static `image_type' struct.
12402 (librsvg/rsvg.h): Include it.
12403
12404 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
12405
12406 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
12407
12408 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
12409
12410 * lread.c (Qold_style_backquotes): New var.
12411 (syms_of_lread): Init and staticpro it.
12412 (load_warn_old_style_backquotes): New fun.
12413 (Fload): Use them to warn about old style backquotes.
12414 (end_of_file_error, Fload): Remove unused vars.
12415
12416 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
12417
12418 * lread.c (Vold_style_backquotes): New var.
12419 (syms_of_lread): Init and export it to Elisp.
12420 (read1): Set it when we find an old-style (back)quote.
12421
12422 2007-08-22 Jason Rumney <jasonr@gnu.org>
12423
12424 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
12425
12426 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
12427
12428 * puresize.h (BASE_PURESIZE): Increase to 1140000.
12429
12430 2007-08-19 Richard Stallman <rms@gnu.org>
12431
12432 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
12433
12434 2007-08-19 Andreas Schwab <schwab@suse.de>
12435
12436 * alloc.c (pure): Round PURESIZE up.
12437
12438 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
12439
12440 * xterm.c (handle_one_xevent): Remove check that mouse click is in
12441 active frame.
12442
12443 2007-08-16 Richard Stallman <rms@gnu.org>
12444
12445 * eval.c (Fcommandp): Add parens to clarify.
12446
12447 * minibuf.c (Fall_completions): Use enum for type of table.
12448
12449 * emacs.c (USAGE2): Improve text.
12450
12451 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
12452
12453 * term.c (tty_default_color_capabilities): Declare static
12454 variables in file scope, to avoid HPUX compiler problem.
12455
12456 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
12457
12458 * gtkutil.c (update_frame_tool_bar): Use -1 as index
12459 to gtk_toolbar_insert.
12460
12461 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
12462
12463 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
12464
12465 * insdel.c (reset_var_on_error): New fun.
12466 (signal_before_change, signal_after_change):
12467 Use it to reset (after|before)-change-functions to nil in case of error.
12468 Bind inhibit-modification-hooks to t.
12469 Don't bind (after|before)-change-functions to nil while they run.
12470
12471 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12472
12473 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
12474 filling pixmap with stippled background.
12475
12476 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12477
12478 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
12479 Don't use invisible frame as parent window for repositioning.
12480
12481 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
12482
12483 * print.c (new_backquote_output): Rename from old_backquote_output.
12484 (print): Inverse its logic (according to its name) so as to match the
12485 behavior of new_backquote_flag in lread.c.
12486
12487 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12488
12489 * gmalloc.c (posix_memalign): New function.
12490
12491 * macterm.c (frame_highlight, frame_unhighlight): Don't call
12492 ActivateControl/DeactivateControl here.
12493 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
12494 frame-notice-user-settings is non-nil.
12495 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
12496 for kEventParamFMFontStyle.
12497 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
12498 mac_pass_command_to_system and mac_pass_control_to_system here.
12499 (XTread_socket): Call ActivateControl/DeactivateControl here.
12500 (XTread_socket) [TARGET_API_MAC_CARBON]:
12501 Check mac_pass_command_to_system and mac_pass_control_to_system here.
12502 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
12503 for window repositioning.
12504
12505 2007-08-08 Glenn Morris <rgm@gnu.org>
12506
12507 * Replace `iff' in doc-strings and comments.
12508
12509 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
12510
12511 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
12512
12513 2007-08-07 Martin Rudalics <rudalics@gmx.at>
12514
12515 * fileio.c (Finsert_file_contents): Run format-decode and
12516 after_insert_file_functions on entire buffer when REPLACE is
12517 non-nil and inhibit modification_hooks and point_motion_hooks.
12518 For consistency, run after_insert_file_functions iff something
12519 got inserted. Move signal_after_change and update_compositions
12520 after code running after_insert_file_functions. Make sure that
12521 undo_list doesn't record intermediate steps of the decoding process.
12522
12523 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12524
12525 * emacs.c (main)
12526 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
12527 Call malloc_enable_thread on interactive startup.
12528
12529 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
12530 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
12531 [USE_PTHREAD]: Conditionalize with it.
12532 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
12533 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
12534 New functions.
12535
12536 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
12537
12538 * xdisp.c (redisplay_window): When restoring original buffer
12539 position, make sure it is still valid.
12540
12541 * image.c (png_load): Ignore png-supplied background color.
12542
12543 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12544
12545 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
12546 Use kCFAbsoluteTimeIntervalSince1970.
12547
12548 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
12549 New variable.
12550 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
12551 event loop should be quit.
12552 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
12553 Quit dialog event loop if quit_dialog_event_loop is set.
12554
12555 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
12556 (Selection): New typedef. Use instead of ScrapRef.
12557 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
12558 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
12559 (mac_clear_selection): Rename from clear_scrap.
12560 (get_flavor_type_from_symbol): New argument SEL and subsume function of
12561 scrap_has_target_type. All uses changed.
12562 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12563 (mac_selection_has_target_p): New functions.
12564 (mac_put_selection_value): Rename from put_scrap_string.
12565 (mac_get_selection_value): Rename from get_scrap_string.
12566 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
12567 (put_scrap_private_timestamp, scrap_has_target_type)
12568 (get_scrap_private_timestamp): Remove functions.
12569 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
12570 (x_own_selection, x_get_local_selection):
12571 Use mac_valid_selection_value_p.
12572 (x_own_selection): Don't use put_scrap_private_timestamp.
12573 Record OWNERSHIP-INFO into Vselection_alist instead.
12574 (x_get_local_selection): Don't check type if request is local.
12575 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
12576 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
12577
12578 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
12579
12580 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
12581 add comment explaining why.
12582
12583 2007-08-03 Richard Stallman <rms@gnu.org>
12584
12585 * fileio.c (Fvisited_file_modtime): Use make_time.
12586
12587 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
12588
12589 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
12590 build.
12591
12592 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
12593
12594 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
12595
12596 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
12597
12598 * puresize.h (BASE_PURESIZE): Increase to 1130000.
12599
12600 2007-07-30 Richard Stallman <rms@gnu.org>
12601
12602 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
12603
12604 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
12605
12606 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
12607
12608 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
12609
12610 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
12611 remote default-directory.
12612
12613 * buffer.c (mode-line-format): Update doc string.
12614
12615 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12616
12617 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
12618 scroll bar gap.
12619 (x_scroll_bar_create): Set bar->fringe_extended_p.
12620 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
12621 on frame edge. Check fringe background extension. Don't clear
12622 extended fringe background area.
12623
12624 * w32term.h (struct scroll_bar): New member fringe_extended_p.
12625 (w32_fill_area): Enclose multiple statements with do ... while (0).
12626
12627 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
12628 Extend fringe background to scroll bar gap.
12629 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
12630 Set bar->fringe_extended_p.
12631 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12632 Put leftmost/rightmost scroll bars on frame edge. Check fringe
12633 background extension. Don't clear extended fringe background area.
12634
12635 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12636 New member fringe_extended_p.
12637
12638 2007-07-25 Glenn Morris <rgm@gnu.org>
12639
12640 * Relicense all FSF files to GPLv3 or later.
12641
12642 * COPYING: Switch to GPLv3.
12643
12644 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
12645
12646 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
12647
12648 * data.c (Finteractive_form): Check for the presence of an
12649 `interactive-form' symbol property more thoroughly.
12650
12651 * data.c (Finteractive_form): Use an `interactive-form' property if
12652 present, analogous to the function-documentation property.
12653
12654 2007-07-24 Jason Rumney <jasonr@gnu.org>
12655
12656 * w32fns.c (x_real_positions): Get real position from OS instead of
12657 calculating it.
12658
12659 2007-07-23 Jason Rumney <jasonr@gnu.org>
12660
12661 * filelock.c (current_lock_owner): Allow for @ sign in username.
12662
12663 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
12664
12665 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
12666 remote default-directory.
12667
12668 * buffer.c (mode-line-format): Describe above case in doc string.
12669
12670 2007-07-20 Eli Zaretskii <eliz@gnu.org>
12671
12672 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
12673 Define if not defined.
12674
12675 2007-07-18 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32proc.c (w32_executable_type): Handle 64 bit executables.
12678
12679 2007-07-18 Richard Stallman <rms@gnu.org>
12680
12681 * data.c (Fsetq_default): Doc fix.
12682
12683 * eval.c (Fsetq): Doc fix.
12684
12685 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
12686
12687 * coding.c (Ffind_operation_coding_system):
12688 * eval.c (For, Fand): Doc fixes.
12689 Reported by Johan Bockgård.
12690
12691 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
12692
12693 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
12694
12695 * xterm.h: Declare x_ewmh_activate_frame.
12696
12697 * xterm.c (x_ewmh_activate_frame): New function.
12698 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
12699
12700 2007-07-17 Martin Rudalics <rudalics@gmx.at>
12701
12702 * window.c (Fdisplay_buffer): If largest or LRU window is the
12703 only window, split it even if it is not eligible for splitting.
12704 This restores the original behavior broken by the 2007-07-15
12705 change.
12706
12707 2007-07-17 Glenn Morris <rgm@gnu.org>
12708
12709 * abbrev.c (abbrev_check_chars): New function.
12710 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12711 Call abbrev_check_chars to check abbrev characters are word
12712 constituents. Doc fix.
12713
12714 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12715
12716 * process.c (Fstart_process, Fmake_network_process)
12717 (read_process_output): Fix up last changes.
12718
12719 2007-07-16 Eli Zaretskii <eliz@gnu.org>
12720
12721 * makefile.w32-in (clean): Don't delete *~.
12722
12723 2007-07-16 Andreas Schwab <schwab@suse.de>
12724
12725 * window.c (Fdisplay_buffer): Use NILP.
12726 (Fset_window_scroll_bars): Likewise.
12727
12728 2007-07-15 Martin Rudalics <rudalics@gmx.at>
12729
12730 * window.c (window_min_size_2): New function.
12731 (window_min_size_1, size_window, Fdisplay_buffer)
12732 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
12733 windows without mode- or header-lines when window-min-height is
12734 too small.
12735 (size_window): Reset nodelete_p after testing it, following an
12736 earlier note by Kim F. Storm.
12737 (display_buffer): Do not set split_height_threshold to twice the
12738 value of window_min_height to avoid changing the value of a
12739 customizable variable. Rather explicitly check whether the
12740 height of the window that shall be splitted is at least as large
12741 as split_height_threshold.
12742 (Fwindow_full_width_p): New defun.
12743 (syms_of_window): Defsubr it.
12744
12745 * window.h: Add EXFUN for Fwindow_full_width_p.
12746
12747 2007-07-14 Jason Rumney <jasonr@gnu.org>
12748
12749 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
12750
12751 2007-07-14 Richard Stallman <rms@gnu.org>
12752
12753 * eval.c (maybe_call_debugger): New function.
12754 (find_handler_clause): Use maybe_call_debugger.
12755 Call it when the handler says `debug'.
12756 Eliminate DEBUGGER_VALUE_PTR.
12757 (Fsignal): Eliminate debugger_value.
12758 (Qdebug): New variable.
12759 (syms_of_eval): Initialize it.
12760
12761 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
12762
12763 * eval.c (Fprogn):
12764 * keyboard.c (Ftrack_mouse):
12765 * print.c (Fwith_output_to_temp_buffer):
12766 * window.c (Fsave_window_excursion): Doc fix.
12767
12768 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
12769
12770 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
12771
12772 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
12773
12774 * process.h (struct Lisp_Process): Turn slots infd, outfd,
12775 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
12776 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
12777 read_output_delay, and read_output_skip from Lisp_Objects to ints.
12778 Remove unused encoding_carryover.
12779 * process.c: Adjust all functions accordingly.
12780
12781 2007-07-12 Richard Stallman <rms@gnu.org>
12782
12783 * term.c: Include unistd.h only if HAVE_UNISTD_H.
12784
12785 2007-07-11 Jason Rumney <jasonr@gnu.org>
12786
12787 * makefile.w32-in (LIBS): Include OLE32.
12788
12789 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
12790 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
12791
12792 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
12793
12794 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
12795 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
12796 from a Lisp_Object into a bare pointer.
12797 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12798 Adjust the code correspondingly.
12799
12800 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
12801
12802 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
12803 (term_show_mouse_face): Remove unused var `j'.
12804 (handle_one_term_event): Remove unused vars `i' and `j'.
12805 Don't cast return value of ttyname since it's not necessary.
12806
12807 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
12808
12809 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
12810 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
12811
12812 * fns.c (map_char_table): Use an array of int for `indices' rather than
12813 an array of Lisp_Objects (which are only ever integers anyway).
12814 (Fmap_char_table): Update caller.
12815 * lisp.h: Update prototype.
12816 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
12817 * fontset.c (Ffontset_info):
12818 * casetab.c (set_case_table): Update callers.
12819
12820 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
12821
12822 * keymap.c (struct accessible_keymaps_data)
12823 (struct where_is_internal_data): New structures.
12824 (accessible_keymaps_1, where_is_internal_1): Use them to change
12825 interface to adhere to the one used by map_keymap.
12826 (Faccessible_keymaps, where_is_internal): Use map_keymap.
12827 (accessible_keymaps_char_table, where_is_internal_2): Remove.
12828
12829 * keymap.h (map_keymap_function_t): More informative prototype.
12830
12831 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
12832
12833 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
12834 (looking_at_1): Don't change search_regs and last_thing_searched
12835 if `inhibit-changing-match-data' is non-nil.
12836 (string_match_1, search_buffer, set_search_regs): Likewise.
12837 (syms_of_search): Add Lisp level definition for
12838 `inhibit-changing-match-data' and set it to nil.
12839 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
12840 start and end of the match, instead of using values in search_regs.
12841
12842 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
12843
12844 * minibuf.c (Fcompleting_read): New value `confirm-only'
12845 for `require-match'.
12846
12847 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
12848
12849 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
12850 part of the 2007-06-27 change to syms_of_fileio.
12851
12852 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12853
12854 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
12855 Check WINDOWP before using XWINDOW. Consolidate return statements.
12856
12857 2007-06-27 Richard Stallman <rms@gnu.org>
12858
12859 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12860
12861 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
12862
12863 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
12864
12865 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12866
12867 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
12868 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
12869 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
12870 (_free_internal, memalign): Use them.
12871 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
12872 Initialize to PTHREAD_MUTEX_INITIALIZER.
12873 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
12874 (morecore_nolock): Rename from morecore. All uses changed.
12875 Use only nolock versions of internal allocation functions.
12876 (_malloc_internal_nolock, _realloc_internal_nolock)
12877 (_free_internal_nolock): New functions created from
12878 _malloc_internal, _realloc_internal, and _free_internal.
12879 (_malloc_internal, _realloc_internal, _free_internal): Use them.
12880 Copy hook value to automatic variable before its use.
12881 (memalign): Copy hook value to automatic variable before its use.
12882
12883 2007-06-26 Kenichi Handa <handa@m17n.org>
12884
12885 * coding.c (Ffind_operation_coding_system): Docstring improved.
12886 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
12887
12888 2007-06-25 David Kastrup <dak@gnu.org>
12889
12890 * keymap.c (Fcurrent_active_maps): Add `position' argument.
12891 (Fwhere_is_internal): Adjust call to `current-active-maps' to
12892 cater for additional parameter.
12893
12894 * keymap.h: Adjust number of parameters to `current-active-maps'.
12895
12896 * doc.c (Fsubstitute_command_keys): Adjust call of
12897 `current-active-maps'.
12898
12899 2007-06-25 David Kastrup <dak@gnu.org>
12900
12901 * callint.c (Fcall_interactively): Make the parsing of interactive
12902 specs somewhat more readable.
12903
12904 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12905
12906 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
12907 to scroll bar gap also when bitmap fills fringe. Draw only foreground
12908 if extended background has already been filled.
12909
12910 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12911
12912 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
12913 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
12914
12915 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
12916 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
12917 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
12918 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
12919 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
12920 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
12921 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
12922 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
12923 Run timers during dialog popup.
12924 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
12925
12926 2007-06-21 Jason Rumney <jasonr@gnu.org>
12927
12928 * image.c (convert_mono_to_color_image): Swap fore and background.
12929
12930 2007-06-20 Jason Rumney <jasonr@gnu.org>
12931
12932 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
12933 (w32_free_bdf_font): Unmap memory not handle.
12934
12935 2007-06-20 Sam Steingold <sds@gnu.org>
12936
12937 * gmalloc.c (__morecore): Fix the declaration to comply with the
12938 definition.
12939
12940 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
12941
12942 * w32term.c (w32_delete_display): Remove leftover declaration.
12943 (w32_define_cursor, w32_initialize): Make static.
12944
12945 * w32.c (_wsa_errlist): Fix typo in error message.
12946 (init_environment): Ignore any environment variable from the
12947 registry having a null value.
12948
12949 2007-06-20 Glenn Morris <rgm@gnu.org>
12950
12951 * Makefile.in (LIBGIF): Default to -lgif.
12952
12953 2007-06-17 Jason Rumney <jasonr@gnu.org>
12954
12955 * w32menu.c (add_menu_item): Don't use multibyte string functions on
12956 unicode strings.
12957
12958 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
12959
12960 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
12961 Fix typo in docstring.
12962
12963 2007-06-16 Eli Zaretskii <eliz@gnu.org>
12964
12965 * w32menu.c (add_menu_item): Escape `&' characters in menu items
12966 and their keybindings.
12967
12968 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
12969
12970 * composite.c (update_compositions): Fix last fix.
12971
12972 2007-06-14 Jason Rumney <jasonr@gnu.org>
12973
12974 * w32.c (get_process_times_fn): New function pointer.
12975 (globals_of_w32): Intialize it if present in kernel32.dll.
12976 (w32_get_internal_run_time): New function.
12977
12978 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
12979
12980 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
12981
12982 * composite.c (update_compositions): Check the validness of
12983 compositions.
12984
12985 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12986
12987 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
12988 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
12989
12990 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
12991 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
12992
12993 * macgui.h (USE_MAC_TOOLBAR): New define.
12994
12995 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12996 Return immediately unless popup is activated.
12997
12998 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
12999 background to scroll bar gap.
13000 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
13001 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
13002 scroll bars on frame edge. Check fringe background extension.
13003 Don't clear extended fringe background area.
13004 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
13005 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
13006 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
13007 [USE_MAC_TOOLBAR]: New macros.
13008 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
13009 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
13010 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
13011 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
13012 [USE_MAC_TOOLBAR]: New functions.
13013 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
13014 manually if previous repositioning has failed.
13015 (mac_handle_keyboard_event): Use precomputed event kind.
13016 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
13017 as tool bar item click. Handle mouse movement over tool bar items.
13018
13019 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
13020 toolbar_win_gravity.
13021 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
13022 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
13023 Add externs.
13024
13025 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
13026 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
13027
13028 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
13029
13030 * image.c (search_image_cache): Remove unused variable.
13031
13032 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
13033
13034 * xfns.c, xmenu.c: Link to xaw3d if available.
13035
13036 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13037
13038 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
13039 frame_foreground and frame_background.
13040
13041 * image.c (lookup_image): Save frame foreground and background colors.
13042 (search_image_cache): Check if saved and current frame colors match.
13043
13044 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13045
13046 * regex.c (regex_compile): Remove the `regnum' counter.
13047 Use bufp->re_nsub instead. Add support for \(?N:RE\).
13048
13049 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13050
13051 * term.c: Include intervals.h to declare Fget_text_property.
13052
13053 2007-06-10 Jason Rumney <jasonr@gnu.org>
13054
13055 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
13056
13057 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
13058
13059 * callint.c (Fcall_interactively):
13060 * editfns.c (Fdelete_and_extract_region):
13061 * fileio.c (Fread_file_name):
13062 * fns.c (Fmapconcat):
13063 * keyboard.c (cmd_error_internal):
13064 * keymap.c (Fkey_description):
13065 * lread.c (openp):
13066 * minibuf.c (read_minibuf):
13067 * search.c (wordify):
13068 * sunfns.c (sel_read):
13069 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
13070 * xfns.c (x_default_scroll_bar_color_parameter):
13071 * xmenu.c (menu_help_callback):
13072 * xselect.c (Fx_get_atom_name):
13073 * xterm.c (x_term_init): Use empty_unibyte_string.
13074
13075 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
13076
13077 * alloc.c (init_strings): Initialize canonical empty strings.
13078 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
13079 canonical empty string when the requested size is 0.
13080
13081 * emacs.c (empty_unibyte_string): Rename from empty_string.
13082 (empty_multibyte_string): New canonical empty string.
13083 (syms_of_emacs): Don't initialize empty_string.
13084
13085 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
13086 string, if appropriate.
13087 (empty_unibyte_string, empty_multibyte_string): New externs.
13088 (empty_string): Remove extern.
13089
13090 * lread.c (syms_of_lread): Use empty_unibyte_string.
13091
13092 2007-06-07 Jason Rumney <jasonr@gnu.org>
13093
13094 * s/ms-w32.h: Don't define HAVE_TZNAME.
13095
13096 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
13097
13098 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13099
13100 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
13101
13102 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
13103 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
13104
13105 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13106 Don't call next handler.
13107 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
13108 Remove argument. Install handler to application.
13109 (set_frame_menubar): Don't change deep_p.
13110 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
13111 FRAME_OUTER_TO_INNER_DIFF_Y.
13112 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13113 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13114 [HAVE_DIALOGS]: New macros.
13115 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
13116 Use them.
13117 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
13118
13119 * macselect.c [MAC_OSX] (install_service_handler): Rename from
13120 init_service_handler. All callers changed. Return OSStatus value.
13121
13122 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
13123 All callers changed so as not to call SetPortWindowPort.
13124 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
13125 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
13126 mac_draw_string_common.
13127 (mac_draw_image_string_qd): Likewise.
13128 (mac_draw_string_common): Use them. Add INLINE.
13129 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
13130 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
13131 GetGlobalMouse.
13132 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
13133 and FRAME_OUTER_TO_INNER_DIFF_Y.
13134 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
13135 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
13136 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
13137 repositioning window to mac_handle_window_event.
13138 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
13139 saving window location to mac_handle_window_event
13140 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
13141 (install_menu_target_item_handler): Remove argument in extern.
13142 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
13143 Also accept command events.
13144 (do_keystroke): New function created from XTread_socket.
13145 (init_command_handler): Remove functions.
13146 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
13147 and save window location by kEventWindowShowing and kEventWindowHiding
13148 handlers here. Don't call next handler for window state change and
13149 focus events.
13150 (mac_handle_application_event, mac_handle_keyboard_event)
13151 [TARGET_API_MAC_CARBON]: New functions.
13152 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
13153 kEventWindowShowing and kEventWindowHiding events. Move installation
13154 of mouse, font, text input and menu target item handlers to
13155 install_application_handler.
13156 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
13157 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13158 New function.
13159 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13160 Register it.
13161 (XTread_socket) [TARGET_API_MAC_CARBON]:
13162 Consolidate SendEventToEventTarget calls.
13163 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
13164 Move application activation handler to mac_handle_application_event.
13165 Move keyboard handler to mac_handle_keyboard_event.
13166 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
13167 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
13168 init_command_handler. Call install_application_handler.
13169
13170 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
13171 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
13172
13173 2007-06-07 Glenn Morris <rgm@gnu.org>
13174
13175 * emacs.c (main): Use `emacs-copyright' in --version output.
13176
13177 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
13178
13179 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
13180
13181 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13182
13183 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
13184
13185 * macgui.h: Replace WindowPtr with WindowRef.
13186
13187 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13188 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13189 Replace ControlHandle with ControlRef.
13190 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
13191
13192 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13193 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13194 Replace ControlHandle with ControlRef.
13195 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
13196 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
13197
13198 * macterm.h (struct scroll_bar): Rename member control_handle_low
13199 and control_handle_high to control_ref_low and control_ref_high.
13200 All uses changed.
13201 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
13202 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
13203 respectively. All uses changed.
13204 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
13205 (install_window_handler, remove_window_handler): Replace WindowPtr
13206 with WindowRef in externs.
13207
13208 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
13209
13210 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
13211
13212 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
13213
13214 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
13215
13216 * frame.c (Fmouse_position, Fmouse_pixel_position):
13217 Condition on HAVE_GPM too.
13218
13219 * term.c (term_mouse_highlight): Remove unused variables.
13220 (Fterm_open_connection): Set gpm_zerobased to 1.
13221 (term_mouse_movement, term_mouse_click, handle_one_term_event):
13222 Use zero based co-ordinates.
13223 (handle_one_term_event): Report a drag as mouse movement too.
13224
13225 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
13226
13227 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
13228
13229 * image.c (search_image_cache): New function. Require background
13230 color match if background color is unspecified in the image spec.
13231 (uncache_image, lookup_image): Use it.
13232
13233 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
13234
13235 * window.c (Fshrink_window): Reflow docstring.
13236
13237 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
13238
13239 * Version 22.1 released.
13240
13241 2007-06-01 Richard Stallman <rms@gnu.org>
13242
13243 * xfns.c (x_encode_text): Add GCPRO.
13244
13245 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13246
13247 * xfns.c (x_set_name_internal): Save encoded name before
13248 x_encode_text in case string data is relocated.
13249
13250 2007-05-31 Richard Stallman <rms@gnu.org>
13251
13252 * buffer.c (syms_of_buffer): Doc fix.
13253
13254 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
13255
13256 * sysdep.c (init_sys_modes): Add rather than replace with
13257 O_NONBLOCK.
13258
13259 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
13260 term_mouse_moveto.
13261
13262 * termhooks.h (term_mouse_moveto): New extern.
13263
13264 * term.c (mouse_face_window): Rename...
13265 (Qmouse_face_window): ...to this.
13266 (term_show_mouse_face, term_clear_mouse_face)
13267 (term_mouse_highlight): Use Qmouse_face_window.
13268 (term_mouse_moveto): New function.
13269 (term_mouse_position): Make it work.
13270 (syms_of_term): Uncomment assignment to mouse_position_hook.
13271 Staticpro Qmouse_face_window.
13272
13273 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13274
13275 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
13276 around current_column call.
13277
13278 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
13279
13280 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
13281 * xdisp.c (next_element_from_buffer):
13282 * window.c (delete_window):
13283 * term.c (term_mouse_highlight):
13284 * msdos.c (getdefdir):
13285 * macterm.c (mac_create_bitmap_from_bitmap_data)
13286 (init_font_name_table):
13287 * fns.c (Fsxhash):
13288 * data.c (Fmake_local_variable):
13289 * ccl.c (ccl_driver): Likewise.
13290
13291 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13292
13293 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
13294 Call mac_wakeup_from_rne on window size change.
13295
13296 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
13297
13298 * image.c (uncache_image): Fix typo.
13299
13300 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
13301
13302 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
13303
13304 2007-05-22 Richard Stallman <rms@gnu.org>
13305
13306 * xterm.c (x_connection_closed): Remove NO_RETURN.
13307
13308 2007-05-22 Martin Rudalics <rudalics@gmx.at>
13309
13310 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
13311
13312 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
13313
13314 * image.c (uncache_image): New function.
13315 (Fimage_refresh): New function.
13316
13317 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
13318
13319 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
13320
13321 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13322
13323 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
13324 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
13325
13326 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13327
13328 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
13329 conditional on [HAVE_GPM_H].
13330
13331 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13332
13333 * syntax.c (skip_chars): Update syntax-table only after we checked that
13334 the new location is valid.
13335
13336 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13337
13338 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
13339 mac_get_window_bounds.
13340
13341 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13342
13343 * Makefile.in (LIBGPM): Allow it to be set from configure.
13344 If set then link Emacs with it.
13345
13346 * config.in: Regenerate.
13347
13348 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
13349 New externs.
13350
13351 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
13352 Include gpm.h.
13353 (handle_one_term_event, term_gpm): New externs.
13354
13355 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
13356 and allow it to be interrupted by SIGIO.
13357
13358 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
13359 (wait_reading_process_output): Wait on gpm_fd too.
13360 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
13361 (add_gpm_wait_descriptor_called_flag): New variable.
13362 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
13363
13364 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
13365 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
13366 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
13367 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
13368 (make_lispy_event): Add case GPM_CLICK_EVENT.
13369 (read_avail_input): Handle mouse input.
13370
13371 * term.c (write_glyphs_with_face): New function.
13372 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
13373 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
13374 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
13375 (mouse_face_face_id, term_gpm, pos_x, pos_y)
13376 (last_mouse_x, last_mouse_y): New variables.
13377 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
13378 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
13379 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
13380 (Fterm_close_connection): New functions.
13381 (term_init): Initialise mouse_face_window.
13382
13383 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
13384
13385 * xdisp.c (redisplay_window): If first window line is a
13386 continuation line, recompute the new window start instead of
13387 recentering.
13388
13389 2007-05-18 Glenn Morris <rgm@gnu.org>
13390
13391 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
13392 Suggested by Alfred M. Szmidt <ams@gnu.org>.
13393
13394 2007-05-17 Glenn Morris <rgm@gnu.org>
13395
13396 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
13397
13398 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13399
13400 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
13401 dead key repeat and up events.
13402
13403 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
13404
13405 * image.c (pbm_load): Check image size for monochrome pbm.
13406
13407 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
13408
13409 * xterm.c (XTread_socket): Revert last change.
13410
13411 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
13412
13413 * image.c (pbm_load): Correctly check image size for greyscale pbm.
13414
13415 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
13416
13417 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13418
13419 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
13420 mixup (YAILOM).
13421
13422 2007-05-07 Andreas Schwab <schwab@suse.de>
13423
13424 * keymap.c (Flookup_key): Fix typo in last change.
13425
13426 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13427
13428 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
13429 mapping for unibyte strings.
13430
13431 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13432
13433 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
13434 (Fx_popup_dialog) [MAC_OSX]: Likewise.
13435
13436 2007-04-29 Richard Stallman <rms@gnu.org>
13437
13438 * insdel.c (replace_range): For undo, record insertion first.
13439
13440 2007-04-29 Andreas Schwab <schwab@suse.de>
13441
13442 * lisp.h (VECSIZE): Use OFFSETOF.
13443
13444 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13445
13446 * xdisp.c (try_window_reusing_current_matrix): Fix number of
13447 disabled lines.
13448
13449 2007-04-28 Richard Stallman <rms@gnu.org>
13450
13451 * lread.c (read_escape): In a string, \s is always space.
13452
13453 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
13454
13455 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
13456
13457 * gtkutil.c (xg_update_menubar, create_menus): Create empty
13458 submenu for menu bar items.
13459
13460 See ChangeLog.10 for earlier changes.
13461
13462 ;; Local Variables:
13463 ;; coding: utf-8
13464 ;; add-log-time-zone-rule: t
13465 ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
13466 ;; End:
13467
13468 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
13469
13470 This file is part of GNU Emacs.
13471
13472 GNU Emacs is free software: you can redistribute it and/or modify
13473 it under the terms of the GNU General Public License as published by
13474 the Free Software Foundation, either version 3 of the License, or
13475 (at your option) any later version.
13476
13477 GNU Emacs is distributed in the hope that it will be useful,
13478 but WITHOUT ANY WARRANTY; without even the implied warranty of
13479 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13480 GNU General Public License for more details.
13481
13482 You should have received a copy of the GNU General Public License
13483 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
13484
13485 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40