]> code.delx.au - gnu-emacs/blob - src/ChangeLog
* term.c (syms_of_term): Don't initialize default_orig_pair,
[gnu-emacs] / src / ChangeLog
1 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
2
3 * term.c (syms_of_term): Don't initialize default_orig_pair,
4 default_set_foreground and default_set_background on Windows.
5
6 2008-07-25 Jason Rumney <jasonr@gnu.org>
7
8 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9 ScriptItemize. Clean up return value checking. Remove unused
10 variables.
11 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12 shaping engine.
13
14 * w32font.c (w32font_has_char): Handle the case where we can't
15 determine the script for a character.
16
17 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18
19 * term.c (syms_of_term): Initialize default_orig_pair,
20 default_set_foreground, and default_set_background.
21
22 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23 clash (bug#86).
24 (getloadavg): Callers changed.
25
26 * image.c (svg_load_image): Fix last change.
27 (svg_load_image): Use rsvg_handle_get_dimensions to check that
28 image size is valid. Use g_object_unref instead of deprecated
29 rsvg_handle_free to free rsvg handle.
30 (x_from_xcolors): Don't initialize pixmap (silence compiler).
31
32 2008-07-25 Jason Rumney <jasonr@gnu.org>
33
34 * w32font.c (w32font_encode_char): Encode characters outside BMP as
35 surrogates before looking up glyph index.
36 (w32font_text_extents): Encode as surrogates if falling back to
37 functions that need UTF-16 wide chars.
38
39 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
40 BMP as surrogates before looking up glyph index.
41
42 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
43
44 * image.c (svg_load_image): Check for failure in return value of
45 rsvg_handle_get_pixbuf. Free rsvg handle when done.
46
47 2008-07-25 Jason Rumney <jasonr@gnu.org>
48
49 * w32font.c (Fx_select_font): Reverse sense of second arg.
50
51 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
52
53 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
54 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
55
56 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
57 (PURESIZE): Use it.
58
59 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
60
61 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
62 * m/alpha.h (TEXT_END):
63 * m/ibmrs6000.h (TEXT_END):
64 * m/macppc.h (TEXT_END):
65 * s/darwin.h (TEXT_END):
66 * s/msdos.h (TEXT_END): Remove, unused.
67 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
68 * s/cygwin.h: Remove comment.
69
70 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
71 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
72 * m/intel386.h (DOT_GLOBAL_START):
73 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
74 (USG): Remove, file not used on USG platforms.
75
76 * Makefile.in (HAVE_X11): Remove empty #else.
77
78 2008-07-24 Andreas Schwab <schwab@suse.de>
79
80 * fileio.c (Finsert_file_contents): Properly adjust undo list
81 after format conversion.
82
83 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
84
85 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
86 (menu_nav_ended): Remove.
87 (create_menus): Remove signal connect for menu_nav_ended.
88 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
89 create_menus.
90 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
91
92 2008-07-23 Jason Rumney <jasonr@gnu.org>
93
94 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
95 with opened font.
96 (w32font_open): Set font type to gdi.
97
98 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
99
100 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
101
102 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
103 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
104 defines it.
105 * unexec.c (ADDR_CORRECT): Define unconditionally.
106
107 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
108
109 * unexec.c: Remove code depending on !COFF and USG, the file is
110 not used for such systems.
111
112 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
113 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
114 (LD_SWITCH_SYSTEM_1): Remove, update users.
115
116 * s/darwin.h (DATA_END):
117 * m/intel386.h (DATA_END):
118 * m/ibmrs6000.h (DATA_END):
119 * m/alpha.h (DATA_END): Remove, unused.
120
121 * config.in: Regenerate.
122 * s/ms-w32.h (subprocesses): Define unconditionally.
123 * s/template.h (subprocesses): Update comment.
124 * s/vms.h (subprocesses):
125 * s/usg5-4.h (subprocesses):
126 * s/hpux10-20.h (subprocesses):
127 * s/gnu-linux.h (subprocesses):
128 * s/cygwin.h (subprocesses):
129 * s/bsd-common.h (subprocesses):
130 * s/aix4-2.h (subprocesses):
131 * s/darwin.h (subprocesses): Do not define, defined by default now.
132
133 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
134 Remove all references.
135 (temacs): Add GNUStep specific ld flags.
136
137 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
138 similarly to what X does.
139
140 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
141
142 * nsfns.m (x-list-fonts): Remove.
143 (syms_of_nsfns): Drop the x-list-fonts declaration.
144 * nsterm.m: Get rid of remaining "//" comments.
145
146 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
147
148 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
149
150 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
151 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
152 (Fns_own_selection_internal, Fx_disown_selection_internal)
153 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
154
155 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
156 ... */' style of docstrings. Doc fixes.
157
158 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
159
160 * terminfo.c (UP, BC, PC): Undo previous change.
161
162 * nsfns.m: Rename ns prefixed functions/variables to the
163 corresponding x versions. Update references.
164
165 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
166
167 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
168
169 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
170
171 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
172 Remove forwarding functions.
173 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
174 non-static.
175 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
176 non-static.
177 (ns_frame_parm_handlers): Use the new names.
178 (syms_of_nsfns): Move to the end of file.
179
180 * nsterm.m (syms_of_nsterm): Move to the end of file.
181
182 * dispnew.c (init_display): Remove code for X10.
183
184 2008-07-22 Jason Rumney <jasonr@gnu.org>
185
186 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
187 bare drive.
188
189 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
190
191 * nsgui.h:
192 * nsfont.m:
193 * nsmenu.m:
194 * nsterm.m: Change PENDINGS to FIXME / TODO / XXX.
195
196 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
197
198 * nsterm.m (syms_of_nsterm): Remove debugging println.
199
200 2008-07-22 David Reitter <david.reitter@gmail.com>
201
202 * nsfns.m (do_applescript, F_do_applescript): NS version of the
203 Carbon implementation of the same functionality: execute arbitrary
204 AppleScript code.
205
206 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
207
208 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
209 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
210 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
211 (Fx_display_mm_height, Fx_display_mm_width)
212 (Fx_display_backing_store, Fx_display_visual_class)
213 (Fx_display_save_under, Fx_open_connection)
214 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
215 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
216 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
217 (Fx_display_pixel_width, Fx_display_pixel_height)
218 (Fx_display_usable_bounds, Fx_display_planes)
219 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
220 ... */' style of docstrings.
221
222 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
223
224 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
225 on this platform.
226 (mips):
227 * m/iris4d.h (mips): Do not define.
228 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
229
230 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
231
232 * image.c:
233 * nsfns.m:
234 * nsselect.m:
235 * nsterm.h:
236 * nsterm.m: Rename ns prefixed functions/variables to the
237 corresponding x versions. Update references.
238
239 * m/ibms390x.h (NO_REMAP): Do not undefine.
240
241 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
242
243 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
244
245 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
246 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
247 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
248 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
249 (Fns_display_mm_height, Fns_display_mm_width)
250 (Fns_display_backing_store, Fns_display_visual_class)
251 (Fns_display_save_under, Fns_open_connection)
252 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
253 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
254 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
255 (Fns_display_pixel_width, Fns_display_pixel_height)
256 (Fns_display_usable_bounds, Fx_display_planes)
257 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
258
259 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
260
261 * print.c (print_object): Check print_depth before searching for
262 circularities.
263
264 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
265
266 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
267 only sprintf.
268
269 2008-07-21 Kenichi Handa <handa@m17n.org>
270
271 * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
272
273 2008-07-20 Andreas Schwab <schwab@suse.de>
274
275 * syntax.c (find_start_pos, find_start_value)
276 (find_start_value_byte, find_start_begv, find_defun_start)
277 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
278
279 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
280
281 * s/sol2-3.h: Insert contents of s/sol2.h.
282 (LD_SWITCH_SYSTEM): Remove redundant definition.
283 * s/sol2.h: Remove, unused.
284
285 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
286
287 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
288
289 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
290
291 * Makefile.in (ns_appdir): Fix typo in find command.
292
293 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
294
295 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
296
297 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
298 added not supported anymore.
299
300 * s/usg5-4-2.h (LIBS_SYSTEM):
301 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
302
303 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
304 * s/lynxos.h (GETPGRP_NO_ARG):
305 * s/hpux10-20.h (NO_SIOCTL_H):
306 * s/gnu.h (GETPGRP_NO_ARG):
307 * s/gnu-linux.h (NO_SIOCTL_H):
308 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
309 * s/cygwin.h (GETPGRP_NO_ARG):
310 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
311 (C_DEBUG_SWITCH): Remove duplicate definition.
312
313 * m/ibms390.h: Remove boilerplate comments.
314
315 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
316
317 * process.c (HAVE_SERIAL): Consolidate ifdefs.
318 (wait_reading_process_output): Remove code for SunOS, platform not
319 supported anymore. Use SOLARIS2 instead of sun.
320
321 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
322
323 * font.c (font_open_by_name): Under NS, default lface height to zero.
324 (font_open_for_lface): Under NS, set size based on frame fontsize.
325 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
326 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
327
328 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
329
330 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
331 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
332 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
333 YES/NO.
334 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
335 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
336 * Makefile.in (clean): Clear out build destination dir.
337
338 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
339
340 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
341 xterm, xselect.
342 * lisp.h: Remove declaration of hash_remove.
343 * nsgui.h: Remove redefinitions of hash_remove.
344 * fns.c (hash_remove): Rename to hash_remove_from_table.
345
346 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
347
348 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
349 strdup() the family UTF8String before modifying it. Patch due to
350 Seiji Zenitani.
351
352 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
353
354 * nsfns.m (ns_set_background_color): Apply patch from Chong Yidong to
355 fix crash.
356 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
357 NS_FACE_BACKGROUND with 0 instead of nil.
358 * nsfont.m (nsfont_draw): Same.
359
360 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
361
362 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
363
364 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
365
366 * puresize.h (BASE_PURESIZE): Increase to 1240000.
367
368 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
369
370 * gtkutil.c: Include <config.h> instead of "config.h".
371
372 * lisp.h (Foverlay_buffer): Add EXFUN.
373
374 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
375 child process to complete child_setup. Undo 2005-09-21 change.
376
377 * s/darwin.h: Mention setsid after vfork.
378
379 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
380
381 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
382 Depend on macgui.h.
383
384 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
385 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
386
387 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
388 and f19.
389 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
390
391 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
392 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
393 Remove enumerators.
394
395 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
396 Check if FACE_FROM_ID returns NULL.
397
398 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
399
400 * w32inevt.c (change_frame_size): Remove extern declaration.
401 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
402 change_frame_size.
403
404 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
405
406 * getloadavg.c: Revert last change (2008-07-15).
407
408 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
409
410 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
411 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
412 from configure.
413
414 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
415
416 * s/sol2.h:
417 * s/sol2-4.h: Reorganize conditionals.
418
419 * ecrt0.c: Remove code depending on m68000, not used anymore.
420
421 * fns.c (hash_remove): Make static.
422 * lisp.h (hash_remove): Don't prototype.
423
424 * m/ibmrs6000.h:
425 * m/ibms390x.h:
426 * m/macppc.h: Remove boilerplate comments.
427
428 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
429 Solaris, which does not need them.
430
431 * m/vax.h: Remove comments about unsupported systems.
432
433 * s/darwin.h: Reorganize ifdefs.
434
435 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
436
437 * config.in:
438 * dispextern.h:
439 * frame.c:
440 * image.c:
441 * nsfns.m:
442 * nsfont.m:
443 * nsgui.h:
444 * nsmenu.m:
445 * nsterm.h:
446 * nsterm.m:
447 * s/darwin.h:
448 * xdisp.c: Change most cases of PENDING to TODO, some to FIXME or XXX.
449
450 2008-07-17 Andreas Schwab <schwab@suse.de>
451
452 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
453
454 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
455
456 Use SDATA. Follow coding convention of placing operators at
457 beginning of next line rather than end of previous line, and placing
458 spaces around infix operators.
459
460 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
461 in case it was defined already.
462 USE @GNUSTEP_MAKEFILES@ rather than envvars.
463 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
464 ns_default.
465 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
466 Lisp_Objects.
467 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
468 (ns_defined_color, ns_color_to_lisp): Declare.
469 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
470 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
471 it's accepted even with USE_LISP_UNION_TYPE.
472 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
473 (update_frame_tool_bar): Remove apparently obsolete tests for
474 non-integerness of f->tool_bar_lines.
475 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
476 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
477 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
478 (nsfont_open): Don't confuse NULL for Qnil.
479 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
480 * menu.h (find_and_call_menu_selection):
481 * menu.c (find_and_call_menu_selection): Use just int for vector size.
482 (find_and_return_menu_selection): Always return something.
483 * frame.h: Include dispextern.h for Display_Info.
484 (display_x_get_resource): Declare.
485
486 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
487
488 * syntax.c: Remove stdio.h include accidentally introduced in
489 Emacs.app commit.
490 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
491 NS_IMPL_COCOA.
492 * keyboard.c (handle_async_input, input_available_signal): Remove
493 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
494
495 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
496
497 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
498 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
499 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
500 Use SDATA.
501
502 * keymap.c: Remove all NS-specific code.
503 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
504 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
505 where_is_preferred_modifier, return a different value depending on how
506 preferred is the binding.
507 (where_is_internal): Adjust accordingly.
508 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
509 Adjust to new preferred_sequence_p.
510 (syms_of_keymap): Declare `where-is-preferred-modifier'.
511 * keyboard.c (parse_solitary_modifier): Not static any more.
512 * keyboard.h (parse_solitary_modifier): Declare.
513
514 2008-07-16 Andreas Schwab <schwab@suse.de>
515
516 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
517 of easymenu.
518
519 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
520
521 * xdisp.c (move_it_in_display_line): Account for word wrap, so
522 that we don't move off the line.
523
524 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
525
526 * keyboard.c (Qsuper): Remove.
527 (parse_menu_item): Don't call where_is_internal specially for NS.
528
529 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
530
531 * s/gnu-linux.h: Remove boilerplate comments.
532
533 * m/alpha.h (__ELF__): Consolidate conditions.
534
535 * m/m68k.h (linux): Use GNU_LINUX instead.
536 Remove boilerplate comments.
537
538 * m/intel386.h: Undo reactoring from previous change.
539 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
540 too, remove dead code.
541 (linux): Use GNU_LINUX instead.
542
543 2008-07-16 Jason Rumney <jasonr@gnu.org>
544
545 * w32gui.h: Repeat 26 June changes lost by last change.
546
547 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
548
549 * systty.h: Remove code for Aix on 386, unsupported platform.
550
551 * s/ms-w32.h: Remove boilerplate comments.
552 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
553
554 * s/gnu-linux.h (TERM): Remove support.
555 (HAVE_SYSVIPC): Remove, unused.
556 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
557 for this system.
558
559 * process.c: Remove support for IRIS, unused.
560 Remove support for TERM, not relevant anymore.
561
562 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
563 used with the definition.
564
565 * s/aix4-2.h (static): Do not undef.
566
567 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
568 only used on Aix.
569 (HAVE_SYSVIPC): Remove, unused.
570
571 * m/hp800.h (CANNOT_DUMP): Do not undef.
572
573 * m/alpha.h: Fix comment.
574
575 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
576 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
577 used by this configuration.
578 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
579 * unexec.c: Remove code depending on HPUX and
580 USG_SHARED_LIBRARIES, not used with this file. Remove code
581 depending on IRIS, unused. Remove if 0-ed code.
582
583 * s/template.h: Remove comments about static.
584
585 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
586 Remove if 0-ed code.
587 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
588 were the same as the default.
589 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
590 Remove boilerplate comments.
591 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
592 (HAVE_SYSVIPC): Remove, unused.
593 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
594
595 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
596 Remove boilerplate comments.
597 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
598 Remove boilerplate comments.
599 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
600 Remove boilerplate comments.
601 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
602
603 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
604 USG systems which do not use DATA_SEG_BITS.
605 Refactor code. Remove boilerplate comments.
606
607 * m/ibms390.h:
608 * m/m68k.h:
609 * s/bsd-common.h:
610 * s/cygwin.h:
611 * s/darwin.h:
612 * s/freebsd.h:
613 * s/gnu.h:
614 * s/msdos.h: Remove boilerplate comments.
615
616 * m/iris4d.h: Remove boilerplate comments and code for systems that
617 do not use this file.
618 (IRIS_4D): Remove, unused.
619
620 * m/mips.h: Remove boilerplate comments and code for systems that
621 do not use this file.
622 (SIGN_EXTEND_CHAR):
623 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
624 * unexmips.c: Remove file, unused.
625
626 * editfns.c (Fuser_full_name): Replace the only use of
627 USER_FULL_NAME with its value.
628 * config.in: Regenerate.
629
630 2008-07-16 David Reitter <david.reitter@gmail.com>
631
632 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
633 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
634
635 2008-07-16 Glenn Morris <rgm@gnu.org>
636
637 * emacs.c (system-type): Doc fix.
638
639 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
640
641 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
642 If the cache doesn't work, let's fix it, rather than work around it.
643
644 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
645
646 * Makefile.in: Correct additions for nsfont.o in last commit.
647 * nsfont.m: New file (forgot last commit).
648
649 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
650
651 Changes and additions for NeXTstep windowing system (Cocoa and
652 GNUstep) support.
653
654 * Makefile.in:
655 * config.in: Support defines and build commands for NS port.
656 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
657 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
658 * callproc.c (set_initial_environment): Initialize
659 Vprocess_environment under CANNOT_DUMP (fixes crash when
660 batch-compiling for bootstrap, due to Chris Hall).
661 * dispextern.h: Include nsgui.h and add needed typedefs under NS
662 windowing.
663 (struct face): Add synth_ital field.
664 * dispnew.c: Include nsterm.h when compiling under NS windowing.
665 (init_display): Initialize Vinitial_window_system to "ns" when so
666 compiled.
667 * emacs.c: Include GSConfig.h when compiling under GNUstep.
668 (display_arg): Use under NS.
669 (main): Under NS, allocate autorelease pool and handle command line
670 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
671 (standard_args): Add NS-specific args.
672 (shut_down_emacs): Shut down NS terminal if compiled under NS.
673 * font.c (DEFAULT_ENCODING): New variable.
674 (font_find_for_lface): Use it.
675 (syms_of_font): Load syms_of_nsfont under NS.
676 * font.h: Declare nsfont_driver when compiled under NS.
677 * fontset.c: When compiling under NS, include nsterm.h.
678 (fontset_from_font): Autoconstruct fontset under NS.
679 * frame.c (various): Under NS, include nsterm.h, add Qns window system
680 symbol, document and use it.
681 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
682 patch to fix crash due to different init order, due to Chris Hall and
683 Yamamoto Mitsuharu.
684 (do_switch_frame): When for_deletion under Cocoa, add
685 Fraise_frame(Qnil).
686 (x_set_frame_parameters): Ensure font attribute changes are picked up.
687 (x_get_arg): Allow "yes" and "no" as boolean values.
688 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
689 Qright under Cocoa.
690 (focus-follows-mouse): Default to 0 under NS.
691 * frame.h (enum output_method): Add output_ns.
692 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
693 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
694 (FRAME_WINDOW_P): NS-specific definition.
695 * fringe.c (max_used_fringe_bitmap): Make public.
696 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
697 (getloadavg): Use NeXT code under descendant OS's.
698 * image.c (includes and header section, x_create_bitmap_from_data)
699 (x_create_bitmap_from_file, free_bitmap_record, image_background)
700 (image_background_transparent, x_clear_image_1)
701 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
702 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
703 (x_to_xcolors, x_from_xcolors, x_disable_image)
704 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
705 other GUIs, including XPM support using code originally written for
706 Carbon GUI.
707 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
708 using NS API.
709 (image_ascent): Use font metrics macros instead of direct struct field
710 access.
711 * keyboard.c (includes): Add nsterm.h when compiling under NS.
712 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
713 Also, handle NS as GTK for menu bar purposes.
714 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
715 toolkit where they differ.
716 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
717 use cachelist, still needed under NS.
718 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
719 (struct widget_value): Define it here for menu.c.
720 * keymap.c (includes): Include modifier internals.
721 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
722 NS.
723 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
724 support for preferring sequences using certain modifiers, specified by
725 the FIRSTONLY argument.
726 * lisp.h (hash_remove): Rename to avoid name clash when compiling
727 under NS GNUstep implementation.
728 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
729 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
730 * menu.c: Include nsterm.h under NS.
731 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
732 (free_menubar_widget_tree_value, update_submenu_strings)
733 (find_and_call_menu_selection): Treat NS as X and NT.
734 (find_and_return_menu_selection): New function, used for popup menus.
735 * nsgui.h:
736 * nsterm.h:
737 * nsfns.m:
738 * nsimage.m:
739 * nsmenu.m:
740 * nsselect.m:
741 * nsterm.m: New files.
742 * process.c (wait_reading_process_output): Under NS, call ns_select()
743 instead of plain select().
744 * syntax.c (char_quoted): Under NS, avoid a crash when called near
745 beginning of buffer.
746 * sysselect.h (init_process): Rename when compiling under Cocoa to
747 avoid name conflict.
748 * termhooks.h (display_info): Add ns_display_info to union.
749 * terminal.c (Fterminal_live_p): Add ns to terminal types.
750 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
751 COCOA environment.
752 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
753 unexec() signature. (Note, this will dump, but the resulting file
754 crashes; unexosx is used instead; keeping around for reference and
755 possible aid in getting dump working under GNUstep.)
756 * w32gui.h (button_type, widget_value): Remove definitions (now in
757 keyboard.h).
758 * window.c: Include nsterm.h when compiling under NS.
759 * xdisp.c (includes): Include nsterm.h when compiling under NS.
760 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
761 other GUI windowing systems.
762 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
763 GTK.
764 (x_consider_frame_title): Under NS, set icon type and frame
765 modified-state indicator; use ns_set_name_as_filename() when using
766 formatted title.
767 (update_window_cursor): Make public when compiling under NS.
768 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
769 (hourglass_atimer, Vhourglass_delay
770 * xfaces.c (header section, init_frame_faces, clear_font_table)
771 (defined_color, unload_color, x_face_list_fonts)
772 (prepare_face_for_display): Add NS support parallel to other GUIs.
773 Emulate GCs like other non-X GUIs.
774 (split_font_name): Don't lowercase font name under NS.
775 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
776 under NS.
777 * s/darwin.h: Add support for compilation under NS.
778
779 2008-07-15 Jason Rumney <jasonr@gnu.org>
780
781 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
782 (w32_show_hourglass): Rename from show_hourglass.
783 (w32_hide_hourglass): Rename from hide_hourglass.
784 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
785 (Vhourglass_delay): Declare extern.
786 (hourglass_started): Remove.
787
788 * xdisp.c (Vhourglass_delay): Remove static.
789 (hourglass_started, start_hourglass, cancel_hourglass):
790 Don't include these versions on WINDOWSNT.
791
792 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
793
794 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
795 variables (formerly in xfns.c).
796 (show_hourglass, hide_hourglass): New prototypes (same).
797 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
798 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
799 in xfns.c).
800 (syms_of_xdisp): Declare/initialize display-hourglass,
801 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
802 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
803 formerly in xfns.c.
804 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
805 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
806 (start_hourglass, cancel_hourglass): Remove.
807 (show_hourglass, hide_hourglass): Remove prototypes and static
808 modifiers.
809 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
810 hourglass_atimer, hourglass_shown_p declaration/initialization.
811 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
812 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
813 (start_hourglass, cancel_hourglass): Remove.
814 (show_hourglass, hide_hourglass): Remove prototypes and static
815 modifiers.
816 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
817 hourglass_atimer, hourglass_shown_p declaration/initialization.
818 * w32fns.c (display_hourglass_p, Vhourglass_delay)
819 (DEFAULT_HOURGLASS_DELAY): Remove.
820 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
821 hourglass_shown_p declaration/initialization.
822
823 2008-07-14 Jason Rumney <jasonr@gnu.org>
824
825 * w32fns.c (w32_get_arg): Remove wrapper function.
826 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
827 directly.
828 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
829
830 2008-07-14 Kenichi Handa <handa@m17n.org>
831
832 * xfont.c (xfont_open): Add workaround for X's bug.
833
834 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
835
836 * fontset.c: Include <stdio.h> unconditionally.
837
838 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
839
840 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
841 for filtering.
842
843 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
844
845 * s/vms.h: Use __GNUC__ instead of _GNUC_.
846
847 * m/macppc.h:
848 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
849
850 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
851 (SPECIAL_EMACS_INT):
852 * m/ia64.h (SPECIAL_EMACS_INT):
853 * m/amdx86-64.h (SPECIAL_EMACS_INT):
854 * s/gnu.h (NLIST_STRUCT):
855 * aix4-2.h (X11R5_INHIBIT_I18N):
856 * s/gnu-linux.h (LINUX):
857 * s/msdos.h (HAVE_FACES):
858 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
859
860 * systty.h:
861 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
862 anymore.
863
864 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
865
866 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
867 always defined as int.
868
869 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
870 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
871 * s/gnu-linux.h (HAVE_WAIT_HEADER):
872 * s/freebsd.h (HAVE_WAIT_HEADER):
873 * s/bsd-common.h (HAVE_UNION_WAIT):
874 * s/aix4-2.h (HAVE_WAIT_HEADER):
875 * m/mips.h (HAVE_UNION_WAIT):
876 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
877 (COFF, static): Do not define, they are undefined later in the file.
878
879 * process.c (update_status): Don't use a union.
880 (status_convert):
881 (sigchld_handler): Use int instead of WAITTYPE.
882
883 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
884
885 * indent.c (Fvertical_motion): Restore hscroll before moving to
886 goal column.
887
888 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
889
890 * lisp.h: Remove left over code.
891
892 2008-07-11 Andreas Schwab <schwab@suse.de>
893
894 * lisp.h: Fix logic in last change.
895
896 * menu.h: New file.
897 * menu.c: Include it.
898 * xmenu.c: Likewise.
899 * Makefile.in: Update dependencies.
900
901 2008-07-11 Kenichi Handa <handa@m17n.org>
902
903 * fontset.c (fontset_from_font): Cancel the previous change.
904
905 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
906
907 * lisp.h:
908 * w32heap.c:
909 * emacs.c:
910 * alloc.c: Replace all references of NO_UNION_TYPE with
911 USE_LISP_UNION_TYPE.
912
913 * m/xtensa.h (NO_UNION_TYPE):
914 * m/vax.h (NO_UNION_TYPE):
915 * m/template.h (NO_UNION_TYPE):
916 * m/sparc.h (NO_UNION_TYPE):
917 * m/mips.h (NO_UNION_TYPE):
918 * m/macppc.h (NO_UNION_TYPE):
919 * m/m68k.h (NO_UNION_TYPE):
920 * m/iris4d.h (NO_UNION_TYPE):
921 * m/intel386.h (NO_UNION_TYPE):
922 * m/ibms390x.h (NO_UNION_TYPE):
923 * m/ibms390.h (NO_UNION_TYPE):
924 * m/ibmrs6000.h (NO_UNION_TYPE):
925 * m/ia64.h (NO_UNION_TYPE):
926 * m/hp800.h (NO_UNION_TYPE):
927 * m/arm.h (NO_UNION_TYPE):
928 * m/amdx86-64.h (NO_UNION_TYPE):
929 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
930 defining it the same.
931
932 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
933
934 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
935
936 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
937
938 * src/fileio.c:
939 * src/sysdep.c
940 * src/systty.h:
941 * src/m/ibmrs6000.h:
942 * src/m/iris4d.h:
943 * src/s/aix4-2.h:
944 * src/s/freebsd.h:
945 * src/s/gnu-linux.h:
946 * src/s/hpux10-20.h:
947 * src/s/hpux11.h:
948 * src/s/netbsd.h:
949 * src/s/sol2-3.h:
950 * src/s/sol2-4.h:
951 * src/s/sol2.h:
952 * src/s/usg5-4.h:
953 * src/s/vms.h: Remove references to unused variables.
954
955 2008-07-10 Andreas Schwab <schwab@suse.de>
956
957 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
958 pattern before matching the generic family.
959
960 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
961
962 * unexec.c:
963 * s/vms.h:
964 * s/usg5-4-2.h:
965 * s/sol2-5.h:
966 * s/freebsd.h:
967 * s/darwin.h: Remove dead code.
968
969 * m/template.h:
970 * m/sparc.h:
971 * m/mips.h:
972 * m/m68k.h:
973 * m/iris4d.h:
974 * m/intel386.h:
975 * m/ibms390x.h:
976 * m/ibms390.h:
977 * m/ia64.h:
978 * m/hp800.h:
979 * m/arm.h:
980 * m/amdx86-64.h: Remove dead code and references to unused
981 and compiler defined symbols.
982
983 * unexmips.c:
984 * unexelf.c: Remove references to desupported systems.
985
986 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
987
988 * m/powermac.h: Remove boilerplate comments.
989 (NO_REMAP): Remove unused definition.
990
991 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
992 define them.
993
994 2008-07-10 Kenichi Handa <handa@m17n.org>
995
996 * xfont.c (xfont_open): Log the reason of failure.
997
998 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
999
1000 * fontset.c (fontset_get_font_group):
1001 * font.c (font_check_otf): Specify argument types.
1002
1003 2008-07-09 Kenichi Handa <handa@m17n.org>
1004
1005 * coding.c (detect_coding_utf_8): Set detect_info->found only when
1006 non-ASCII char is found.
1007
1008 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
1009 (reorder_font_vector): Change the arg preferred_family to font.
1010 Prefer the spec matching with font.
1011 (fontset_get_font_group): New function.
1012 (fontset_find_font): Change the format of an element of a realized
1013 fontset. Use fontset_get_font_group.
1014 (fontset_font): Try the current fontset, the default fontset, the
1015 fallbacks of the current fonset, and the fallbacks of the default
1016 fontset in this order.
1017 (face_for_char): Delete the shortcut to use the current font.
1018 (fontset_from_font): Don't set fonts for Latin in the fontset.
1019
1020 * font.h (font_make_object, font_match_p): Adjust prototypes.
1021
1022 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
1023
1024 * font.c (font_make_object): New arg entity and pixelsize.
1025 (font_check_otf_features, font_check_otf): New functions.
1026 (font_match_p): Check :lang, :script, and :otf properties.
1027
1028 * xfont.c (xfont_open): Adjust it for the change of
1029 font_make_object.
1030 (xfont_text_extents): Fix initial setting of metrics.
1031
1032 * ftfont.c (struct ftfont_info): New member index, delete member
1033 fc_charset_idx. Make the member order compatible with struct
1034 xftfont_info.
1035 (fc_charset_table): Change charset names to registry names.
1036 (ftfont_pattern_entity): Delete the args registry and
1037 fc_charset_idx. Change the value of :font-entity property
1038 to (FONTNAME . INDEX). Always set :registry property to
1039 `iso10646-1'.
1040 (struct ftfont_cache_data): New struct.
1041 (ftfont_lookup_cache): New arg for_face.
1042 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
1043 (ftfont_driver): Set the member otf_capability.
1044 (ftfont_get_charset): Adjust it for the change of
1045 fc_charset_table.
1046 (OTF_TAG_SYM): New macro.
1047 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
1048 for the change of fc_charset_table.
1049 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
1050 ftfont_pattern_entity. Add FC_INDEX to objset.
1051 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
1052 and ftfont_pattern_entity.
1053 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
1054 font_make_object, struct ftfont_info.
1055 (ftfont_has_char): Use ftfont_get_fc_charset.
1056 (ftfont_otf_features, ftfont_otf_capability): New functions.
1057 (ftfont_shape): Use ftfont_get_otf.
1058 (ftfont_text_extents): Fix initial setting of metrics.
1059
1060 * xftfont.c (struct xftfont_info): New member ft_size. Make the
1061 member order compatible with struct ftfont_info.
1062 (xftfont_open): Add FC_CHARSET to the pattern. Set
1063 xftfont_info->ft_size. Don't unlock the face. Check BDF
1064 properties if appropriate.
1065 (xftfont_close): Unlock the face.
1066 (xftfont_anchor_point, xftfont_shape): Deleted.
1067 (syms_of_xftfont): Don't set members anchor_point and shape of
1068 xftfont_driver.
1069
1070 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
1071 font_make_object.
1072
1073 * w32font.c (w32font_open): Adjust it for the change of
1074 font_make_object.
1075 (w32font_open_internal): Don't set properties of font_object here.
1076
1077 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
1078
1079 * macfns.c (x_create_tip_frame):
1080 * w32fns.c (x_create_tip_frame):
1081 * xfns.c (x_create_tip_frame): Pass parameter argument to
1082 face-set-after-frame-default.
1083
1084 * xfaces.c (Finternal_merge_in_global_face): Save merged
1085 attributes for the default face back into the face vector.
1086
1087 2008-07-08 Andreas Schwab <schwab@suse.de>
1088
1089 * fontset.h: Declare fontset_from_font. Don't declare
1090 new_fontset_from_font and fontset_from_font_name.
1091 * xterm.c: Include "fontset.h".
1092 * Makefile.in (xterm.o): Update dependencies.
1093
1094 2008-07-08 Glenn Morris <rgm@gnu.org>
1095
1096 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
1097 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
1098
1099 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
1100
1101 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
1102 (x_set_frame_parameters): Don't bind it.
1103
1104 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
1105
1106 * w32fns.c (map_w32_filename): Declare extern.
1107
1108 2008-07-07 Jason Rumney <jasonr@gnu.org>
1109
1110 * w32term.c (WS_EX_LAYERED): Define if not already.
1111
1112 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
1113
1114 * xfaces.c (set_font_frame_param): Don't try to set the font
1115 parameter if it is still unspecified in the lface.
1116
1117 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
1118
1119 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
1120 face if it didn't already exist.
1121
1122 * xdisp.c (try_window_id): Give up if word-wrapping is on.
1123
1124 2008-07-05 Andreas Schwab <schwab@suse.de>
1125
1126 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
1127
1128 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
1129
1130 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
1131 word-wrapping.
1132 (IT_DISPLAYING_WHITESPACE): New macro.
1133 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
1134 when word-wrapping. Simplify word-wrapping logic. Use correct
1135 pixel positions when saving copies of the iterator.
1136 (display_line): Use proper wrap point if the last character on a
1137 line was preceded by whitespace.
1138
1139 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
1140
1141 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
1142
1143 2008-07-04 Kenichi Handa <handa@m17n.org>
1144
1145 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
1146
1147 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
1148
1149 2008-07-02 Jason Rumney <jasonr@gnu.org>
1150
1151 * xfns.c (syms_of_xfns): Only define x-select-font when both
1152 HAVE_FREETYPE and USE_GTK
1153
1154 * xdisp.c (next_element_from_display_vector): Move assignment out
1155 of if statement.
1156
1157 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
1158
1159 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
1160
1161 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
1162 (syms_of_fileio): Initialize and export them.
1163 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
1164
1165 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
1166 (Fsystem_move_file_to_trash): New function.
1167 (syms_of_w32fns): Export it to lisp.
1168
1169 2008-07-01 Jason Rumney <jasonr@gnu.org>
1170
1171 * w32font.c (w32font_text_extents): Don't count overhang as part
1172 of width.
1173
1174 2008-06-30 Miles Bader <miles@gnu.org>
1175
1176 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
1177 Add `avoid_cursor_p' field.
1178
1179 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
1180 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
1181 (append_glyph, append_composite_glyph, produce_image_glyph)
1182 (append_stretch_glyph): Initialize avoid_cursor_p.
1183 (get_it_property): Rename from `get_line_height_property'.
1184 (x_produce_glyphs): Use get_it_property.
1185 (handle_line_prefix, push_display_prop): New functions.
1186 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
1187 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
1188 New variables.
1189 (syms_of_xdisp): Initialize them.
1190
1191 2008-06-30 Kenichi Handa <handa@m17n.org>
1192
1193 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
1194 XftDefaultSubstitute (they are called in XftFontMatch).
1195 (xftfont_open): Fix args to ftfont_font_format.
1196
1197 * ftfont.c (fc_charset_table): New member lang.
1198 (ftfont_resolve_generic_family): New arg pattern.
1199 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
1200 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
1201 (ftfont_open): Fix args to ftfont_font_format.
1202 (ftfont_font_format): New arg filename.
1203
1204 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
1205
1206 * xfaces.c (Finternal_merge_in_global_face): If default face was
1207 modified, realize it again. Update the font face attribute.
1208
1209 2008-06-29 Jason Rumney <jasonr@gnu.org>
1210
1211 * w32term.c (x_set_frame_alpha): Fix logic.
1212
1213 2008-06-29 Kenichi Handa <handa@m17n.org>
1214
1215 * fontset.c (Finternal_char_font): Return font-object instead of
1216 font-name.
1217
1218 * composite.c (get_composition_id): Fix the width calculation for TAB.
1219
1220 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
1221
1222 * indent.c (Fvertical_motion): Properly handle float column arg.
1223
1224 2008-06-28 Jason Rumney <jasonr@gnu.org>
1225
1226 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
1227 (pfnSetLayeredWindowAttributes): New function pointer.
1228 (w32_initialize): Initialize it when supported.
1229 (x_set_frame_alpha): New function.
1230
1231 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
1232 (w32_frame_parm_handlers): Set alpha handler.
1233
1234 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
1235
1236 2008-06-27 Jason Rumney <jasonr@gnu.org>
1237
1238 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
1239 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
1240 (w32_to_x_charset, x_to_w32_charset)
1241 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1242 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1243 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1244 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1245 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1246 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1247 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
1248 (Qw32_charset_unicode): Remove.
1249 (syms_of_w32fns): Update for above changes.
1250
1251 * w32font.c (w32_to_x_charset, x_to_w32_charset)
1252 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1253 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1254 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1255 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1256 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1257 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1258 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
1259 (syms_of_w32font): Update for above changes.
1260
1261 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1262
1263 * s/usg5-4.h: Fix previous change: keep the correct branch of a
1264 removed #if.
1265 (USG_SHARED_LIBRARIES): Remove duplicate definition.
1266
1267 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
1268 Eli Zaretskii <eliz@gnu.org>
1269
1270 * makefile.w32-in (LOCAL_FLAGS):
1271 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
1272
1273 * sysdep.c (_spawnlp, _getpid):
1274 Declare with explicit _cdecl instead of _CRTAPI1.
1275
1276 * editfns.c (Fget_internal_run_time):
1277 Check for WINDOWSNT with #ifdef, not #if.
1278
1279 2008-06-26 Jason Rumney <jasonr@gnu.org>
1280
1281 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
1282
1283 * w32term.c (x_draw_glyph_string_foreground)
1284 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
1285 Use FONT_HANDLE macro.
1286 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
1287
1288 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
1289 (uniscribe_encode_char): Use FONT_HANDLE macro.
1290
1291 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
1292 (w32font_text_extents): Use precast w32_font.
1293 (w32font_close): Free cached metrics.
1294 (w32font_open_internal): Allocate space for name on stack.
1295
1296 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
1297
1298 * xdisp.c (extend_face_to_end_of_line): Fix last change.
1299
1300 2008-06-26 Jason Rumney <jasonr@gnu.org>
1301
1302 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
1303 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
1304
1305 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
1306
1307 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
1308
1309 2008-06-26 Jason Rumney <jasonr@gnu.org>
1310
1311 * w32bdf.c, w32bdf.h: Remove obsolete files.
1312
1313 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1314
1315 * w32gui.h: Don't include w32bdf.h.
1316 (XCharStruct, enum w32_char_font_type, W32FontStruct):
1317 Remove obsolete font support.
1318
1319 * w32font.h (struct w32font_info): Remove compat_w32_font.
1320 Add hfont member.
1321 (FONT_COMPAT): Remove obsolete macro.
1322
1323 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
1324 (w32font_encode_char, w32font_text_extents): Use new hfont member.
1325 (w32font_open_internal): Remove compat code. Set new hfont member.
1326 (Fx_select_font): Use new hfont member.
1327
1328 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
1329 (uniscribe_encode_char): Use new hfont member.
1330
1331 * w32term.c (x_draw_glyph_string_foreground)
1332 (x_draw_composite_glyph_string_foreground): Use new hfont member.
1333 (x_draw_glyph_string): Use metrics in w32font_info.
1334
1335 2008-06-26 Kenichi Handa <handa@m17n.org>
1336
1337 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
1338
1339 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
1340
1341 * unexnext.c:
1342 * m/ews4800.h:
1343 * m/hp9000s300.h:
1344 * m/ibm370aix.h:
1345 * m/mips-siemens.h:
1346 * m/ncr386.h:
1347 * m/next.h:
1348 * m/pmax.h:
1349 * m/powerpcle.h:
1350 * m/tandem-s2.h:
1351 * s/386bsd.h:
1352 * s/bsd386.h:
1353 * s/bsd4-1.h:
1354 * s/bsd4-2.h:
1355 * s/bsdos2-1.h:
1356 * s/bsdos2.h:
1357 * s/bsdos3.h:
1358 * s/bsdos4.h:
1359 * s/nextstep.h:
1360 * s/ultrix4-3.h:
1361 * s/usg5-0.h:
1362 * s/usg5-2-2.h:
1363 * s/usg5-2.h:
1364 * s/usg5-4-3.h:
1365 * s/ux4800.h:
1366 * s/uxpds.h:
1367 * s/uxpv.h: Remove support for obsolete systems.
1368 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
1369 Remove, insert contents in s/hpux-10.20.h
1370 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
1371 Remove, insert contents in s/aix-4.2.h
1372 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
1373 * s/bsd4-3.h: Rename to ..
1374 * s/bsd-common.h: ... this.
1375 * src/data.c:
1376 * src/doc.c:
1377 * src/ecrt0.c:
1378 * src/emacs.c:
1379 * src/fileio.c:
1380 * src/floatfns.c:
1381 * src/keyboard.c:
1382 * src/mem-limits.h:
1383 * src/print.c:
1384 * src/process.c:
1385 * src/sysdep.c:
1386 * src/syssignal.h:
1387 * src/systty.h:
1388 * src/syswait.h:
1389 * src/term.c:
1390 * src/unexec.c:
1391 * src/unexelf.c:
1392 * src/unexhp9k800.c:
1393 * src/m/hp800.h:
1394 * src/m/ibmrs6000.h:
1395 * src/m/mips.h:
1396 * src/m/vax.h:
1397 * src/s/darwin.h:
1398 * src/s/freebsd.h:
1399 * src/s/gnu.h:
1400 * src/s/ms-w32.h:
1401 * src/s/msdos.h:
1402 * src/s/netbsd.h:
1403 * src/s/template.h: Remove references to obsolete variables.
1404
1405 * Makefile.in: Add dependencies for all unexec files.
1406 (admindir): Remove unused variable.
1407 (UNEXEC_SRC): Remove references.
1408
1409 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
1410
1411 * xfns.c (x_default_font_parameter): If Xft is available, first
1412 try Monospace-12 for the default font.
1413
1414 2008-06-25 Jason Rumney <jasonr@gnu.org>
1415
1416 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
1417
1418 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
1419
1420 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
1421
1422 * buffer.c (syms_of_buffer): Remove default-word-wrap.
1423
1424 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
1425
1426 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
1427 <scroll-conservatively>: Fix typo in docstring.
1428
1429 * xselect.c (Fx_send_client_event): Doc fix.
1430
1431 2008-06-25 Kenichi Handa <handa@m17n.org>
1432
1433 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
1434
1435 * font.c (font_parse_fcname): Remove unused variables.
1436 (font_sort_entites): Delete the arg SPEC. Caller changed.
1437 Fix for the case of ! best_only.
1438 (font_delete_unmatched): Check DPI and AVGWIDTH too.
1439
1440 * lisp.h (Fstring_to_unibyte): EXFUN it.
1441
1442 * character.h (str_to_unibyte): Extern it.
1443
1444 * character.c (str_to_unibyte): New function.
1445
1446 * fns.c (Fstring_to_unibyte): New function.
1447 (syms_of_fns): Defsubr it.
1448
1449 2008-06-24 Kenichi Handa <handa@m17n.org>
1450
1451 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
1452 DPI too.
1453 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
1454
1455 2008-06-24 Andreas Schwab <schwab@suse.de>
1456
1457 * Makefile.in (${lispsource}loaddefs.el): Rename from
1458 ../lisp/loaddefs.el.
1459 (bootstrap-clean): Do what distclean does but don't remove
1460 Makefile.
1461 (distclean): Depend on bootstrap-clean and remove Makefile.
1462
1463 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
1464
1465 * buffer.h (struct buffer): New member word_wrap.
1466
1467 * buffer.c (syms_of_buffer): New variables default-word-wrap and
1468 word-wrap.
1469 (init_buffer_once): Initialize them.
1470
1471 * dispextern.h (struct it): Replace bool truncate_lines_p with a
1472 line_wrap enum possessing three possible values.
1473
1474 * termopts.h: Replace truncate_partial_width_windows with
1475 Vtruncate_partial_width_windows.
1476
1477 * dispnew.c (direct_output_for_insert): Avoid direct output when
1478 inserting a space with word wrap on.
1479
1480 * indent.c (compute_motion): Obey integer values of
1481 truncate-partial-width-windows.
1482
1483 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
1484 replacing truncate_partial_width_windows.
1485 (init_iterator): If Vtruncate_partial_width_windows is an integer,
1486 truncate only if the window width is below that integer.
1487 (start_display, resize_mini_window, produce_stretch_glyph)
1488 (display_string, move_it_in_display_line_to): Use line_wrap.
1489 (back_to_previous_visible_line_start, reseat_1): Reset
1490 string_from_display_prop_p.
1491 (display_line): Extend default face to end of line when wrapping.
1492
1493 2008-06-24 Kim F. Storm <storm@cua.dk>
1494
1495 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
1496 to wrap continued lines at word boundaries.
1497
1498 2008-06-24 Jason Rumney <jasonr@gnu.org>
1499
1500 * font.c (Ffont_face_attributes): Multiply pixel size before point
1501 conversion to avoid multiplying rounding error.
1502
1503 2008-06-23 Jason Rumney <jasonr@gnu.org>
1504
1505 * w32term.c (x_draw_glyph_string_background)
1506 (x_draw_glyph_string): Remove old bdf font code.
1507
1508 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
1509
1510 2008-06-22 Kenichi Handa <handa@m17n.org>
1511
1512 * font.c (font_find_for_lface): Try the adstyle specified in
1513 the property of LFACE_FONT of LFACE (if any).
1514
1515 2008-06-21 Seiji Zenitani <zenitani@mac.com>
1516 Ryo Yoshitake <ryo@shiftmode.net>
1517
1518 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
1519
1520 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
1521
1522 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
1523 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
1524 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
1525 (witness-emacs): Remove.
1526 (lisp, shortlisp): Move loaddefs.el earlier.
1527 (mostlyclean): Forget about witness-emacs.
1528
1529 2008-06-22 Glenn Morris <rgm@gnu.org>
1530
1531 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
1532 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
1533
1534 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1535
1536 * Makefile.in (PRECOMP): Remove.
1537 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
1538 (witness-emacs): Run `compile-first'.
1539 (.el.elc): Use the new compile-onefile target.
1540
1541 2008-06-21 Kenichi Handa <handa@m17n.org>
1542
1543 * xftfont.c (xftfont_open): Handle QCembolden only when
1544 FC_EMBOLDEN is defined.
1545
1546 2008-06-21 Andreas Schwab <schwab@suse.de>
1547
1548 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
1549 (.el.elc): Likewise.
1550
1551 2008-06-21 Miles Bader <miles@gnu.org>
1552
1553 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
1554 build dir, not the lisp source dir.
1555
1556 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1557
1558 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
1559 (bootstrapclean): Remove.
1560 (.el.elc): New rule.
1561 (PRECOMP): New var.
1562 (../lisp/subdirs.el): Remove.
1563 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
1564 (witness-emacs): New target.
1565 (mostlyclean): Remove witness-emacs as well.
1566 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
1567 Add witness-emacs dependency.
1568
1569 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
1570
1571 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
1572 defined by the font.
1573
1574 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1575
1576 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
1577 (bootstrap-clean): New target that keeps TAGS around.
1578 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
1579 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
1580
1581 2008-06-20 Jason Rumney <jasonr@gnu.org>
1582
1583 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
1584 Remove obsolete font code.
1585
1586 * w32font.c (font_matches_spec): Use csb bitfield from font signature
1587 to determine language support.
1588
1589 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1590
1591 * sysdep.c (cfsetspeed): New fun extracted from the code.
1592 (cfmakeraw): Move before first use.
1593
1594 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
1595
1596 * sysdep.c (cfmakeraw): Provide fallback implementation.
1597 (serial_configure): Provide fallback implementation of cfsetspeed.
1598
1599 2008-06-20 Kenichi Handa <handa@m17n.org>
1600
1601 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
1602 the pattern.
1603
1604 * fontset.c (fontset_from_font): Copy font_spec before changing
1605 the elements.
1606
1607 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
1608
1609 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1610
1611 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
1612 for explicit `font' parameters.
1613
1614 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
1615
1616 2008-06-19 Kenichi Handa <handa@m17n.org>
1617
1618 * frame.c: Include <ctype.h>.
1619 (x_set_font_backend): Allow spacing characters in the X resource
1620 for FontBackend.
1621
1622 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
1623
1624 * w32fns.c, xfns.c (Qfont_param): New var.
1625 (syms_of_w32fns): Initialize it.
1626 (x_default_font_parameter): Record explicit `font' into
1627 `font-parameter'.
1628
1629 2008-06-18 Kenichi Handa <handa@m17n.org>
1630
1631 * font.c (font_parse_xlfd): Fix previous change.
1632 (font_parse_fcname): Don't use :fc-unknown-spec.
1633 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
1634 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
1635 (font_add_log): Prepend the driver name to the resulting fonts.
1636
1637 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
1638 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
1639 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
1640
1641 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
1642 (QCembolden): New variables.
1643 (syms_of_xftfont): DEFSYM them.
1644 (xftfont_open): Call XftFontMatch. Don't trust the result of
1645 XftTextExtents8 if the pixel_size is less than 5.
1646
1647 2008-06-18 Andreas Schwab <schwab@suse.de>
1648
1649 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
1650 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
1651
1652 2008-06-18 Jason Rumney <jasonr@gnu.org>
1653
1654 * w32font.c (w32font_list, w32font_match): Add logging.
1655
1656 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
1657
1658 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
1659
1660 * font.c (font_parse_fcname): Store divider characters for
1661 unknown-spec list. For known key symbols, intern using correct
1662 symbol name.
1663
1664 2008-06-17 Kenichi Handa <handa@m17n.org>
1665
1666 * xfaces.c (realize_default_face): If the frame is not on window
1667 system, set the fontset of face to nil.
1668
1669 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1670
1671 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
1672
1673 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
1674
1675 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
1676 (build_font_name_from_vector): Delete externs.
1677
1678 * xfaces.c (struct font_name): Don't declare.
1679
1680 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1681
1682 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
1683
1684 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
1685
1686 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
1687
1688 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
1689
1690 * font.c (Ffont_spec): Fix usage in docstring.
1691 (Ffont_face_attributes): Doc fix.
1692
1693 2008-06-16 Andreas Schwab <schwab@suse.de>
1694
1695 * font.c (Ffont_face_attributes): Fix definition.
1696
1697 2008-06-16 Jason Rumney <jasonr@gnu.org>
1698
1699 * font.h (font_style_symbolic_from_value): Remove.
1700
1701 * font.c (font_style_symbolic_from_value): Remove.
1702 (font_style_symbolic): Revert to pre 2008-06-13 version.
1703
1704 * w32font.c (w32_to_fc_weight): New function.
1705 (w32font_full_name, logfont_to_fcname): Use it.
1706
1707 2008-06-16 Kenichi Handa <handa@m17n.org>
1708
1709 * font.c (font_check_object): Delete it.
1710 (font_clear_cache): Check if a font-object is alive.
1711 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
1712 font-object to nil.
1713 (font_close_object): Don't check FONT_CLOSE_OBJECT.
1714 (font_at): Don't call font_check_object.
1715 (Ffont_get): Return a symbol for :weight, :slant, and :width.
1716
1717 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
1718
1719 * puresize.h (BASE_PURESIZE): Increase to 1230000.
1720
1721 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
1722
1723 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
1724
1725 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
1726
1727 * font.c (font_parse_fcname): Only one decimal point.
1728 (font_unparse_fcname): Handle data in family and foundry indices
1729 as symbols, not strings.
1730 (font_unparse_gtkname, Ffont_face_attributes): New functions.
1731
1732 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
1733
1734 * font.h (font_unparse_gtkname): Add prototype.
1735
1736 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1737
1738 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
1739
1740 2008-06-15 Andreas Schwab <schwab@suse.de>
1741
1742 * font.c (font_update_drivers): Fix crash when no drivers match.
1743
1744 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
1745
1746 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
1747 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
1748
1749 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
1750
1751 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
1752
1753 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
1754
1755 * process.c (Fserial_process_configure, Fprocess_send_eof):
1756 Use EQ to compare Lisp_Objects.
1757
1758 2008-06-13 Jason Rumney <jasonr@gnu.org>
1759
1760 * w32fns.c (Fw32_select_font): Remove old font API function.
1761
1762 * w32font.c (logfont_to_fcname): New function.
1763 (Fx_select_font): New font dialog function compatible with
1764 GTK/fontconfig version.
1765
1766 * font.c (font_style_symbolic_from_value): New function.
1767 (font_style_symbolic): Use it.
1768
1769 * font.h (font_style_symbolic_from_value): Declare new function.
1770
1771 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
1772
1773 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
1774 <font-width-table>: Fix typos in docstrings.
1775
1776 2008-06-13 Daniel Engeler <engeler@gmail.com>
1777
1778 These changes add serial port access.
1779 * process.c: Add HAVE_SERIAL.
1780 (Fdelete_process, Fprocess_status, Fset_process_buffer)
1781 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
1782 (list_processes_1, select_wrapper, Fstop_process)
1783 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
1784 (status_notify): Modify to handle serial processes.
1785 [HAVE_SERIAL] (Fserial_process_configure)
1786 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
1787 New functions.
1788 * process.h (struct Lisp_Process): Add `type'.
1789 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
1790 New functions.
1791 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
1792 serial ports.
1793 (serial_open, serial_configure) New functions.
1794 * w32.h: Add FILE_SERIAL.
1795 (struct _child_process): Add ovl_read, ovl_write.
1796
1797 2008-06-13 Kenichi Handa <handa@m17n.org>
1798
1799 * dispextern.h (enum lface_attribute_index): New member
1800 LFACE_FOUNDRY_INDEX.
1801
1802 * font.c (font_score): Delete arg alternate_families. Check only
1803 weight, slant, width, and size. Ignore the difference of alias
1804 style symbols.
1805 (font_sort_entites): Adjust for the above change. Reflect the
1806 order of font-driver to scores.
1807 (font_list_entities): Don't check alternate_familes here.
1808 (font_clear_prop): Handle foundry.
1809 (font_update_lface): Don't parse "foundry-family" form here.
1810 Handle FONT_FOUNDRY_INDEX.
1811 (font_find_for_lface): Likewise. Handle alternate families here.
1812 If registry is nil, try iso8859-1 and ascii-0.
1813 (font_open_for_lface): Pay attention to size in ENTITY.
1814 (font_open_by_name): Simplify by calling font_load_for_lface.
1815 (free_font_driver_list): Delete it.
1816 (font_update_drivers): Preserve the order of backends.
1817 (syms_of_font): Setting of sort_shift_bits adjusted for the change
1818 of font_score and font_sort_entites.
1819 (font_update_sort_order): Likewise.
1820
1821 * xfaces.c (LFACE_FOUNDRY): New macro.
1822 (check_lface_attrs): Check foundry.
1823 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
1824 (merge_face_vectors): Check foundry.
1825 (merge_face_ref): Likewise.
1826 (Finternal_set_lisp_face_attribute): Likewise.
1827 (x_update_menu_appearance): Likewise.
1828 (Finternal_get_lisp_face_attribute): Likewise.
1829 (lface_hash): Likewise.
1830 (lface_same_font_attributes_p): Likewise.
1831 (x_supports_face_attributes_p): Likewise.
1832 (tty_supports_face_attributes_p): Likewise.
1833 (Finternal_set_alternative_font_family_alist): Intern strings.
1834 (Finternal_set_alternative_font_registry_alist): Downcase strings.
1835 (realize_default_face): Set LFACE_FOUNDRY (lface).
1836
1837 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
1838 font-driver at first.
1839
1840 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
1841
1842 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1843
1844 * lread.c (Fload): Use xfree, not free on saved_doc_string.
1845
1846 2008-06-12 Jim Meyering <meyering@redhat.com>
1847
1848 Make unexec_free handle NULL the same way free does.
1849 * unexmacosx.c (unexec_free): Ignore a NULL argument.
1850
1851 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
1852
1853 * character.h (CHAR_TO_BYTE_SAFE): New macro.
1854 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
1855 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
1856 (WEAK_ALIAS): Simplify.
1857 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
1858 when searching a unibyte buffer.
1859
1860 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
1861
1862 * xfns.c (Fx_select_font): Rename from x-font-dialog.
1863
1864 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
1865
1866 * w32font.c: Include ctype.h.
1867
1868 2008-06-11 Jason Rumney <jasonr@gnu.org>
1869
1870 * w32font.c (w32font_encode_char): Detect missing glyphs that are
1871 misreported as space.
1872 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
1873 as aliases for registry iso10646-1.
1874
1875 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
1876
1877 * buffer.c (clone_per_buffer_values): Skip `name'.
1878
1879 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
1880
1881 * font.c (font_parse_fcname): Fix last change; accept decimal
1882 points in font size.
1883
1884 2008-06-10 Jason Rumney <jasonr@gnu.org>
1885
1886 * w32uniscribe.c (add_opentype_font_name_to_list):
1887 Skip non unicode fonts.
1888
1889 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
1890
1891 * xfns.c (Fx_font_dialog): New function.
1892
1893 * gtkutil.c (xg_dialog_response_cb): Rename from
1894 xg_file_response_callback.
1895 (pop_down_dialog): Rename from pop_down_file_dialog.
1896 (xg_get_file_name): Callers changed.
1897 (xg_get_font_name): New function.
1898
1899 * gtkutil.h (xg_get_font_name): Insert prototype.
1900
1901 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1902
1903 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
1904 x_underline_minimum_display_offset.
1905 (syms_of_xdisp): Declare it here rather than in xterm.c.
1906 * dispextern.h (underline_minimum_offset): Declare it.
1907 * w32term.c (x_draw_glyph_string): Use it.
1908 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
1909 (syms_of_xterm): Don't declare it any more.
1910 (x_draw_glyph_string): Adjust to the new name.
1911
1912 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
1913
1914 * xterm.c (x_underline_minimum_display_offset): New var.
1915 (x_draw_glyph_string): Use it.
1916 (syms_of_xterm): Declare it.
1917
1918 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
1919
1920 * font.c (font_parse_fcname): Accept GTK-style font names too.
1921
1922 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1923
1924 * dired.c (file_name_completion): Don't return t if the match is exact
1925 but with different capitalization.
1926 * minibuf.c (Ftry_completion): Simplify.
1927
1928 * window.c (Vwindow_point_insertion_type): New var.
1929 (set_window_buffer): Use it.
1930 (syms_of_window): Init and export it to Lisp.
1931
1932 2008-06-10 Kenichi Handa <handa@m17n.org>
1933
1934 * font.h (font_intern_prop): Prototype adjusted.
1935
1936 * font.c (font_intern_prop): New arg force_symbol.
1937 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
1938 Adjust for the change of font_intern_prop.
1939
1940 * ftfont.c (ftfont_pattern_entity):
1941 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
1942 (w32_registry):
1943 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
1944 the change of font_intern_prop.
1945
1946 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
1947
1948 * w32menu.c (digest_single_submenu): Declare extern.
1949
1950 2008-06-09 Jason Rumney <jasonr@gnu.org>
1951
1952 * w32term.c (x_make_frame_visible): Use alternate restore flags.
1953
1954 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
1955 (parse_single_submenu): Remove.
1956 (digest_single_submenu): Remove.
1957 (syms_of_w32menu): Don't initialise variables that have moved
1958 to menu.c.
1959 (set_frame_menubar): Sync with version in xmenu.c.
1960 (w32_menu_show): Sync with xmenu_show in xmenu.c.
1961
1962 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
1963 Make static again.
1964
1965 2008-06-09 Jason Rumney <jasonr@gnu.org>
1966
1967 Changes to w32 files related to the move of common menu code
1968 to menu.c on 2008-06-08 by Chong Yidong.
1969
1970 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
1971 defs to w32gui.h.
1972 (single_keymap_panes, push_menu_item, push_menu_pane):
1973 Make globally visible.
1974
1975 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
1976 (local_free, malloc_widget_value, free_widget_value)
1977 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
1978 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
1979 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
1980 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
1981 (menu_items, menu_items_allocated, menu_items_used)
1982 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
1983 (init_menu_items, finish_menu_items, discard_menu_items)
1984 (grow_menu_items, push_submenu_start, push_submenu_end)
1985 (push_left_right_boundary, push_menu_pane, push_menu_item)
1986 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
1987 (free_menubar_widget_tree_value, parse_single_submenu)
1988 (update_submenu_strings): Remove functions.
1989 (xmalloc_widget_value): Remove and declare extern.
1990
1991 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
1992 (OBJ1): Build it.
1993
1994 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
1995 (local_heap, local_alloc, local_free, malloc_widget_value)
1996 (free_widget_value): Define here.
1997
1998 2008-06-09 Kenichi Handa <handa@m17n.org>
1999
2000 * font.h (Qascii_0): Extern it.
2001
2002 * font.c (Qascii_0): New variable.
2003 (syms_of_font): DEFSYM it.
2004 (font_open_by_name): If the registry "iso8859-1" fails, try also
2005 "ascii-0".
2006
2007 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
2008
2009 2008-06-08 Kenichi Handa <handa@m17n.org>
2010
2011 * .gdbinit (xfont): New command.
2012
2013 2008-06-08 Andreas Schwab <schwab@suse.de>
2014
2015 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
2016 * Makefile.in (menu.o): Update dependencies.
2017
2018 * Makefile.in (obj): Always add menu.o.
2019 * emacs.c (main): Always call syms_of_menu.
2020 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
2021
2022 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
2023
2024 * Makefile.in: Compile menu.c.
2025
2026 * lisp.h: Declare syms_of_menu.
2027
2028 * emacs.c (main): Call syms_of_menu.
2029
2030 * keyboard.h: Relocate platform-independent menu definitions from
2031 xmenu.c.
2032
2033 * menu.c: New file. Relocate platform-independent menu
2034 definitions from xmenu.c. Suggested by Adrian Robert.
2035
2036 * xmenu.c: Remove platform-independent menu definitions.
2037 (menu_items menu_items_inuse, menu_items_allocated)
2038 (menu_items_used, menu_items_n_panes)
2039 (menu_items_submenu_depth): Move to keyboard.h.
2040 (init_menu_items, finish_menu_items, unuse_menu_items)
2041 (discard_menu_items, restore_menu_items, save_menu_items)
2042 (grow_menu_items, push_submenu_start, push_submenu_end)
2043 (push_left_right_boundary, push_menu_pane, push_menu_item)
2044 (keymap_panes, single_keymap_panes, single_menu_item)
2045 (list_of_panes, list_of_items, find_and_call_menu_selection)
2046 (xmalloc_widget_value, free_menubar_widget_value_tree)
2047 (parse_single_submenu, digest_single_submenu)
2048 (update_submenu_strings): Move to menu.c.
2049
2050 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
2051
2052 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
2053
2054 2008-06-06 Miles Bader <miles@gnu.org>
2055
2056 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
2057 face, not frame default.
2058
2059 2008-06-05 Martin Rudalics <rudalics@gmx.at>
2060
2061 * window.c (pop_up_windows, pop_up_frames)
2062 (display_buffer_reuse_frames, Vpop_up_frame_function)
2063 (Vdisplay_buffer_function, Veven_window_heights)
2064 (Vspecial_display_buffer_names, Vspecial_display_regexps)
2065 (Vspecial_display_function, Vsame_window_buffer_names)
2066 (Vsame_window_regexps, split_height_threshold)
2067 (Vsplit_window_preferred_function): Move those vars to window.el.
2068 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
2069 (Fdisplay_buffer): Move those functions to window.el.
2070 (syms_of_window): Remove corresponding declarations.
2071 (display_buffer): New function.
2072 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
2073 * dispnew.c (Flast_nonminibuf_frame): New function.
2074 * buffer.c (Fpop_to_buffer): Move to window.el.
2075
2076 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2077
2078 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
2079
2080 2008-06-05 Kenichi Handa <handa@m17n.org>
2081
2082 * coding.c (detect_coding): Fix previous change.
2083 (detect_coding_system): Likewise.
2084
2085 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2086
2087 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
2088
2089 * keymap.c (Vminibuffer_local_filename_must_match_map):
2090 Rename from Vminibuffer_local_must_match_filename_map.
2091 (syms_of_keymap):
2092 * minibuf.c (Fcompleting_read): Adjust accordingly.
2093 * commands.h: Rename declaration as well.
2094
2095 2008-06-05 Kenichi Handa <handa@m17n.org>
2096
2097 * font.c (Ffont_spec): Don't use font_parse_family_registry for
2098 family name.
2099 (Ffont_put): Likewise.
2100
2101 * fontset.c (fontset_find_font): Call font_open_for_lface with the
2102 current font-spec.
2103
2104 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
2105 is unspecified.
2106
2107 * xfaces.c (realize_x_face): If the font-related face attributes
2108 are the same as those of default face, realize a new fontset from
2109 default->fontset.
2110 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
2111
2112 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2113
2114 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
2115 (move_it_in_display_line): New wrapper.
2116
2117 * window.c (window_scroll_pixel_based_preserve_x)
2118 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
2119 (window_scroll_pixel_based, window_scroll_line_based):
2120 Use them to preserve column positions.
2121 (syms_of_window): Initialize them.
2122
2123 * indent.c (Fvertical_motion): Extend first arg to allow passing an
2124 (HPOS . VPOS) pair.
2125
2126 * dispextern.h (move_it_in_display_line): Declare.
2127
2128 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
2129
2130 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
2131 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
2132 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
2133
2134 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
2135
2136 * window.c (Fset_window_parameter): Doc fix.
2137 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
2138
2139 2008-06-04 Joakim Verona <joakim@verona.se>
2140
2141 * window.h (struct window): Add new member window_parameters.
2142
2143 * window.c (Fwindow_parameters, Fwindow_parameter)
2144 (Fset_window_parameter): New defuns.
2145 (syms_of_window): Defsubr the new defuns.
2146 (make_window): Initialize window_parameters to nil.
2147
2148 2008-06-04 John Paul Wallington <jpw@pobox.com>
2149
2150 * eval.c (Fdefmacro): Doc fix.
2151
2152 2008-06-04 Kenichi Handa <handa@m17n.org>
2153
2154 * coding.c (detect_coding): Fix handling of coding->head_ascii.
2155 Be sure to call setup_coding_system when we find a proper coding system.
2156 (detect_coding_system): Fix handling of coding->head_ascii.
2157
2158 2008-06-03 Andreas Schwab <schwab@suse.de>
2159
2160 * font.c (font_prop_validate_spacing): Fix last change.
2161
2162 2008-06-03 Kenichi Handa <handa@m17n.org>
2163
2164 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
2165 (font_parse_fcname): Fix handling of unknown key.
2166
2167 * xfont.c (xfont_list): Try an alias.
2168
2169 * charset.c (char_charset): Return NULL if the arg charset_list is
2170 specified and C doesn't belong to any of them.
2171
2172 2008-06-02 Chip Coldwell <coldwell@redhat.com>
2173
2174 * font.c (font_pixel_size): Don't take cdr of an integer.
2175
2176 2008-06-02 Jim Meyering <meyering@redhat.com>
2177
2178 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
2179 * alloc.c (xfree): Return right away for a NULL arg.
2180 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
2181 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
2182 * mac.c (create_apple_event_from_event_ref): Likewise.
2183 (create_apple_event_from_drag_ref, cfstring_create_normalized):
2184 Likewise.
2185 * doprnt.c (doprnt1): Likewise.
2186 * frame.c (frame): Likewise.
2187 * keyboard.c (wipe_kboard): Likewise.
2188 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
2189 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
2190 * term.c (tty_default_color_capabilities, maybe_fatal)
2191 (delete_tty): Likewise.
2192 * w16select.c (string): Likewise.
2193 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
2194 * w32bdf.c (w32_free_bdf_font): Likewise.
2195 * w32fns.c (w32_unload_font): Likewise.
2196 * w32font.c (w32font_close): Likewise.
2197 * window.c (size_window): Likewise.
2198 * xselect.c (receive_incremental_selection): Likewise.
2199 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
2200 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
2201 * w32.c (stat): Likewise.
2202
2203 Remove useless if-before-free tests.
2204 * editfns.c (Fset_time_zone_rule): Likewise.
2205 * lread.c (nosuffix): Likewise.
2206 * ralloc.c (get_bloc): Likewise.
2207 * regex.c (reg_free): Likewise.
2208 * xftfont.c (xftfont_open, xftfont_close): Likewise.
2209 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
2210 * xsmfns.c (smc_save_yourself_CB): Likewise.
2211
2212 2008-06-02 Kenichi Handa <handa@m17n.org>
2213
2214 * font.c (font_find_for_lface): Handle float font size.
2215 (font_open_for_lface): Likewise.
2216
2217 * xfaces.c (x_supports_face_attributes_p): Check face->font before
2218 comparing the properties.
2219
2220 2008-06-01 Jason Rumney <jasonr@gnu.org>
2221
2222 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
2223 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
2224 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
2225 Don't add empty script list.
2226 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
2227
2228 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
2229
2230 * Makefile.in (dot, dotdot): Remove, update users.
2231 ".." has been used elsewhere in the file for a long time.
2232 (LIBXT_STATIC): Remove conditional based on unused variable.
2233
2234 2008-06-01 Miles Bader <miles@gnu.org>
2235
2236 * xfaces.c (Vface_remapping_alist): New variable.
2237 (syms_of_xfaces): Initialize it.
2238 (enum named_merge_point_kind): New type.
2239 (struct named_merge_point): Add `named_merge_point_kind' field.
2240 (push_named_merge_point): Make cycle detection respect different
2241 named-merge-point kinds.
2242 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
2243 Remove face-name alias resolution.
2244 (lface_from_face_name): New definition using
2245 `lface_from_face_name_no_resolve'.
2246 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
2247 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
2248 (get_lface_attributes): New definition that layers face-remapping on
2249 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
2250 (lookup_basic_face): New function.
2251 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
2252 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
2253 `get_lface_attributes'.
2254 (face_at_buffer_position): Use `lookup_basic_face' to lookup
2255 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
2256 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
2257
2258 * xdisp.c (init_iterator): Pass base_face_id through
2259 `lookup_basic_face' when we actually use it as a face-id.
2260 (handle_single_display_prop): Use `lookup_basic_face' to lookup
2261 DEFAULT_FACE_ID.
2262
2263 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
2264 lookup the initial face-id.
2265
2266 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
2267
2268 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
2269
2270 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
2271 (Fremove_text_properties): Fix typos in docstrings.
2272
2273 2008-05-31 Kenichi Handa <handa@m17n.org>
2274
2275 * font.c (font_list_entities): Fix the car part of data to be
2276 stored in the cache.
2277
2278 * ftfont.c (ftfont_font_format): Don't use strcasestr.
2279
2280 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2281
2282 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
2283 Add a `test' argument so another predicate than `equal' can be used.
2284 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
2285 (map_char_table): Remove unused vars `c' and `i'.
2286 * lisp.h (Foptimize_char_table): Adjust declaration.
2287 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
2288
2289 2008-05-30 Kenichi Handa <handa@m17n.org>
2290
2291 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
2292 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
2293 defined.
2294
2295 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2296
2297 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2298 (Fmake_variable_frame_local): Disallow mixing buffer-local and
2299 frame-local settings for the same variable.
2300
2301 2008-05-30 Kenichi Handa <handa@m17n.org>
2302
2303 * fontset.c (Ffont_info): Move to font.c.
2304 (syms_of_fontset): Delete defsubr of Sfont_info.
2305
2306 * font.c (font_style_to_value, font_score): Delete casting of the
2307 args to xstcasecmp.
2308 (register_font_driver): Increment num_font_drivers only when
2309 registering the driver globally.
2310 (Ffont_info): Move from fontset.c. Handle a font object too.
2311 (syms_of_font): Defsubr Sfont_info.
2312
2313 2008-05-29 Kenichi Handa <handa@m17n.org>
2314
2315 * coding.h (enum define_coding_utf8_arg_index): New enum.
2316 (enum coding_attr_index): Change coding_attr_utf_16_bom to
2317 coding_attr_utf_bom.
2318 (enum utf_bom_type): Rename from utf_16_bom_type.
2319 (struct utf_16_spec): Adjust for the above change.
2320 (struct coding_system): Add utf_8_bom in `spec' union.
2321
2322 * coding.c (CODING_UTF_8_BOM): New macro.
2323 (enum coding_category): Delete coding_category_utf_8, add
2324 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
2325 coding_category_utf_8_sig.
2326 (CATEGORY_MASK_UTF_8): Delete it.
2327 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
2328 (CATEGORY_MASK_UTF_8_SIG): New macros.
2329 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
2330 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
2331 CATEGORY_MASK_UTF_8_SIG.
2332 (CATEGORY_MASK_UTF_8): New macro.
2333 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
2334 (detect_coding_utf_8): Check BOM.
2335 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
2336 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
2337 (encode_coding_utf_16): Likewise.
2338 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
2339 (detect_coding, detect_coding_system): Handle utf-8-auto.
2340 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
2341 (syms_of_coding): Fix setting up of Vcoding_category_table.
2342
2343 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
2344
2345 * process.c (Faccept_process_output): If `millisec' is non-nil,
2346 `seconds' default to 0.
2347 (wait_reading_process_output): Also return non-nil if we read output
2348 from a non-running process.
2349
2350 2008-05-29 Jason Rumney <jasonr@gnu.org>
2351
2352 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
2353 `raster' specified.
2354 (add_font_entity_to_list): Allow non-opentype truetype fonts back
2355 in the uniscribe backend, but disallow any font that has no
2356 unicode subrange support.
2357
2358 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
2359
2360 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
2361 Fix typos in docstrings.
2362
2363 2008-05-29 Kenichi Handa <handa@m17n.org>
2364
2365 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
2366 (Fx_family_fonts): Set frame correctly.
2367
2368 2008-05-28 Jason Rumney <jasonr@gnu.org>
2369
2370 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
2371
2372 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2373
2374 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
2375 calling build_annotations.
2376
2377 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
2378
2379 * coding.c (Fdecode_coding_region, Fencode_coding_region)
2380 (Fencode_coding_string):
2381 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
2382 <latin-extra-code-table>: Fix typos in docstrings.
2383 (syms_of_coding) <coding-system-alist>: Doc fix.
2384 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
2385
2386 2008-05-28 Kenichi Handa <handa@m17n.org>
2387
2388 * fontset.c (Ffont_info): Don't call font_close_object.
2389
2390 * font.c (font_parse_family_registry): Use Ffont_put to validate
2391 foundry and family.
2392 (font_delete_unmatched): Don't check spacing.
2393 (font_list_entities): Add spacing to the spec to list fonts.
2394
2395 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
2396 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
2397
2398 * coding.c (encode_coding_raw_text): Fix previous change.
2399 (encode_coding_object): When the dst_object is a buffer and is
2400 different from src_object, move gap to PT.
2401
2402 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
2403
2404 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
2405
2406 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2407
2408 * coding.c (encode_coding_raw_text): Set coding->produced_char for
2409 all branches. Compute it differently.
2410
2411 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
2412
2413 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
2414
2415 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
2416 into "else if () ... else ...".
2417
2418 2008-05-27 Jason Rumney <jasonr@gnu.org>
2419
2420 * w32font.c (w32font_open_internal): Determine if glyph indices
2421 are likely to work here.
2422
2423 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
2424
2425 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
2426 draw overlap glyphs with appropriate highlighting.
2427
2428 2008-05-27 Kenichi Handa <handa@m17n.org>
2429
2430 * xfont.c (xfont_open): Fix calculation of font->average_width.
2431
2432 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2433
2434 * casefiddle.c (casify_object): Try to guess better whether the
2435 argument is a byte or a char.
2436
2437 2008-05-26 Andreas Schwab <schwab@suse.de>
2438
2439 * xselect.c (x_reply_selection_request): Properly handle format == 32.
2440 Always send multiples of format size.
2441
2442 * xterm.c (x_set_frame_alpha): Fix type mismatch.
2443
2444 2008-05-26 Jason Rumney <jasonr@gnu.org>
2445
2446 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
2447 (compute_metrics): Don't set failure if we just cleared the cache.
2448 (w32_weight_table): Remove unused variable.
2449 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
2450 backwards compatibility.
2451
2452 2008-05-25 Kenichi Handa <handa@m17n.org>
2453
2454 * w32term.c (x_draw_glyph_string):
2455 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
2456
2457 * xfaces.c: Delete unused function prototypes.
2458 (xstrlwr, font_frame): Delete them.
2459 (clear_face_cache): Delete unused variable.
2460
2461 * xftfont.c (xftfont_open): Delete unused variable.
2462 If underline_thickness is not 1, adjust underline_position.
2463
2464 * ftxfont.c (ftxfont_open): Delete unused variable.
2465
2466 * fontset.c (face_for_char): Optimize for the case of no charset
2467 property.
2468
2469 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
2470 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
2471 (otf_open, font_otf_capability, generate_otf_features)
2472 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
2473 Comment out by surrounding "#if 0" and "#endif" for the moment.
2474 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
2475 (syms_of_font): Codes for accessing above commented out.
2476
2477 2008-05-24 Eli Zaretskii <eliz@gnu.org>
2478
2479 * w32proc.c: Include dispextern.h.
2480
2481 * w32.c: Include dispextern.h.
2482
2483 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
2484
2485 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
2486 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
2487 Fix typos in docstrings.
2488
2489 2008-05-23 Jason Rumney <jasonr@gnu.org>
2490
2491 * xsmfns.c: Remove includes that are already included by config.h.
2492
2493 2008-05-23 Kenichi Handa <handa@m17n.org>
2494
2495 * charset.c (Qemacs, charset_emacs): New variables.
2496 (char_charset): Fix for non-Unicode characters.
2497 (syms_of_charset): Define charset_emacs.
2498
2499 * w32term.c (x_draw_glyph_string): Be sure to update
2500 s->underline_thickness and s->underline_position. Be sure to draw
2501 underline within the current line area.
2502
2503 * xterm.c (x_draw_glyph_string): Be sure to update
2504 s->underline_thickness and s->underline_position. Be sure to draw
2505 underline within the current line area.
2506
2507 * fontset.c: Delete unused variables and add casting for char *
2508 throughout the file.
2509 (fontset_font): Try the fallback fonts of the current fontset
2510 before consulting the default fontset.
2511
2512 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
2513
2514 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
2515
2516 2008-05-22 Jason Rumney <jasonr@gnu.org>
2517
2518 * font.c: Don't include strings.h.
2519
2520 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
2521
2522 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
2523 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
2524 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
2525 to call xstrcasecmp.
2526
2527 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
2528
2529 * fontset.c (fs_query_fontset): Use xstrcasecmp.
2530
2531 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
2532
2533 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
2534
2535 2008-05-22 Kenichi Handa <handa@m17n.org>
2536
2537 * puresize.h (BASE_PURESIZE): Increase to 1220000.
2538
2539 * font.c (font_prop_validate_style): Adjust for the format
2540 change of font_style_table.
2541
2542 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
2543 two args.
2544
2545 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
2546 two args.
2547
2548 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
2549
2550 * minibuf.c (keys_of_minibuf): Delete.
2551 * lisp.h (keys_of_minibuf): Delete.
2552 * emacs.c (main): Don't call keys_of_minibuf.
2553
2554 2008-05-22 Kenichi Handa <handa@m17n.org>
2555
2556 * ftfont.c (ftfont_resolve_generic_family): Rename from
2557 ftfont_list_generic_family. Return a single family for each
2558 generic family.
2559 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
2560 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
2561 Call font_add_log.
2562 (ftfont_match): Call font_add_log.
2563
2564 * font.h (Ffont_xlfd_name): EXFUN adjusted.
2565 (FONT_DEBUG): Define it.
2566 (font_add_log): Extern it.
2567 (font_assert): Rename from xassert.
2568
2569 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
2570 (xfont_list_family): Call font_add_log.
2571 (xfont_match): Likewise.
2572 (memq_no_quit): Delete.
2573
2574 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
2575 call of Ffont_xlfd_name.
2576
2577 * xfaces.c (struct table_entry, slant_table, weight_table)
2578 (swidth_table): Move to font.c.
2579
2580 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
2581 xassert are changed to font_assert. Delete many unused variables.
2582 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
2583 New variables.
2584 (struct table_entry): Move from xfaces.c and modified.
2585 (weight_table, slant_table, width_table): Move from xfaces.c and
2586 contents adjusted for the change of struct table_entry.
2587 (font_style_to_value, font_style_symbolic): Adjust for the
2588 format change of font_style_table.
2589 (font_parse_family_registry): Don't overwrite existing foundry and
2590 family of font_spec.
2591 (font_score): Fix calculation of diff for sizes.
2592 (font_sort_entites): Call font_add_log.
2593 (font_delete_unmatched): Return a newly created list.
2594 (font_list_entities): Fix previous change. Call font_add_log.
2595 (font_matching_entity, font_open_entity, font_close_entity):
2596 Call font_add_log.
2597 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
2598 (Finternal_set_font_style_table): Delete.
2599 (BUILD_STYLE_TABLE): New macro.
2600 (build_style_table): New function.
2601 (Vfont_log, font_log_env_checked): New variables.
2602 (font_add_log): New function.
2603 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
2604 Declare Lisp variables "font-weight-table", "font-slant-table",
2605 "font-width-table", and "font-log". Initialize font_style_table.
2606
2607 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
2608
2609 * xterm.c (x_set_frame_alpha): Move declarations before statements.
2610
2611 2008-05-21 Seiji Zenitani <zenitani@mac.com>
2612 Ryo Yoshitake <ryo@shiftmode.net>
2613
2614 * frame.c (Qalpha): Add a new frame parameter `alpha'.
2615 (Vframe_alpha_lower_limit): New variable.
2616 (x_set_alpha): New function.
2617
2618 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
2619
2620 * xfns.c (x-create-frame, Qalpha):
2621 Initialize the frame parameter `alpha'.
2622 * xterm.c (OPAQUE, OPACITY): New.
2623 (x_set_frame_alpha): New function.
2624 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
2625
2626 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
2627 * w32fns.c (w32_frame_parm_handlers): Likewise.
2628
2629 2008-05-20 Jason Rumney <jasonr@gnu.org>
2630
2631 * w32font.c (add_font_entity_to_list): Don't add non-opentype
2632 truetype fonts to opentype list.
2633
2634 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
2635
2636 * fontset.c (Ffontset_info): Doc fix.
2637 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
2638 <ignore-relative-composition>: Fix typos in docstrings.
2639
2640 * font.c (syms-of-font) <font-encoding-alist>:
2641 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
2642 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
2643 (Ffont_otf_alternates): Doc fixes.
2644
2645 2008-05-20 Kenichi Handa <handa@m17n.org>
2646
2647 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
2648 font.h through out the file.
2649 (FONT_DRIVERS): Rename from FONTOBJ.
2650 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
2651 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
2652
2653 * emacs.c (main): Call syms_of_font unconditionally.
2654
2655 * font.h (find_font_encoding): Extern it.
2656
2657 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
2658 fontset.c.
2659 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
2660 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
2661 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
2662 only when HAVE_WINDOW_SYSTEM is defined.
2663 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
2664 when HAVE_WINDOW_SYSTEM is defined.
2665
2666 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
2667 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
2668
2669 * xfaces.c: Include font.h unconditionally.
2670 (merge_face_ref, merge_face_vectors)
2671 (Finternal_set_lisp_face_attribute): Cancel the previous change.
2672
2673 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
2674
2675 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
2676 indirect_variable.
2677 * eval.c (lisp_indirect_variable): New fun.
2678 (Fuser_variable_p): Use it.
2679
2680 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2681
2682 * lisp.h (indirect_variable):
2683 * data.c (indirect_variable, let_shadows_buffer_binding_p):
2684 Use Lisp_Symbol pointers rather than Lisp_Object.
2685 Adjust callers.
2686 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
2687 To this end, change calling-convention.
2688
2689 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
2690 if some non-hidden buffers are selected by string&pred.
2691
2692 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
2693
2694 * process.c (wait_reading_process_output): Always check status
2695 when in batch mode.
2696
2697 2008-05-19 Kenichi Handa <handa@m17n.org>
2698
2699 * font.c (font_list_entities): Fix handling of cache.
2700 (font_matching_entity): Likewise.
2701
2702 * ftfont.c (cs_iso8859_1): Delete.
2703 (ft_face_cache): New variable.
2704 (struct ftfont_info): New member fc_charset_idx.
2705 (ftfont_build_basic_charsets): Delete.
2706 (fc_charset_table): New variable.
2707 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
2708 . FC_CHARSET_IDX) as :font-entity property in the font entity.
2709 Callers changed.
2710 (ftfont_lookup_cache, ftfont_get_charset): New functions.
2711 (ftfont_spec_pattern): New argument fc_charset_idx.
2712 Check registry more rigidly. Change callers.
2713 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
2714 change of :font-entity property of the font.
2715
2716 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
2717 property of the font.
2718
2719 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
2720
2721 * coding.c (Fcoding_system_p): Rename argument to match docstring.
2722 (Funencodable_char_position, Fcheck_coding_systems_region)
2723 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
2724 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
2725 (Ffind_operation_coding_system, Fset_coding_system_priority)
2726 (Fcoding_system_eol_type): Doc fixes.
2727
2728 2008-05-17 Glenn Morris <rgm@gnu.org>
2729
2730 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
2731
2732 2008-05-16 Eli Zaretskii <eliz@gnu.org>
2733
2734 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
2735 and st_gid.
2736
2737 * frame.c (Fdelete_frame): Don't call font_update_drivers if
2738 HAVE_WINDOW_SYSTEM is not defined.
2739
2740 * xfaces.c (merge_face_ref, merge_face_vectors)
2741 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
2742 HAVE_WINDOW_SYSTEM is defined.
2743 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
2744
2745 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
2746
2747 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
2748
2749 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2750
2751 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
2752
2753 2008-05-15 Kenichi Handa <handa@m17n.org>
2754
2755 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
2756 preference.
2757
2758 2008-05-15 Glenn Morris <rgm@gnu.org>
2759
2760 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
2761
2762 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
2763
2764 * fns.c (init_fns): Don't initialize weak_hash_tables here.
2765 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
2766
2767 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
2768
2769 2008-05-15 Kenichi Handa <handa@m17n.org>
2770
2771 * ftfont.c (ftfont_list): Downcase family name to check generic
2772 families.
2773
2774 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
2775 font-spec for QCfont value.
2776
2777 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
2778 buffer. Check the return value of it.
2779
2780 2008-05-14 Jason Rumney <jasonr@gnu.org>
2781
2782 * w32term.c (w32_get_glyph_overhangs): Remove.
2783 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
2784
2785 2008-05-14 Kenichi Handa <handa@m17n.org>
2786
2787 * font.c (font_prop_validate): Make nil a valid value.
2788 (font_clear_cache): Check if the cached vector of entities is nil
2789 or not.
2790
2791 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2792
2793 * emacs.c (main_thread): Conditionalize on
2794 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2795 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
2796
2797 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
2798 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
2799 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2800
2801 2008-05-14 Kenichi Handa <handa@m17n.org>
2802
2803 * coding.c (detect_coding_iso_2022): Ignore a coding category that
2804 has no corresponding coding system.
2805
2806 2008-05-14 Jason Rumney <jasonr@gnu.org>
2807
2808 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
2809
2810 * w32font.h (w32font_open_internal): Update declaration.
2811
2812 * w32font.c (w32font_open_internal): Change last argument from
2813 w32font_info struct to font object. Fill in font object from
2814 font_entity. Get Outline metrics if possible. Use them to
2815 calculate underline position and thickness. Use xlfd name as name
2816 property. Don't set codepage.
2817 (w32font_open): Pass font_object to w32font_open_internal. Don't
2818 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
2819 (w32font_draw): Use s->font.
2820 (clear_cached_metrics): Don't clear non-existent blocks.
2821
2822 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
2823 font was not found.
2824 (x_draw_glyph_string): Use underline position and thickness from font.
2825
2826 * w32uniscribe.c (uniscribe_open): Pass font_object to
2827 w32font_open_internal.
2828
2829 2008-05-14 Kenichi Handa <handa@m17n.org>
2830
2831 These changes are to delete all legacy font-handling codes, and
2832 make Emacs use only font-backends.
2833
2834 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
2835 (frame.o, image.o, print.o): Depend on $(FONTSRC).
2836
2837 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
2838
2839 * charset.h (Vcharset_non_preferred_head)
2840 (Vcurrent_iso639_language): Extern them.
2841
2842 * charset.c (Vcharset_non_preferred_head): New variable.
2843 (Vcurrent_iso639_language): New variable.
2844 (syms_of_charset): Declare it as a Lisp variable.
2845 (char_charset): Don't check non preferred charsets. As a last
2846 resort, return charset_unicode.
2847 (Fset_charset_priority): Update Vcharset_non_preferred_head.
2848
2849 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
2850 conditionals. Don't check enable_font_backend. Delete all codes
2851 used only when USE_FONT_BACKEND is not defined.
2852
2853 * dispextern.h (struct glyph_string): Change type of `font' to
2854 `struct font *'.
2855 (struct glyph_string): New member underline_position and
2856 underline_thickness.
2857 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
2858 (struct face): Change type of `font' to `struct font *'. Remove
2859 members `font_name', `font_info_id'.
2860 (per_char_metric, encode_char): Delete externs.
2861 (calc_pixel_width_or_height): Adjust the prototype.
2862
2863 * emacs.c (enable_font_backend): Delete extern.
2864 (main): Don't set enable_font_backend. Don't check the command
2865 line argument "-disable-font-backend".
2866
2867 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
2868 (enum font_property_index): New members FONT_DPI_INDEX,
2869 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
2870 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
2871 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
2872 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
2873 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
2874 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
2875 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
2876 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
2877 (struct font_spec, struct font_entity): New structs.
2878 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
2879 (struct font): Many members from old "struct font_info" moved to
2880 here. Members font and entity deleted.
2881 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
2882 the new font-related objects.
2883 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
2884 (CHECK_FONT_GET_OBJECT): Likewise.
2885 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
2886 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
2887 (struct font_driver): New members case_sensitive anc check. Type
2888 of the member list and open changed.
2889 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
2890 (font_symbolic_width, font_find_object, font_get_spec)
2891 (font_set_lface_from_name): Delete extern.
2892 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
2893
2894 * font.c: Include <strings.h>.
2895 (enable_font_backend): Delete it.
2896 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
2897 (CHECK_VALIDATE_FONT_SPEC): Delete it.
2898 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
2899 (null_string): Delete it.
2900 (null_vector): Make it static.
2901 (font_family_alist): Delete it.
2902 (Qnormal): Extern it.
2903 (QCextra, QClanguage): Delete it.
2904 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
2905 (font_make_spec, font_make_entity, font_make_object)
2906 (font_intern_prop): Renamed from intern_downcase. Don't downcase
2907 the string. Callers changed.
2908 (font_pixel_size): Adjusted for the format change of font-related
2909 objects.
2910 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
2911 (font_style_to_value, font_style_symbolic): New function.
2912 (build_font_family_alist): Delete it.
2913 (font_registry_charsets): Use Fassoc_string instead of
2914 assq_no_quit.
2915 (font_prop_validate_symbol): Don't return null_string.
2916 (font_prop_validate_style): Adjusted for the change of
2917 style-related values in a font vector.
2918 (font_property_table): Delete entries for QClanguage and
2919 QCantialias, add entries for QCavgwidth.
2920 (get_font_prop_index): Delete the 2nd argument FROM.
2921 (font_prop_validate): Arguments changed.
2922 (font_put_extra): Adjusted for the change of font-related objects.
2923 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
2924 (font_parse_fcname, font_unparse_fcname)
2925 (font_prepare_composition): Likewise.
2926 (font_parse_family_registry): Renamed from font_merge_old_spec.
2927 (otf_open): Delete the 1st arg entity.
2928 (font_otf_capability): Adjusted for the above change.
2929 (font_score): New arg alternate_families. Adjusted for the change
2930 of font-related objects.
2931 (font_sort_entites): New arg best_only.
2932 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
2933 Delete them.
2934 (font_match_p): Check alternate families.
2935 (font_find_object): Delete it.
2936 (font_check_object): New function.
2937 (font_clear_cache): Adjusted for the change of font-related objects.
2938 (font_delete_unmatched): New arg.
2939 (font_list_entities): Call font_driver->list with a spec that
2940 doesn't specify style-related properties.
2941 (font_matching_entity): Arguments changed. Caller changed.
2942 (font_open_entity): Adjusted for the change of font-related objects.
2943 (font_close_object, font_has_char, font_encode_char)
2944 (font_get_name, font_get_spec): Likewise.
2945 (font_spec_from_name, font_clear_prop, font_update_lface):
2946 New functions.
2947 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
2948 (font_prepare_for_face, font_done_for_face, font_open_by_name)
2949 (font_at): Adjusted for the change of font-related objects.
2950 (font_range): New function.
2951 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
2952 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
2953 (Fcopy_font_spec, Fmerge_font_spec): New function.
2954 (Ffont_family_list): Renamed from list-families.
2955 (Finternal_set_font_style_table): Arguments changed.
2956 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
2957 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
2958 change of font-related objects.
2959 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
2960
2961 * fontset.h (struct font_info): Delete it. Most members go to
2962 struct font.
2963 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
2964 (enum FONT_SPEC_INDEX): Delete it.
2965 (font_info, list_fonts_func, load_font_func, query_font_func)
2966 (set_frame_fontset_func, find_ccl_program_func)
2967 (get_font_repertory_func, new_fontset_from_font_name): Delete
2968 externs.
2969 (fontset_from_font_name): Extern it.
2970 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
2971 (FONT_INFO_FROM_FACE): Deleted.
2972 (face_for_font): Adjust prototype.
2973
2974 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
2975 conditionals. Don't check enable_font_backend. Delete all codes
2976 used only when USE_FONT_BACKEND is not defined.
2977 (get_font_info_func, list_font_func, load_font_func)
2978 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
2979 (get_font_repertory_func): Delete them.
2980 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
2981 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
2982 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
2983 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
2984 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
2985 (fontset_compare_rfontdef): New function.
2986 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
2987 ront-defs by qsort. Adjusted for the change of font-group vector.
2988 (load_font_get_repertory): Deleted.
2989 (fontset_find_font): Use new macros to ref/set elements of
2990 font-def and rfont-def.
2991 (fontset_font): Fix the timing of remembering that no font for C.
2992 (free_face_fontset): Do nothing if the face has no fontset.
2993 (face_suitable_for_char_p): Use new macros to ref/set elements of
2994 rfont-def.
2995 (face_for_char): Likewise. Call face_for_char with font_object.
2996 (fs_load_font): Delete. Delete #pragma surrounding it.
2997 (fs_query_fontset): Use strcasecmp instead of strcmp.
2998 (generate_ascii_font_name): Adjusted for the format change of
2999 font-spec.
3000 (Fset_fontset_font): Likewise. Use new macros to set elements of
3001 font-def.
3002 (Fnew_fontset): Use font_unparse_xlfd to generate
3003 FONTSET_ASCII (fontset).
3004 (new_fontset_from_font_name): Deleted.
3005 (fontset_from_font): Renamed from new_fontset_from_font. Check if
3006 a fontset is already created for the font. FIx updating of
3007 Vfontset_alias_alist.
3008 (fontset_ascii_font): Deleted.
3009 (Ffont_info): Adjusted for the format change of font-spec.
3010 (Finternal_char_font): Likewise.
3011 (Ffontset_info): Likewise.
3012 (syms_of_fontset): Don't check load_font_func.
3013
3014 * fns.c (internal_equal): Handle PREV_FONT.
3015
3016 * frame.h: Delete USE_FONT_BACKEND conditional.
3017
3018 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
3019 conditionals. Don't check enable_font_backend. Delete all codes
3020 used only when USE_FONT_BACKEND is not defined.
3021 (x_set_font): Call x_new_font, not x_new_fontset2.
3022 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
3023 already set for the frame.
3024
3025 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
3026 a font-entity by font_make_entity. Use font_intern_prop instead
3027 of intern_downcase. Use FONT_SET_STYLE to set a style-related
3028 font property. If a font is scalable, set avgwidth property to 0.
3029 Set font-entity property by font_put_extra.
3030 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
3031 (ffont_driver): Adjusted for the change of struct font_driver.
3032 (ftfont_spec_pattern): New function.
3033 (ftfont_list): Return a list, not vector.
3034 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
3035 (ftfont_list_family): Don't downcase names.
3036 (ftfont_free_entity): Deleted.
3037 (ftfont_open): Return a font-ojbect. Adjusted for the change of
3038 struct font. Get underline_thickness and underline_position from
3039 font property. Don't update dpyinfo->smallest_font_height and
3040 dpyinfo->smallest_char_width.
3041 (ftfont_close): Don't free `struct font'.
3042 (ftfont_has_char): Adjusted for the format change of font-entity.
3043 (ftfont_encode_char, ftfont_text_extents): Likewise.
3044
3045 * ftxfont.c (ftxfont_list): Return a list, not vector.
3046 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
3047 struct font. Get underline_thickness and underline_position from
3048 font property. Don't update dpyinfo->smallest_font_height and
3049 dpyinfo->smallest_char_width.
3050 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
3051 (ftxfont_draw): Adjusted for the change of struct font.
3052
3053 * image.c (image_ascent): Don't include "charset.h". Include
3054 "character.h" and "font.h".
3055
3056 * lisp.h (enum pvec_type): New member PREV_FONT.
3057 (Fassoc_string): EXFUN it.
3058
3059 * print.c: Include font.h.
3060 (print_object): Handle font-related objects.
3061
3062 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
3063 conditionals. Don't check enable_font_backend. Delete all codes
3064 used only when USE_FONT_BACKEND is not defined.
3065 (handle_auto_composed_prop): Do nothing if it->f is not on a
3066 window system. Check how many following characters can be
3067 displayed by the same font.
3068 (calc_pixel_width_or_height): Type of the 4th arg is changed to
3069 'struct font *'.
3070 (get_char_face_and_encoding): Assign the whole encoding task to
3071 the `encode-char' method of a font driver.
3072 (fill_composite_glyph_string): Adjusted for the change of `struct
3073 face' and `struct glyph_string'.
3074 (fill_glyph_string): Likewise.
3075 (get_per_char_metric): Arguments changed.
3076 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
3077 and `struct glyph_string'.
3078 (produce_stretch_glyph, calc_line_height_property)
3079 (x_produce_glyphs): Likewise.
3080
3081 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
3082 conditionals. Don't check enable_font_backend. Delete all codes
3083 used only when USE_FONT_BACKEND is not defined. Use
3084 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
3085 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
3086 (Qp): Extern them.
3087 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
3088 Deleted.
3089 (struct font_name): Deleted.
3090 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
3091 (compare_fonts_by_sort_order): New function.
3092 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
3093 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
3094 Deleted.
3095 (Fx_family_fonts): Use font_list_entities, and sort fonts by
3096 compare_fonts_by_sort_order.
3097 (Fx_font_family_list): Call Ffont_family_list.
3098 (face_numeric_value, face_numeric_weight, face_numeric_slant)
3099 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
3100 (face_symbolic_slant, face_symbolic_swidth)
3101 (split_font_name_into_vector, build_font_name_from_vector)
3102 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
3103 (font_rescale_ratio, split_font_name, build_font_name)
3104 (free_font_names, sort_fonts, x_face_list_fonts)
3105 (face_font_available_p, sorted_font_list, cmp_font_names)
3106 (font_list_1, concat_font_list, font_list, remove_duplicates):
3107 Deleted.
3108 (Fx_list_fonts): Use Ffont_list.
3109 (LFACE_AVGWIDTH): Deleted.
3110 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
3111 by FONTP.
3112 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3113 (set_lface_from_font_name): Delete it.
3114 (set_lface_from_font): Renamed from
3115 set_lface_from_font_and_fontset. Caller changed. Don't set
3116 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
3117 for face.
3118 (merge_face_vectors): Copy font-spec if necessary.
3119 Clear properties of the font-spec if necessary.
3120 (merge_face_ref): Clear properties of the font-spec if necessary.
3121 (Finternal_set_lisp_face_attribute): Likewise.
3122 (set_font_frame_param): Use font_load_for_lface to load a
3123 font-object, and call Fmodify_frame_parameters with it.
3124 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
3125 font name by Ffont_xlfd_name.
3126 (Finternal_lisp_face_attribute_values): Don't check QCweight,
3127 QCslant, and QCwidth.
3128 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
3129 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
3130 Compare fonts by EQ.
3131 (lookup_non_ascii_face): Deleted.
3132 (face_for_font): The 2nd argument changed.
3133 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
3134 Check atomic font properties by case insensitive.
3135 (realize_non_ascii_face): Set face->overstrike correctly.
3136 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
3137 (dump_realized_face): Get font name from
3138 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
3139
3140 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
3141 conditionals. Don't check enable_font_backend. Delete all codes
3142 used only when USE_FONT_BACKEND is not defined.
3143 (xic_create_xfontset): Original code deleted and renamed from
3144 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
3145 (x_make_gc): Don't set GCFont in GCs.
3146 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
3147 opened by "fixed".
3148 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
3149 find_ccl_program_func, query_font_func, set_frame_fontset_func,
3150 get_font_repertory_func.
3151
3152 * xfont.c: Include <stdlib.h> and "ccl.h".
3153 (struct xfont_info): New structure.
3154 (xfont_query_font): Deleted.
3155 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
3156 moved from xterm.c.
3157 (xfont_driver): Adjusted for the change of struct font_driver.
3158 (compare_font_names): New function.
3159 (xfont_list_pattern): Sort font names case insensitively. Make
3160 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
3161 (xfont_list): Return a list, not vector.
3162 (xfont_match): If the font doesn't have QCname property, generate
3163 a name from the other font properties.
3164 (xfont_open): Return a font-ojbect. Adjusted for the change of
3165 struct font. Get underline_thickness and underline_position from
3166 font property. Don't update dpyinfo->smallest_font_height and
3167 dpyinfo->smallest_char_width.
3168 (xfont_close): Don't free struct font.
3169 (xfont_prepare_face): Adjusted for the change of struct font.
3170 (xfont_done_face): Deleted.
3171 (xfont_has_char): Adjusted for the change of struct font.
3172 (xfont_encode_char, xfont_draw): Likewise.
3173 (xfont_check): New function.
3174
3175 * xftfont.c (xftfont_list): Adjusted for the change of `list'
3176 callback function.
3177 (xftfont_match): Adjusted for the fontmat change of font-entity.
3178 (xftfont_open): Adjusted for the format change of font-entity and
3179 font-object. Adjusted for the change of struct font. Return a
3180 font-object. Don't update dpyinfo->smallest_font_height and
3181 dpyinfo->smallest_char_width.
3182 (xftfont_close): Block input while calling XftFontClose.
3183 (xftfont_prepare_face): Don't block input while calling
3184 xftfont_get_colors. Adjusted for the change of struct font.
3185 (xftfont_shape): Return value of error case fixed.
3186
3187 * xrdb.c (x_load_resources): Don't setup a fontset resource.
3188
3189 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
3190 conditionals.
3191 (FONT_WIDTH): Return (f)->max_width.
3192 (struct x_display_info): Delete member `font'.
3193 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
3194 (x_find_ccl_program, x_get_font_repertory): Delete externs.
3195 (struct x_output): Change type of `font' to `struct font *'.
3196
3197 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
3198 conditionals. Don't check enable_font_backend. Delete all codes
3199 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
3200 (x_per_char_metric, x_encode_char): Deleted.
3201 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
3202 (x_compute_glyph_string_overhangs): Adjusted for the change of
3203 `struct face'.
3204 (x_draw_glyph_string_foreground)
3205 (x_draw_composite_glyph_string_foreground): Likewise.
3206 (x_draw_glyph_string): Likewise. Use font->underline_position and
3207 font->underline_thickness.
3208 (x_new_font): Renamed from x_new_fontset2.
3209 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
3210 (x_check_font): Call `check' method of a font driver.
3211 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
3212 (x_query_font, x_get_font_repertory): Deleted.
3213 (x_find_ccl_program): Renamed and moved to xfont.c.
3214 (x_redisplay_interface): Adjusted for the change of `struct
3215 redisplay_interface'.
3216
3217 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
3218 conditionals. Don't check enable_font_backend. Delete all codes
3219 used only when USE_FONT_BACKEND is not defined. Surround non-used
3220 code by "#ifdef OLD_FONT" and "endif".
3221 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
3222
3223 * w32font.h (struct w32font_info): New member.
3224 (FONT_COMPAT): New macro.
3225 (w32font_open_internal): Prototype adjusted.
3226
3227 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
3228 OLD_FONT" and "endif".
3229
3230 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
3231 conditionals. Don't check enable_font_backend. Delete all codes
3232 used only when USE_FONT_BACKEND is not defined.
3233 (w32font_open): Return a font-object. Make a font-object by
3234 font_make_object. Adjusted for the change of struct w32font_info.
3235 (w32font_close): Don't free struct font. Adjusted for the change
3236 of struct w32font_info.
3237 (w32font_encode_char, w32font_text_extents, w32font_draw):
3238 Adjusted for the change of struct w32font_info.
3239 (w32font_draw): Likewise.
3240 (w32font_list_internal): Return a list, not vector.
3241 (w32font_open_internal): Change the 4th arg to font-object.
3242 Adjusted for the change of struct w32font_info and font-object format.
3243 (add_font_name_to_list): Don't downcase names.
3244 (w32_enumfont_pattern_entity): Make a font-entity by
3245 font_make_entity. Adjusted for the format change of font-entity.
3246 Use FONT_SET_STYLE to set a style-related font property. If a
3247 font is scalable, set avgwidth property to 0. Set font-entity
3248 property by font_put_extra.
3249 (font_matches_spec): Adjusted for the format change of font-entity.
3250 (w32_weight_table, w32_decode_weight): New variables.
3251 (w32_encode_weight): New function.
3252 (fill_in_logfont): Adjusted for the format change of font-spec.
3253 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
3254 weight value.
3255 (w32font_driver): Adjusted for the change of struct font_driver.
3256
3257 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
3258 conditionals. Don't check enable_font_backend. Surround non-used
3259 code by "#ifdef OLD_FONT" and "endif".
3260 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
3261 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
3262
3263 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
3264 conditionals. Don't check enable_font_backend. Delete all codes
3265 used only when USE_FONT_BACKEND is not defined. Surround non-used
3266 code by "#ifdef OLD_FONT" and "endif".
3267
3268 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
3269 (uniscribe_open): Return value changed to font-object.
3270 Adjusted for the format change of font-object.
3271 (uniscribe_otf_capability): Adjusted for the change of struct font.
3272 (add_opentype_font_name_to_list): Don't downcase names.
3273 (uniscribe_font_driver): Adjusted for the change of struct
3274 font_driver.
3275
3276 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
3277
3278 * dispnew.c (update_frame_1): Check if tty output is still valid
3279 before flushing it.
3280
3281 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
3282
3283 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
3284 to Gtk+ menus.
3285
3286 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3287
3288 * dired.c (file_name_completion): Tweak the code so as to always do it
3289 in a single pass. Tighten the scope of some variables.
3290
3291 * dired.c (Qdefault_directory): New var.
3292 (file_name_completion): Use it instead of Fexpand_file_name.
3293 (syms_of_dired): Initialize it.
3294
3295 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
3296
3297 * fileio.c (double_dollars): Remove dead code.
3298
3299 2008-05-10 Eli Zaretskii <eliz@gnu.org>
3300
3301 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
3302 Mention w32-get-true-file-attributes in doc string.
3303
3304 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3305
3306 2008-05-09 Glenn Morris <rgm@gnu.org>
3307
3308 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
3309 2008-04-23.
3310
3311 2008-05-09 Eli Zaretskii <eliz@gnu.org>
3312
3313 Support for reporting owner and group of each file on MS-Windows:
3314 * dired.c (stat_uname, stat_gname): New functions, with special
3315 implementation for w32.
3316 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
3317
3318 * w32.c: Rename the_passwd_* to dflt_passwd_*.
3319 (dflt_group_name): New static variable.
3320 (dflt_group): Rename from the_group.
3321 (init_user_info): Init dflt_group fields. Get user's group name
3322 from LookupAccountSid.
3323 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
3324 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
3325 New initialization states.
3326 (globals_of_w32): Initialize them to zero. Initialize the default
3327 group name to "None".
3328 (GetFileSecurity_Name): New global var, the name of the function
3329 to call for GetFileSecurity.
3330 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
3331 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
3332 (get_file_security, get_security_descriptor_owner)
3333 (get_security_descriptor_group, is_valid_sid)
3334 (get_file_security_desc, get_rid, get_name_and_id)
3335 (get_file_owner_and_group): New functions.
3336 (stat): Use get_file_security_desc and get_file_owner_and_group to
3337 report the owner and primary group of each file. Don't ignore the
3338 high 32 bits of file's size, now that st_size is 64-bit wide.
3339 Fix test when to get true file attributes.
3340 (init_user_info): Use get_rid instead of equivalent inline code.
3341 (fstat): Don't ignore the high 32 bits of file's size.
3342
3343 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
3344
3345 * image.c (png_load): Use correct bit-depth for setting background
3346 color.
3347
3348 2008-05-08 Eli Zaretskii <eliz@gnu.org>
3349
3350 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
3351 epa-hook.elc.
3352
3353 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
3354
3355 * font.c (Ffont_match_p): Don't use `iff' in docstring.
3356
3357 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3358
3359 * macfns.c (Fx_create_frame): Make a copy of frame parameters
3360 because the original parameters are in pure storage now.
3361 (mac_window): Remove unused params. Update callers.
3362
3363 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3364
3365 * lread.c (substitute_object_recurse): Use lower-level primitives.
3366 Don't signal errors when traversing sub-char-tables.
3367 Don't loop over all the possible characters when traversing char-tables.
3368
3369 * print.c (print_preprocess): Add sub-char-tables to the print-table,
3370 just like we do in print.c.
3371
3372 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3373
3374 * minibuf.c (Ftry_completion): Remove code left over from when we used
3375 scmp instead of Fcompare_strings.
3376
3377 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
3378
3379 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
3380
3381 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3382
3383 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
3384 Create bitmap context in native byte order.
3385
3386 * macterm.c (XDrawLine)
3387 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
3388 context in native byte order.
3389
3390 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3391
3392 * config.in: Regenerate.
3393
3394 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
3395 New definitions for Image I/O support.
3396 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3397 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
3398 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3399 (mac_data_provider_release_data, image_load_image_io)
3400 [USE_MAC_IMAGE_IO]: New functions.
3401 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
3402 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
3403 (init_image_func_pointer) [MAC_OSX]: Remove function.
3404 (image_load_quartz2d) [MAC_OSX]: Check availability of
3405 CGImageCreateWithPNGDataProvider at compile time.
3406 Use lowercase `false' for boolean constant.
3407 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
3408 Use image_load_image_io.
3409 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
3410 Don't check MyCGImageCreateWithPNGDataProvider.
3411 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
3412 Don't call init_image_func_pointer.
3413
3414 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
3415
3416 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
3417 Make variable non-static.
3418 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3419 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3420
3421 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
3422 (RED_FROM_ULONG): Mask off higher bits.
3423 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
3424
3425 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
3426 Include AvailabilityMacros.h.
3427 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
3428 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
3429
3430 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
3431
3432 * chartab.c (Fset_char_table_range): If range is t, really set all
3433 chars to that value.
3434
3435 2008-05-03 Eli Zaretskii <eliz@gnu.org>
3436
3437 * dired.c (Ffile_attributes): Don't allow the device number become
3438 negative.
3439
3440 2008-05-02 Daiki Ueno <ueno@unixuser.org>
3441
3442 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
3443
3444 2008-05-02 Juri Linkov <juri@jurta.org>
3445
3446 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
3447 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
3448 DEFAULT argument as a list of default values in docstrings.
3449
3450 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
3451
3452 * puresize.h (BASE_PURESIZE): Increase to 1210000.
3453
3454 2008-05-01 Martin Rudalics <rudalics@gmx.at>
3455
3456 * dispnew.c (change_frame_size_1): Preserve small windows when
3457 shrinking frames by calling set_window_height|width with third
3458 arg 2.
3459
3460 * window.h (struct window): Replace field too_small_ok by field
3461 resize_proportionally.
3462
3463 * window.c (make_window): Initialize resize_proportionally.
3464 (enlarge_window): Temporarily set resize_proportionally to make
3465 sure that shrink_windows does scale the window proportionally.
3466 (shrink_windows): When window has resize_proportionally set try
3467 to shrink it proportionally by stealing from other windows.
3468 (struct saved_window, Fset_window_configuration)
3469 (compare_window_configurations): Handle resize_proportionally.
3470 (WINDOW_TOTAL_SIZE): New macro.
3471 (window_min_size, shrink_windows, size_window): Use it.
3472 (check_min_window_sizes): Remove. Invalid values of
3473 window-min-height|width are handled by window_min_size_2 now.
3474 (size_window, Fsplit_window, enlarge_window)
3475 (adjust_window_trailing_edge, grow_mini_window): Don't call
3476 check_min_window_sizes.
3477 (window_min_size_2, window_min_size_1, window_min_size):
3478 New argument safe_p for retrieving "safe" minimum sizes.
3479 (Fdisplay_buffer, Fsplit_window, enlarge_window)
3480 (adjust_window_trailing_edge, grow_mini_window):
3481 Adjust arguments of window_min_size... functions.
3482 (shrink_windows): Argument min_size removed. New argument
3483 safe_p allows shrinking windows to their safe minimum sizes.
3484 Calculate minimum size and decide whether a window shall be
3485 deleted for each window individually.
3486 (size_window): When nodelete_p equals 2, tell shrink_windows to
3487 delete windows only if their new minimum size is no more safe.
3488 (shrink_window_lowest_first): Call window_min_size_1 to make
3489 sure to preserve modeline of bottom-most window when resizing
3490 the minibuffer.
3491 (Fset_window_configuration, Fcurrent_window_configuration)
3492 (compare_window_configurations): Do not handle
3493 window-min-height|width any more.
3494 (syms_of_window): Clarify window-min-height|width doc-strings.
3495
3496 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
3497
3498 * dired.c (file_name_completion): Fix up the encoding/decoding issue
3499 some more. Copy some of the code from Ftry_completions.
3500 Remove special case code that dates back to initial revision when the
3501 slash was only added when necessary and that can't trigger nowadays.
3502
3503 2008-04-27 Kenichi Handa <handa@m17n.org>
3504
3505 * font.c (font_prop_validate): Signal `error' instead of `font'.
3506
3507 2008-04-29 Jason Rumney <jasonr@gnu.org>
3508
3509 * w32fns.c (Fw32_battery_status): New defun.
3510 (syms_of_w32fns): Defsubr it.
3511
3512 2008-04-28 Andreas Schwab <schwab@suse.de>
3513
3514 * dired.c (file_name_completion): Fix another mixing of encoded
3515 and decoded names.
3516
3517 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
3518
3519 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
3520
3521 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
3522
3523 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3524
3525 2008-04-27 Andreas Schwab <schwab@suse.de>
3526
3527 * dired.c (file_name_completion): Fix inappropriate mixing of
3528 encoded and decoded names.
3529
3530 * xterm.c (XTread_socket): Fix use of uninitialized variable.
3531
3532 * puresize.h (BASE_PURESIZE): Increase to 1200000.
3533
3534 2008-04-26 Eli Zaretskii <eliz@gnu.org>
3535
3536 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
3537 2008-03-31, it's not needed anymore with `struct stat' definition
3538 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
3539 for the same reasons.
3540
3541 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
3542
3543 * m/sparc.h: Additional redefinitions for GNU/Linux.
3544
3545 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3546
3547 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
3548 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3549 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
3550 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
3551 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3552 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
3553 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3554 Likewise.
3555
3556 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
3557 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
3558 (mac_ax_number_of_characters): Add externs.
3559 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3560 [USE_MAC_TSM]: Likewise.
3561 (mac_handle_text_input_event) [MAC_OSX]:
3562 Handle kEventTextInputOffsetToPos for no active input area case.
3563 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3564 (mac_handle_document_access_event)
3565 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
3566 (install_application_handler) [MAC_OSX]: Register handlers for
3567 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3568 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3569 Register mac_handle_document_access_event.
3570
3571 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
3572 Make functions non-static.
3573
3574 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3575
3576 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
3577 (read_file_name_completion_ignore_case, insert_default_directory)
3578 (Qdefault_directory): Move to minibuffer.el.
3579 (Fread_file_name): Call the new `read-file-name' instead.
3580
3581 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3582
3583 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
3584 Make function non-static.
3585 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
3586 Remove function.
3587 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3588 Move to mactoolbox.c.
3589 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
3590
3591 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
3592 (mac_rect_make): New macro.
3593
3594 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
3595 instead of float.
3596 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3597 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
3598 (XSetBackground) [USE_CG_DRAWING]: Likewise.
3599 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
3600 CGRectMake.
3601 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3602 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
3603 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
3604 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3605 instead of WindowRef in argument type.
3606 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
3607 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
3608 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
3609 instead of DISPLAY. All uses changed.
3610 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
3611 (x_calc_absolute_position): Simplify so as not to use
3612 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
3613
3614 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3615 instead of WindowRef in argument type.
3616 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
3617 [TARGET_API_MAC_CARBON]: Remove externs.
3618 (create_apple_event, mac_event_parameters_to_lisp)
3619 [TARGET_API_MAC_CARBON]: Add externs.
3620
3621 * mactoolbox.c (Vmac_ts_script_language_on_focus)
3622 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
3623 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
3624 is clicked.
3625 (x_activate_menubar): Remove extern for saved_menu_event_location.
3626 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3627 Move from mac.c.
3628
3629 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3630
3631 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
3632 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
3633
3634 2008-04-23 Jason Rumney <jasonr@gnu.org>
3635
3636 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
3637 attributes only for local files.
3638
3639 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
3640 default to Qlocal.
3641
3642 2008-04-22 Juri Linkov <juri@jurta.org>
3643
3644 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
3645 read-buffer-to-switch instead of using the letter "B".
3646
3647 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3648
3649 * fileio.c (Qdefault_directory): New variable.
3650 (Fread_file_name): Use it to pass `dir' to the completion functions.
3651
3652 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
3653
3654 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
3655
3656 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
3657
3658 * keyboard.c (Vpre_help_message): Remove.
3659 (show_help_echo): Remove default C code.
3660
3661 * dired.c (directory_files_internal, file_name_completion):
3662 Only call ENCODE_FILE if the string is indeed decoded.
3663
3664 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3665
3666 * Makefile.in (TOOLKIT_DEFINES): Remove.
3667 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
3668
3669 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3670
3671 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
3672 (mactoolbox.o): New target.
3673
3674 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
3675 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
3676
3677 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
3678 Use mac_set_frame_window_background instead of XSetWindowBackground.
3679 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
3680 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
3681 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
3682 instead of SetWindowTitleWithCFString.
3683 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
3684 Move function to mactoolbox.c.
3685 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
3686 Use mac_set_window_modified instead of SetWindowModified.
3687 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
3688 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
3689 (Fx_focus_frame): Use mac_front_non_floating_window instead of
3690 FrontNonFloatingWindow. Use mac_activate_window instead of
3691 ActivateWindow. Use mac_active_non_floating_window instead of
3692 ActiveNonFloatingWindow.
3693 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
3694 Use mac_show_hourglass and mac_hide_hourglass.
3695 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
3696 instead of GetGlobalMouse.
3697 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
3698 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
3699 Use mac_bring_window_to_front instead of BringToFront.
3700 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
3701 mactoolbox.c.
3702 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
3703 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
3704 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
3705 mactoolbox.c.
3706
3707 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
3708 (XtPointer): Move typedef from macmenu.c.
3709 (enum button_type): Move enum from macmenu.c.
3710 (widget_value): Move typedef from macmenu.c.
3711 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
3712 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3713 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3714 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3715 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3716 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3717 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3718 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
3719 (Selection): Move typedef from macselect.c.
3720 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
3721 macterm.c.
3722 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
3723 (mac_is_window_collapsed, mac_bring_window_to_front)
3724 (mac_send_window_behind, mac_hide_window, mac_show_window)
3725 (mac_collapse_window, mac_front_non_floating_window)
3726 (mac_active_non_floating_window, mac_activate_window)
3727 (mac_move_window_structure, mac_move_window, mac_size_window)
3728 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
3729
3730 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
3731 (enum mac_menu_kind): Move enum to mactoolbox.c.
3732 (min_menu_id): Move variable to mactoolbox.c.
3733 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
3734 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
3735 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
3736 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
3737 [TARGET_API_MAC_CARBON]: Likewise.
3738 (XtPointer): Move typedef to macgui.h.
3739 (enum button_type): Move enum to macgui.h.
3740 (widget_value): Move typedef to macgui.h.
3741 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3742 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3743 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3744 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3745 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3746 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3747 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
3748 (popup_activated_flag): Make variable non-static.
3749 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
3750 (add_menu_item, fill_menu, dispose_menus):
3751 Move functions to mactoolbox.c.
3752 (restore_show_help_function, menu_target_item_handler)
3753 (install_menu_target_item_handler, mac_handle_dialog_event)
3754 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
3755 [TARGET_API_MAC_CARBON]: Likewise.
3756 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
3757 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3758 (find_and_call_menu_selection, name_is_separator): Make function
3759 non-static.
3760 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
3761 to mactoolbox.c.
3762 (set_frame_menubar): Don't call install_menu_quit_handler.
3763 (menu_item_selection): New variable.
3764 (mac_menu_show): Use create_and_show_popup_menu.
3765 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
3766 selection but set variable menu_item_selection. All uses changed.
3767 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
3768 Call install_menu_quit_handler. Move to mactoolbox.c.
3769
3770 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
3771 (Selection): Move typedef to macgui.h.
3772 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
3773 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
3774 Make variables non-static.
3775 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3776 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
3777 Make functions non-static.
3778 (Vmac_service_selection) [MAC_OSX]: Likewise.
3779 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
3780 (mac_valid_selection_target_p, mac_clear_selection)
3781 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3782 (mac_put_selection_value, mac_selection_has_target_p)
3783 (mac_get_selection_value, mac_get_selection_target_list)
3784 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
3785 Move functions to mactoolbox.c.
3786 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
3787 Likewise.
3788 (copy_scrap_flavor_data, mac_handle_service_event)
3789 (install_service_handler) [MAC_OSX]: Likewise.
3790 (syms_of_macselect) <Vmac_dnd_known_types>:
3791 Use mac_dnd_default_known_types.
3792
3793 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
3794 Move to mactoolbox.c.
3795 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
3796 (Fx_selection_owner_p): Add EXFUN.
3797 (install_window_handler, remove_window_handler, XSetWindowBackground):
3798 Remove externs.
3799 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
3800 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
3801 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
3802 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
3803 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
3804 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
3805 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
3806 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
3807 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
3808 (create_and_show_popup_menu, mac_get_selection_from_symbol)
3809 (mac_valid_selection_target_p, mac_clear_selection)
3810 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3811 (mac_put_selection_value, mac_selection_has_target_p)
3812 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
3813 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
3814 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
3815 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3816 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
3817 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3818 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
3819 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
3820 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
3821
3822 * mactoolbox.c: New file.
3823
3824 2008-04-18 Jason Rumney <jasonr@gnu.org>
3825
3826 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
3827
3828 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3829
3830 * character.c (Fmultibyte_char_to_unibyte):
3831 Return latin1 chars unchanged.
3832
3833 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
3834 relocated if it points to `name'.
3835
3836 2008-04-17 Kenichi Handa <handa@m17n.org>
3837
3838 * data.c (Faset): Allow setting a multibyte character in an
3839 ASCII-only unibyte string.
3840
3841 * lisp.h (STRING_SET_MULTIBYTE): New macro.
3842
3843 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
3844
3845 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
3846 done in config.h.
3847
3848 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
3849
3850 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
3851 (Fchar_direction): Add usage in the docstring.
3852
3853 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
3854
3855 * keyboard.c (read_key_sequence): Remove always-true checks.
3856
3857 2008-04-14 Jason Rumney <jasonr@gnu.org>
3858
3859 * w32font.c (w32font_open_internal): Set max_bounds.descent in
3860 compatibility struct, for better underline positioning.
3861
3862 2008-04-13 David Hansen <david.hansen@gmx.net>
3863
3864 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
3865 string.
3866
3867 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3868
3869 * m/hp800.h (XUINT, XSET): Remove.
3870
3871 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
3872
3873 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
3874 previous change.
3875
3876 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3877
3878 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
3879 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
3880
3881 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3882
3883 * keymap.h (map_keymap_canonical): Declare.
3884 * xmenu.c (single_keymap_panes): Use it.
3885
3886 2008-04-11 Glenn Morris <rgm@gnu.org>
3887
3888 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
3889 set the target's value to that of the alias.
3890
3891 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3892
3893 * term.c (set_tty_color_mode): Left over typo.
3894
3895 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
3896
3897 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
3898 only after check for file name handler functions. Signal, when
3899 native functionality is not supported.
3900 (syms_of_fileio): Declare it unconditionally.
3901
3902 2008-04-10 Jason Rumney <jasonr@gnu.org>
3903
3904 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
3905 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
3906
3907 * w32.c (logon_network_drive): Also logon to remote drives that
3908 are mapped to drive letters.
3909
3910 2008-04-10 Glenn Morris <rgm@gnu.org>
3911
3912 * xdisp.c (truncate-partial-width-windows): Doc fix.
3913
3914 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
3915
3916 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
3917 Move functions to minibuffer.el.
3918 (syms_of_fileio): Don't declare them.
3919
3920 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3921
3922 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
3923 (syms_of_minibuf): Remove its initialization.
3924
3925 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
3926
3927 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
3928
3929 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
3930
3931 2008-04-09 Jason Rumney <jasonr@gnu.org>
3932
3933 * makefile.w32-in (distclean): Delete makefile too.
3934 (maintainer-clean): New target.
3935
3936 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
3937
3938 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
3939 for new font backend and composite cases.
3940
3941 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
3942
3943 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
3944 Most of the code moved to run_timers.
3945 (do_pending_atimers): Call run_timers.
3946 (run_timers): New function.
3947
3948 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
3949 run atimers.
3950
3951 * process.c (wait_reading_process_output): The same as above.
3952
3953 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3954
3955 * minibuf.c (last_exact_completion): Remove variable.
3956 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
3957 (complete_and_exit_1, complete_and_exit_2)
3958 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3959 (Fdisplay_completion_list, display_completion_list_1)
3960 (Fminibuffer_completion_help, Fself_insert_and_exit)
3961 (Fexit_minibuffer, Fminibuffer_message): Move functions to
3962 minibuffer.el.
3963 (syms_of_minibuf): Remove corresponding initializations.
3964
3965 * keyboard.c (Qdeactivate_mark): New var.
3966 (command_loop_1): Use it to call `deactivate-mark'.
3967 (syms_of_keyboard): Initialize it.
3968
3969 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
3970 to another frame.
3971 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
3972 Don't call set_tty_color_mode.
3973 (store_frame_param): Reset previous_frame rather than call
3974 set_tty_color_mode.
3975 * term.c (set_tty_color_mode): Rewrite.
3976 * dispextern.h (set_tty_color_mode): New type.
3977 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
3978
3979 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
3980
3981 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
3982 for generic chars, which do not exist any more in emacs-unicode.
3983
3984 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
3985
3986 * coding.c (detect_coding_emacs_mule)
3987 (Ffind_operation_coding_system): Fix typo.
3988
3989 2008-04-08 Jason Rumney <jasonr@gnu.org>
3990
3991 * w32uniscribe.c (SNAME): Extract only symbol name.
3992
3993 * w32font.h (struct w32_metric_cache): New struct.
3994 (w32font_info): Use it.
3995 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
3996 (CACHE_BLOCKSIZE): New constants.
3997
3998 * w32font.c (Qja, Qko, Qzh): New symbols.
3999 (syms_of_w32font): Initialise them.
4000 (font_matches_spec): Use them to filter by language.
4001 (recompute_cached_metrics): Remove function.
4002 (compute_metrics, clear_cached_metrics): New functions.
4003 (w32font_encode_char): Use them to manage metric cache.
4004 (w32font_text_extents): Cache metrics for all glyphs on demand.
4005 Delay converting glyph indices to WORD until needed.
4006 (w32font_open_internal): Initialize metric cache to empty.
4007 (registry_to_w32_charset): Charset should always be a symbol.
4008 (fill_in_logfont, list_all_matching_fonts): Family should
4009 always be a symbol.
4010
4011 2008-04-06 Jason Rumney <jasonr@gnu.org>
4012
4013 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
4014 Give up if glyph indices not supported. Use uniscribe obtained
4015 ABC widths for individual metrics. Map glyph clusters back to
4016 characters using fClusterStart flag. Return number of glyphs
4017 produced, not chars processed.
4018 (uniscribe_shape): Map char at FROM to current glyph.
4019
4020 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4021
4022 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
4023 Use SetMenuItemHierarchicalMenu.
4024
4025 2008-04-05 Jason Rumney <jasonr@gnu.org>
4026
4027 * image.c (pbm_load): Allow color values up to 65535.
4028 Throw an error if max_color_idx is outside the supported range.
4029 Report an error when image size is invalid.
4030 Read two bytes at a time when raw images have max_color_idx above 255.
4031
4032 2008-04-05 Eli Zaretskii <eliz@gnu.org>
4033
4034 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4035 cFileName a file name that includes `?' characters, use the 8+3
4036 alias in cAlternateFileName instead.
4037
4038 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
4039
4040 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
4041 append "CCL: Quitted" when the CCL program is quitted.
4042 (setup_ccl_program): Initialize ccl->quit_silently to zero.
4043
4044 * ccl.h (struct ccl_program): New member quit_silently.
4045
4046 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
4047
4048 * search.c (compile_pattern_1): Treat non-nil and non-string of
4049 search-spaces-regexp as nil.
4050
4051 * minibuf.c (Fassoc_string): Tweak docstring.
4052
4053 2008-04-05 Eli Zaretskii <eliz@gnu.org>
4054
4055 * dired.c (Ffile_attributes): Support inode numbers wider than 32
4056 bits. Remove ugly WINDOWSNT-specific kludge introduced on
4057 2008-03-14 to force inode be positive.
4058
4059 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
4060 _S_* ones, since we now use our own sys/stat.h.
4061 (stat, fstat): Don't mangle the inode number.
4062 (init_user_info): Don't restrict UID and GID to 0-60000 range.
4063
4064 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
4065
4066 * frame.h (struct frame): Give one more bit to `visible' since we use
4067 values larger than 1 to indicate obscured frames on ttys.
4068
4069 * keymap.c (Qkeymap_canonicalize): New var.
4070 (Fmap_keymap_internal): New fun.
4071 (describe_map): Use keymap-canonicalize.
4072
4073 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
4074 (Fundo_boundary): Set them.
4075 (syms_of_undo): Initialize them.
4076 (record_point): Use them instead of last_point_position*.
4077 (last_undo_buffer): Change type.
4078
4079 2008-04-04 Jason Rumney <jasonr@gnu.org>
4080
4081 * w32font.c (w32font_text_extents): Use font's ascent and descent.
4082 (recompute_cached_metrics): Don't set ascent and descent per char.
4083
4084 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4085 (uniscribe_check_otf): Add GC protection before consing.
4086 Rearrange loop for counting features.
4087
4088 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4089
4090 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
4091 buffer with byte-size of source buffer.
4092
4093 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
4094
4095 * callint.c (Fcall_interactively): Handle temporary region even
4096 when shift-select-mode is off.
4097
4098 2008-04-03 Jason Rumney <jasonr@gnu.org>
4099
4100 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
4101
4102 2008-04-03 Kenichi Handa <handa@m17n.org>
4103
4104 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
4105 (CATEGORY_MASK_UTF_16): Likewise.
4106 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
4107 binary file.
4108 (detect_coding): Add null-byte detection for a binary file.
4109 (detect_coding_system): Likewise.
4110
4111 2008-04-03 Jason Rumney <jasonr@gnu.org>
4112
4113 * w32uniscribe.c: New file.
4114
4115 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
4116
4117 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
4118
4119 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
4120 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
4121 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
4122 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
4123 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
4124 (Qphonetic): New symbols.
4125 (syms_of_w32font): Initialize them.
4126 (font_supported_scripts): Use them.
4127 (w32font_list_family): List all charsets.
4128 (w32font_text_extents, recompute_cached_metrics): Fix metric
4129 calculations.
4130 (w32_enumfont_pattern_entity): Make full_type a DWORD.
4131 Give opentype fonts their own format.
4132 (font_matches_spec): New arguments backend and logfont.
4133 Handle :otf spec for uniscribe backend.
4134 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
4135 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4136
4137 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
4138 font backend.
4139 (globals_of_w32fns): Initialize uniscribe font backend.
4140
4141 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
4142 dependencies.
4143 (w32uniscribe.$(O)): New file to build.
4144 (FONT_OBJ): Include w32uniscribe.$(O).
4145 (LIBS): Add uniscribe libraries.
4146
4147 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
4148
4149 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
4150
4151 * callint.c (Vshift_select_mode): New var.
4152 (Finteractive): Document new ^ spec.
4153 (Fcall_interactively): Call handle-shift-selection if the ^ spec
4154 is present.
4155
4156 * keyboard.c (Vthis_command_keys_shift_translated): New var.
4157 (command_loop_1): Avoid running the direct display versions of
4158 forward-char and backward-char if shift-selection may occur.
4159 (read_key_sequence): Set Vthis_command_keys_shift_translated if
4160 shift-translation takes place.
4161
4162 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
4163 avoid clobbering by define-minor-mode.
4164
4165 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
4166 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
4167
4168 * syntax.c (Fforward_word): Add ^ interactive spec.
4169
4170 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
4171 (Fscroll_right): Add ^ interactive spec.
4172
4173 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
4174
4175 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
4176
4177 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
4178
4179 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
4180
4181 2008-03-31 Juri Linkov <juri@jurta.org>
4182
4183 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
4184
4185 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
4186
4187 * gtkutil.c (xg_set_geometry): Fix indentation.
4188 (xg_resize_outer_widget): Remove.
4189 (x_wm_size_hint_off): Fix indentation.
4190 (xg_frame_set_char_size): Call flush_and_sync after
4191 gtk_window_resize.
4192 (x_wm_set_size_hint): Pass NULL as geometry window to
4193 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
4194 Add menu bar and tool bar height to base height.
4195 (xg_update_frame_menubar, free_frame_menubar)
4196 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4197 (update_frame_tool_bar, free_frame_tool_bar):
4198 Change xg_resize_outer_widget to xg_frame_set_char_size.
4199
4200 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
4201
4202 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
4203 (Fdbus_call_method): New parameter TIMEOUT.
4204 (dbus-send-signal): Optimize UNGCPRO call.
4205
4206 2008-03-29 Juri Linkov <juri@jurta.org>
4207
4208 * window.c (Fdisplay_buffer): Move call to
4209 Vsplit_window_preferred_function out of conditions that check
4210 if window is eligible for vertical splitting.
4211 When Vsplit_window_preferred_function is non-nil, call it and use
4212 its non-nil return value as window. Otherwise, continue doing
4213 vertical splitting using Fsplit_window with arg horflag=nil.
4214 (syms_of_window) <Vsplit_window_preferred_function>: Change the
4215 default value from `split-window' to nil.
4216
4217 2008-03-29 Juri Linkov <juri@jurta.org>
4218
4219 * callint.c (Fcall_interactively): Revert 2008-03-16 change
4220 for interactive code letters 'b' and 'B'.
4221
4222 2008-03-29 Eli Zaretskii <eliz@gnu.org>
4223
4224 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
4225 multibyte string.
4226
4227 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4228
4229 * keyboard.c (pending_funcalls): New var.
4230 (timer_check): Run it.
4231 (syms_of_keyboard): Initialize it.
4232 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
4233 (Vdelete_terminal_functions): New vars.
4234 (syms_of_terminal): Initialize them.
4235 (Fdelete_terminal): Run delete-terminal-functions.
4236 * xdisp.c (safe_eval): Rewrite.
4237 (safe_call2): New fun.
4238 * frame.c (Qdelete_frame_functions): New var.
4239 (syms_of_frame): Initialize it.
4240 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
4241 * lisp.h (safe_call2, pending_funcalls): Declare.
4242
4243 2008-03-28 Andreas Schwab <schwab@suse.de>
4244
4245 * indent.c (Fmove_to_column): Move declaration before statements.
4246
4247 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
4248
4249 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
4250 (struct frame): Use bit fields for boolean vars.
4251
4252 * process.c (server_accept_connection): Simplify naming.
4253 (emacs_get_tty_pgrp): Use SDATA.
4254
4255 * coding.c (decode_coding_object): Fix last change.
4256
4257 2008-03-27 Jason Rumney <jasonr@gnu.org>
4258
4259 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
4260
4261 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
4262
4263 * charset.c (Fdefine_charset_internal): Change the way of
4264 registering charsets in Vcharset_order_list.
4265 (syms_of_charset): Make the charset `eight-bit' supplementary.
4266
4267 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
4268
4269 * regex.c (EXTEND_BUFFER): Change order of pointer addition
4270 operations, to avoid having the difference between pointers
4271 overflow.
4272
4273 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4274
4275 * indent.c (check_display_width): New fun.
4276 (scan_for_column): Use it.
4277
4278 * data.c (syms_of_data): Mark most-positive-fixnum and
4279 most-negative-fixnum as constants.
4280
4281 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
4282
4283 * indent.c (scan_for_column): Extract from current_column_1.
4284 Merge with the same code from Fmove_to_column.
4285 (current_column_1, Fmove_to_column): Use it.
4286
4287 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4288
4289 * keymap.c (map_keymap_internal): New fun.
4290 (map_keymap): Use it.
4291 (Fmap_keymap_internal): New fun.
4292 (Fmap_keymap): Remove left-out test from before make_save_value.
4293
4294 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
4295
4296 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
4297 Use XCAR/XCDR.
4298
4299 * process.h (struct Lisp_Process): Remove filter_multibyte.
4300 * process.c (QCfilter_multibyte): Remove.
4301 (setup_process_coding_systems): Don't use filter_multibyte.
4302 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
4303 (read_process_output): Don't adjust multibyteness to filter_multibyte.
4304 (Fset_process_filter_multibyte): Change the coding-system to
4305 approximate the previous behavior.
4306 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
4307 coding-system.
4308
4309 * coding.c (decode_coding_object): When not decoding into a buffer,
4310 obey the coding system's preference of (uni|multi)byte.
4311
4312 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4313
4314 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
4315 every char is changed and has a different byte-length.
4316 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
4317 Fix int -> EMACS_INT.
4318
4319 2008-03-23 David Hansen <david.hansen@gmx.net>
4320
4321 * dbusbind.c (xd_read_message): Remove extra copying of message
4322 strings. Check for NULL `interface' or `member'.
4323
4324 2008-03-22 Eli Zaretskii <eliz@gnu.org>
4325
4326 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4327 cFileName a file name that includes `?' characters, use the 8+3
4328 alias in cAlternateFileName instead.
4329
4330 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
4331
4332 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
4333
4334 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4335
4336 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
4337 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
4338 work on current_buffer only instead (that was already the case
4339 for some of the code anyway).
4340 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
4341 (temp_set_point, temp_set_point_both): Use EMACS_INT.
4342 (SET_PT, SET_PT_BOTH): Adjust.
4343 * intervals.h (set_point, temp_set_point, set_point_both)
4344 (temp_set_point_both): Remove redundant declarations.
4345
4346 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4347
4348 * fileio.c (Finsert_file_contents):
4349 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
4350 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
4351 when buffer != current_buffer anyway.
4352
4353 2008-03-20 Andreas Schwab <schwab@suse.de>
4354
4355 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
4356 as default.
4357
4358 2008-03-19 Jason Rumney <jasonr@gnu.org>
4359
4360 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
4361 (syms_of_w32fns): Initialize them.
4362 (HOURGLASS_ID): New constant.
4363 (x_window_to_frame): Don't check hourglass_window.
4364 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
4365 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
4366 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
4367 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
4368 Only change the cursor if hourglass is not active.
4369 (Fx_create_frame): Initialize frame's current_cursor.
4370 (hourglass_atimer): Remove.
4371 (hourglass_started): New function.
4372 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
4373 (show_hourglass): Adapt to w32, changing argument to frame.
4374
4375 * w32term.h (struct w32_output): Remove hourglass_window.
4376 Add current_cursor.
4377
4378 * eval.c (call_debugger, Fsignal):
4379 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
4380 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
4381 (Fexecute_extended_command, cancel_hourglass_unwind):
4382 * minibuf.c (read_minibuf):
4383 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
4384
4385 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
4386
4387 * window.c (run_funs): New fun.
4388 (run_window_configuration_change_hook): Use it to run the buffer-local
4389 and the global part of the hook.
4390
4391 * xdisp.c (format_mode_line_unwind_data): Add window argument.
4392 (unwind_format_mode_line): Restore selected window.
4393 (x_consider_frame_title, Fformat_mode_line): Set selected window.
4394
4395 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4396
4397 * editfns.c (Fchar_equal): Check they are valid characters.
4398
4399 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
4400
4401 2008-03-17 Andreas Schwab <schwab@suse.de>
4402
4403 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
4404 against a charset.
4405
4406 * lisp.h (Fbuffer_list): Declare.
4407
4408 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
4409
4410 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
4411 handlebox_widget is != 0.
4412
4413 2008-03-16 Juri Linkov <juri@jurta.org>
4414
4415 * callint.c (Fcall_interactively): For interactive code letters
4416 'b' and 'B' put the buffer list into the list of default "future"
4417 values of the minibuffer.
4418
4419 2008-03-16 Andreas Schwab <schwab@suse.de>
4420
4421 * keyboard.c (read_key_sequence): Fix downcasing of letters with
4422 modifiers.
4423
4424 * regex.c (re_match_2_internal): Correct matching of a charset
4425 against latin-1 characters.
4426
4427 2008-03-16 Kenichi Handa <handa@m17n.org>
4428
4429 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
4430 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
4431 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
4432 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
4433 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
4434 CHAR_STRING_ADVANCE.
4435 (produce_chars): Fix for the case that the source and the
4436 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
4437 instead of CHAR_STRING_ADVANCE.
4438 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
4439 STRING_CHAR_ADVANCE.
4440
4441 2008-03-15 Andreas Schwab <schwab@suse.de>
4442
4443 * regex.c (re_match_2_internal): Correct matching of eight bit
4444 characters in unibyte strings.
4445
4446 2008-03-15 Martin Rudalics <rudalics@gmx.at>
4447
4448 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
4449 at end of range when it coincides with the end of the buffer.
4450
4451 2008-03-14 Eli Zaretskii <eliz@gnu.org>
4452
4453 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
4454
4455 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
4456
4457 2008-03-14 Jason Rumney <jasonr@gnu.org>
4458
4459 * editfns.c (initial_tz): New variable.
4460 (syms_of_editfns): Initialize it.
4461 (Fset_time_zone_rule): Set it when first called.
4462 Use it when TZSTRING is nil.
4463
4464 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
4465 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
4466 (monitor_from_point_fn, get_monitor_info_fn): New globals.
4467 (globals_of_w32fns): Initialize them.
4468 (compute_tip_xy): Use them to position tooltips.
4469
4470 2008-03-14 Glenn Morris <rgm@gnu.org>
4471
4472 * emacs.c (main): Revert previous change.
4473 (standard_args): Revert -internal-script back to -scriptload,
4474 and remove the long-option form.
4475
4476 2008-03-13 Glenn Morris <rgm@gnu.org>
4477
4478 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
4479 Remove option -enable-font-backend.
4480
4481 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4482
4483 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
4484
4485 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
4486
4487 * xterm.c (x_connection_closed): For GTK: If this is the last
4488 terminal just exit without closing the display.
4489
4490 2008-03-11 Jason Rumney <jasonr@gnu.org>
4491
4492 * w32font.c (w32font_full_name): Use floor to round.
4493
4494 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
4495
4496 * sound.c (alsa_configure): Declare vol at beginning of block.
4497
4498 * fontset.c (Ffontset_info): Remove extra semicolon.
4499
4500 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4501
4502 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
4503 size of resulting string.
4504
4505 2008-03-10 Jason Rumney <jasonr@gnu.org>
4506
4507 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
4508
4509 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4510
4511 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
4512 Don't pretend as if characters with display property haven't been
4513 consumed for string-replacing-string case.
4514
4515 2008-03-08 Kim F. Storm <storm@cua.dk>
4516
4517 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
4518 (get_next_display_element, next_element_from_string)
4519 (next_element_from_ellipsis, next_element_from_buffer): Use it.
4520
4521 2008-03-08 Andreas Schwab <schwab@suse.de>
4522
4523 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
4524
4525 2008-03-06 Jason Rumney <jasonr@gnu.org>
4526
4527 * w32font.c (w32_registry): Take font_type argument. Use ANSI
4528 when charset not specified. Only translate ANSI to unicode when
4529 font_type is truetype.
4530 (w32font_coverage_ok): New function.
4531 (add_font_entity_to_list): Use it to filter unsuitable fonts.
4532
4533 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
4534
4535 * lread.c (Fread_char): Resolve modifiers.
4536 (Fread_char_exclusive): Likewise.
4537
4538 * character.c (char_resolve_modifier_mask): New function.
4539 (char_string): Use char_resolve_modifier_mask.
4540 (Fchar_resolve_modifiers): New function.
4541 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
4542 function.
4543
4544 2008-03-04 Jason Rumney <jasonr@gnu.org>
4545
4546 * makefile.w32-in: Always include w32font.c in the build.
4547 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
4548
4549 2008-03-04 Andreas Schwab <schwab@suse.de>
4550
4551 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
4552 (versionclean): Likewise.
4553
4554 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
4555
4556 * .cvsignore: Add oo.
4557
4558 2008-03-03 Andreas Schwab <schwab@suse.de>
4559
4560 * coding.c (decode_coding_object): Inhibit gap shrinking while
4561 decoding in place.
4562
4563 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
4564
4565 * w32term.c: Remove unused include "gnu.h".
4566 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
4567
4568 * gnu.h: Rename to ...
4569 * emacs-icon.h: ... this.
4570 * xterm.c: Use emacs-icon.h instead of gnu.h.
4571 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
4572
4573 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
4574
4575 * w32font.c: Include math.h.
4576
4577 2008-03-03 Jason Rumney <jasonr@gnu.org>
4578
4579 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
4580 Compute options separately.
4581 (w32font_open_internal): Set glyph_idx before caching metrics.
4582
4583 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
4584 Define if system headers don't.
4585 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
4586 (w32font_encode_char): Don't declare here.
4587
4588 * w32font.c (Quniscribe, QCformat): New symbols.
4589 (syms_of_w32font): Define them.
4590 (w32font_has_char): Indicate uncertainty.
4591 (w32font_encode_char): Encode as glyph point. Make static.
4592 (recompute_cached_metrics): New function.
4593 (w32font_open_internal): Use it. Set font to use glyph points
4594 initially. Set format based on type of font.
4595 (w32font_text_extents, w32font_draw): Optionally use glyph points.
4596 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
4597 on it. Set format based on information available here.
4598 (add_font_entity_to_list): Identify backend based on opentype_only.
4599
4600 2008-03-02 Andreas Schwab <schwab@suse.de>
4601
4602 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
4603
4604 * coding.c (decode_coding_big5, produce_chars):
4605 Fix typos in last change.
4606
4607 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
4608
4609 * gnu.h: New icon.
4610
4611 2008-03-02 Kenichi Handa <handa@m17n.org>
4612
4613 * coding.c (decode_coding_utf_8): When eol-type of CODING is
4614 `dos', don't decode '\r' if that is the last in the source.
4615 (decode_coding_utf_16, decode_coding_emacs_mule)
4616 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4617 (decode_coding_raw_text, decode_coding_charset): Likewise.
4618 (produce_chars): Don't decode EOL here. Use EMACS_INT.
4619
4620 2008-03-01 Jason Rumney <jasonr@gnu.org>
4621
4622 * w32font.c (w32font_full_name): Report point size for scalable fonts.
4623
4624 2008-03-01 Kim F. Storm <storm@cua.dk>
4625
4626 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
4627
4628 2008-03-01 Jason Rumney <jasonr@gnu.org>
4629
4630 * w32font.c (w32font_full_name): New function.
4631 (w32font_open_internal): Use it.
4632
4633 2008-03-01 Kim F. Storm <storm@cua.dk>
4634
4635 * dispnew.c (line_draw_cost): Fix invalid glyph check.
4636
4637 2008-03-01 Jason Rumney <jasonr@gnu.org>
4638
4639 * font.c (font_unparse_fcname): Increase len when style is a symbol.
4640
4641 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
4642
4643 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
4644 xg_frame_resized when the event is for the edit widget.
4645
4646 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
4647
4648 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
4649 set_char_size.
4650 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
4651 operations on widgets here. Just set frame size if needed.
4652 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
4653 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
4654 (x_wm_set_size_hint): Set size hints on the edit widget only, not
4655 the whole frame.
4656 (xg_create_tool_bar): Move attachement of the tool bar to
4657 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
4658 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
4659
4660 2008-03-01 Jason Rumney <jasonr@gnu.org>
4661
4662 * w32fns.c (w32_msg_pump): Disable debug code.
4663
4664 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4665
4666 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
4667
4668 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
4669
4670 * xdisp.c (next_overlay_string): Don't set
4671 overlay_strings_at_end_processed_p if we're currently reading from
4672 a display string.
4673
4674 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
4675
4676 * xdisp.c (get_overlay_strings_1): Fix typo.
4677
4678 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * xdisp.c (get_overlay_strings_1): Add missing argument type.
4681
4682 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
4683
4684 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
4685
4686 * xdisp.c (display_mode_element): Cancel the previous change.
4687 (decode_mode_spec): Likewise.
4688 (handle_auto_composed_prop): Don't make composition if it->string
4689 is a string.
4690
4691 2008-02-27 Kim F. Storm <storm@cua.dk>
4692
4693 * lisp.h (GLYPH): Change type from int to struct with separate char
4694 and face_id members.
4695 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
4696 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
4697 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
4698 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
4699 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
4700 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
4701 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
4702 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
4703 handle new Lisp glyph code encoding, either an integer or a cons.
4704
4705 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
4706 (GLYPH_ALIAS): Delete.
4707 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
4708 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
4709 (GLYPH_FROM_CHAR): Replace macro by ...
4710 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
4711
4712 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
4713 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
4714 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
4715 (GLYPH_INVALID_P): New macro.
4716 (spec_glyph_lookup_face): Update prototype.
4717
4718 * dispnew.c (line_draw_cost): Adapt to new glyph type.
4719 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
4720 new glyph code encoding.
4721 (spec_glyph_lookup_face): No return value; update passed glyph instead.
4722 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
4723
4724 * xdisp.c (get_next_display_element, next_element_from_display_vector):
4725 Adapt to new glyph type and new glyph code encoding.
4726
4727 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
4728
4729 * indent.c (current_column, current_column_1, Fmove_to_column)
4730 (compute_motion): Adapt to new glyph code encoding.
4731
4732 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
4733
4734 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
4735
4736 * process.c (wait_reading_process_output): Check for window
4737 changes caused by timers.
4738 Suggested by Johan Bockgård.
4739
4740 2008-02-27 Glenn Morris <rgm@gnu.org>
4741
4742 * emacs.c (USAGE1): Add `--disable-font-backend'.
4743
4744 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
4745
4746 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
4747 is made to the buffer.
4748
4749 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
4750
4751 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
4752 (face_at_string_position):
4753 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4754 (face_at_string_position):
4755 * xdisp.c (display_string, next_overlay_change):
4756 * buffer.h (overlays_at):
4757 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
4758 Update callers.
4759
4760 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
4761
4762 * editfns.c (Fformat): Doc fix.
4763
4764 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
4765
4766 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
4767 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
4768 (Ffont_otf_alternates, Fquery_font): Doc fixes.
4769
4770 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4771
4772 * buffer.c (Fbuffer_swap_text): New function.
4773 (syms_of_buffer): Defsubr it.
4774
4775 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
4776
4777 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
4778
4779 2008-02-25 Jason Rumney <jasonr@gnu.org>
4780
4781 * w32font.c (w32font_draw): Draw one character at a time when padding.
4782
4783 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4784
4785 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
4786 Handle a nil arg. Use run_window_configuration_change_hook.
4787 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
4788 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
4789 Use run_window_configuration_change_hook.
4790
4791 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4792
4793 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
4794 1-pixel width.
4795
4796 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4797
4798 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
4799 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
4800 if the glyph in the font is zero pixel with.
4801
4802 * dispextern.h (struct glyph_string): New member padding_p.
4803
4804 * w32font.c (w32font_draw): Pay attention to s->padding_p.
4805
4806 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
4807
4808 * xfont.c (xfont_draw): Pay attention to s->padding_p.
4809
4810 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
4811
4812 * font.c: If the font driver doesn't have `shape' function, return Qnil.
4813
4814 2008-02-25 Jason Rumney <jasonr@gnu.org>
4815
4816 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
4817
4818 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
4819
4820 Allow fine-grained image-cache flushing.
4821 * dispextern.h (struct image): Add `dependencies' field.
4822 (clear_image_caches): Change arg to Lisp_Object.
4823 * image.c (make_image): Initialize `dependencies' field.
4824 (clear_image_cache): Change arg to allow fine-grained flushing.
4825 Perform the flush even if image-cache-eviction-delay is nil.
4826 (clear_image_caches): Change arg to Lisp_Object.
4827 (Fclear_image_cache): Expand meaning of the argument.
4828 (mark_image): Mark `dependencies' field.
4829 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
4830 (lface_hash): Use XHASH rather than XFASTINT.
4831 (face_at_buffer_position): Fix int -> EMACS_INT position.
4832 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
4833 (select_frame_for_redisplay): Remove code duplication.
4834 (redisplay_internal): Adapt arg to call to clear_image_caches.
4835
4836 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
4837
4838 * s/vms4-0.h:
4839 * s/vms4-2.h:
4840 * s/vms4-4.h:
4841 * s/vms5-5.h: Remove, unused.
4842
4843 * s/irix5-2.h:
4844 * s/irix6-0.h:
4845 * s/riscos5.h:
4846 * s/mach-bsd4-3.h:
4847 * m/mips4.h: Remove files for obsolete systems.
4848
4849 * Makefile.in:
4850 * filelock.c:
4851 * unexmips.c:
4852 * m/hp9000s300.h:
4853 * m/iris4d.h:
4854 * s/aix3-1.h:
4855 * s/hpux.h:
4856 * s/msdos.h:
4857 * s/usg5-0.h:
4858 * s/usg5-2-2.h:
4859 * s/usg5-2.h:
4860 * s/usg5-3.h: Remove references to obsolete variables.
4861
4862 * s/irix5-0.h: Remove, move all the contents ...
4863 * s/irix6-5.h: ... here. Simplify.
4864 * config.in: Regenerate.
4865
4866 2008-02-24 Jason Rumney <jasonr@gnu.org>
4867
4868 * w32term.c (x_draw_glyph_string_background): Clear the background
4869 manually when cleartype is in use.
4870 (x_draw_glyph_string_foreground): Draw text transparently when
4871 cleartype is in use.
4872
4873 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
4874 a font into it unless we have to.
4875
4876 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4877
4878 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
4879 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
4880
4881 2008-02-18 Jason Rumney <jasonr@gnu.org>
4882
4883 * w32fns.c (Fw32_shell_execute): Encode parameters.
4884
4885 2008-02-09 Eli Zaretskii <eliz@gnu.org>
4886
4887 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
4888
4889 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
4890
4891 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
4892
4893 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
4894
4895 * xterm.c (x_set_offset): Don't change the gravity if
4896 CHANGE_GRAVITY is -1.
4897
4898 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
4899
4900 * fileio.c (auto_save_error_occurred): New var.
4901 (auto_save_error): Set it.
4902 (Fdo_auto_save): Don't overwrite the error message if an auto-save
4903 error occurred.
4904
4905 2008-02-23 Eli Zaretskii <eliz@gnu.org>
4906
4907 * w32.c (globals_of_w32): Add initializations for
4908 g_b_init_get_sid_sub_authority and
4909 g_b_init_get_sid_sub_authority_count.
4910
4911 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
4912
4913 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
4914 (font_parse_xlfd): Use them for sanity check.
4915 (Finternal_set_font_style_table): Make sure the table is bijective.
4916
4917 Consolidate the image_cache to the terminal struct.
4918 * termhooks.h (P_): Remove redundant def.
4919 (struct terminal): New field `image_cache'.
4920 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
4921 of FRAME_X_IMAGE_CACHE.
4922 * xterm.h (struct x_display_info): Remove image_cache field.
4923 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4924 * w32term.h (struct w32_display_info): Remove image_cache field.
4925 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4926 * macterm.h (struct mac_display_info): Remove image_cache field.
4927 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4928 * xterm.c (x_term_init):
4929 * w32term.c (w32_term_init):
4930 * macterm.c (mac_term_init): Set the image_cache in the terminal.
4931 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
4932 Remove declarations.
4933 (clear_image_caches, mark_image_cache): New declarations.
4934 * xfaces.c (clear_face_cache):
4935 * xdisp.c (redisplay_internal): Use clear_image_caches.
4936 * image.c (clear_image_cache): Don't check that a frame is on
4937 a window-system before checking if it shares the same cache.
4938 (clear_image_caches): New function.
4939 (Fclear_image_cache): Use it.
4940 (mark_image): Move from allo.c.
4941 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
4942 * alloc.c (mark_image, mark_image_cache): Move to image.c.
4943 (mark_object): Don't call mark_image_cache for frames.
4944 (mark_terminals): Call mark_image_cache.
4945
4946 * lisp.h (Fdelete_terminal): Declare.
4947
4948 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
4949 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
4950 wrong_type_argument.
4951
4952 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
4953
4954 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4955 malayalam.el, and tamil.el. Add sinhala.el.
4956
4957 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
4958
4959 * xterm.c (x_connection_closed): Consolidate identical tests.
4960 (x_delete_terminal): Don't crash if called via x_connection_closed.
4961
4962 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
4963
4964 * xdisp.c (decode_mode_spec): New arg string.
4965 (display_mode_element): Adjust for the above change.
4966
4967 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4968
4969 * callint.c (Fcall_interactively): Use AREF.
4970
4971 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4972
4973 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
4974
4975 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
4976
4977 * xfns.c (Fx_show_tip): Set string to " " if empty.
4978
4979 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
4980
4981 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
4982 with Qt.
4983
4984 2008-02-17 Kenichi Handa <handa@m17n.org>
4985
4986 * ftfont.c (ftfont_shape): Return Lispy number.
4987
4988 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
4989 for GCs.
4990 (Finternal_set_font_selection_order): Call font_update_sort_order
4991 only when enable_font_backend is set.
4992 (realize_x_face): Set face->font_info to that of default face only
4993 when enable_font_backend is set.
4994
4995 * xdisp.c (handle_composition_prop): Set it->c to the fist
4996 characte of the composed region.
4997 (fill_composite_glyph_string): Set base_face->font_info to
4998 s->font_info. Get a face for ascii from base_face->ascii_face.
4999 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
5000 with a face already decided.
5001 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
5002 non-negative.
5003 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
5004 call font_prepare_composition unconditionally.
5005
5006 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
5007
5008 * xterm.h (struct x_display_info): New member font.
5009
5010 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
5011 (x_set_mouse_face_gc, x_new_font): Likewise.
5012 (x_term_init): Setup display_info->font.
5013 (x_delete_terminal): Free display_info->font.
5014
5015 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
5016
5017 * ftxfont.c (ftxfont_default_fid): Delete it.
5018 (ftxfont_open): Set xfont->fid to 0.
5019 (ftxfont_end_for_frame): Clear data specific to the frame and the
5020 font-driver.
5021
5022 * xftfont.c (xftfont_default_fid): Delete it.
5023 (xftfont_open): Set xfont->fid to 0.
5024
5025 * fontset.c (FONTSET_OBJLIST): New macro.
5026 (fontset_find_font): Update font-object list of the fontset.
5027 (free_realized_fontset): New function.
5028 (free_face_fontset): Call free_realized_fontset.
5029 (Ffont_info): Call font_close_object only when enable_font_backend
5030 is set.
5031
5032 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
5033 [HAVE_NTGUI]: Include w32term.h.
5034 [MAC_OS]: Include macterm.ch.
5035 (font_otf_ValueRecord): Use make_number.
5036 (font_finish_cache): Fix handling of reference count.
5037 (font_clear_cache): Update num_fonts.
5038 (font_open_entity): Update smallest_char_width and
5039 smallest_font_height of the frame.
5040 (font_close_object): Update num_fonts.
5041 (Fclear_font_cache): Fix finding the target cache data.
5042
5043 2008-02-16 Glenn Morris <rgm@gnu.org>
5044
5045 * fontset.c (Finternal_char_font): Fix compilation warning.
5046
5047 2008-02-16 Eli Zaretskii <eliz@gnu.org>
5048
5049 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
5050 instead of char arrays. Enlarge the size of array passed to
5051 get_token_information.
5052
5053 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
5054 warnings.
5055
5056 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
5057
5058 * .gdbinit: Don't set `args', it breaks gdb --args.
5059
5060 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
5061
5062 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
5063 within a narrowed buffer.
5064
5065 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
5066
5067 * coding.c (decode_coding_object, encode_coding_object):
5068 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
5069
5070 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5071
5072 * coding.c (coding_set_destination): Use BEG_BYTE rather than
5073 hardcoding 1.
5074 (detect_coding_system):
5075 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
5076 (string_char_to_byte, string_byte_to_char, insert_from_gap):
5077 * insdel.c (insert_from_gap):
5078 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
5079 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
5080 (string_to_multibyte):
5081 * character.c (chars_in_text, multibyte_chars_in_text):
5082 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
5083
5084 * character.h (FETCH_STRING_CHAR_ADVANCE)
5085 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
5086 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
5087 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
5088
5089 * casefiddle.c (casify_region): Only call after-change and composition
5090 functions on the part of the region that was changed.
5091
5092 * keyboard.c (read_avail_input):
5093 * frame.c (Fdelete_frame): Call Fdelete_terminal.
5094
5095 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5096
5097 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
5098 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
5099
5100 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
5101
5102 * w32menu.c (push_submenu_start, push_submenu_end)
5103 (push_left_right_boundary, push_menu_pane, push_menu_item):
5104 * keyboard.c (read_key_sequence): Don't pass args with side effects
5105 to AREF, it fails when compiling with -DENABLE_CHECKING.
5106
5107 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
5108
5109 * Makefile.in (${lispsource}international/charprop.el):
5110 Delete this target.
5111
5112 * search.c (boyer_moore): Fix incorrect synching of the trunk and
5113 emacs-unicode-2.
5114
5115 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5116
5117 * terminal.c (Fdelete_terminal): Clean up the `force' path.
5118
5119 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5120
5121 * frame.c (Qnoelisp): New symbol.
5122 (syms_of_frame): Initialize it.
5123 (Fdelete_frame): Use it to distinguish a mere `force' passed from
5124 someharmles Elisp code, from a strong `force' from x_connection_closed.
5125 * frame.h (Qnoelisp): Declare.
5126 * xterm.c (x_connection_closed): Pass `noelisp'.
5127
5128 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
5129 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
5130 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
5131 rather than `int' for the type of `type'.
5132
5133 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
5134
5135 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
5136
5137 * Makefile.in (GNUC): Remove support for gcc-1.x.
5138
5139 2008-02-10 Richard Stallman <rms@gnu.org>
5140
5141 * lisp.h (ASET): Use AREF, not ASLOT.
5142
5143 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5144
5145 * lisp.h (ASET): Check bounds.
5146
5147 2008-02-10 Glenn Morris <rgm@gnu.org>
5148
5149 * buffer.c (mode-name): Doc fix.
5150
5151 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5152
5153 * Makefile.in:
5154 * emacs.c:
5155 * gmalloc.c:
5156 * keyboard.c:
5157 * lisp.h:
5158 * m/ibm370aix.h:
5159 * process.c:
5160 * regex.c:
5161 * s/hpux.h:
5162 * sysdep.c:
5163 * sysselect.h:
5164 * systty.h:
5165 * unexec.c:
5166 * w32term.c:
5167 * xsmfns.c:
5168 * xterm.c: Remove code that deals with obsolete variables.
5169
5170 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
5171
5172 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
5173 nothing else needs it anymore.
5174
5175 2008-02-09 Eli Zaretskii <eliz@gnu.org>
5176
5177 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
5178 instead of unibyte_char_to_multibyte.
5179
5180 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5181
5182 * s/gnu-linux.h: Remove commented out code.
5183
5184 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
5185
5186 * Makefile.in: Update what RMS says about using autoconf.
5187 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
5188 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
5189 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
5190 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
5191
5192 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5193
5194 * keymap.c (Fkey_description): Move side effect outside of macro call.
5195
5196 * xfaces.c (Finternal_make_lisp_face):
5197 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
5198
5199 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
5200 (syms_of_fontset): Use ASET.
5201
5202 * fns.c (concat): Move side effect outside of macro call.
5203 (hash_clear): Use ASET.
5204
5205 2008-02-08 Richard Stallman <rms@gnu.org>
5206
5207 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
5208 If FORCE, and frame has a surrogate minibuffer for another frame,
5209 delete the other frame first.
5210
5211 2008-02-07 Timo Savola <timo.savola@iki.fi>
5212
5213 * xterm.c (x_detect_focus_change): Handle embed client message.
5214 (handle_one_xevent): Ditto.
5215 (handle_one_xevent): If embedded and we get a button press/release,
5216 request focus.
5217 (xembed_set_info, xembed_send_message): New functions.
5218 (x_make_frame_visible): Call xembed_set_info if embedded.
5219 (x_make_frame_invisible): Call xembed_set_info if embedded.
5220 (x_term_init): Initialize Xatom_XEMBED.
5221 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
5222 (x_iconify_frame): Ditto.
5223
5224 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
5225 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
5226 (enum xembed_modifier, enum xembed_accelerator): New.
5227 (xembed_set_info, xembed_send_message): Declare.
5228 (FRAME_X_EMBEDDED_P): New.
5229
5230 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
5231 gtk_plug_new.
5232
5233 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
5234 window ID of a frame.
5235 (x_window): Reparent frame if embedded.
5236 (Fx_create_frame): Don't set border width if embedded.
5237
5238 * emacs.c (USAGE3): Add --parent-id.
5239 (standard_args): Ditto.
5240
5241 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
5242
5243 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
5244
5245 2008-02-07 Jim Meyering <meyering@redhat.com>
5246
5247 Use "do...while (0)", not "if (1)...else" in macro definitions.
5248 The latter provokes a warning from gcc about the empty else, when
5249 followed by ";". Also, without that trailing semicolon, it would
5250 silently swallow up any following statement.
5251 * syntax.h (SETUP_SYNTAX_TABLE)
5252 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
5253 * buffer.h (DECODE_POSITION): Likewise.
5254 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
5255 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
5256 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
5257 (FETCH_CHAR_ADVANCE): Likewise.
5258 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
5259
5260 2008-02-07 Jim Meyering <meyering@redhat.com>
5261
5262 * lread.c [lint]: Don't include <sys/inode.h>.
5263
5264 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
5265
5266 * xselect.c (x_handle_dnd_message):
5267 * xmenu.c (digest_single_submenu, xmenu_show):
5268 * xdisp.c (with_echo_area_buffer_unwind_data)
5269 (format_mode_line_unwind_data, unwind_format_mode_line)
5270 (display_menu_bar):
5271 * eval.c (Ffetch_bytecode):
5272 * doc.c (store_function_docstring):
5273 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
5274 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
5275 * buffer.c (add_overlay_mod_hooklist): Use ASET.
5276
5277 2008-02-07 Kenichi Handa <handa@m17n.org>
5278
5279 * ftxfont.c (ftxfont_open): Don't set
5280 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
5281
5282 * ftfont.c (ftfont_open): Fix previous change.
5283
5284 2008-02-06 Jason Rumney <jasonr@gnu.org>
5285
5286 * w32font.c (w32font_text_extents): Fill in lbearing metric.
5287 Use cached metrics for ASCII characters.
5288 (w32font_open_internal): Don't set font's owning_frame.
5289 Cache metrics for ASCII characters.
5290
5291 * w32font.h (struct w32font_info): Add ascii_metrics.
5292 Remove owning_frame.
5293
5294 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
5295
5296 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
5297 to negative value.
5298
5299 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
5300
5301 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
5302
5303 * charset.c (syms_of_charset): Set QCtest and Qeq.
5304
5305 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
5306
5307 * process.c (Fstart_process):
5308 * callproc.c (Fcall_process): Handle the case where
5309 Funhandled_file_name_directory returns nil.
5310
5311 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
5312 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
5313 * font.c (check_gstring): Use them and AREF to access the vector before
5314 we know it's really a gstring.
5315 (Ffont_shape_text): Fix typo.
5316 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
5317
5318 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
5319 Declare.
5320
5321 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
5322
5323 2008-02-05 Jason Rumney <jasonr@gnu.org>
5324
5325 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
5326 Set smallest_font_height and smallest_char_width in display info.
5327
5328 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
5329
5330 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
5331
5332 2008-02-05 Miles Bader <miles@gnu.org>
5333
5334 * xfaces.c (get_lface_attributes, merge_named_face)
5335 (lookup_named_face, lookup_derived_face, realize_named_face):
5336 Revert 2008-02-01 change by cyd@stupidchicken.com.
5337
5338 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
5339
5340 * fontset.c (Ffontset_info): Handle the case of inhibitting the
5341 fallback fonts.
5342 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
5343
5344 2008-02-04 Jason Rumney <jasonr@gnu.org>
5345
5346 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
5347 set full_name.
5348 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5349
5350 2008-02-03 Jason Rumney <jasonr@gnu.org>
5351
5352 * makefile.w32-in (OBJ1): Include font.o here.
5353 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
5354
5355 2008-02-02 Jason Rumney <jasonr@gnu.org>
5356
5357 * makefile.w32-in (temacs): Bump EMHEAP to 21.
5358
5359 2008-02-01 Jason Rumney <jasonr@gnu.org>
5360
5361 * s/cygwin.h: Define VIRT_ADDR_VARIES.
5362
5363 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
5364
5365 2008-02-01 Andreas Schwab <schwab@suse.de>
5366
5367 * Makefile.in (shortlisp, lisp): Update for rename of
5368 ../lisp/language/myanmar.el.
5369
5370 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
5371
5372 * xfaces.c (get_lface_attributes): Delete function.
5373 (merge_named_face, lookup_named_face, lookup_derived_face)
5374 (realize_named_face): Call lface_from_face_name directly, and use
5375 the fact that merge_face_vectors does not alter its FROM argument.
5376
5377 2008-02-01 Jason Rumney <jasonr@gnu.org>
5378
5379 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
5380 input in the default locale. Handle non-Unicode multibyte input.
5381
5382 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5383
5384 * fontset.c (reorder_font_vector): Exclude nil elements from the
5385 font group. Don't try multiple fonts.
5386 (fontset_font): Adjust for the above change.
5387 (Finternal_char_font): Return nil if the found font doesn't
5388 contain the character ch.
5389
5390 * Makefile.in (lisp, shortlisp): Add cham.el.
5391
5392 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5393
5394 * font.h (FONTP): Make it return 1 also for a font-object.
5395
5396 * .gdbinit (xfontset): New function.
5397
5398 * font.c (font_find_for_lface): Check if the character C is
5399 supported or not only for the first font.
5400
5401 * fontset.c (reorder_font_vector): Fix typo.
5402 (fontset_find_font): Don't add a font-spec specifying a script.
5403 Use 0 (not Qt) for the indication of empty font-group. Change the
5404 format of RFONT-DEF. Return Qt if no font in the font-group
5405 support the character.
5406 (fontset_font): Adjust for the above change. If no font was
5407 found the character, remember that.
5408 (face_for_char): Adjust for the change of RFONT-DEF.
5409 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
5410 no font for the target.
5411 (Finternal_char_font): Adjust for the change of RFONT-DEF.
5412
5413 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5414
5415 * font.c (font_load_for_face): Handle the case that the font in
5416 face->lface is a string.
5417
5418 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5419
5420 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
5421
5422 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5423
5424 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
5425 Fix previous change. If the frame is not on a window system,
5426 signal an error.
5427
5428 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5429
5430 * coding.c (decode_coding_object, encode_coding_object): Adjust
5431 marker positions after conversion.
5432
5433 * lisp.h (struct Lisp_Marker): New member need_adjustment.
5434
5435 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5436
5437 * font.c (font_find_for_lface): Fix the handling of the return
5438 value of font_has_char.
5439 (Ffont_shape_text): Fix previous change.
5440
5441 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
5442 (fontset_ref_and_range): Delete it.
5443 (fontset_find_font): Call char_table_ref_and_range instead of
5444 FONTSET_REF_AND_RANGE.
5445 (make_fontset): Don't setup font groups of Latin here.
5446 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
5447 (new_fontset_from_font): Make the specified font the default for
5448 all Latin characters.
5449
5450 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5451
5452 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
5453 is on a window system before accessing the fontset of the frame.
5454
5455 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5456
5457 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
5458
5459 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
5460 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
5461
5462 * font.c (Ffont_shape_text): If the font driver doesn't have a
5463 shaper function, make zero-width glyphs to have at least one-pixel
5464 width. Fix setting of `to' field of glyphs.
5465
5466 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5467
5468 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
5469 glyphs.
5470
5471 * font.h (struct font_driver): Improve docstring of member `shape'.
5472
5473 2008-02-01 Kenichi Handa <handa@m17n.org>
5474
5475 * composite.c (syms_of_composite): Fix docstring of
5476 auto-composition-function.
5477
5478 * font.h (LGLYPH_SIZE): New macro.
5479
5480 * font.c (Ffont_fill_gstring): Stop filling when a character not
5481 supported by the font is found.
5482 (Ffont_shape_text): When a shape callback function returns nil,
5483 try at most two more times with larger gstring.
5484 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
5485
5486 * xdisp.c (handle_auto_composed_prop): Change the argument to
5487 auto-composition-function.
5488
5489 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
5490 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
5491 Lispy glyph and store it in the lgstring.
5492
5493 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
5494
5495 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
5496
5497 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5498
5499 * font.c (Ffont_shape_text): Avoid unnecessary composition.
5500
5501 * fontset.c (Vfont_encoding_charset_alist): New variable.
5502 (syms_of_fontset): DEFVAR it.
5503 (reorder_font_vector, fontset_find_font): Optimize for the case of
5504 no need of reordering.
5505 (face_for_char): Map the charset property by
5506 Vfont_encoding_charset_alist.
5507
5508 2008-02-01 Jason Rumney <jasonr@gnu.org>
5509
5510 * w32font.c (logfonts_match): Don't check adstyle here.
5511 (font_matches_spec): Check here against physical font instead.
5512 (add_font_entity_to_list): Avoid some substitutions.
5513
5514 * font.c (font_parse_fcname): Default weight and slant to normal.
5515 (font_score): Prefer normal fonts if weight or slant unspecified.
5516 (font_score) [WINDOWSNT]: Scale weight difference down to closer
5517 match freetype scores.
5518
5519 2008-02-01 Jason Rumney <jasonr@gnu.org>
5520
5521 * w32font.c (w32font_text_extents): Don't use the frame stored in the
5522 font, as it may have been deleted.
5523 (w32_enumfont_pattern_entity): Map generic family to adstyle using
5524 most common hyphenless variation.
5525 (logfonts_match): Check generic family.
5526 (font_matches_spec): Don't check generic family here.
5527 (fill_in_logfont): Set generic family based on adstyle.
5528
5529 * w32font.h (w32font_get_cache): Update declaration.
5530
5531 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5532
5533 * ftfont.c (ftfont_get_cache): Adjust the argument type.
5534
5535 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
5536 If none of the new drivers are available, call font_update_drivers
5537 with the old drivers.
5538
5539 * w32font.c (w32font_get_cache): Adjust the argument type.
5540
5541 * xfont.c (xfont_get_cache): Adjust the argument type.
5542
5543 * font.h (struct font_driver): Change argument type of get_cache.
5544
5545 * xftfont.c (xftfont_start_for_frame): Delete prototype.
5546
5547 * font.c (Ffont_get): Fix arguments to Fassoc.
5548 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
5549 (font_clear_cache): New function.
5550 (font_list_entities, font_matching_entity): Use font_get_cache.
5551 (font_update_drivers): Call font_clear_cache when finishing a driver.
5552
5553 * fontset.c (fontset_find_font): Fix previous change.
5554
5555 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5556
5557 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
5558 dpyinfo->font_table.
5559 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
5560 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
5561
5562 * font.c (font_at): Handle the case that the arg C is negative.
5563 Handle the unibyte case.
5564 (Ffont_at): Call font_at with the arg C -1.
5565
5566 * xdisp.c (handle_auto_composed_prop): Don't get a character at
5567 the position here, and call font_at with the arg C -1.
5568 Don't check the range of the existing composition at the point.
5569
5570 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5571
5572 * fontset.c (fontset_add): New args charset_id and family.
5573 Change caller.
5574 (load_font_get_repertory, fontset_find_font): Assume that
5575 font_spec is always a font-spec object.
5576 (Fset_fontset_font): Always store a font-spec object in a fontset.
5577
5578 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
5579 instead of get_property_and_range.
5580
5581 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5582
5583 * xftfont.c (struct xftfont_info): Delete the member ft_face.
5584 (xftfont_open): Don't keep locking face.
5585 (xftfont_close): Don't unlock face.
5586 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
5587
5588 * fontset.c (fontset_find_font): Don't prefer a font of
5589 supplementary charset.
5590
5591 2008-02-01 Kenichi Handa <handa@m17n.org>
5592
5593 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
5594 script, langsys_tag to langsys, new member script.
5595 (OTF_TAG_STR): Terminate by '\0'.
5596 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
5597 listing to the script specified in that property. Fix arg to
5598 OTF_check_features.
5599
5600 2008-02-01 Jason Rumney <jasonr@gnu.org>
5601
5602 * w32font.h: New file.
5603
5604 * w32font.c: Include it.
5605 (struct w32font_info): Add owning_frame field. Move to w32font.h.
5606 (w32font_open): Set owning_frame.
5607 (w32font_text_extents): Use owning_frame.
5608 (struct font_callback_data): Add opentype_only field.
5609 (add_font_entity_to_list): Use it to filter fonts.
5610 Don't check against full name.
5611 (w32font_list_internal): New function.
5612 (w32font_list): Use it.
5613 (w32font_match_internal): New function.
5614 (w32font_match): Use it.
5615 (w32font_open_internal): New function.
5616 (w32font_open): Use it.
5617 (w32font_get_cache, w32font_close, w32font_has_char)
5618 (w32font_encode_char, w32font_text_extents, w32font_draw):
5619 Make non-static.
5620
5621 * makefile.w32-in (w32font.o): Depend on w32font.h.
5622
5623 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5624
5625 * charset.c (Fdefine_charset_internal): Record a supplementary
5626 charset at the tail of Vcharset_order_list.
5627
5628 * font.c (Ffont_shape_text): Fix the return value.
5629
5630 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
5631
5632 * xdisp.c (handle_auto_composed_prop): Fix previous change.
5633
5634 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5635
5636 * ftfont.c (struct OpenTypeSpec): New struct.
5637 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
5638 (ftfont_get_open_type_spec): New function.
5639 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
5640
5641 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
5642
5643 2008-02-01 Jason Rumney <jasonr@gnu.org>
5644
5645 * w32font.c (add_font_entity_to_list): Compare only the beginning
5646 of full name.
5647
5648 2008-02-01 Kenichi Handa <handa@m17n.org>
5649
5650 * xdisp.c (handle_auto_composed_prop): Simplify the code.
5651 Never return HANDLED_RECOMPUTE_PROPS.
5652
5653 2008-02-01 Kenichi Handa <handa@m17n.org>
5654
5655 * font.c (font_gstring_produce): Delete it.
5656
5657 * composite.h (COMPOSITION_METHOD):
5658 Handle COMPOSITION_WITH_GLYPH_STRING.
5659
5660 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5661
5662 * xfont.c (Qx): Delete.
5663 (syms_of_xfont): Don't initialize Qx.
5664
5665 * composite.h (enum composition_method):
5666 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
5667
5668 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5669
5670 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
5671 (choose_face_font): Accept new form of font-spec.
5672
5673 * frame.h (font_driver_list): Declare it unconditionally.
5674 (struct frame): Define members font_driver_list and font_data_list
5675 unconditionally.
5676
5677 * fontset.c: Include "font.h" unconditionally.
5678 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
5679 (Fset_fontset_font): Accept a font-spec object.
5680
5681 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
5682 PIXEL_SIZE part a wild card.
5683
5684 * dispextern.h (struct glyph_string): Define members clip and
5685 num_clips unconditionally.
5686 (struct face): Define members font_info and extra unconditionally.
5687
5688 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
5689 ftfont_info only when HAVE_LIBOTF is defined.
5690
5691 2008-02-01 Andreas Schwab <schwab@suse.de>
5692
5693 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
5694 and end.
5695
5696 2008-02-01 Jason Rumney <jasonr@gnu.org>
5697
5698 * w32font.c (w32font_driver): Add new fields.
5699
5700 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5701
5702 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
5703 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
5704 (LIBES): Add @M17N_FLT_CFLAGS@.
5705
5706 * composite.c (compose_text): Don't treat the new style
5707 composition specially.
5708
5709 * emacs.c (main): Call syms_of_font unconditionally.
5710
5711 * font.h (FONT_ENTITY_NOT_LOADABLE)
5712 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
5713 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
5714 (struct font_driver): New member shape.
5715 (font_registry_charsets): Extern it.
5716 (font_find_for_lface, font_prepare_composition): Adjust prototype.
5717 (font_otf_capability, font_drive_otf): Delete their externs.
5718
5719 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
5720 (font_charset_alist, font_registry_charsets): Move from xfont.c
5721 and rename.
5722 (font_prop_validate_otf): New function.
5723 (font_property_table): Register it for QCotf.
5724 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
5725 (font_drive_otf): Delete.
5726 (font_prepare_composition): New arg F. Adjust for the change of
5727 lispy gstring.
5728 (font_find_for_lface): New arg C.
5729 (font_load_for_face): Adjust for the change of font_find_for_lface.
5730 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
5731 lispy gstring.
5732 (Ffont_shape_text): New function.
5733 (Fopen_font): If the font size is not given, use 12-pixel.
5734 (Ffont_at): New arg STRING.
5735 (syms_of_font): Initalize font_charset_alist.
5736 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
5737 conditionally.
5738
5739 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
5740 fonts of the same font-spec. Change the format of RFONT-DEF.
5741 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
5742 Adjust for the change of RFONT-DEF.
5743 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
5744
5745 * ftfont.h: New file.
5746
5747 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
5748 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
5749 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5750 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
5751 font_otf_capability and font_drive_otf, set ftfont_shape.
5752 (ftfont_list): Adjust for the change of :otf property value.
5753 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
5754 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
5755 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
5756 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
5757 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
5758 (otf_gstring, gstring, m17n_flt_initialized): New variables.
5759
5760 * w32term.c (x_draw_composite_glyph_string_foreground):
5761 Adjust for the change of lispy gstring.
5762
5763 * xdisp.c (handle_composition_prop): Adjust for the change of
5764 lispy gstring. Call a function for auto-composition with the
5765 third arg it->window.
5766 (fill_composite_glyph_string): Adjust for the change of lispy string.
5767 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
5768
5769 * xfaces.c (set_font_frame_param): Adjust for the change of
5770 font_find_for_lface.
5771
5772 * xfont.c (x_font_charset_alist): Move to font.c and rename.
5773 (xfont_registry_charsets): Likewise. Change caller.
5774 (syms_of_xfont): Don't handle x_font_charset_alist.
5775
5776 * xftfont.c: Include "ftfont.h".
5777 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
5778 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5779 (xftfont_close) [HAVE_LIBOTF]: Close otf.
5780 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
5781 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
5782 Set xftfont_driver.shape to xftfont_shape.
5783
5784 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5785 the change of lispy gstring.
5786
5787 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5788
5789 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
5790
5791 2008-02-01 Jason Rumney <jasonr@gnu.org>
5792
5793 * w32font.c (w32font_draw): Fill background manually.
5794
5795 2008-02-01 Jason Rumney <jasonr@gnu.org>
5796
5797 * font.c (Qfontp): Remove unused symbol.
5798 (QCantialias): New symbol.
5799 (syms_of_font): Define it.
5800 (font_property_table): Set a validator for QCantialias.
5801
5802 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
5803 Define if not already.
5804 (QCfamily): Share with xfaces.c.
5805 (Qstandard, Qsubpixel, Qnatural): New symbols.
5806 (syms_of_w32font): Define them. Don't define QCfamily here.
5807 (w32_antialias_type, lispy_antialias_type): New functions.
5808 (w32_enumfont_pattern_entity): New arg requested_font.
5809 Set antialias parameter if non-default was requested.
5810 (fill_in_logfont): Fill in lfQuality if :antialias specified.
5811
5812 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5813
5814 * lread.c (read1): Undo the previous change.
5815
5816 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
5817
5818 * frame.c (Fdelete_frame): Call font_update_drivers only when
5819 USE_FONT_BACKEND is defined.
5820
5821 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5822
5823 * font.h (struct font_bitmap): New member bits_per_pixel.
5824 (struct font_driver): New members start_for_frame and end_for_frame.
5825 (struct font_data_list): New struct.
5826 (font_put_frame_data, font_get_frame_data): Extern them.
5827
5828 * frame.h (struct frame): New member font_data_list.
5829
5830 * font.c (font_update_drivers): Call driver->start_for_frame and
5831 driver->end_for_frame at proper timings.
5832 (font_put_frame_data, font_get_frame_data): New functions.
5833 (Ffont_spec): Add usage in the docstring.
5834
5835 * frame.c (make_frame): Initialize f->font_data_list to NULL.
5836 (Fdelete_frame): Call font_update_drivers.
5837
5838 * xftfont.c (struct xftface_info): Delete the member xft_draw.
5839 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
5840 (xftfont_get_xft_draw): New function.
5841 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
5842 (xftfont_end_for_frame): New function.
5843 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
5844
5845 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
5846 Change argument. Cache GCs in the per-frame data.
5847 (struct ftxfont_frame_data): New struct.
5848 (ftxfont_draw_bitmap): New arg gc_fore and flush.
5849 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
5850 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
5851 (ftxfont_end_for_frame): New function.
5852 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
5853
5854 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
5855
5856 2008-02-01 Kenichi Handa <handa@m17n.org>
5857
5858 * xselect.c (Vselection_coding_system)
5859 (Vnext_selection_coding_system): Delete them.
5860 (syms_of_xselect): Don't declare selection-coding-system and
5861 next-selection-coding-system. They are declared in select.el.
5862
5863 2008-02-01 Jason Rumney <jasonr@gnu.org>
5864
5865 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
5866
5867 * w32fns.c: Include imm.h.
5868 (get_composition_string_fn, get_ime_context_fn): New optional
5869 system functions.
5870 (globals_of_w32fns): Load them from imm32.dll.
5871 (ignore_ime_char): New flag.
5872 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
5873 WM_IME_ENDCOMPOSITION messages.
5874
5875 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
5876 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
5877
5878 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5879
5880 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
5881 (READCHAR_REPORT_MULTIBYTE): New macro.
5882 (readchar): New 2nd arg MULTIBYTE.
5883 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
5884 Make symbol's name multibyte according to the multibyteness of the
5885 source.
5886
5887 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5888
5889 * xfaces.c (face_for_overlay_string): Call lookup_face with
5890 correct arguments (fix of synching with the trunk).
5891
5892 2008-02-01 Kenichi Handa <handa@m17n.org>
5893
5894 * font.c (font_prop_validate_symbol, font_prop_validate_style)
5895 (font_prop_validate_non_neg, font_prop_validate_spacing):
5896 Delete argument prop_index.
5897 (font_property_table): Change arguments to validater. Change Callers.
5898 (font_lispy_object): Delete.
5899 (font_at): Use font_find_object instead fo font_lispy_object.
5900
5901 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5902
5903 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
5904 and file names.
5905
5906 2008-02-01 Jason Rumney <jasonr@gnu.org>
5907
5908 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
5909 (font_matches_spec): Remove debug output.
5910 (add_font_entity_to_list): Avoid using substituted fonts.
5911
5912 2008-02-01 Jason Rumney <jasonr@gnu.org>
5913
5914 * doc.c (Fsnarf_documentation):
5915 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
5916
5917 2008-02-01 Miles Bader <miles@gnu.org>
5918
5919 * dispextern.h (struct glyph_row): Only define "clip" field if
5920 HAVE_WINDOW_SYSTEM is defined.
5921
5922 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
5923
5924 Fix up multi-tty merge.
5925
5926 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
5927 and indentation.
5928
5929 * xfaces.c (free_realized_face, clear_face_gcs):
5930 Include font_done_for_face in the input_blocked section, just in case.
5931
5932 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
5933 (get_char_face_and_encoding): Undo last change and remove the *other*
5934 duplicate definition (i.e. keep the one that's better scoped and that
5935 includes code for the font-backend).
5936
5937 * terminal.c (create_terminal): Default keyboard_coding to
5938 `no-conversion' and terminal_coding to `undecided'.
5939
5940 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
5941
5942 * fontset.c (free_realized_fontsets): Check that the table entry does
5943 contain a fontset before trying to compare it to `base'.
5944
5945 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
5946 syms_of_charset, and syms_of_coding earlier because init_window_once
5947 now needs Vcoding_system_hash_table to be setup.
5948
5949 * coding.h (default_buffer_file_coding): Remove.
5950
5951 * coding.c (default_buffer_file_coding): Remove.
5952 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
5953 than ->symbol, and use the terminal-local coding system.
5954 (syms_of_coding): Don't setup the coding-systems that are not
5955 terminal-local.
5956 (Fdefine_coding_system_internal): Use XCAR/XCDR.
5957
5958 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
5959 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
5960
5961 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
5962 in chartab.c and were re-added here by mistake.
5963 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
5964
5965 * doc.c (Fsnarf_documentation):
5966 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
5967 src to etc.
5968
5969 * ChangeLog.10: Add mistakenly removed entry.
5970
5971 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
5972
5973 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
5974
5975 2008-02-01 Miles Bader <miles@gnu.org>
5976
5977 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
5978 Add extra args to FACE_FOR_CHAR.
5979
5980 2008-02-01 Kenichi Handa <handa@m17n.org>
5981
5982 * keymap.c (where_is_internal_1): If key is a cons, store the copy
5983 in sequence.
5984
5985 * chartab.c (map_sub_char_table, map_char_table): If the range
5986 contains just one character, call the function with that character
5987 even if the depth is not 3.
5988
5989 2008-02-01 Jason Rumney <jasonr@gnu.org>
5990
5991 * w32font.c (w32font_text_extents): Calculate metrics for the
5992 whole string.
5993
5994 2008-02-01 Jason Rumney <jasonr@gnu.org>
5995
5996 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
5997
5998 2008-02-01 Jason Rumney <jasonr@gnu.org>
5999
6000 * w32term.c (x_set_glyph_string_clipping): Use
6001 get_glyph_string_clip_rects.
6002 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6003 Adjust for the change of struct glyph_string.
6004
6005 * w32font.c (w32font_draw): Do clipping here.
6006
6007 2008-02-01 Kenichi Handa <handa@m17n.org>
6008
6009 * xftfont.c (xftfont_draw): Adjust for the change of struct
6010 glyph_string.
6011
6012 * xterm.c (x_set_glyph_string_clipping): Use
6013 get_glyph_string_clip_rects.
6014 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6015 Adjust for the change of struct glyph_string.
6016
6017 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
6018 the resulting clip(s}.
6019 (expose_overlaps): Add arg r. Change callers. Set it to
6020 row->clip temporarily.
6021 (expose_window): Redraw rows overlapping the exposed area.
6022
6023 * dispextern.h (struct glyph_row): New member clip.
6024 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
6025 clip_height, new member clip, and num_clips.
6026
6027 2008-02-01 Kenichi Handa <handa@m17n.org>
6028
6029 * data.c (Fchar_or_string_p): Fix docstring.
6030
6031 2008-02-01 Kenichi Handa <handa@m17n.org>
6032
6033 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
6034 create a temporal XftDraw object.
6035
6036 2008-02-01 Kenichi Handa <handa@m17n.org>
6037
6038 * font.c (Ffontp): Fix docstring.
6039
6040 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
6041 strong evidence of ISO-2022.
6042
6043 2008-02-01 Kenichi Handa <handa@m17n.org>
6044
6045 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
6046 SYNTAX_ENTRY_FOLLOW_PARENT.
6047
6048 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
6049
6050 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
6051 its type.
6052 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
6053 Update to the new type of weak_hash_tables and next_weak.
6054
6055 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
6056 a plain C pointer to Lisp_Hash_Table.
6057
6058 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
6059 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
6060 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
6061 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
6062 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
6063 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
6064 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
6065 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
6066 (GC_EQ): Remove since they've been identical to their non-GC_
6067 alter-egos ever since the markbit was eradicated.
6068
6069 * alloc.c:
6070 * buffer.c:
6071 * buffer.h:
6072 * data.c:
6073 * fileio.c:
6074 * filelock.c:
6075 * fns.c:
6076 * frame.h:
6077 * lisp.h:
6078 * macterm.c:
6079 * print.c:
6080 * process.c:
6081 * w32fns.c:
6082 * w32menu.c:
6083 * w32term.c:
6084 * xfns.c:
6085 * xmenu.c:
6086 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
6087
6088 2008-02-01 Kenichi Handa <handa@m17n.org>
6089
6090 * chartab.c (map_sub_char_table): Make it work for the top-level
6091 char-table. Fix handling of parent char-table.
6092 (map_char_table): Adjust for the above change.
6093
6094 2008-02-01 Jason Rumney <jasonr@gnu.org>
6095
6096 * w32font.c (Qgdi): Rename from Qw32.
6097
6098 2008-02-01 Jason Rumney <jasonr@gnu.org>
6099
6100 * w32bdf.c (get_quoted_string): Make function static.
6101
6102 2008-02-01 Kenichi Handa <handa@m17n.org>
6103
6104 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
6105 bigger ascent and descent than those of the font, use them as
6106 font's ascent and descent.
6107
6108 2008-02-01 Kenichi Handa <handa@m17n.org>
6109
6110 * Makefile.in (${lispsource}international/charprop.el): Move this
6111 target within "#ifdef HAVE_UNIDATA" and "#endif".
6112
6113 2008-02-01 Kenichi Handa <handa@m17n.org>
6114
6115 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
6116 (shortlisp): Add ../lisp/language/tai-viet.el.
6117
6118 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
6119
6120 * Makefile.in (${lispsource}international/charprop.el): Depend on
6121 temacs${EXEEXT}.
6122
6123 2008-02-01 Jason Rumney <jasonr@gnu.org>
6124
6125 * w32font.c (w32font_close): Delete the GDI font object.
6126
6127 * w32menu.c: Include character.h.
6128
6129 * w32proc.c: Likewise.
6130
6131 * w32select.c: Likewise.
6132
6133 * makefile.w32-in (w32proc.o): Depend on character.h.
6134
6135 2008-02-01 Jason Rumney <jasonr@gnu.org>
6136
6137 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
6138
6139 * w32menu.c (syms_of_w32menu): Likewise.
6140
6141 * w32proc.c (syms_of_ntproc): Likewise.
6142
6143 * w32select.c (syms_of_w32select): Likewise.
6144
6145 * w32term.c (syms_of_w32term): Likewise.
6146
6147 2008-02-01 Jason Rumney <jasonr@gnu.org>
6148
6149 * w32font.c (w32font_draw): Delete brush after using it.
6150
6151 2008-02-01 Jason Rumney <jasonr@gnu.org>
6152
6153 * w32font.c (w32font_open): Don't set font_idx.
6154 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
6155 to font settings.
6156 (w32font_draw): Fill background explicitly.
6157
6158 2008-02-01 Jason Rumney <jasonr@gnu.org>
6159
6160 * w32term.c (w32_initialize): Don't call w32font_initialize.
6161
6162 * w32font.c (w32font_info): Remove subranges.
6163 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
6164 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
6165 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
6166 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
6167 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
6168 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
6169 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
6170 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
6171 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
6172 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
6173 New symbols.
6174 (font_callback_data): New struct.
6175 (w32font_list, w32font_match): Use it.
6176 (w32font_open): Don't populate subranges.
6177 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
6178 (w32font_encode_char): Always return unicode code-point as-is.
6179 (w32font_text_extents): Supply a tranformation matrix to
6180 GetGlyphOutline. Never look up by glyph index. Avoid looping
6181 twice. Use unicode version of GetTexExtentPoint32 instead of
6182 glyph index version.
6183 (set_fonts_frame): Remove.
6184 (w32_enumfont_pattern_entity): Add frame parameter, use it to
6185 set frame parameter. Use backward compatible fake foundries.
6186 Save generic family in extra slot under QCfamily. Make width slot
6187 constant. Save QCspacing value. Save list of scripts instead of
6188 binary subranges.
6189 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
6190 (add_font_entity_to_list): Use font_callback_data struct. Filter
6191 unwanted fonts.
6192 (add_one_font_entity_to_list): Use font_callback_data struct.
6193 (w32_registry): Default to iso10646_1.
6194 (fill_in_logfont): Use dpi from extra slot. Don't bother with
6195 string font registries. Don't fill in font name if it is a generic
6196 family name, fill family instead. Use spacing, family and script
6197 extra info to fill pitch, family and charset fields.
6198 (list_all_matching_fonts): Use font_callback_data struct.
6199 (unicode_range_for_char): Remove.
6200 (font_supported_scripts): New function.
6201 (w32font_initialize): Remove.
6202 (syms_of_w32font): Update which symbols are defined.
6203
6204 2008-02-01 Jason Rumney <jasonr@gnu.org>
6205
6206 * font.c (font_pixel_size): Reverse assq_no_quit args.
6207
6208 * w32term.h (FONT_WIDTH): Report max width, not average.
6209 (FONT_MAX_WIDTH): Remove.
6210 (FONT_AVG_WIDTH): New macro.
6211
6212 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
6213 redefinition of FONT_WIDTH.
6214
6215 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
6216 (w32_cache_char_metrics): Use FONT_WIDTH.
6217
6218 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
6219
6220 2008-02-01 Jason Rumney <jasonr@gnu.org>
6221
6222 * w32font.c (w32font_open): Make lfHeight negative.
6223
6224 * w32fns.c (x_default_font_parameter): Use new style font name.
6225 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
6226
6227 2008-02-01 Jason Rumney <jasonr@gnu.org>
6228
6229 * w32font.c (QCsubranges): New symbol.
6230 (w32font_open, w32font_has_char): Get subranges from subproperty
6231 of extra.
6232 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
6233 (syms_of_w32font): Define :subranges symbol.
6234
6235 * font.c (font_put_extra): Expose externally.
6236
6237 * font.h (font_put_extra): Move declaration from font.c.
6238
6239 * font.c (Ffont_get): Use font driver to determine otf capability.
6240 (adjust_anchor): Check if driver defines anchor_point before using.
6241
6242 * w32font.c (w32font_open): Handle size, height and pixel_size better.
6243 (w32font_draw): Use options.
6244 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
6245 Fix detection of truetype fonts.
6246 (registry_to_w32_charset): Handle charsets other than iso8859-1
6247 expressed as lisp symbols.
6248 (w32_registry): Express charset as lisp symbol.
6249 (fill_in_logfont): Reverse pixel and point height logic.
6250 Don't set width here. Set quality to default.
6251
6252 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
6253 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
6254
6255 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6256 Remove redundant loop and allocation.
6257
6258 * makefile.w32-in (font.o, w32font.o): New objects.
6259 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
6260 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
6261
6262 * xdisp.c (fill_composite_glyph_string): Make the first arg to
6263 STORE_XCHARB a valid l-value.
6264
6265 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
6266 calculations for non-Truetype fonts.
6267 (x_draw_glyph_string): Sync with xterm.c.
6268 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6269 Remove redundant code.
6270 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
6271
6272 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
6273 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
6274
6275 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
6276 (x_to_w32_charset, w32_to_x_charset): Expose externally.
6277
6278 * w32font.c: New file for w32 font backend.
6279
6280 2008-02-01 Kenichi Handa <handa@m17n.org>
6281
6282 * term.c: Don't include "buffer.h" twice.
6283
6284 2008-02-01 Kenichi Handa <handa@m17n.org>
6285
6286 * character.c (Funibyte_string): New function.
6287 (syms_of_character): Defsubr it.
6288
6289 2008-02-01 Jason Rumney <jasonr@gnu.org>
6290
6291 * w32term.c [USE_FONT_BACKEND]:
6292 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
6293 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
6294 (x_draw_glyph_string, x_draw_glyph_string_foreground)
6295 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
6296 (x_free_frame_resources): Sync with xterm.c.
6297
6298 2008-02-01 Andreas Schwab <schwab@suse.de>
6299
6300 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
6301 char-table size.
6302
6303 2008-02-01 Kenichi Handa <handa@m17n.org>
6304
6305 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
6306
6307 2008-02-01 Kenichi Handa <handa@m17n.org>
6308
6309 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
6310 font_otf_gpos, add font_drive_otf.
6311
6312 * fontset.c (fontset_find_font): Pay attention to font size
6313 specified for a font.
6314 (reorder_font_vector): Check contents of font_def.
6315
6316 * font.c (struct otf_list): Delete it.
6317 (otf_list): Make it a lisp variable.
6318 (otf_open): Use lispy otf_list.
6319 (generate_otf_features): Rename from parse_gsub_gpos_spec.
6320 (check_otf_features): New function.
6321 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6322 New functions.
6323 (font_drive_otf): New function merging font_otf_gsub and
6324 font_otf_gpos.
6325 (font_open_for_lface): New arg spec. Change argument order.
6326 (font_load_for_face): Adjust for the change of font_open_for_lface.
6327 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
6328 Ffont_otf_gpos.
6329 (syms_of_font): Staticpro otf_list. Delete defsubr of
6330 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
6331
6332 * xfaces.c (set_font_frame_param): Adjust for the change of
6333 font_open_for_lface.
6334
6335 * font.h (font_open_for_lface): Adjust prototype.
6336 (struct font_driver): Delete members otf_gsub and otf_gpos, add
6337 member otf_drive.
6338 (font_otf_gsub, font_otf_gpos): Delete externs.
6339 (font_drive_otf): Extern it.
6340
6341 2008-02-01 Kenichi Handa <handa@m17n.org>
6342
6343 * font.c (font_at): If the window W is not on a window system,
6344 return Qnil.
6345
6346 * coding.c (produce_chars, encode_coding): Don't call
6347 insert_from_gap if no characters to produce.
6348
6349 2008-02-01 Kenichi Handa <handa@m17n.org>
6350
6351 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
6352 Fclear_face_cache.
6353
6354 * xfaces.c (face_for_font): Check also face->font==font->font.font.
6355
6356 2008-02-01 Miles Bader <miles@gnu.org>
6357
6358 * emacs.c (main): Change default value of `enable_font_backend' to 1.
6359 Parse "--disable-font-backend" option.
6360 (standard_args): Add "--disable-font-backend" option.
6361
6362 2008-02-01 Kenichi Handa <handa@m17n.org>
6363
6364 * fontset.c (fontset_find_font): New function.
6365 (fontset_font): Use fontset_find_font.
6366 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
6367 Register the specified font for all Latin characters.
6368 (new_fontset_from_font): Register the specified font for all Latin
6369 characters.
6370 (dump_fontset): For a realized fontset, include the base fontset
6371 name in the returned vector.
6372
6373 2008-02-01 Kenichi Handa <handa@m17n.org>
6374
6375 * character.h (CHAR_STRING): Cast C to unsigned on calling
6376 char_string.
6377
6378 * character.c (char_string): Type of arg C changed to unsigned.
6379 Signal an error if C is an invalid character code.
6380
6381 * editfns.c (general_insert_function, Fchar_to_string):
6382 Use CHARACTERP, not INTEGERP.
6383
6384 2008-02-01 Kenichi Handa <handa@m17n.org>
6385
6386 * character.h (MIN_MULTIBYTE_LEADING_CODE)
6387 (MAX_MULTIBYTE_LEADING_CODE): New macros.
6388
6389 * regex.c (analyse_first): Fix for multibyte characters in "case
6390 charset:" and "case categoryspec:".
6391
6392 2008-02-01 Andreas Schwab <schwab@suse.de>
6393
6394 * Makefile.in (LIBES): Move standard libraries to the end.
6395
6396 2008-02-01 Kenichi Handa <handa@m17n.org>
6397
6398 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
6399 nonzero, don't shrink the buffer nextb.
6400
6401 * buffer.h (struct buffer_text): New member inhibit_shrinking.
6402
6403 * coding.c (coding_alloc_by_making_gap): New arg offset.
6404 (alloc_destination): Call coding_alloc_by_making_gap with the arg
6405 offset.
6406 (decode_coding_iso_2022): Update coding->safe_charsets.
6407 (decode_coding_gap): Temporarily set
6408 current_buffer->text->inhibit_shrinking to 1.
6409
6410 2008-02-01 Kenichi Handa <handa@m17n.org>
6411
6412 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
6413 indexing into elements of s->cmp and s->char2b.
6414
6415 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
6416
6417 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
6418
6419 2008-02-01 Kenichi Handa <handa@m17n.org>
6420
6421 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
6422 target_multibyte instead of multibyte.
6423 (re_match_2_internal): Call bcmp_translate with target_multibyte.
6424 (bcmp_translate): Change the argument name from multibyte to
6425 target_multibyte.
6426
6427 2008-02-01 Kenichi Handa <handa@m17n.org>
6428
6429 These changes are to compile a regexp into a pattern that can be
6430 used both for multibyte and unibyte targets.
6431
6432 * Makefile.in (search.o): Depend on charset.h.
6433
6434 * character.c (multibyte_char_to_unibyte_safe): New function.
6435
6436 * search.c: Include "charset.h".
6437 (compile_pattern_1): Delete argument multibyte. Don't set
6438 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
6439 (compile_pattern): Don't compare cp->buf.target_multibyte.
6440 Compare cp->buf.charset_unibyte.
6441 (compile_pattern): Set cp->buf.target_multibyte.
6442
6443 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
6444
6445 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
6446
6447 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
6448 multibyte. Change callers.
6449 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
6450 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
6451 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
6452 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
6453 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
6454 (regex_compile): Make the compiled pattern usable both for
6455 multibyte and unibyte targets.
6456 (analyse_first): Make the fastmap usable both for multibyte and
6457 unibyte targets.
6458 (TRANSLATE_VIA_MULTIBYTE): Delete.
6459 (re_match_2_internal): Pay attention to the case that the
6460 multibyteness of bufp and target may be different.
6461
6462 2008-02-01 Kenichi Handa <handa@m17n.org>
6463
6464 * xdisp.c (x_produce_glyphs): When a font is not found, make the
6465 empty box occupy at least one column width.
6466
6467 2008-02-01 Miles Bader <miles@gnu.org>
6468
6469 * Makefile.in: Remove redundant HAVE_XFT clause.
6470
6471 2008-02-01 Kenichi Handa <handa@m17n.org>
6472
6473 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
6474
6475 2008-02-01 Kenichi Handa <handa@m17n.org>
6476
6477 * fontset.c (Finternal_char_font): Fix for the case of POSITION
6478 being nil.
6479
6480 2008-02-01 Kenichi Handa <handa@m17n.org>
6481
6482 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
6483
6484 2008-02-01 Kenichi Handa <handa@m17n.org>
6485
6486 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
6487
6488 2008-02-01 Kenichi Handa <handa@m17n.org>
6489
6490 * search.c (simple_search): Fix previous change.
6491
6492 2008-02-01 Kenichi Handa <handa@m17n.org>
6493
6494 * xftfont.c (ftfont_font_format): Extern declaration.
6495
6496 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
6497
6498 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
6499 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
6500
6501 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
6502 (ftfont_font_format): Fix previous change.
6503
6504 * font.h (Ffont_xlfd_name): EXFUN it.
6505
6506 * font.c (font_parse_xlfd): Fix the array size of `f'.
6507 (register_font_driver): Use EQ to compare driver->type.
6508
6509 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
6510 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
6511 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
6512
6513 2008-02-01 Kenichi Handa <handa@m17n.org>
6514
6515 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
6516 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
6517
6518 2008-02-01 Kenichi Handa <handa@m17n.org>
6519
6520 * xfont.c (xfont_open): Set font->format.
6521
6522 * xftfont.c (xftfont_open): Set font->format.
6523
6524 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
6525 (ftfont_list): Include FC_FONTFORMAT in FcObject.
6526 (ftfont_open): Set font->format.
6527 (ftfont_font_format): New function.
6528
6529 * font.h (struct font): New memeber format.
6530
6531 * font.c (Qopentype): New variable.
6532 (syms_of_font): Defsym it.
6533 (Fquery_font): Change the format of the last element of the return
6534 value.
6535
6536 2008-02-01 Kenichi Handa <handa@m17n.org>
6537
6538 * xfns.c (xic_create_xfontset): Try the default fontset name as a
6539 last resort.
6540
6541 2008-02-01 Kenichi Handa <handa@m17n.org>
6542
6543 * coding.c (detect_coding_charset): Fix detection of multi-byte
6544 charset.
6545
6546 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
6547
6548 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
6549
6550 2008-02-01 Kenichi Handa <handa@m17n.org>
6551
6552 * xdisp.c (get_next_display_element): Set it->face_id for the
6553 first component of a composition.
6554 (x_produce_glyphs): Check if the font is changed or not for composition.
6555
6556 2008-02-01 Kenichi Handa <handa@m17n.org>
6557
6558 * fontset.c (Qlatin): New variable.
6559 (syms_of_fontset): Define it as a lisp symbol.
6560 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
6561
6562 2008-02-01 Kenichi Handa <handa@m17n.org>
6563
6564 * font.c (font_unparse_fcname): Pay attention to the case that
6565 some of font property is a null string.
6566
6567 2008-02-01 Kenichi Handa <handa@m17n.org>
6568
6569 * term.c: Include "composite.h".
6570 (encode_terminal_code): Output all components of composition.
6571 Check the size of encode_terminal_src.
6572 (produce_glyphs): For composition, call produce_composite_glyph.
6573 (append_composite_glyph, produce_composite_glyph): New functions.
6574
6575 * xdisp.c (x_produce_glyphs): In handling composition, if a font
6576 is not found, get font_info from the current ascii face.
6577
6578 2008-02-01 Kenichi Handa <handa@m17n.org>
6579
6580 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
6581 buffer-file-name to Qnil before calling insert_from_buffer.
6582
6583 * font.c (font_unparse_fcname): Pay attention to the case that
6584 foundry is a null string.
6585
6586 2008-02-01 Kenichi Handa <handa@m17n.org>
6587
6588 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
6589
6590 * font.c (Qunicode_sip): New variable.
6591 (syms_of_font): Declare it as a Lisp symbol.
6592
6593 * font.h (Qunicode_sip): Extern it.
6594
6595 2008-02-01 Kenichi Handa <handa@m17n.org>
6596
6597 * composite.c (get_composition_id): Pay attention to TAB component.
6598
6599 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
6600 TAB. Adjust for the change of s->char2b which always points to
6601 the first elememnt of allocated memory.
6602
6603 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
6604
6605 * xdisp.c (handle_composition_prop): Set it->c to the first
6606 non-TAB component.
6607 (fill_composite_glyph_string): Change argument.
6608 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
6609 (x_produce_glyphs): Fix handling of left/right padding.
6610
6611 2008-02-01 Kenichi Handa <handa@m17n.org>
6612
6613 * coding.c (detect_coding_system): Fix for handling off
6614 inhibit_iso_escape_detection. Fix for the case that no coding
6615 system is defined for a specific coding category.
6616
6617 2008-02-01 Kenichi Handa <handa@m17n.org>
6618
6619 * font.c (font_matching_entity): Delete unused local var.
6620
6621 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
6622 opening a font.
6623
6624 * fileio.c (Finsert_file_contents): On recovering a file, assume
6625 Unix-like eol.
6626 (choose_write_coding_system): On auto-saving a file, force
6627 Unix-like eol.
6628
6629 * coding.c (setup_coding_system): Fix setting of
6630 coding->common_flags based on eol_type.
6631 (coding_inherit_eol_type): If PARENT is not nil, be sure to
6632 inherit from it.
6633
6634 2008-02-01 Kenichi Handa <handa@m17n.org>
6635
6636 * alloc.c (NSTATICS): Increas to 0x600.
6637
6638 2008-02-01 Kenichi Handa <handa@m17n.org>
6639
6640 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
6641 (ftfont_list): Don't check :name property.
6642 (ftfont_match): New function.
6643 (ftfont_pattern_entity): If the pattern doesn't contain
6644 FC_SPACING, don't assuce FC_MONO.
6645
6646 * font.h (struct font_driver): New member `match'.
6647 (font_update_drivers): Adjust prototype.
6648
6649 * font.c (font_parse_fcname, font_parse_name): Don't change :name
6650 property of FONT.
6651 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
6652 them unconditionally.
6653 (font_matching_entity): New function.
6654 (font_open_by_name): Try font_matching_entity if exact match is
6655 not found.
6656 (font_update_drivers): Delete the arg FONT. Return a list of
6657 actually used backends. Don't free faces, font caches here.
6658 Don't store data in frame parameters. Don't call x_set_font.
6659 (Ffont_spec): Store :name property as is.
6660 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
6661 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
6662 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
6663 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
6664 Call font->driver->otf_gsub instead of font_otf_gsub.
6665
6666 * frame.c (x_set_font_backend): Do more works that were done in
6667 font_update_drivers before.
6668
6669 * xfont.c (xfont_match): New function.
6670 (xfont_driver): Set xfont_driver.match to xfont_match.
6671 (xfont_draw): Set font in GC if necessary.
6672
6673 * ftxfont.c (ftxfont_match): New function.
6674 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
6675
6676 * xftfont.c (xftfont_match): New function.
6677 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
6678
6679 2008-02-01 Kenichi Handa <handa@m17n.org>
6680
6681 * font.h (struct font): New member scalable.
6682 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
6683 (font_otf_gsub): Adjust prototype.
6684
6685 * font.c (font_otf_capability): Fix handling of the default langsys.
6686 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
6687 Check the contents of SPEC.
6688 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
6689 (check_gstring): New function.
6690 (REPLACEMENT_CHARACTER): New macro.
6691 (font_otf_gsub): New arg alternate_subst. Be sure to set all
6692 glyph codes of GSTRING.
6693 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
6694 (font_prepare_composition): Set cmp->glyph_len.
6695 (font_open_entity): Set font->scalable.
6696 (Ffont_get): Handle :otf property.
6697 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
6698 functions.
6699 (Fquery_font): Use font->font.full_name.
6700 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
6701 Sfont_otf_alternates.
6702
6703 * ftfont.c (ftfont_open): Set font->font.full_name and
6704 font->font.name properly. Fix calculation of font->font.height
6705 and font->min_width.
6706
6707 * ftxfont.c (ftxfont_create_gcs): New function.
6708 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
6709 (ftxfont_draw_backgrond): Fix filling region.
6710 (ftxfont_default_fid): New function.
6711 (ftxfont_open): Set xfotn->fid to the return value of
6712 ftxfont_default_fid.
6713 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
6714 (ftxfont_done_face): Free only GCs that are created by
6715 ftxfont_create_gcs.
6716 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
6717
6718 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
6719 Clip to src->width, etc (not src->clip_XXX).
6720
6721 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
6722 FontBackend frame parameter.
6723
6724 2008-02-01 Kenichi Handa <handa@m17n.org>
6725
6726 * font.h (struct font_driver_list): New member `on'.
6727 (Fclear_font_cache): EXFUN it.
6728 (font_update_drivers): Extern it.
6729
6730 * font.c (font_unparse_fcname): Fix typo (swidth->width).
6731 (font_list_entities): Check driver_list->on.
6732 (register_font_driver): Initalize `on' member to 0.
6733 (font_update_drivers): New function.
6734 (Fclear_font_cache): Check driver_list->on.
6735
6736 * frame.h (Qfont_backend): Extern it.
6737 (x_set_font_backend): Extern it.
6738
6739 * frame.c (Qfont_backend): New variable.
6740 (frame_parms): New element for font-backend.
6741 (x_set_font_backend): New function.
6742
6743 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
6744 FontBackend frame parameter.
6745 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
6746 x_set_font_backend.
6747
6748 * xfont.c (xfont_list): Don't try listing by :name property if the
6749 name is not for XLFD.
6750
6751 2008-02-01 Kenichi Handa <handa@m17n.org>
6752
6753 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
6754 (LGLYPH_SET_TO): New macros.
6755 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
6756 element of G is vector or not.
6757 (font_at): Extern it.
6758
6759 * font.c: Include window.h.
6760 (font_lispy_object): New function.
6761 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
6762 end of valid glyph.
6763 (font_close_object): Fix getting (struct font *).
6764 (font_at): New function.
6765 (Ffont_get): If FONT is a font-object, get entity from it.
6766 (Ffont_make_gstring): Initialize elements of glyphs with nil.
6767 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
6768 range check.
6769 (Ffont_at): New function.
6770 (syms_of_font): Defsubr Sfont_at.
6771
6772 * xdisp.c (it_props): Move the entry for Qauto_composed to just
6773 before the entry for Qcomposition.
6774 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
6775 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
6776 the font in gstring.
6777 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
6778 LGLYPH_FORM (g) to detect the end of valid glyph.
6779 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
6780 we are composing with gstring.
6781
6782 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
6783 Check if adjustment is vector or not.
6784
6785 * Makefile.in (font.o): Make it depends on window.h.
6786
6787 2008-02-01 Kenichi Handa <handa@m17n.org>
6788
6789 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
6790 adjustment is vector or not.
6791
6792 2008-02-01 Miles Bader <miles@gnu.org>
6793
6794 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
6795
6796 2008-02-01 Kenichi Handa <handa@m17n.org>
6797
6798 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
6799 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
6800 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
6801
6802 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
6803 (DEVICE_DELTA): Fix typo.
6804 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
6805 LGLYPH format.
6806
6807 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6808 the change of LGLYPH format.
6809
6810 2008-02-01 Kenichi Handa <handa@m17n.org>
6811
6812 * ftfont.c (ftfont_list): Fix typo.
6813 (ftfont_build_basic_charsets): Don't include letters with diacritics.
6814
6815 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6816
6817 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
6818
6819 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
6820 xftface_info is non-NULL.
6821
6822 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6823
6824 * ftfont.c (ftfont_list): Move misplaced #endif.
6825
6826 2008-02-01 Kenichi Handa <handa@m17n.org>
6827
6828 * ftfont.c (ftfont_list): Pay attention to the case that
6829 FC_CAPABILITY is not defined.
6830
6831 2008-02-01 Kenichi Handa <handa@m17n.org>
6832
6833 * xftfont.c (xftfont_open): Set charset related members to -1.
6834
6835 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
6836 QCname.
6837 (ftfont_open): Set charset related members to -1.
6838
6839 * fontset.c (Votf_script_alist): New variable.
6840 (syms_of_fontset): Initialize it.
6841 (fontset_font): Delete unused variable.
6842
6843 * fontset.h (Votf_script_alist): Extern it.
6844
6845 * font.c (font_find_for_lface): Optimize code.
6846
6847 * font.h (font_close_object, font_merge_old_spec): Extern them.
6848
6849 2008-02-01 Kenichi Handa <handa@m17n.org>
6850
6851 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
6852 (syms_of_font): Initialize them.
6853 (font_pixel_size): Allow float value in dpi.
6854 (font_prop_validate_type): Delete.
6855 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
6856 Change caller.
6857 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
6858 (font_prop_validate_extra): Delete.
6859 (font_prop_validate_spacing): New function.
6860 (font_property_table): Add elements for all known properties.
6861 (get_font_prop_index): Rename from check_font_prop_name. New
6862 argument FROM. Change caller.
6863 (font_prop_validate): Validate all known properties.
6864 (font_put_extra): Delete argument force. Change caller.
6865 (font_expand_wildcards): Make it static. Fix the way of shrinking
6866 the possible range.
6867 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
6868 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
6869 Change caller.
6870 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
6871 (font_parse_fcname): Delete argument merge. Fix parsing of point
6872 size. Don't validate properties values here. Change caller.
6873 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
6874 (font_open_by_name): Delete unused variable.
6875 (Ffont_spec): Likewise. Validate property values.
6876 (Ffont_match_p): New function.
6877
6878 * font.h (QCscalable): Extern it.
6879 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
6880
6881 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
6882
6883 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
6884 (xfont_list_pattern): New function.
6885 (xfont_list): Use xfont_list_pattern.
6886
6887 2008-02-01 Kenichi Handa <handa@m17n.org>
6888
6889 * font.h (Flist_fonts): EXFUN it.
6890
6891 2008-02-01 Jason Rumney <jasonr@gnu.org>
6892
6893 * w32term.c (w32_initialize): Add back smoothing_type and
6894 smoothing_enabled definitions.
6895
6896 2008-02-01 Kenichi Handa <handa@m17n.org>
6897
6898 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
6899 s->face->font on determining underline position.
6900
6901 2008-02-01 Kenichi Handa <handa@m17n.org>
6902
6903 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
6904 (font_has_char): Accept font-object too.
6905 (font_find_for_lface): Try at first with a size specified in face.
6906
6907 2008-02-01 Kenichi Handa <handa@m17n.org>
6908
6909 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
6910 font_open_by_name.
6911
6912 2008-02-01 Kenichi Handa <handa@m17n.org>
6913
6914 * font.h (QCspacing, QCdpi): Extern them.
6915 (enum font_spacing): New enum.
6916 (FONT_PIXEL_SIZE_QUANTUM): New macro.
6917
6918 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
6919 (QCspacing, QCdpi): New variables.
6920 (syms_of_font): Initialize them.
6921 (font_pixel_size): New function.
6922 (font_put_extra): New function.
6923 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
6924 in FONT_EXTRA.
6925 (font_parse_fcname): Handle enumenrated values (e.g. bold).
6926 Fix handling font size. Add QCname property that contains only
6927 unknown properties.
6928 (font_score): Change argument. Change caller. Pay attention to
6929 FONT_PIXEL_SIZE_QUANTUM.
6930 (font_sort_entites, font_list_entities, font_find_for_lface)
6931 (font_open_for_lface, font_open_by_name): Fix handling of font size.
6932 (Ffont_spec): Add QCname property that contains only unknown properties.
6933
6934 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
6935 include weight in listing pattern, instead check weight of each
6936 listed font. Don't include scalable in pattern. Pay attention to
6937 FONT_PIXEL_SIZE_QUANTUM.
6938
6939 2008-02-01 Kenichi Handa <handa@m17n.org>
6940
6941 * font.c (font_parse_fcname): Fix parsing of point-size.
6942 (font_unparse_fcname): Produce symbolic names for style properties.
6943 (font_list_entities): Handle float size correctly.
6944 (font_open_by_name): Prefer `normal' property values if the name
6945 doesn't specify them.
6946
6947 * fontset.c (Finternal_char_font): Use font_get_name, not
6948 Ffont_xlfd_name.
6949
6950 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
6951 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
6952 pattern. Don't force scalable.
6953
6954 * xftfont.c (xftfont_open): For generating a name, start from
6955 96-byte buffer.
6956
6957 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6958
6959 * frame.h (x_new_fontset2): Fix prototype.
6960
6961 2008-02-01 Kenichi Handa <handa@m17n.org>
6962
6963 * font.h (struct font_driver): Delete member parse_name.
6964 (font_match_p, font_get_spec, font_parse_fcname)
6965 (font_unparse_fcname): Extern them.
6966 (font_get_name): Adjust prototype.
6967
6968 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
6969 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
6970 (font_expand_wildcards): Fix handling ENCODING field. Avoid
6971 unnecessary checks for weight, slant, and swidth.
6972 (font_parse_fcname): New function.
6973 (font_unparse_fcname): New function.
6974 (font_parse_name): New function.
6975 (font_match_p): New function.
6976 (font_get_name): Change return value to Lisp string.
6977 (font_get_spec): New function.
6978 (Qunspecified, Qignore_defface): Don't extern them.
6979 (font_find_for_lface): Assume that LFACE is fully specified.
6980 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
6981 object, use it for FACE.
6982 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
6983 driver->parse_name.
6984 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
6985
6986 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
6987 prototype.
6988
6989 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
6990 argument F. Don't call Fnew_fontset. Instead, directly call
6991 make_fontset.
6992
6993 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
6994
6995 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
6996 of x_new_fontset2.
6997
6998 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
6999 (Qsans__serif): New variables.
7000 (ftfont_generic_family_list): New variable.
7001 (syms_of_ftfont): Initialize the above variables.
7002 (ftfont_pattern_entity): Delete argument NAME.
7003 (ftfont_list_generic_family): New function.
7004 (ftfont_parse_name): Delete this function.
7005 (ftfont_list): Try generic family only when FcFontList found no font.
7006 (ftfont_list_family): Fix args to FcObjectSetBuild.
7007
7008 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
7009 object in attrs[LFACE_FONT_INDEX].
7010 (set_lface_from_font_name): Cancel all changes for font-backend.
7011 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
7012 function.
7013 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
7014 font object in QCfont attribute.
7015 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
7016 (realize_default_face) [USE_FONT_BACKEND]: Call
7017 set_lface_from_font_and_fontset.
7018
7019 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
7020 "fixed", and signal error here if no suitable font was found.
7021
7022 * xfont.c (xfont_parse_name): Delete this function.
7023
7024 * xftfont.c (xftfont_open): Change coding style of error
7025 handling. Generate fontconfig's fontname pattern.
7026
7027 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
7028 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
7029
7030 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
7031 Both args FONTSET and FONT_OBJECT must be existing ones.
7032
7033 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7034
7035 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
7036
7037 2008-02-01 Kenichi Handa <handa@m17n.org>
7038
7039 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
7040
7041 * font.h (struct font): Fix typo.
7042
7043 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
7044 XLFD_XXX_INDEX.
7045 (enum xlfd_field_mask): New enum.
7046 (intern_font_field): Changed argument. Change caller. If digits
7047 are followed by non-digits, return a symbol.
7048 (font_expand_wildcards): New function.
7049 (font_parse_xlfd): Fix wildcard handling.
7050 (Ffont_spec): If :name is specified, reflect the info in the other
7051 properties.
7052
7053 * ftfont.c (ftfont_pattern_entity): Fix typo.
7054 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
7055 locale.
7056
7057 2008-02-01 Kenichi Handa <handa@m17n.org>
7058
7059 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
7060
7061 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
7062 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
7063 registry doesn't specify encoding part.
7064 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
7065 (font_open_by_name): At first try parsing the name.
7066 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
7067 as Lisp symbols.
7068
7069 * fontset.c (reorder_font_vector): Pay attention to the case that
7070 the 3rd element of font_def is nil.
7071 (fontset_font): For the default fontset, append one more fontset
7072 elements for a script-based font specification. Don't add script
7073 attribute on finding a font.
7074 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
7075 font name.
7076 (fontset_ascii_font): If a font can't be opened, return nil.
7077
7078 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
7079 (ftfont_pattern_entity): New function.
7080 (ftfont_get_cache): Assume that freetype_font_cache is already
7081 initialized.
7082 (ftfont_list): Handle the case that a file is specified in font
7083 name. Use ftfont_pattern_entity to generate entities.
7084 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
7085 (syms_of_ftfont): Initialize freetype_font_cache.
7086
7087 * xftfont.c (xftfont_open): Make the font name fontconfig's
7088 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
7089 (xftfont_close): Free font->font.name if not NULL.
7090
7091 * xfont.c (xfont_list): If script is specified for a font, return
7092 null_vector.
7093 (xfont_list_family): Declare argument type.
7094
7095 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
7096 name, set LFACE_FONT (lface) to nil.
7097
7098 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
7099 return Qnil.
7100
7101 2008-02-01 Kenichi Handa <handa@m17n.org>
7102
7103 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
7104 (standard_args): Add "-enable-font-backend".
7105
7106 2008-02-01 Kenichi Handa <handa@m17n.org>
7107
7108 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
7109 (struct xftdraw_list, xftdraw_list): Delete them.
7110 (register_xftdraw, check_xftdraw): Delete them.
7111 (xftfont_prepare_face): Don't call register_xftdraw.
7112 (xftfont_done_face): Don't call check_xftdraw.
7113 (xftfont_draw): Get backroudn color only when with_background is
7114 nonzero.
7115
7116 * xfont.c (xfont_encode_char): Fix calculation of char2b.
7117
7118 2008-02-01 Kenichi Handa <handa@m17n.org>
7119
7120 These changes are for the new font handling codes.
7121
7122 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
7123 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
7124 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
7125 (FONTSRC, FONTOBJ): New variables.
7126 (obj): Add $(FONTOBJ).
7127 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
7128 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
7129 @LIBOTF_LIBS@.
7130 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
7131 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
7132
7133 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
7134
7135 * character.h (Vscript_representative_chars): Extern it.
7136
7137 * character.c (Vscript_representative_chars): New variable.
7138 (syms_of_character): Declare it as a Lisp variable.
7139
7140 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
7141 enable_font_backend is nonzero, accept the composition method
7142 COMPOSITION_WITH_GLYPH_STRING.
7143
7144 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
7145 enumeration COMPOSITION_WITH_GLYPH_STRING.
7146
7147 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
7148 members clip_x, clip_y, clip_width, and clip_height.
7149 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
7150
7151 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
7152 --enable-font-backend. Call syms_of_font.
7153
7154 * fns.c (assoc_no_quit): New function.
7155
7156 * fontset.h (FONT_INFO_FROM_FACE): New macro.
7157 (face_for_font, new_fontset_from_font)
7158 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
7159
7160 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
7161 (fontset_font, fontset_ascii, face_for_char)
7162 (make_fontset_for_ascii_face, Ffont_info)
7163 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
7164 is nonzero, use font-backend mechanism.
7165 (find_font_encoding): Make it non-static.
7166 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
7167 New functions.
7168
7169 * frame.h (struct frame): New members resx and resy.
7170 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
7171 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
7172
7173 * frame.c [USE_FONT_BACKEND]: Include "font.h".
7174 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
7175
7176 * lisp.h (assoc_no_quit): Extern it.
7177
7178 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
7179 Through out the file, use FONT_INFO_FROM_FACE instead of
7180 FONT_INFO_FROM_ID, use get_per_char_metric instead of
7181 rif->per_char_metric.
7182 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
7183 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
7184 (get_glyph_face_and_encoding, fill_composite_glyph_string)
7185 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7186 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
7187 nonzero, use font-backend mechanism.
7188 (get_per_char_metric): New function.
7189
7190 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
7191 (set_lface_from_font_name)
7192 (set_font_frame_param, free_realized_face)
7193 (prepare_face_for_display, clear_face_gcs)
7194 (Finternal_set_font_selection_order, realize_x_face)
7195 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
7196 font-backend mechanism.
7197 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
7198 (load_face_font) [USE_FONT_BACKEND]: Abort.
7199 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
7200 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
7201
7202 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
7203 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
7204 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
7205 nonzero, register all available font drivers. Call
7206 x_default_font_parameter for deciding a font.
7207 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
7208
7209 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
7210 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
7211 (x_set_glyph_string_clipping_exactly)
7212 (x_compute_glyph_string_overhangs)
7213 (x_draw_glyph_string_foreground)
7214 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
7215 (x_free_frame_resources) [USE_FONT_BACKEND]: If
7216 enable_font_backend is nonzero, use font-backend mechanism.
7217 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
7218
7219 2008-02-01 Kenichi Handa <handa@m17n.org>
7220
7221 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
7222 system_eol_type.
7223 (syms_of_coding): Initialize system_eol_type.
7224
7225 * process.c (Fset_process_coding_system): Inherit system's eol
7226 format if necessary.
7227
7228 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7229
7230 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
7231
7232 2008-02-01 Kenichi Handa <handa@m17n.org>
7233
7234 * coding.c (decode_eol): Pay attention to buffer relocation in
7235 del_range_2.
7236 (decode_coding): Call decode_eol before restoring undo_list.
7237
7238 2008-02-01 Kenichi Handa <handa@m17n.org>
7239
7240 * charset.c (Fdefine_charset_internal): Fix setting of
7241 emacs_mule_bytes.
7242
7243 2008-02-01 Kenichi Handa <handa@m17n.org>
7244
7245 * keyboard.c (read_char): Check if C is a character or not before
7246 looking up Vkeyboard_translate_table.
7247
7248 2008-02-01 Kenichi Handa <handa@m17n.org>
7249
7250 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
7251 condition to terminate the loop.
7252
7253 2008-02-01 Kenichi Handa <handa@m17n.org>
7254
7255 * coding.c (produce_composition): Compare charbuf[i] instead of
7256 args[i] against 0.
7257 (Fterminal_coding_system): Use EQ to compare Lisp objects.
7258
7259 2008-02-01 Kenichi Handa <handa@m17n.org>
7260
7261 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
7262 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
7263 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
7264 detect_coding.
7265 (emacs_mule_char): Handle old style (Emacs 20) component character
7266 of a composition.
7267 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
7268 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
7269 composition rule.
7270 (decode_coding_emacs_mule): Handle invalid bytes correctly.
7271
7272 2008-02-01 Kenichi Handa <handa@m17n.org>
7273
7274 * coding.c (encode_coding_ccl): Allocate destination dynamically
7275 when necessary.
7276
7277 2008-02-01 Kenichi Handa <handa@m17n.org>
7278
7279 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
7280 the loop. When quitted, show a proper error message.
7281
7282 2008-02-01 Kenichi Handa <handa@m17n.org>
7283
7284 * xterm.c (x_set_glyph_string_clipping_exactly): Set
7285 src->clip_head and src->clip_tail temporarily instead of src->hl.
7286
7287 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
7288 character sequence.
7289 (Fccl_execute_on_string): Use ASET, not XSET.
7290
7291 2008-02-01 Kenichi Handa <handa@m17n.org>
7292
7293 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
7294
7295 2008-02-01 Kenichi Handa <handa@m17n.org>
7296
7297 * coding.c (decode_coding): Fix the condition of terminating the
7298 decoding loop.
7299
7300 2008-02-01 Kenichi Handa <handa@m17n.org>
7301
7302 * data.c (Faset): On setting a character bigger than 255 in a
7303 unibyte string, signal an error instead of make the string multibyte.
7304
7305 2008-02-01 Kenichi Handa <handa@m17n.org>
7306
7307 * charset.c (map_charset_chars): Fix for ascii-compatible charset
7308 made by a mapping table.
7309
7310 2008-02-01 Kenichi Handa <handa@m17n.org>
7311
7312 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
7313 not.
7314 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
7315 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
7316
7317 * xterm.c (x_draw_composite_glyph_string_foreground): Check
7318 s->face is NULL or not.
7319
7320 2008-02-01 Kenichi Handa <handa@m17n.org>
7321
7322 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
7323 (x_draw_glyph_string): Fix drawing of right_overhang and
7324 left_overhang around/on cursor.
7325
7326 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
7327
7328 2008-02-01 Kenichi Handa <handa@m17n.org>
7329
7330 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
7331
7332 2008-02-01 Kenichi Handa <handa@m17n.org>
7333
7334 * coding.c (Fdefine_coding_system_internal)
7335 (Fdefine_coding_system_alias): Avoid a duplicated element in
7336 Vcoding_system_alist.
7337
7338 2008-02-01 Kenichi Handa <handa@m17n.org>
7339
7340 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7341
7342 * coding.c (Qcoding_system_define_form): New variable.
7343 (syms_of_coding): Intern and staticpro it.
7344 (Fcoding_system_p): Check Qcoding_system_define_form.
7345 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
7346
7347 * coding.h (CODING_SYSTEM_P): If ID is not available, call
7348 Fcoding_system_p.
7349 (CHECK_CODING_SYSTEM): If ID is not available, call
7350 Fcheck_coding_system.
7351 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
7352 Try also Fcheck_coding_system.
7353
7354 2008-02-01 Kenichi Handa <handa@m17n.org>
7355
7356 * coding.c (code_conversion_restore): GCPRO arg.
7357
7358 2008-02-01 Kenichi Handa <handa@m17n.org>
7359
7360 * character.c (lisp_string_width): Check multibyteness of STRING.
7361
7362 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7363
7364 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
7365 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
7366 (decode_mac_font_name): Use decode_coding_c_string instead of
7367 decode_coding.
7368 (x_load_font): Initialize fontp->fontset to -1. Set
7369 fontp->encoding_type.
7370
7371 2008-02-01 Kenichi Handa <handa@m17n.org>
7372
7373 * search.c (search_buffer): Give up BM search on case-fold-search
7374 if one of a target character has a case-equivalence of different
7375 byte length even if that target charcter is an ASCII.
7376 (simple_search): Fix calculation of byte length of matched text.
7377 (boyer_moore): Fix handling of case-equivalent multibyte characters.
7378
7379 2008-02-01 Kenichi Handa <handa@m17n.org>
7380
7381 * coding.c (decode_coding): Fix handling of invalid bytes.
7382
7383 2008-02-01 Kenichi Handa <handa@m17n.org>
7384
7385 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7386 Unicode characters.
7387
7388 2008-02-01 Kenichi Handa <handa@m17n.org>
7389
7390 * coding.c (encode_coding_object): If a pre-write-conversion
7391 function makes a new buffer, kill it.
7392
7393 2008-02-01 Kenichi Handa <handa@m17n.org>
7394
7395 * coding.c (QCascii_compatible_p): New variable.
7396 (syms_of_coding): Initialize it.
7397 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
7398 calling string_char.
7399 (record_conversion_result): Add `default:' case.
7400 (coding_charset_list): Delete unused variable `coding_type'.
7401 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
7402 property in the plist of the coding system.
7403 (Fcoding_system_put): Check QCascii_compatible_p.
7404
7405 2008-02-01 Miles Bader <miles@gnu.org>
7406
7407 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
7408 removed calculation of frame `f', as it's now used.
7409
7410 2008-02-01 Kenichi Handa <handa@m17n.org>
7411
7412 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
7413 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
7414 (UNIDATA): New variable.
7415 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
7416 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
7417 $(RUN_TEMACS) unconditionally.
7418
7419 2008-02-01 Kenichi Handa <handa@m17n.org>
7420
7421 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
7422 (admindir): New variable.
7423 ($(lispsource)international/charprop.el): New target.
7424
7425 2008-02-01 Miles Bader <miles@gnu.org>
7426
7427 * character.c (chars-in-region): Remove obsolete function.
7428 (syms_of_character): Remove its initialization.
7429
7430 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
7431
7432 * w32select.c (validate_coding_system)
7433 (setup_windows_coding_system): New functions.
7434 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
7435 setup_windows_coding_system.
7436 (setup_config, Fw32_get_clipboard_data): Use
7437 validate_coding_system.
7438 (Fx_selection_exists): Move call to setup_config to a place
7439 where signals are allowed.
7440
7441 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
7442 (Fcheck_coding_system): Add declarations.
7443
7444 2008-02-01 Kenichi Handa <handa@m17n.org>
7445
7446 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
7447
7448 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7449
7450 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
7451 string as the second argument for x_new_fontset.
7452
7453 2008-02-01 Kenichi Handa <handa@m17n.org>
7454
7455 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
7456 (encode_coding_object): Use safe_call instead of call2.
7457
7458 2008-02-01 Kenichi Handa <handa@m17n.org>
7459
7460 * fontset.c (Fset_fontset_font): Check family element of a given vector.
7461
7462 * Makefile.in (lisp): Include charprop.el.
7463
7464 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7465
7466 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
7467 Not sure if it's unnecessary.
7468
7469 2008-02-01 Steven Tamm <steventamm@mac.com>
7470
7471 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
7472 some possibly unnecessary fontset checking code that crashed
7473 when creating a new frame.
7474
7475 2008-02-01 Kenichi Handa <handa@m17n.org>
7476
7477 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
7478 lookup_face.
7479
7480 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
7481
7482 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
7483
7484 2008-02-01 Kenichi Handa <handa@m17n.org>
7485
7486 * coding.c: Cancel the change done in HEAD on 2008-02-01.
7487 (coding_charset_list): New function.
7488
7489 * coding.h (coding_charset_list): Extern it.
7490
7491 2008-02-01 Kenichi Handa <handa@m17n.org>
7492
7493 * fontset.c (Fset_fontset_font): Call find_font_encoding with
7494 concatenation of family and registry.
7495
7496 2008-02-01 Kenichi Handa <handa@m17n.org>
7497
7498 * character.h (BYTE8_STRING): Fix typo.
7499
7500 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
7501 string to multibyte (sync to HEAD).
7502
7503 * casefiddle.c (casify_region): Handle changes in byte-length
7504 using replace_range_2 (sync to HEAD).
7505
7506 2008-02-01 Andreas Schwab <schwab@suse.de>
7507
7508 * chartab.c (map_char_table): GCPRO table and arg.
7509
7510 2008-02-01 Kenichi Handa <handa@m17n.org>
7511
7512 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
7513 already at limit.
7514
7515 2008-02-01 Kenichi Handa <handa@m17n.org>
7516
7517 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
7518 instead of fast_c_string_match_ignore_case.
7519 (find_font_encoding): Change argument to Lisp_Object. Use
7520 fast_string_match_ignore_case instead of
7521 fast_c_string_match_ignore_case. Change caller.
7522
7523 2008-02-01 Kenichi Handa <handa@m17n.org>
7524
7525 * xdisp.c (get_next_display_element): In unibyte case, decide to
7526 display in octal form by checking a chacter by
7527 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
7528
7529 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
7530
7531 * character.c (unibyte_has_multibyte_table): New variable.
7532
7533 * character.h (unibyte_has_multibyte_table): Extern it.
7534 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
7535
7536 2008-02-01 Kenichi Handa <handa@m17n.org>
7537
7538 * coding.c (encode_coding_iso_2022): Fix handling of charset
7539 annotation.
7540
7541 2008-02-01 Kenichi Handa <handa@m17n.org>
7542
7543 * coding.c (setup_coding_system): If coding_system is nil, use
7544 Qundecided.
7545 (Fterminal_coding_system): Return nil if terminal coding system is
7546 `undecided'.
7547 (syms_of_coding): Define coding-system `undecided' here. Setup
7548 terminal_coding as `undecided'.
7549
7550 2008-02-01 Kenichi Handa <handa@m17n.org>
7551
7552 * xdisp.c (message_dolog, set_message_1): Call
7553 unibyte_char_to_multibyte with arg type int.
7554
7555 * lread.c (read1): Fix reading of a char-table.
7556
7557 * print.c (print_object): Include sub char-table in cicularities
7558 detection.
7559
7560 2008-02-01 Kenichi Handa <handa@m17n.org>
7561
7562 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
7563 cons. Append the found sequences in car of ARGS instead of prepending.
7564
7565 2008-02-01 Kenichi Handa <handa@m17n.org>
7566
7567 * fileio.c (report_file_error): Make a unibyte string from
7568 strerror (errorno).
7569 (Fsubstitute_in_file_name): Fix the arg to
7570 unibyte_char_to_multibyte. It is evaluated twice.
7571
7572 2008-02-01 Kenichi Handa <handa@m17n.org>
7573
7574 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
7575
7576 2008-02-01 Kenichi Handa <handa@m17n.org>
7577
7578 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
7579 BOM is not found.
7580 (detect_coding, detect_coding_system): Optimization for ISO-2022
7581 when no 8-bit data is found.
7582
7583 2008-02-01 Jason Rumney <jasonr@gnu.org>
7584
7585 * w32fns.c (x_to_w32_font): Update to use new coding struct.
7586
7587 2008-02-01 Kenichi Handa <handa@m17n.org>
7588
7589 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
7590 CHARS.
7591
7592 2008-02-01 Steven Tamm <steventamm@mac.com>
7593
7594 * macterm.c (mac_encode_char): Add charset argument and update
7595 to use encoding_type.
7596 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
7597 switch to pure fontset.
7598 (decode_mac_font_name): Temporarily remove decoding.
7599 (x_font_name_to_mac_font_name): Temporarily remove encoding.
7600 (x_load_font): Temporarily remove encoding.
7601
7602 2008-02-01 Kenichi Handa <handa@m17n.org>
7603
7604 * xfaces.c (Fface_font): If frame is not on a window system,
7605 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
7606 refer to face->font.
7607 (split_font_name_into_vector, build_font_name_from_vector)
7608 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
7609 whne HAVE_WINDOW_SYSTEM is defined.
7610
7611 2008-02-01 Kenichi Handa <handa@m17n.org>
7612
7613 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
7614 (x_produce_glyphs): Fix setting of members of cmp in case
7615 cmp->glyph_len is zero.
7616
7617 * fontset.c (Fset_fontset_font): Fix docstring.
7618 (Ffontset_info): Make it backward compatible. New arg ALL.
7619
7620 2008-02-01 Kim F. Storm <storm@cua.dk>
7621
7622 * process.c (read_process_output): Grow decoding_buf when needed;
7623 this could cause a crash in allocate_string and compact_small_strings.
7624
7625 2008-02-01 Kenichi Handa <handa@m17n.org>
7626
7627 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
7628
7629 2008-02-01 Kenichi Handa <handa@m17n.org>
7630
7631 * coding.c (setup_coding_system): Set coding->common_flags
7632 correctly for raw-text.
7633 (consume_chars): On encoding unibyte text by raw-text, don't check
7634 multibyte form.
7635 (encode_coding): On encoding by raw-text, never use translation tables.
7636
7637 * fileio.c (e_write): Short cut for the case of no encoding.
7638
7639 2008-02-01 Kenichi Handa <handa@m17n.org>
7640
7641 * coding.c (detect_coding, detect_coding_system): Delete unused
7642 variables.
7643
7644 2008-02-01 Kenichi Handa <handa@m17n.org>
7645
7646 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
7647 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
7648
7649 2008-02-01 Kenichi Handa <handa@m17n.org>
7650
7651 * coding.c (Ffind_coding_systems_region_internal): Include
7652 raw-text and no-conversion in the result.
7653
7654 2008-02-01 Kenichi Handa <handa@m17n.org>
7655
7656 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
7657 (load_font_get_repertory): Delete unnecessary check of ENCODING of
7658 FONT_DEF.
7659 (font_def_arg, add_arg, from_arg, to_arg): New args.
7660 (set_fontset_font): Change argument.
7661 (Fset_fontset_font): Fix for the case that TARGET is a script
7662 name and charset name.
7663 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
7664
7665 2008-02-01 Kenichi Handa <handa@m17n.org>
7666
7667 * fontset.c (fontset_font): Rename from fontset_face. Change return
7668 value.
7669 (face_suitable_for_char_p, face_for_char): Adjust for the change
7670 of fontset_font.
7671 (make_fontset_for_ascii_face): Fix setting of the fontset element
7672 for ASCII.
7673 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
7674 to get a font name.
7675 (Ffontset_info): Adjust for the change of fontset_font.
7676
7677 * coding.c (emacs_mule_char): Check invalid code more regidly.
7678
7679 * character.h (LEADING_CODE_LATIN_1_MIN)
7680 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
7681
7682 2008-02-01 Kenichi Handa <handa@m17n.org>
7683
7684 * editfns.c (check_translation): New function.
7685 (Ftranslate_region_internal): Handle M:N mapping.
7686
7687 2008-02-01 Kenichi Handa <handa@m17n.org>
7688
7689 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
7690
7691 2008-02-01 Kenichi Handa <handa@m17n.org>
7692
7693 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
7694 goto invalid_code.
7695 (decode_coding_iso_2022): Fix handling of invalid designation.
7696
7697 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
7698 after calling code_conversion_save.
7699
7700 2008-02-01 Kenichi Handa <handa@m17n.org>
7701
7702 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
7703
7704 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
7705
7706 * fontset.c: Include "intervals.h".
7707 (fontset_face): Fix comparing of Lisp_Objects.
7708 (free_face_fontset, new_fontset_from_font_name): Fix
7709 Lisp_Object/int mixup.
7710
7711 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
7712
7713 * coding.c: Add many prototypes for static functions.
7714 (get_translation_table): Allow max_lookup to be NULL.
7715 (decode_coding, Ffind_coding_systems_region_internal)
7716 (Funencodable_char_position, Fcheck_coding_systems_region): Call
7717 get_translation_table with max_lookup NULL.
7718
7719 2008-02-01 Kenichi Handa <handa@m17n.org>
7720
7721 * coding.c (get_translation_table): Declare it as Lisp_Object.
7722 (LOOKUP_TRANSLATION_TABLE): New macro.
7723 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
7724 instead of CHAR_TABLE_REF.
7725
7726 2008-02-01 Kenichi Handa <handa@m17n.org>
7727
7728 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
7729 annotation data format.
7730 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
7731 Change arguments FROM and TO to single argument NCHARS. Change caller.
7732 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
7733 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7734 (decode_coding_ccl, decode_coding_charset): Pay attention to
7735 coding->charbuf_used.
7736 (get_translation): New function.
7737 (produce_chars): New arguments translation_table and last_block.
7738 Translate characters here. Return number of carryover chars.
7739 Change caller.
7740 (produce_composition): New argument pos. Change caller.
7741 Adjust for the change of annotation data format.
7742 (produce_charset, produce_annotation): Likewise.
7743 (decode_coding, encode_coding): Don't call translate_chars.
7744 (consume_chars): New arg translation_table. Change caller.
7745 (translate_chars): Delete.
7746 (syms_of_coding): Make translation-table's number of extra slots 2.
7747
7748 2008-02-01 Kenichi Handa <handa@m17n.org>
7749
7750 * search.c (simple_search): Fix setting this_pos_byte in backward
7751 search.
7752
7753 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
7754 byte sequence.
7755 (detect_coding_ccl): Fix setting of the variable valids.
7756
7757 2008-02-01 Kenichi Handa <handa@m17n.org>
7758
7759 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
7760
7761 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
7762
7763 * editfns.c (Ftranslate_region_internal): Rename from
7764 Ftranslate_region. Accept a char-table in TABLE.
7765 (syms_of_editfns): Defsubr Stranslate_region_internal.
7766
7767 * xfaces.c (set_lface_from_font_name): If a font is specified for
7768 a frame, generate a fontset from the font.
7769 (build_scalable_font_name): If the scalable font is requested for
7770 a specific size, don't change that size.
7771 (try_font_list): Try a scalable font also in the case that a
7772 pattern string is specified.
7773
7774 2008-02-01 Kenichi Handa <handa@m17n.org>
7775
7776 * xfaces.c (Fface_font): New optional arg CHARACTER.
7777
7778 2008-02-01 Kenichi Handa <handa@m17n.org>
7779
7780 * charset.h (CHARSET_OFFSET): New macro.
7781
7782 2008-02-01 Kenichi Handa <handa@m17n.org>
7783
7784 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
7785
7786 * fontset.c (fontset_face): Handle the case that repertory is a
7787 char-table.
7788 (find_font_encoding): Return nil for unknown encoding.
7789 (Fset_fontset_font): Ignore a font of unknown encoding.
7790
7791 2008-02-01 Kenichi Handa <handa@m17n.org>
7792
7793 * keymap.c (describe_vector): Handle default value of a char table.
7794
7795 * fontset.c (fontset_face): Handle fallback fonts correctly.
7796 (Ffontset_info): Return infomation about fallback fonts.
7797
7798 2008-02-01 Kenichi Handa <handa@m17n.org>
7799
7800 * fontset.c (FONTSET_DEFAULT): New macro.
7801 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
7802 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
7803 the case that it is nil.
7804 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
7805 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
7806
7807 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
7808 subset or superset.
7809
7810 2008-02-01 Kenichi Handa <handa@m17n.org>
7811
7812 * emacs.c (main): Call init_charset after syms_of_XXX.
7813
7814 * charset.c (Vcharset_map_directory): Delete.
7815 (Vcharset_map_path): New variable.
7816 (load_charset_map_from_file): Use Vcharset_map_path instead.
7817 (init_charset): Initialize Vcharset_map_path.
7818 (syms_of_charset): Delete declaration of "charset-map-directory",
7819 add declaration of "charset-map-path".
7820
7821 2008-02-01 Kenichi Handa <handa@m17n.org>
7822
7823 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
7824 ASCII only string.
7825
7826 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
7827
7828 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
7829 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
7830
7831 2008-02-01 Kenichi Handa <handa@m17n.org>
7832
7833 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
7834
7835 * coding.c (QCmnemonic, QCdefalut_char)
7836 (QCdecode_translation_table, QCencode_translation_table)
7837 (QCpost_read_conversion, QCpre_write_conversion): New variables.
7838 (get_translation_table): Return a list of translation tables if
7839 necessary.
7840 (decode_coding): Call get_translation_table with ENCODEP 0.
7841 (char_encodable_p): If translation_table is non-nil, always call
7842 translate_char.
7843 (Fdefine_coding_system_internal): Accept list of translation
7844 tables as :encode-translation-table and :decode-translation-table.
7845 (Fcoding_system_put): New function.
7846 (syms_of_coding): Declare new symbols. Defsubr
7847 Scoding_system_put.
7848 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
7849 typically JISX0212.
7850
7851 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
7852 when the charset is superset type.
7853
7854 * character.c (translate_char): Accept list of translation tables.
7855
7856 2008-02-01 Kenichi Handa <handa@m17n.org>
7857
7858 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
7859 (CODING_ATTR_TRANS_TBL): New macro.
7860
7861 * coding.c (get_translation_table): New function.
7862 (translate_chars): Fix the bug of skipping annotation data.
7863 (decode_coding, encode_coding): Utilize get_translation_table.
7864 (char_encodable_p, Funencodable_char_position): Translate char if
7865 necessary.
7866 (Ffind_coding_systems_region_internal)
7867 (Fcheck_coding_systems_region): Setup translation table for encode
7868 in a coding system attribute vector in advance.
7869 (Fdefine_coding_system_internal): Allow a symbol as translation
7870 table. For shift-jis type coding system, allow 4th charset.
7871
7872 2008-02-01 Kenichi Handa <handa@m17n.org>
7873
7874 * coding.c (decode_coding_sjis): Check the first byte rigidly.
7875
7876 * xdisp.c (get_next_display_element): Pass -1 as POS to
7877 FACE_FOR_CHAR if displaying a C-string.
7878
7879 2008-02-01 Kenichi Handa <handa@m17n.org>
7880
7881 * composite.c (get_composition_id): Handle xoff and yoff in a
7882 composition rule.
7883
7884 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
7885 (struct composition): New member lbearing and rbearing.
7886
7887 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
7888 (x_get_glyph_overhangs): Handle a composition glyph.
7889 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
7890
7891 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
7892 composition glyph.
7893
7894 2008-02-01 Kenichi Handa <handa@m17n.org>
7895
7896 * print.c: Include charset.h.
7897 (Vprint_charset_text_property): New variable.
7898 (Qdefault): Extern it.
7899 (PRINT_STRING_NON_CHARSET_FOUND)
7900 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
7901 (print_check_string_result): New variable.
7902 (print_check_string_charset_prop): New function.
7903 (print_prune_charset_plist): New variable.
7904 (print_prune_string_charset): New function.
7905 (print_object): Call print_prune_string_charset if
7906 Vprint_charset_text_property is not t.
7907 (print_interval): Print nothing if itnerval->plist is nil.
7908 (syms_of_print): Declare Vprint_charset_text_property as a lisp
7909 variable. Init and staticpro print_prune_charset_plist.
7910
7911 2008-02-01 Kenichi Handa <handa@m17n.org>
7912
7913 * fontset.c (new_fontset_from_font_name): Use the specified font
7914 for all characters in the new fontset.
7915
7916 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7917 OBJECT args.
7918
7919 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
7920 OBJECT args for composition too.
7921
7922 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7923 OBJECT args.
7924
7925 2008-02-01 Kenichi Handa <handa@m17n.org>
7926
7927 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
7928
7929 * fontset.c (reorder_font_vector): Adjust for the change of
7930 FONT_DEF format.
7931 (fontset_face): New arg id. Change caller.
7932 (face_for_char): New args pos and object.
7933 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
7934 (fs_query_fontset): Check NAME by Fassoc too.
7935 (Fset_fontset_font): Allow non-XLFD font name.
7936 (Ffontset_info): Adjust for the change of FONT_DEF format.
7937
7938 * fontset.h (face_for_char): Adjust prototype.
7939
7940 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
7941 (append_space, extend_face_to_end_of_line)
7942 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7943 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
7944
7945 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
7946 POS and OBJECT args.
7947
7948 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
7949 POS and OBJECT args.
7950
7951 2008-02-01 Jason Rumney <jasonr@gnu.org>
7952
7953 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
7954 of GlobalAlloc'ed memory.
7955
7956 2008-02-01 Kenichi Handa <handa@m17n.org>
7957
7958 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
7959
7960 * charset.h (charset_table_used): Delete extern.
7961
7962 * charset.c (charset_table_used): Make it static.
7963 (map_charset_chars): Fix args to c_function with.
7964
7965 * chartab.c (map_sub_char_table_for_charset): Fix args to
7966 c_function with.
7967
7968 * coding.h (enum coding_result_code): Delete
7969 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
7970
7971 * coding.c (Qinsufficient_source, Qinconsistent_eol)
7972 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
7973 (Vlast_code_conversion_error): New variables.
7974 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
7975 (ONE_MORE_BYTE): Record error if any instead of signaling an
7976 error. If non-ASCII multibyte char is found, return the negative
7977 value of the code. All callers changed to check it.
7978 (ONE_MORE_BYTE_NO_CHECK): Likewise.
7979 (record_conversion_result): New function. Change all codes setting
7980 coding->result to call this function.
7981 (detect_coding_utf_8, decode_coding_utf_8)
7982 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
7983 Don't use the local variable incomplete.
7984 (emacs_mule_char): Change the second arg to `const'.
7985 (decode_coding): Fix of flushing out unprocessed data.
7986 (make_conversion_work_buffer): Fix making of a work buffer.
7987 (decode_coding_object): Return coding->dst_object.
7988
7989 * fontset.c (set_fontset_font): Fix args.
7990
7991 * lisp.h (CHARACTERBITS): Define as 22.
7992
7993 * process.c (send_process): Be sure to set coding->src_multibyte.
7994
7995 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
7996
7997 2008-02-01 Kenichi Handa <handa@m17n.org>
7998
7999 * xdisp.c (handle_auto_composed_prop): Give limit to
8000 Fnext_single_char_property_change.
8001
8002 2008-02-01 Kenichi Handa <handa@m17n.org>
8003
8004 * composite.c (syms_of_composite): Don't make the composition hash
8005 table weak.
8006
8007 * fontset.c (Fset_fontset_font): Fix docstring.
8008
8009 * lisp.h (detect_coding_system): Adjust prototype.
8010
8011 * fileio.c (kill_workbuf_unwind): Delete this function.
8012 (Finsert_file_contents): Adjust the call of detect_coding_system.
8013 Get conversion_buffer by code_conversion_save. Use the macor
8014 CODING_MAY_REQUIRE_DECODING. After decoding, update
8015 coding_system.
8016
8017 * coding.h (make_conversion_work_buffer): Delete extern.
8018 (code_conversion_save): Extern it.
8019
8020 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
8021 (CODING_GET_INFO): Delete argument eol_type. Change callers.
8022 (decode_coding_utf_8): Don't do eol converion.
8023 (detect_coding_utf_16): Check coding->src_chars, not
8024 coding->src_bytes. Add heuristics for those that have no signature.
8025 (decode_coding_emacs_mule, decode_coding_iso_2022)
8026 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8027 Don't do eol converion.
8028 (adjust_coding_eol_type): Return a new coding system.
8029 (detect_coding): Don't detect eol. Fix for utf-16 detection.
8030 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
8031 each change.
8032 (decode_coding): Pay attention to undo_list. Do eol convesion for
8033 all types of coding-systems (if necessary).
8034 (Vcode_conversion_work_buf_list): Delete it.
8035 (Vcode_conversion_reused_workbuf): Rename from
8036 Vcode_conversion_reused_work_buf.
8037 (Vcode_conversion_workbuf_name): New variable.
8038 (reused_workbuf_in_use): New variable.
8039 (make_conversion_work_buffer): Delete the arg DEPTH.
8040 (code_conversion_restore): Change argument to cons.
8041 (code_conversion_save): Delete the argument BUFFER. Change callers.
8042 (detect_coding_system): New argument src_chars. Change callers.
8043 Fix for utf-16 detection.
8044 (init_coding_once): Don't use ISO_carriage_return.
8045 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
8046 reused_workbuf_in_use.
8047
8048 2008-02-01 Kenichi Handa <handa@m17n.org>
8049
8050 * keymap.c (store_in_keymap): Pay attention to the case that idx
8051 is a cons specifying a character range.
8052
8053 2008-02-01 Kenichi Handa <handa@m17n.org>
8054
8055 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
8056 HANDLED_RECOMPUTE_PROPS.
8057
8058 * coding.c (Fdefine_coding_system_internal): Fix checking of
8059 ascii compatibility.
8060
8061 2008-02-01 Kenichi Handa <handa@m17n.org>
8062
8063 * charset.c (find_charsets_in_text): Delete unused locale variable.
8064 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
8065
8066 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
8067 Resync charset_list to Vemacs_mule_charset_list.
8068
8069 * keymap.c (store_in_keymap): Pay attention to the case that idx
8070 is a cons specifying a character range.
8071
8072 2008-02-01 Kenichi Handa <handa@m17n.org>
8073
8074 * composite.c (update_compositions): Bind inhibit-read-only, etc
8075 to t before calling remove-list-of-text-properties.
8076
8077 * print.c (print_object): Always print ASCII chars as is.
8078
8079 2008-02-01 Kenichi Handa <handa@m17n.org>
8080
8081 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
8082
8083 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
8084 is a char table.
8085
8086 2008-02-01 Kenichi Handa <handa@m17n.org>
8087
8088 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
8089
8090 2008-02-01 Kenichi Handa <handa@m17n.org>
8091
8092 * xfaces.c (set_lface_from_font_name): Fix for the case that
8093 FONTNAME is not fontset name.
8094
8095 2008-02-01 Kenichi Handa <handa@m17n.org>
8096
8097 * fns.c (base64_encode_1): Fix previous change.
8098
8099 2008-02-01 Kenichi Handa <handa@m17n.org>
8100
8101 * fontset.c (set_fontset_font): New function.
8102 (Fset_fontset_font): If a font is specified for a charset, use
8103 map_charset_chars to store the font spec in a fontset.
8104
8105 2008-02-01 Kenichi Handa <handa@m17n.org>
8106
8107 * fontset.c (fontset_face): Create a fallback fontset on demand.
8108 (make_fontset): Don't create a fallback fontset here.
8109 (free_face_fontset): Free a fallback fontset (if any) too.
8110 (n_auto_fontsets): Delete this variable.
8111 (auto_fontset_alist): New variable.
8112 (new_fontset_from_font_name): Check auto_fontset_alist.
8113 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
8114 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
8115 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
8116 Defsubr Sfontset_list_all.
8117
8118 2008-02-01 Kenichi Handa <handa@m17n.org>
8119
8120 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8121
8122 2008-02-01 Kenichi Handa <handa@m17n.org>
8123
8124 * fontset.c (Fnew_fontset): Check NAME more rigidly.
8125
8126 2008-02-01 Kenichi Handa <handa@m17n.org>
8127
8128 * editfns.c (Fgoto_char): Fix docstring.
8129
8130 2008-02-01 Kenichi Handa <handa@m17n.org>
8131
8132 * insdel.c (insert_from_gap): Adjust intervals correctly.
8133
8134 2008-02-01 Jason Rumney <jasonr@gnu.org>
8135
8136 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
8137 (pfnGetFontUnicodeRanges): New dynamically loaded function.
8138 (w32_initialize): Try to load it.
8139 (x_get_font_repertory): Use it if available.
8140 (w32_encode_char): Add shortcut for unicode output.
8141
8142 * w32fns.c (w32_load_system_font): Default charset to -1.
8143 (x_to_w32_charset): Match all fonts for unicode.
8144 (w32_to_x_charset): New parameter matching. Don't return partial
8145 or wildcard charsets.
8146 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
8147 (w32_codepage_for_font): Return CP_UNICODE for unicode.
8148 (w32_to_x_font): Match charset to real charset.
8149 (enum_font_cb2): Always list unicode versions.
8150
8151 * makefile.w32-in (temacs): Increase EMHEAP.
8152
8153 2008-02-01 Jason Rumney <jasonr@gnu.org>
8154
8155 * w32term.c (w32_encode_char): New charset parameter.
8156 font_info.encoding becomes encoding_type.
8157 (x_get_font_repertory): New function. Warning: stub only!
8158 (x_new_font): Return quickly if font already set.
8159 (x_new_fontset): fontsetname parameter is Lisp_Object.
8160 Use new fs_query_fontset. Try new_fontset_from_font_name.
8161 Use fontset_name for return value.
8162
8163 * w32term.h: Declare x_get_font_repertory.
8164
8165 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
8166 place of find_charset_in_text. Use encode_coding_object in place
8167 of encode_coding.
8168 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
8169 decode_coding.
8170
8171 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
8172 of x_new_fontset.
8173 (w32_load_system_font): Initialize charset as unicode.
8174 font_info.encoding becomes encoding_type.
8175 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
8176 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
8177 (syms_of_w32fns): Set get_font_repertory_func.
8178
8179 * w32console.c: Include character.h. Use terminal_encode_buffer
8180 from term.c.
8181 (write_glyphs): Use new version of encode_terminal_code. Use
8182 encode_coding_object in place of encode_coding.
8183
8184 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
8185 encoding becomes encoding_type.
8186
8187 * term.c (terminal_encode_buffer): Make externally visible.
8188
8189 * makefile.w32-in: Add character.h dependancies.
8190 (character.o, chartab.o): New targets.
8191
8192 2008-02-01 Kenichi Handa <handa@m17n.org>
8193
8194 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
8195 CODING_ID_EOL_TYPE.
8196
8197 2008-02-01 Andreas Schwab <schwab@suse.de>
8198
8199 * coding.c (produce_chars): Revert last change.
8200
8201 2008-02-01 Kenichi Handa <handa@m17n.org>
8202
8203 * charset.h (charset_unicode): Extern it.
8204
8205 * charset.c (string_xstring_p): Check by (C >= 0x100).
8206 (find_charsets_in_text): Change format of the arc CHARSETS. New
8207 arg MULTIBYTE.
8208 (Ffind_charset_region, Ffind_charset_string): Adjust for the
8209 change of find_charsets_in_text.
8210 (Fsplit_char): Fix doc. Never return unknown.
8211
8212 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
8213
8214 * coding.c (Fdefine_coding_system_alias): Update
8215 Vcoding_system_list.
8216
8217 * fontset.c (load_font_get_repertory): Pay attention to the case
8218 that ENCODING of a font is specified by a char-table.
8219
8220 * xterm.c (x_get_font_repertory): Handle the case that the
8221 encoding of font is other than Unicode.
8222
8223 2008-02-01 Kenichi Handa <handa@m17n.org>
8224
8225 * term.c (encode_terminal_code): Don't handle glyph-table. Check
8226 if a character is encodable by the terminal coding system. If
8227 not, produces proper number of `?'s. Update
8228 terminal_encode_buffer and terminal_encode_buf_size if necessary.
8229 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
8230
8231 2008-02-01 Kenichi Handa <handa@m17n.org>
8232
8233 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
8234 variables.
8235 (encode_terminal_code): Change argument. Encode multiple
8236 characters at once. Store the result of encoding in
8237 terminal_encode_buffer.
8238 (write_glyphs, insert_glyphs): Adjust for the change of
8239 encode_terminal_code.
8240 (term_init): Initialize terminal_encode_buffer and
8241 terminal_encode_buf_size.
8242
8243 * coding.c (consume_chars): If coding->src_object is nil, don't
8244 check annotation.
8245
8246 2008-02-01 Kenichi Handa <handa@m17n.org>
8247
8248 * character.c (char_string): Use ASCII_CHAR_P instead of
8249 SINGLE_BYTE_CHAR_P.
8250
8251 2008-02-01 Kenichi Handa <handa@m17n.org>
8252
8253 * xdisp.c (handle_auto_composed_prop): Check if the last
8254 characters of auto-composed region is newly composed with the
8255 following characters.
8256 (handle_composition_prop): Fix checking of point being inside
8257 composition.
8258
8259 2008-02-01 Kenichi Handa <handa@m17n.org>
8260
8261 * fns.c (concat): Don't change multibyteness of the result by
8262 concatenating an 8-bit character.
8263
8264 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
8265 multibyteness of the result when newelt is an 8-bit character.
8266
8267 2008-02-01 Dave Love <fx@gnu.org>
8268
8269 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
8270 EMACS_INT.
8271
8272 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
8273
8274 * xfaces.c (face_numeric_value): Declare dim size_t.
8275 (Finternal_lisp_face_equal_p): Remove unused f.
8276
8277 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
8278 (MATRIX_ROW): Remove unused vars.
8279 (draw_glyphs, x_insert_glyphs, fast_find_position)
8280 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
8281 byte/char counts.
8282
8283 * regex.c (regex_compile): Remove unused var.
8284
8285 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8286
8287 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8288 (Faccessible_keymaps, where_is_internal): Remove unused vars.
8289
8290 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
8291
8292 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
8293
8294 * fileio.c (Fwrite_region): Remove unused var.
8295
8296 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
8297 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
8298
8299 * composite.c (Fremove_list_of_text_properties): Declare.
8300
8301 * coding.c (inhibit_pre_post_conversion): Remove (unused).
8302 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
8303 (coding_inherit_eol_type): Remove unused attrs.
8304 (detect_coding): Cast arg of detect_eol.
8305
8306 * charset.c (syms_of_charset): Remove unused var p.
8307 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
8308 byte/char counts.
8309
8310 * casetab.c (set_case_table): Remove unused var.
8311
8312 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
8313 unused vars.
8314
8315 2008-02-01 Dave Love <fx@gnu.org>
8316
8317 * xterm.c (x_bitmap_mask): Declare.
8318
8319 2008-02-01 Dave Love <fx@gnu.org>
8320
8321 * xterm.c (x_term_init): Fix type error.
8322
8323 * lisp.h: Add Funibyte_char_to_multibyte.
8324
8325 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
8326 (Fset_coding_system_priority): Doc fix.
8327
8328 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
8329
8330 * indent.c (check_composition): Make start and end EMACS_INT.
8331
8332 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
8333
8334 * xdisp.c (handle_composition_prop, check_point_in_composition):
8335 Make buffer positions EMACS_INT.
8336
8337 * composite.c (find_composition, run_composition_function)
8338 (update_compositions, Ffind_composition_internal): Make buffer
8339 positions EMACS_INT.
8340
8341 * composite.h (find_composition, update_compositions): Make
8342 position args EMACS_INT.
8343
8344 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
8345
8346 * intervals.c (get_property_and_range):
8347 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
8348
8349 * unexalpha.c: Don't include varargs.h.
8350
8351 2008-02-01 Dave Love <fx@gnu.org>
8352
8353 * coding.h (ENCODE_UTF_8): New.
8354
8355 * Makefile.in (gtkutil.o): Depend on coding.h.
8356
8357 * coding.c (Fset_coding_system_priority): Doc fix.
8358
8359 2008-02-01 Kenichi Handa <handa@m17n.org>
8360
8361 * fileio.c (Finsert_file_contents): Call setup_coding_system in
8362 the case of auto saving.
8363
8364 2008-02-01 Andreas Schwab <schwab@suse.de>
8365
8366 * chartab.c (map_char_table, map_char_table_for_charset): Protect
8367 `range' from GC.
8368
8369 2008-02-01 Kenichi Handa <handa@m17n.org>
8370
8371 * coding.c (decode_coding_sjis): Check bytes more rigidly.
8372
8373 2008-02-01 Kenichi Handa <handa@m17n.org>
8374
8375 * fileio.c (choose_write_coding_system): Return a decided coding system.
8376 (Fwrite_region): Set Vlast_coding_system_used to the return value
8377 of choose_write_coding_system.
8378
8379 2008-02-01 Kenichi Handa <handa@m17n.org>
8380
8381 * charset.c (Fset_charset_priority): Pay attention to duplicated
8382 arguments.
8383
8384 * coding.c (QCcategory): New variable.
8385 (syms_of_coding): Defsym it. Set all elements of
8386 Vcoding_category_table and their symbol values.
8387 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
8388 coding-category-XXX, and coding-category-list.
8389 (Fdefine_coding_system_internal): Add category in the plist.
8390
8391 2008-02-01 Kenichi Handa <handa@m17n.org>
8392
8393 * callproc.c (Fcall_process): Handle carryover correctly.
8394
8395 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
8396 (raw_text_coding_system): Check NILP (coding_system).
8397 (coding_inherit_eol_type): Check NILP (coding_system) and
8398 NILP (parent).
8399 (consume_chars): Fix for the case of raw-text.
8400
8401 * process.c (read_process_output): Handle carryover correctly.
8402
8403 2008-02-01 Dave Love <fx@gnu.org>
8404
8405 * regex.c (re_search_2): Fix last change.
8406
8407 2008-02-01 Kenichi Handa <handa@m17n.org>
8408
8409 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
8410 target_multibyte. Even in a unibyte case, return a converted
8411 multibyte char.
8412 (GET_CHAR_AFTER): New macro.
8413 (PATFETCH): Translate via multibyte char.
8414 (HANDLE_UNIBYTE_RANGE): Delete this macro.
8415 (SETUP_MULTIBYTE_RANGE): New macro.
8416 (regex_compile): Setup compiled code so that its multibyteness
8417 matches that of a target. Fix the handling of "[X-YZ]" using
8418 SETUP_MULTIBYTE_RANGE.
8419 (analyse_first) <charset>: For filling fastmap for all multibyte
8420 characters, don't check by BASE_LEADING_CODE_P.
8421 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
8422 the same as RE_MULTIBYTE_P (bufp) now.
8423 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
8424 (TARGET_CHAR_AND_LENGTH): Delete this macro.
8425 (TRANSLATE_VIA_MULTIBYTE): New macro.
8426 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
8427 It is the same as RE_MULTIBYTE_P (bufp) now.
8428 <exactn>: Translate via multibyte.
8429 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
8430 translate it.
8431 <charset, charset_not>: Fetch a character by
8432 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
8433 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
8434 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
8435 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
8436 by GET_CHAR_AFTER.
8437 (bcmp_translate): Likewise.
8438
8439 * search.c (compile_pattern): Check the member target_multibyte,
8440 not the member multibyte of buf.
8441
8442 * lread.c (read1): While reading a string, set force_singlebyte
8443 and force_multibyte correctly.
8444
8445 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
8446 up of unibyte_to_multibyte_table.
8447
8448 2008-02-01 Kenichi Handa <handa@m17n.org>
8449
8450 * coding.c (setup_coding_system): If coding has
8451 post-read-conversion or pre-write-conversion, set
8452 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
8453 respectively.
8454 (decode_coding_gap): Run post-read-conversion if any.
8455
8456 * fileio.c (Finsert_file_contents): Even if we read into a
8457 unibyte buffer, check if we must decode the result or not.
8458
8459 2008-02-01 Kenichi Handa <handa@m17n.org>
8460
8461 * coding.c (make_conversion_work_buffer): Change the work buffer
8462 name to the same one as that of Emacs 21.
8463
8464 2008-02-01 Kenichi Handa <handa@m17n.org>
8465
8466 * coding.h (make_conversion_work_buffer): Adjust prototype.
8467 (code_conversion_restore): Don't extern it.
8468
8469 * coding.c (detected_mask): Delete unused variable.
8470 (decode_coding_iso_2022): Pay attention to the byte sequence of
8471 CTEXT extended segment, and retain those bytes as is.
8472 (decode_coding_ccl): Delete unused variable `valids'.
8473 (setup_coding_system): Delete unused variable `category'.
8474 (consume_chars): Delete unused variable `category'. Make it work
8475 for non-multibyte case.
8476 (make_conversion_work_buffer): Change argument.
8477 (saved_coding): Delete unused variable.
8478 (code_conversion_restore): Don't check saved_coding->destination.
8479 (code_conversion_save): New function.
8480 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
8481 instead of record_unwind_protect.
8482 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
8483 (detect_coding_system): Delete unused variable `mask'.
8484 (Fdefine_coding_system_internal): Delete unused vaiable id.
8485
8486 * fileio.c (kill_workbuf_unwind): New function.
8487 (Finsert_file_contents): On replacing, call
8488 make_conversion_work_buffer with correct args, and call
8489 record_unwind_protect with the first arg kill_workbuf_unwind.
8490
8491 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
8492
8493 2008-02-01 Kenichi Handa <handa@m17n.org>
8494
8495 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
8496 (fontset_add): Fix for the case that TO is less than TO1.
8497 (Ffontset_info): Don't use fallback fontset on checking the
8498 default fontset.
8499 (dump_fontset): New function for debugging.
8500
8501 * coding.c (Fdefine_coding_system_internal): Fix for the case that
8502 coding_type is Qcharset.
8503
8504 2008-02-01 Kenichi Handa <handa@m17n.org>
8505
8506 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
8507 (map_char_table): Don't inherit the value from the parent on
8508 initializing VAL. Adjust for the above change.
8509
8510 2008-02-01 Kenichi Handa <handa@m17n.org>
8511
8512 * coding.c (Qsignature, Qendian): Delete these variables.
8513 (syms_of_coding): Don't initialize them.
8514 (CATEGORY_MASK_UTF_16_AUTO): New macro.
8515 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
8516 detect_info->found.
8517 (decode_coding_utf_16): Don't detect BOM here.
8518 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
8519 is NOT utf_16_without_bom.
8520 (setup_coding_system): For a coding system of type utf-16, check
8521 if the attribute :endian is Qbig or not (not nil or not), and set
8522 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
8523 (detect_coding): If coding type is utf-16 and BOM detection is
8524 required, detect it.
8525 (Fdefine_coding_system_internal): For a coding system of type
8526 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
8527
8528 2008-02-01 Kenichi Handa <handa@m17n.org>
8529
8530 * coding.c (coding_set_source): Fix for the case that the current
8531 buffer is different from coding->src_object.
8532 (decode_coding_object): Don't use the conversion work buffer if
8533 DST_OBJECT is a buffer.
8534
8535 2008-02-01 Dave Love <fx@gnu.org>
8536
8537 * lread.c (read_emacs_mule_char) [len==2]: Index
8538 emacs_mule_charset correctly.
8539
8540 2008-02-01 Dave Love <fx@gnu.org>
8541
8542 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
8543 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
8544 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
8545 treated specially.)
8546 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
8547 (detected_mask): Remove Big5 bits.
8548
8549 2008-02-01 Kenichi Handa <handa@m17n.org>
8550
8551 The following changes are to make the font rescaling facility
8552 compatible with Emacs 21.
8553
8554 * xfaces.c (Vface_font_rescale_alist): Rename from
8555 Vface_resizing_fonts.
8556 (struct font_name): Rename member resizing_ratio to rescale_ratio.
8557 (font_rescale_ratio): Rename from font_resizing_ratio.
8558 (split_font_name): Set font->rescale_ratio.
8559 (better_font_p): Pay attention to font->rescale_ratio.
8560 (build_scalable_font_name): Likewise. Change RESX, and RESY
8561 fields.
8562 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
8563
8564 2008-02-01 Kenichi Handa <handa@m17n.org>
8565
8566 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
8567 (Qutf_16_le): Remove these variables.
8568 (syms_of_coding): Don't DEFSYM them.
8569 (decode_coding_utf_16): Fix handling of BOM.
8570 (encode_coding_utf_16): Fix handling of BOM.
8571
8572 2008-02-01 Kenichi Handa <handa@m17n.org>
8573
8574 * fileio.c (Finsert_file_contents): On replacing, before decoding
8575 the file into the work buffer, set point of the work buffer to the end.
8576
8577 2008-02-01 Dave Love <fx@gnu.org>
8578
8579 * coding.c (Fcheck_coding_systems_region): Fix type errors.
8580
8581 2008-02-01 Dave Love <fx@gnu.org>
8582
8583 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8584 and fix C types.
8585
8586 2008-02-01 Kenichi Handa <handa@m17n.org>
8587
8588 * xdisp.c (SKIP_GLYPHS): New macro.
8589 (set_cursor_from_row): Pay attention to string display properties.
8590
8591 * category.c (copy_category_entry): Fix for the case that RANGE
8592 is an integer.
8593
8594 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
8595
8596 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
8597
8598 2008-02-01 Kenichi Handa <handa@m17n.org>
8599
8600 * charset.c (Fcharset_id_internal): New function.
8601 (syms_of_charset): Defsubr it.
8602
8603 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
8604 with the last arg charset_list acquired from coding.
8605 (Fdefine_coding_system_internal): For ccl-based coding system, fix
8606 the attribute coding_attr_ccl_valids.
8607
8608 * coding.h (enum define_coding_ccl_arg_index): Set the first
8609 member coding_arg_ccl_decoder to coding_arg_max.
8610
8611 * ccl.h (ccl_driver): Adjust prototype.
8612
8613 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
8614 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
8615 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
8616 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
8617 last arg Qnil.
8618
8619 2008-02-01 Kenichi Handa <handa@m17n.org>
8620
8621 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
8622 call encode_char.
8623
8624 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
8625
8626 2008-02-01 Dave Love <fx@gnu.org>
8627
8628 * composite.c (syms_of_composite): Make composition_hash_table weak.
8629
8630 2008-02-01 Kenichi Handa <handa@m17n.org>
8631
8632 * dispextern.h (check_face_attributes, generate_ascii_font_name)
8633 (font_name_registry): Don't extern them.
8634 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
8635
8636 * fontset.h (Qfontset): Don't extern it.
8637 (new_fontset_from_font_name): Extern it.
8638
8639 * fontset.c: Give 8 extra slots to fontset objects.
8640 (Qfontset_info): New variable.
8641 (syms_of_fontset): Defsym it.
8642 (FONTSET_FALLBACK): New macro.
8643 (fontset_face): Try also the default fontset.
8644 (make_fontset): Realize a fallback fontset from the default fontset.
8645 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
8646 using split_font_name_into_vector and build_font_name_from_vector.
8647 (Fset_fontset_font): Access the elements of font_spec by enum
8648 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
8649 name by using split_font_name_into_vector.
8650 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
8651 generate a proper font name from the fontset name. Update
8652 Vfontset_alias_alist.
8653 (n_auto_fontsets): New variable.
8654 (new_fontset_from_font_name): New function.
8655 (Ffont_info): Store the information about fonts generated from the
8656 default fontset in the first extra slot of the returned char-table.
8657
8658 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
8659 (font_name_registry): Delete function.
8660 (split_font_name_into_vector): New function.
8661 (build_font_name_from_vector): New function.
8662 (font_list): The argument REGISTRY is now a list of registry names.
8663 (choose_face_font): If we are choosing an ASCII font, and ATTRS
8664 specifies an explicit font name, return the name as is. Make a
8665 list of registy names.
8666
8667 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
8668 of x_new_fontset.
8669 (Fx_create_frame): Don't call x_new_fontset here. Just use
8670 x_list_fonts to check the existence of fonts.
8671
8672 * xterm.h (x_new_fontset): Adjust prototype.
8673
8674 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
8675 string. Use new_fontset_from_font_name to create a fontset from a
8676 font name.
8677
8678 2008-02-01 Kenichi Handa <handa@m17n.org>
8679
8680 * syntax.c (Vfind_word_boundary_function_table): New name for
8681 Vnext_word_boundary_function_table.
8682 (find-word-boundary-function-table): New name for
8683 next-word-boundary-function-table.
8684
8685 2008-02-01 Dave Love <fx@gnu.org>
8686
8687 * Makefile.in: Fix some dependencies.
8688
8689 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
8690 set it to nil before returning.
8691
8692 * composite.c (update_compositions): Fix type error.
8693
8694 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
8695
8696 2008-02-01 Kenichi Handa <handa@m17n.org>
8697
8698 * xterm.c (x_new_font): Optimize for the case that the font is
8699 already set for the frame.
8700
8701 2008-02-01 Kenichi Handa <handa@m17n.org>
8702
8703 * chartab.c (char_table_ascii): Check if the char table contents
8704 is sub-char-table or not.
8705 (char_table_set, char_table_set_range): Fix argument to
8706 char_table_ascii.
8707
8708 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
8709 (detect_coding_utf_8, detect_coding_utf_16)
8710 (detect_coding_emacs_mule, detect_coding_iso_2022)
8711 (detect_coding_sjis, detect_coding_big5)
8712 (detect_coding_ccl, detect_coding_charset): Change argument MASK
8713 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
8714 sequence is valid in this coding system. Change callers.
8715 (MAX_ANNOTATION_LENGTH): New macro.
8716 (ADD_ANNOTATION_DATA): New macro.
8717 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
8718 ADD_ANNOTATION_DATA. Change the format of annotation data.
8719 (ADD_CHARSET_DATA): New macro.
8720 (emacs_mule_char): New argument ID. Change callers.
8721 (decode_coding_emacs_mule, decode_coding_iso_2022)
8722 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8723 Produce charset annotation data in coding->charbuf.
8724 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
8725 to charset annotation data in coding->charbuf.
8726 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
8727 coding->common_flags if the coding system is iso-2022 based and
8728 uses designation.
8729 (produce_composition): Adjust for the new annotation data format.
8730 (produce_charset): New function.
8731 (produce_annotation): Handle charset annotation.
8732 (handle_composition_annotation, handle_charset_annotation): New
8733 functions.
8734 (consume_chars): Handle charset annotation. Utilize the above two
8735 functions.
8736 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
8737 buffer, get the deleted text as a string and set
8738 coding->src_object to that string.
8739 (detect_coding, detect_coding_system): Use the new struct
8740 coding_detection_info.
8741
8742 * coding.h (struct coding_detection_info): New structure.
8743 (struct coding_system): Adjust prototype of the member `detector'.
8744 (CODING_ANNOTATE_CHARSET_MASK): New macro.
8745
8746 2008-02-01 Kenichi Handa <handa@m17n.org>
8747
8748 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
8749
8750 2008-02-01 Dave Love <fx@gnu.org>
8751
8752 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
8753 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
8754 to new local and nullify apropos_accumulate before returning.
8755 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
8756
8757 2008-02-01 Kenichi Handa <handa@m17n.org>
8758
8759 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
8760 correctly.
8761
8762 2008-02-01 Dave Love <fx@gnu.org>
8763
8764 * fns.c (Flanginfo): Call synchronize_system_time_locale.
8765
8766 2008-02-01 Kenichi Handa <handa@m17n.org>
8767
8768 The following changes are to make character composition happen
8769 automatically on displaying.
8770
8771 * Makefile.in (lisp, shortlisp): Add composite.elc.
8772
8773 * composite.h (Qauto_composed, Vauto_composition_function)
8774 (Qauto_composition_function): Extern them.
8775
8776 * composite.c (Vcomposition_function_table)
8777 (Qcomposition_function_table): Delete variables.
8778 (Qauto_composed, Vauto_composition_function)
8779 (Qauto_composition_function): New variables.
8780 (run_composition_function): Don't call
8781 compose-chars-after-function.
8782 (update_compositions): Clear `auto-composed' text property.
8783 (compose_chars_in_text): Delete this function.
8784 (syms_of_composite): Staticpro Qauto_composed and
8785 Qauto_composition_function. Declare Vauto_composition_function as
8786 a Lisp variable.
8787
8788 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
8789
8790 * xdisp.c (it_props): Add an entry for Qauto_composed.
8791 (handle_auto_composed_prop): New function.
8792
8793 * xselect.c (selection_data_to_lisp_data): Don't call
8794 compose_chars_in_text.
8795
8796 2008-02-01 Dave Love <fx@gnu.org>
8797
8798 * keyboard.c (read_char): Modify checking around use of
8799 Vkeyboard_translate_table.
8800
8801 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8802 and fix C types.
8803
8804 2008-02-01 Kenichi Handa <handa@m17n.org>
8805
8806 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
8807 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8808 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
8809 the case that the last byte is '\r' correctly.
8810 (decode_coding): Flush out the unprocessed data correctly.
8811 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
8812
8813 2008-02-01 Dave Love <fx@gnu.org>
8814
8815 * xterm.c (XTread_socket): Fix changes for defined keysyms.
8816 Add XK_ISO... case.
8817 (xaw_scroll_callback): Revert last change.
8818
8819 2008-02-01 Kenichi Handa <handa@m17n.org>
8820
8821 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
8822
8823 2008-02-01 Kenichi Handa <handa@m17n.org>
8824
8825 * xfaces.c (Vface_resizing_fonts): New variable.
8826 (struct font_name): New member `resizing_ratio'.
8827 (font_resizing_ratio): New function.
8828 (split_font_name): Set font->resizing_ratio.
8829 (better_font_p): Pay attention to font->resizing_ratio.
8830 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
8831 RESX, and RESY fields.
8832 (try_alternative_families): Try scalable fonts if
8833 Vscalable_fonts_allowed is not Qt.
8834 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
8835
8836 2008-02-01 Dave Love <fx@gnu.org>
8837
8838 * xterm.c (xaw_scroll_callback): Cast correctly.
8839
8840 2008-02-01 Dave Love <fx@gnu.org>
8841
8842 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
8843 (lispy_kana_keys): Comment out.
8844 (make_lispy_event) [XK_kana_A]: Comment out.
8845
8846 * xterm.c (xaw_scroll_callback): Cast call_data.
8847 (XTread_socket): Deal with ASCII keysyms.
8848 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
8849
8850 2008-02-01 Dave Love <fx@gnu.org>
8851
8852 * xterm.c (Vx_keysym_table): New.
8853 (syms_of_xterm): Initialize it.
8854 (XTread_socket): Use it.
8855 From head: Eliminate incorrect optimization that tried to avoid
8856 decoding the output of X*LookupString.
8857 (x_get_font_repertory): Delete charset declaration.
8858
8859 2008-02-01 Kenichi Handa <handa@m17n.org>
8860
8861 * coding.c (detect_coding_charset): If only ASCII bytes are found,
8862 return 0.
8863 (Fdefine_coding_system_internal): Setup
8864 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
8865
8866 2008-02-01 Dave Love <fx@gnu.org>
8867
8868 * coding.c (Fcheck_coding_system): Doc fix.
8869
8870 * editfns.c (Finsert_byte): Return a proper value.
8871
8872 2008-02-01 Kenichi Handa <handa@m17n.org>
8873
8874 * coding.c (decode_coding): Fix args to translate_chars. Pay
8875 attention to Vstandard_translation_table_for_decode.
8876 (encode_coding): Fix args to translate_chars. Pay attention to
8877 Vstandard_translation_table_for_encode.
8878
8879 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
8880 SINGLE_BYTE_CHAR_P.
8881
8882 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
8883 not by SINGLE_BYTE_CHAR_P.
8884
8885 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
8886 SINGLE_BYTE_CHAR_P.
8887
8888 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
8889 SINGLE_BYTE_CHAR_P.
8890
8891 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
8892 by SINGLE_BYTE_CHAR_P.
8893
8894 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
8895 SINGLE_BYTE_CHAR_P.
8896
8897 2008-02-01 Dave Love <fx@gnu.org>
8898
8899 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
8900
8901 2008-02-01 Dave Love <fx@gnu.org>
8902
8903 * fns.c (Flanginfo): Fix typo.
8904
8905 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
8906
8907 2008-02-01 Kenichi Handa <handa@m17n.org>
8908
8909 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
8910 (detect_coding_emacs_mule, detect_coding_iso_2022)
8911 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
8912 incomplete byte sequence. Don't update *mask when correctly detected.
8913 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
8914 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
8915 (detect_coding, detect_coding_system): Adjust for the changes above.
8916
8917 2008-02-01 Kenichi Handa <handa@m17n.org>
8918
8919 * character.c (char_string): Rename from
8920 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
8921 (string_char): Rename from string_char.
8922
8923 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
8924 if C is greater than MAX_3_BYTE_CHAR.
8925 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
8926 string_char instead of string_char_with_unification.
8927
8928 2008-02-01 Dave Love <fx@gnu.org>
8929
8930 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
8931
8932 2008-02-01 Kenichi Handa <handa@m17n.org>
8933
8934 * keymap.c (push_key_description): Pay attention to force_multibyte.
8935
8936 * regex.c (re_search_2): Fix for the case of unibyte buffer.
8937
8938 2008-02-01 Dave Love <fx@gnu.org>
8939
8940 * charset.c (define_charset_internal): Rename `supprementary'.
8941
8942 * Makefile.in (lisp, shortlisp): Remove latin-N.
8943
8944 2008-02-01 Dave Love <fx@gnu.org>
8945
8946 * xfns.c (x_window, x_window): Use use_xim.
8947
8948 * xterm.c (use_xim): Initialize.
8949 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8950 (x_term_init): Maybe set use_xim.
8951
8952 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8953
8954 2008-02-01 Kenichi Handa <handa@m17n.org>
8955
8956 * search.c (search_buffer): Fix case-fold-search of multibyte
8957 characters.
8958 (boyer_moore): Rename the last argument to char_high_bits.
8959
8960 2008-02-01 Kenichi Handa <handa@m17n.org>
8961
8962 * xdisp.c (display_string): Fix for the case of zero width glyph.
8963
8964 * xfns.c (x_set_font): Change the error message of the case that
8965 x_new_fontset returns Qt.
8966
8967 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
8968 (Finternal_set_lisp_face_attribute): Use signal_error for the
8969 error of invalid fontset.
8970
8971 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
8972 fontset, return Qt.
8973
8974 2008-02-01 Dave Love <fx@gnu.org>
8975
8976 * unexelf.c (unexec): Make .got handling not SGI-specific.
8977
8978 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
8979
8980 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
8981
8982 * keyboard.c (read_key_sequence): Fix type error.
8983
8984 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
8985 type error.
8986
8987 * fontset.c (fontset_add): Return Lisp_Object.
8988
8989 2008-02-01 Dave Love <fx@gnu.org>
8990
8991 * charset.h (charset_ordered_list_tick): Declare extern.
8992
8993 2008-02-01 Kenichi Handa <handa@m17n.org>
8994
8995 The following changes (and some of 2008-02-01 changes of mine) are
8996 for handling syntax, category, and case conversion for unibyte
8997 characters by converting them to multibyte on the fly. With these
8998 changes, we don't have to setup syntax and case tables for unibyte
8999 characters in each language environment.
9000
9001 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
9002 multibyte if necessary.
9003
9004 * bytecode.c (Fbyte_code): Likewise.
9005
9006 * character.h (LEADING_CODE_LATIN_1_MIN)
9007 (LEADING_CODE_LATIN_1_MAX): New macros.
9008 (unibyte_to_multibyte_table): Extern it.
9009 (unibyte_char_to_multibyte): New macro.
9010 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
9011 (CHAR_LEADING_CODE): New macro.
9012 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
9013
9014 * character.c (unibyte_to_multibyte_table): New variable.
9015 (unibyte_char_to_multibyte): Move to character.h and define as macro.
9016 (multibyte_char_to_unibyte): If C is an eight-bit character,
9017 convert it to the corresponding byte value.
9018
9019 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
9020 not 1, singals an error. Update the elements of
9021 unibyte_to_multibyte_table.
9022 (init_charset_once): Initialize unibyte_to_multibyte_table.
9023 (syms_of_charset): Define the charset `iso-8859-1'.
9024
9025 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
9026 as is without converting it to unibyte. In a unibyte buffer,
9027 convert C to multibyte before checking the syntax.
9028
9029 * lisp.h (unibyte_char_to_multibyte): Delete extern.
9030
9031 * minibuf.c (Fminibuffer_complete_word): Use the macro
9032 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
9033
9034 * regex.h (struct re_pattern_buffer): New member target_multibyte.
9035
9036 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
9037 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
9038 that is zero, convert an eight-bit char to multibyte.
9039 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
9040 non-emacs case.
9041 (PATFETCH): Convert an eight-bit char to multibyte.
9042 (HANDLE_UNIBYTE_RANGE): New macro.
9043 (regex_compile): Setup the compiled pattern for multibyte chars
9044 even if the given regex string is unibyte. Use PATFETCH_RAW
9045 instead of PATFETCH in many places. To handle `charset'
9046 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
9047 only for ASCII chars.
9048 (analyse_first) <exactn>: Simplify because the compiled pattern
9049 is multibyte.
9050 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
9051 <charset>: Use CHAR_LEADING_CODE to get leading codes.
9052 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
9053 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
9054 multibyte always 1.
9055 (re_search_2): In emacs, set the locale variable multibyte to 1,
9056 otherwise to 0. New local variable target_multibyte. Check it
9057 to decide the multibyteness of STR1 and STR2. If
9058 target_multibyte is zero, convert unibyte chars to multibyte
9059 before translating and checking fastmap.
9060 (TARGET_CHAR_AND_LENGTH): New macro.
9061 (re_match_2_internal): In emacs, set the locale variable multibyte
9062 to 1, otherwise to 0. New local variable target_multibyte. Check
9063 it to decide the multibyteness of STR1 and STR2. Use
9064 TARGET_CHAR_AND_LENGTH to fetch a character from D.
9065 <charset, charset_not>: If multibyte is nonzero, check fastmap
9066 only for ASCII chars. Call bcmp_translate with
9067 target_multibyte, not with multibyte.
9068 <begline>: Declare the local variable C as `unsigned'.
9069 (bcmp_translate): Change the last arg name to target_multibyte.
9070
9071 * search.c (compile_pattern_1): Don't adjust the multibyteness of
9072 the regexp pattern and the matching target. Set cp->buf.multibyte
9073 to the multibyteness of the regexp pattern. Set
9074 cp->but.target_multibyte to the multibyteness of the matching target.
9075 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
9076 FETCH_STRING_CHAR_ADVANCE.
9077 (Freplace_match): Convert unibyte chars to multibyte.
9078
9079 * syntax.c (char_quoted, back_comment, scan_words)
9080 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
9081 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
9082 unibyte chars to multibyte.
9083 (skip_chars): Delete the arg syntaxp, and move the code for
9084 handling syntaxes to skip_syntaxes. Change callers.
9085 Fix the case that the multibyteness of STRING and the current
9086 buffer doesn't match.
9087 (skip_syntaxes): New function.
9088 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
9089 SINGLE_BYTE_CHAR_P.
9090
9091 2008-02-01 Kenichi Handa <handa@m17n.org>
9092
9093 * xfaces.c (QCfontset): New variable.
9094 (LFACE_FONTSET): New macro.
9095 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
9096 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
9097 (Finternal_set_lisp_face_attribute)
9098 (Finternal_get_lisp_face_attribute): Handle QCfontset.
9099 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
9100 check also LFACE_FONTSET_INDEX.
9101 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
9102 attrs[LFACE_FONT_INDEX].
9103 (syms_of_xfaces): Intern and staticpro QCfontset.
9104
9105 * dispextern.h (enum lface_attribute_index): New member
9106 LFACE_FONTSET_INDEX.
9107
9108 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
9109
9110 2008-02-01 Kenichi Handa <handa@m17n.org>
9111
9112 * coding.c (coding_set_destination): Fix coding->destination for
9113 the case converting a region.
9114 (encode_coding_utf_8): Encode eight-bit chars as single byte.
9115 (encode_coding_object): Fix coding->dst_pos and
9116 coding->dst_pos_byte for the case converting a region.
9117
9118 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
9119
9120 * character.h (BYTE8_STRING): New macro.
9121
9122 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
9123
9124 2008-02-01 Kenichi Handa <handa@m17n.org>
9125
9126 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
9127 characters by octal form.
9128
9129 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9130
9131 * buffer.h (_fetch_multibyte_char_len): Delete extern.
9132 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
9133 _fetch_multibyte_char_len.
9134 (FETCH_CHAR_AS_MULTIBYTE): New macro.
9135
9136 * casetab.c (set_canon, set_identity, shuffle): Simplify.
9137
9138 * casefiddle.c (casify_object): Simplify. Handle the case that
9139 the case conversion change the byte length.
9140 (casify_region): Likewise.
9141
9142 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
9143
9144 * character.c (_fetch_multibyte_char_len): Delet this variable.
9145 (syms_of_character): Setup Vprintable_chars.
9146
9147 * editfns.c (Fchar_equal): Fix for the unibyte case.
9148 (Finsert_byte): New function.
9149 (syms_of_editfns): Defsubr it.
9150
9151 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
9152 of direct code 0x3ffff.
9153
9154 * search.c (Freplace_match): Fix for the unibyte case.
9155
9156 2008-02-01 Kenichi Handa <handa@m17n.org>
9157
9158 * lread.c (safe_to_load_p): Fix the logic.
9159
9160 * syntax.c (scan_words): Don't treat characters belonging to
9161 different scripts as constituting a word.
9162
9163 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9164
9165 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
9166
9167 * emacs.c (main): In the case of --unibyte, instead of aborting on
9168 finding non-empty buffer, make it unibyte.
9169
9170 2008-02-01 Kenichi Handa <handa@m17n.org>
9171
9172 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
9173 to create a fontset.
9174
9175 2008-02-01 Dave Love <fx@gnu.org>
9176
9177 * character.c (Funibyte_char_to_multibyte): Doc fix.
9178
9179 * xfns.c [HAVE_STDLIB_H]: Fix last change.
9180
9181 2008-02-01 Kenichi Handa <handa@m17n.org>
9182
9183 * fontset.c (fontset_add): Make the type `int'.
9184 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
9185
9186 * character.c (unibyte_char_to_multibyte)
9187 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
9188 charset_unibyte, not charset_primary.
9189
9190 * charset.h (charset_unibyte): Extern it instead of charset_primary.
9191
9192 * charset.c (charset_unibyte): Rename from charset_primary.
9193 (Funibyte_charset): Rename from Fprimary_charset.
9194 (Fset_unibyte_charset): Rename from Fset_primary_charset.
9195 (syms_of_charset): Adjust for the above changes.
9196
9197 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9198 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9199 it->multibyte_p is zero.
9200
9201 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
9202 Delete extern.
9203
9204 2008-02-01 Kenichi Handa <handa@m17n.org>
9205
9206 * coding.c (Fdefine_coding_system_internal): Fix category setting
9207 for a coding system of type iso-2022.
9208
9209 2008-02-01 Kenichi Handa <handa@m17n.org>
9210
9211 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
9212
9213 2008-02-01 Kenichi Handa <handa@m17n.org>
9214
9215 * syntax.c (Vnext_word_boundary_function_table): New variable.
9216 (next-word-boundary-function-table): Declare it as a Lisp variable
9217 in syms_of_syntax.
9218 (scan_words): Call functions in Vnext_word_boundary_function_table
9219 if any.
9220
9221 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
9222
9223 * fontset.c (fs_load_font): If fontp->charset is not negative,
9224 return fontp without setting its members.
9225
9226 2008-02-01 Dave Love <fx@gnu.org>
9227
9228 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
9229
9230 * m/sparc.h (HAVE_ALLOCA): Delete.
9231
9232 * s/irix6-5.h: Don't include strings.h.
9233 (bcopy, bzero, bcmp): Don't undef.
9234
9235 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
9236
9237 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
9238 (TIOCSIGSEND): Don't test IRIX6.
9239 (bcopy, bzero, bcmp): Define conditionally.
9240
9241 2008-02-01 Kenichi Handa <handa@m17n.org>
9242
9243 * buffer.c (Qas, Qmake, Qto): New variables.
9244 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
9245 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
9246
9247 * callproc.c (Fcall_process): Don't call insert_1_both directly if
9248 we are inserting a process output into a multibyte buffer.
9249
9250 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
9251 multibyte_char_to_unibyte.
9252
9253 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
9254 by the primary charset, make it eight-bit char.
9255 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
9256
9257 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
9258 (charset_8_bit__control, charset_8_bit_graphic)
9259 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
9260 (define_charset_internal): New function.
9261 (syms_of_charset): Call define_charset_internal for pre-defined
9262 charsets.
9263
9264 * charset.h (charset_8_bit): Extern it.
9265
9266 * coding.c (make_conversion_work_buffer): Adjust for the change
9267 of Fset_buffer_multibyte.
9268 (encode_coding_raw_text): Increment p0 in the loop.
9269
9270 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
9271
9272 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
9273 for the change of Fset_buffer_multibyte.
9274
9275 * fns.c (Fstring_to_multibyte): New function.
9276 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
9277
9278 2008-02-01 Dave Love <fx@gnu.org>
9279
9280 * xfns.c (x_put_x_image): Declare args.
9281
9282 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
9283 (try_font_list): Declare an arg.
9284
9285 * xdisp.c (message2_nolog, set_message): Declare an arg.
9286
9287 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
9288
9289 * syntax.c (scan_sexps_forward): Declare an arg.
9290
9291 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9292 Declare an arg.
9293
9294 * lisp.h (Fnew_fontset): Declare.
9295
9296 * keymap.c (push_key_description): Call CHARACTERP correctly.
9297
9298 * fontset.c (fontset_add): Declare args. Call make_number correctly.
9299 (face_for_char): Delete unused vars.
9300 (Fset_fontset_font): Doc fix. Delete unused vars.
9301
9302 * doc.c (Fsubstitute_command_keys): Delete unused vars.
9303
9304 * composite.c (update_compositions): Declare arg.
9305
9306 * cm.c (calccost, cmgoto): Declare args.
9307
9308 * charset.c: Remove `emacs' conditional. Doc fixes.
9309 (map_char_table_for_charset): Declare.
9310
9311 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
9312
9313 * ccl.c: Remove `emacs' conditional.
9314
9315 2008-02-01 Kenichi Handa <handa@m17n.org>
9316
9317 The following changes are to allow specifying multiple font
9318 patterns for a character range (specified by script or charset).
9319
9320 * Makefile.in (abbrev.o): Depend on syntax.h.
9321 (xfaces.o): Depend on charset.h.
9322
9323 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
9324 SINGLE_BYTE_CHAR_P.
9325
9326 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
9327
9328 * character.h (Vchar_script_table): Extern it.
9329
9330 * character.c (Vscript_alist): Delete.
9331 (Vchar_script_table, Qchar_script_table): New variable.
9332 (syms_of_character): Declare Vchar_script_table as a lisp variable
9333 and initialize it.
9334
9335 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
9336 have property char-table-extra-slots, make no extra slot.
9337
9338 * dispextern.h (struct face): Delete member `charset'.
9339 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
9340 SINGLE_BYTE_CHAR_P.
9341 (choose_face_font, lookup_non_ascii_face, font_name_registry):
9342 Add prototypes.
9343 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
9344 (generate_ascii_font_name): Rename from generate_ascii_font.
9345
9346 * fontset.h (get_font_repertory_func): New prototype.
9347 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
9348 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
9349
9350 * fontset.c (Qprepend, Qappend): New variables.
9351 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
9352 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
9353 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
9354 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
9355 (fontset_ref_and_range, fontset_add, reorder_font_vector)
9356 (load_font_get_repertory): New functions.
9357 (fontset_set): Delete.
9358 (fontset_face): New arg FACE. Return face ID, not face.
9359 Complete re-write to handle new fontset structure. Change caller.
9360 (free_face_fontset): Use ASET istead of AREF (X) = Y.
9361 (face_for_char): Don't call lookup_face.
9362 (make_fontset_for_ascii_face): New arg FACE.
9363 (fs_load_font): New arg CHARSET_ID. Don't check
9364 Vfont_encoding_alist here.
9365 (find_font_encoding): New function.
9366 (list_fontsets): Use STRINGP, not ! NILP.
9367 (accumulate_script_ranges): New function.
9368 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
9369 re-written to handle new fontset structure.
9370 (Ffontset_font): Return a copy of element.
9371 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
9372 docstring of font-encoding-alist.
9373
9374 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
9375 (Fset_fotset_font): Fix arguments to 5.
9376
9377 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
9378
9379 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
9380 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9381 (highlight_trailing_whitespace): Adjust for the change of
9382 lookup_named_face.
9383
9384 * xfaces.c: Include charset.h.
9385 (load_face_font): Delete argument C. Change caller.
9386 (generate_ascii_font_name): Rename from generate_ascii_font.
9387 (font_name_registry): New function.
9388 (cache_face): Store ascii faces before non-ascii faces in buckets.
9389 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
9390 Lookup only ascii faces.
9391 (lookup_non_ascii_face): New function.
9392 (lookup_named_face): Delete argument C. Change caller.
9393 (lookup_derived_face): Delete argument C. Change caller.
9394 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
9395 a string, just call font_list with it.
9396 (choose_face_font): Delete arguments FACE and C. New arg
9397 FONT_SPEC. Change caller.
9398 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
9399 Change caller.
9400 (realize_non_ascii_face): New function.
9401 (realize_x_face): Call load_face_font here.
9402 (realize_tty_face): Delete argument C. Change caller.
9403 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
9404 get a face ID.
9405 (dump_realized_face): Don't print charset of FACE.
9406
9407 * xfns.c (x_set_font): Always call x_new_fontset and
9408 store_frame_parameter.
9409 (Fx_create_frame): Call x_new_fontset, not x_new_font.
9410 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
9411
9412 * xterm.h (x_get_font_repertory): Extern it.
9413
9414 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9415 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9416 it->multibyte_p is zero.
9417 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9418 (x_new_fontset): If FONTSETNAME doesn't match any existing
9419 fontsets, create a new one.
9420 (x_get_font_repertory): New function.
9421
9422 2008-02-01 Kenichi Handa <handa@m17n.org>
9423
9424 * coding.c (Ffind_coding_systems_region_internal): Detect an
9425 ASCII only string correctly.
9426
9427 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
9428 version is 0.
9429
9430 2008-02-01 Kenichi Handa <handa@m17n.org>
9431
9432 * lread.c: Include "coding.h".
9433 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
9434 (load_each_byte, unread_char): New variables.
9435 (readchar_backlog): Delete.
9436 (readchar): Return a character unless load_each_byte is nonzero.
9437 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
9438 cons. If unread_char is not -1, simply return it.
9439 (unreadchar): Handle the case that readcharfun is
9440 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
9441 (read_multibyte): Delete.
9442 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
9443 (read_emacs_mule_char): New functions.
9444 (Fload): Even if the file doesn't have the extention ".elc", if
9445 safe_to_load_p returns a positive version number, assume that the
9446 file contains bytecompiled code. If the version is less than 22,
9447 load the file while decoding multibyte sequences by emacs-mule.
9448 (readevalloop): Don't use readchar_backlog.
9449 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
9450 (Fread_from_string): Pay attention to the case that STREAM is a cons.
9451 (read_escape): Delete the arg BYTEREP.
9452 (read1): Set load_each_byte to 1 temporarily while handling
9453 #@NUMBER. Don't call read_multibyte.
9454 (read_vector): Call Fread with a cons. If readcharfun is
9455 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
9456 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
9457 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
9458 and Qload_force_doc_strings.
9459
9460 2008-02-01 Kenichi Handa <handa@m17n.org>
9461
9462 * xdisp.c (face_before_or_after_it_pos): Call
9463 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9464
9465 2008-02-01 Kenichi Handa <handa@m17n.org>
9466
9467 * character.h (TRAILING_CODE_P): New macro.
9468 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
9469 (string_char_with_unification): Fix prototype.
9470 (Vscript_alist): Extern it.
9471
9472 * character.c (Vscript_alist): New variable.
9473 (string_char_with_unification, str_as_unibyte)
9474 (string_escape_byte8): Add `const' to local variables.
9475 (syms_of_character): Declare script-alist as a Lisp variable.
9476
9477 * charset.h (Vcharset_ordered_list): Extern it.
9478 (charset_ordered_list_tick): Extern it.
9479 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
9480 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
9481 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
9482 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
9483 (Funify_charset): Adjust for the change of Funify_charset.
9484
9485 * charset.c (charset_ordered_list_tick): New variable.
9486 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
9487 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
9488 deunify intead of unify a charset.
9489 (string_xstring_p): Add `const' to local variables.
9490 (find_charsets_in_text): Add `const' to arguemnts and local variables.
9491 (encode_char): Adjust for the change of Funify_charset. Fix
9492 detecting of invalid code.
9493 (Fset_charset_priority): Increment charset_ordered_list_tick.
9494 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
9495 and TO_CODE.
9496
9497 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
9498 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
9499 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
9500 (decode_coding_ccl, consume_chars)
9501 (Ffind_coding_systems_region_internal)
9502 (Fcheck_coding_systems_region): Add `const' to local variables.
9503
9504 * print.c (print_object): Use octal form for printing the
9505 contents of a bool vector.
9506
9507 2008-02-01 Dave Love <fx@gnu.org>
9508
9509 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
9510 <version == 20>: Refuse to load.
9511
9512 2008-02-01 Dave Love <fx@gnu.org>
9513
9514 * fns.c: Move coding.h.
9515 (Qcodeset, Qdays, Qmonths): New.
9516 (concat): Use CHARACTERP instead of INTERGERP.
9517 (Flocale_codeset): Delete.
9518 (Flanginfo): New function.
9519 (syms_of_fns): Change accordingly.
9520
9521 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
9522
9523 2008-02-01 Dave Love <fx@gnu.org>
9524
9525 * casetab.c (init_casetab_once, init_casetab_once): Fix
9526 CHAR_TABLE_SET call.
9527
9528 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
9529
9530 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
9531
9532 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
9533 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
9534 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
9535
9536 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
9537
9538 * coding.c (ENCODE_DESIGNATION, decode_eol)
9539 (make_conversion_work_buffer, code_conversion_restore)
9540 (Fdefine_coding_system_internal): Convert Lisp types.
9541 (code_conversion_restore): Use EQ, not ==.
9542 (Fencode_coding_string): Fix code_convert_string call.
9543
9544 * coding.h (code_convert_region): Fix prototype.
9545
9546 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
9547
9548 * fontset.c (fontset_ref, fontset_set, fs_load_font)
9549 (Ffontset_info): Convert Lisp types.
9550
9551 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
9552
9553 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
9554
9555 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
9556
9557 * chartab.c: Include "...h", not <...h> in some cases.
9558
9559 * callproc.c (Fcall_process): Remove unused variables.
9560
9561 2008-02-01 Dave Love <fx@gnu.org>
9562
9563 * coding.c (Fset_coding_system_priority): Allow null arg list.
9564
9565 2008-02-01 Dave Love <fx@gnu.org>
9566
9567 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9568 (Fself_insert_and_exit): Use CHARACTERP.
9569
9570 * callproc.c (Fcall_process): Remove unused vars.
9571
9572 * xterm.c (XTread_socket): Add extra dead keysyms.
9573
9574 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
9575
9576 * dispextern.h: Remove prototypes for redraw_frame,
9577 redraw_garbaged_frames.
9578
9579 * cmds.c (Fself_insert_command): Use CHARACTERP.
9580
9581 * chartab.c (make_sub_char_table): Remove unused var.
9582 (Fset_char_table_default, Fmap_char_table): Doc fix.
9583
9584 * keymap.c (access_keymap): Remove generic char code.
9585 (push_key_description): Use CHARACTERP.
9586
9587 2008-02-01 Dave Love <fx@gnu.org>
9588
9589 * charset.c: Doc fixes.
9590 (Funify_charset): Extra checking.
9591
9592 2008-02-01 Dave Love <fx@gnu.org>
9593
9594 * lread.c: Remove some unused variables.
9595 (safe_to_load_p): If safe, return the magic number version byte.
9596 (Fload): Maybe use load-with-code-conversion.
9597
9598 2008-02-01 Kenichi Handa <handa@m17n.org>
9599
9600 * category.c (Fmodify_category_entry): Don't modify the contents
9601 of category_set for characters out of the range. Avoid
9602 unnecessary modification.
9603
9604 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
9605 Vchar_unify_table. The default value of the table is now nil.
9606
9607 * character.c (syms_of_character): Setup Vchar_width_table for
9608 eight-bit-control and raw-byte chars.
9609
9610 * charset.h (enum define_charset_arg_index): Delete
9611 charset_arg_parents and add charset_arg_subset and
9612 charset_arg_superset.
9613 (enum charset_attr_index): Delete charset_parents and add
9614 charset_subset and charset_superset.
9615 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
9616 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
9617 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
9618 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
9619 (CHARSET_SUPERSET): New macros.
9620 (charset_work): Extern it.
9621 (ENCODE_CHAR): Use charset_work.
9622 (CHAR_CHARSET_P): Adjust for the change of encoder format.
9623 (map_charset_chars): Extern it.
9624
9625 * charset.c (load_charset_map): Set the default value of encoder
9626 and deunifier char-tables to nil.
9627 (map_charset_chars): Change argument. Change callers. Use
9628 map_char_table_for_charset instead of map_char_table.
9629 (Fmap_charset_chars): New optional args from_code and to_code.
9630 (Fdefine_charset_internal): Adjust for the change of
9631 `define-charset' (:parents -> :subset or :superset).
9632 (charset_work): New variable.
9633 (encode_char, syms_of_charset): Adjust for the change of
9634 Fdefine_charset_internal.
9635 (Ffind_charset_string): Setup the vector `charsets' correctly.
9636
9637 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
9638 the previous change.
9639 (char_table_ref_and_range): Adjust for the above change.
9640 (map_sub_char_table_for_charset): New function.
9641 (map_char_table_for_charset): New function.
9642
9643 * keymap.c (describe_vector): Handle a char-table directly here.
9644 (describe_char_table): Delete.
9645
9646 * lisp.h (map_charset_chars): Delete.
9647
9648 2008-02-01 Dave Love <fx@gnu.org>
9649
9650 * fns.c (count_combining): Comment out (unused).
9651 (Flocale_codeset): New.
9652 (syms_of_fns): Defsubr it.
9653
9654 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
9655 (size_t): Remove.
9656
9657 2008-02-01 Dave Love <fx@gnu.org>
9658
9659 * Makefile.in (chartab.o): Depend on charset.h.
9660
9661 2008-02-01 Kenichi Handa <handa@m17n.org>
9662
9663 * character.c (syms_of_character): Set the default value of
9664 Vprintable_chars to Qnil.
9665
9666 2008-02-01 Dave Love <fx@gnu.org>
9667
9668 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
9669
9670 2008-02-01 Kenichi Handa <handa@m17n.org>
9671
9672 * charset.c (load_charset_map): Handle the case that from < to
9673 correctly.
9674
9675 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
9676 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
9677 Pay attention to raw-8-bit chars.
9678
9679 2008-02-01 Kenichi Handa <handa@m17n.org>
9680
9681 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
9682 It is not bytecompiled now.
9683
9684 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
9685 (charset_jisx0208): New variables.
9686 (Fdefine_charset_internal): Setup them if appropriate.
9687 (init_charset_once): Initialize them to -1.
9688
9689 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
9690 (charset_jisx0208): Extern them.
9691
9692 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
9693 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
9694 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
9695 (setup_iso_safe_charsets): Fix arguments to Fassq.
9696 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
9697 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
9698 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
9699 (encode_coding_iso_2022): Change the 1st arg to
9700 ENCODE_ISO_CHARACTER to a variable.
9701
9702 2008-02-01 Kenichi Handa <handa@m17n.org>
9703
9704 * charset.h (enum define_charset_arg_index): New enums
9705 charset_arg_min_code and charset_arg_max_code.
9706 (struct charset): New member char_index_offset.
9707
9708 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
9709 Take charset->char_index_offset into account.
9710 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
9711 args[charset_arg_max_code]. Setup charset.char_index_offset.
9712 (syms_of_charset): Fix args to Fdefine_charset_internal.
9713
9714 2008-02-01 Dave Love <fx@gnu.org>
9715
9716 * coding.c (decode_coding_utf_8): Reject overlong sequences.
9717
9718 2008-02-01 Dave Love <fx@gnu.org>
9719
9720 * coding.c: Doc fixes.
9721 (Fcoding_system_aliases): Fix return value.
9722 (Qmac): Remove (duplicated) definition.
9723
9724 2008-02-01 Dave Love <fx@gnu.org>
9725
9726 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
9727 functions.
9728
9729 * character.c (Fstring): Doc fix.
9730
9731 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
9732
9733 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
9734 ids.
9735 (font-encoding-alist): Doc fix.
9736
9737 2008-02-01 Dave Love <fx@gnu.org>
9738
9739 * term.c (costs_set): Declare static, non-initialized for pcc.
9740 (encode_terminal_code): Remove unused var.
9741
9742 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9743 for K&R.
9744
9745 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
9746
9747 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
9748 (suffixes): Move out of make_subsidiaries for K&R.
9749
9750 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
9751
9752 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
9753
9754 2008-02-01 Dave Love <fx@gnu.org>
9755
9756 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
9757
9758 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
9759
9760 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
9761
9762 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
9763
9764 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
9765
9766 2008-02-01 Kenichi Handa <handa@m17n.org>
9767
9768 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
9769 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
9770
9771 2008-02-01 Kenichi Handa <handa@m17n.org>
9772
9773 * coding.c (decode_coding_charset): Adjust for the change of
9774 Fdefine_coding_system_internal.
9775 (Fdefine_coding_system_internal): For a coding system of
9776 `charset' type, store a list of charset IDs in
9777 `charset_attr_charset_valids' element of coding attributes.
9778
9779 2008-02-01 Kenichi Handa <handa@m17n.org>
9780
9781 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
9782 (emacs_mule_char): New arg src. Delete arg `composition'. Change
9783 caller. Handle 2-byte and 3-byte charsets correctly.
9784 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
9785 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
9786 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
9787 (DECODE_EMACS_MULE_21_COMPOSITION): Call
9788 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
9789 sequence.
9790 (decode_coding_emacs_mule): Handle composition correctly. Rewind
9791 `src' and `consumed_chars' correctly before calling emacs_mule_char.
9792 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
9793 and alt&rule composition.
9794 (decode_coding_iso_2022): Handle composition correctly.
9795 (init_coding_once): Setup emacs_mule_bytes for private charsets.
9796
9797 * charset.c (Fdefine_charset_internal): Fix bug for the case of
9798 re-defining a charset. If the charset has :emacs-mule-id, setup
9799 emacs_mule_bytes.
9800 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
9801
9802 2008-02-01 Kenichi Handa <handa@m17n.org>
9803
9804 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
9805 (encode_coding_big5, encode_coding_charset): If coding requires safe
9806 encoding, produce a character specified by
9807 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
9808
9809 2008-02-01 Dave Love <fx@gnu.org>
9810
9811 * xterm.c (XSetIMValues): Declare.
9812
9813 * process.c: Conditionally include sys/wait.h, pty.h.
9814
9815 * print.c (print_object): Fix print format for 64-bit systems.
9816
9817 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
9818
9819 * buffer.c (emacs_strerror): Declare.
9820
9821 * fontset.c (Fclear_face_cache): Declare.
9822 (accumulate_font_info): Comment-out (unused).
9823 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
9824 variables.
9825
9826 * character.h (string_escape_byte8): Declare.
9827
9828 * charset.c (load_charset_map, load_charset_map_from_file): Remove
9829 unused vars.
9830 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
9831 (Fmap_charset_chars): Doc fix.
9832
9833 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
9834 (Fset_coding_system_priority, Fset_coding_system_priority)
9835 (Fdefine_coding_system_internal): Doc fix.
9836
9837 2008-02-01 Dave Love <fx@gnu.org>
9838
9839 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
9840
9841 2008-02-01 Kenichi Handa <handa@m17n.org>
9842
9843 * character.c (string_escape_byte8): Make multibyte string with
9844 correct size.
9845
9846 * charset.c (Fmake_char): Delete unnecessary code.
9847
9848 2008-02-01 Kenichi Handa <handa@m17n.org>
9849
9850 * xfns.c (x_encode_text): Allocate coding.destination here, and
9851 call encode_coding_object with dst_object Qnil.
9852
9853 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
9854 multibyte form correctly.
9855
9856 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
9857 against Vfont_encoding_alist.
9858
9859 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
9860 handling of charset list.
9861 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
9862 (decode_coding_object): Move point to coding->dst_pos before
9863 calling post-read-conversion function.
9864 (encode_coding_object): Give correct arguments to
9865 pre-write-conversion. Ignore the return value of
9866 pre-write-conversion function. Pay attention to the case that
9867 pre-write-conversion changes the current buffer. If dst_object is
9868 Qt, even if coding->src_bytes is zero, allocate at least one byte
9869 to coding->destination.
9870
9871 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
9872
9873 * charset.c (Fmake_char): Make it more backward compatible.
9874 (Fmap_charset_chars): Fix docstring.
9875
9876 2008-02-01 Dave Love <fx@gnu.org>
9877
9878 * coding.c: Doc fixes.
9879 (Fdefine_coding_system_alias): Use names, not symbols, in
9880 coding-system-alist.
9881
9882 2008-02-01 Kenichi Handa <handa@m17n.org>
9883
9884 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
9885 of calling free_realized_face.
9886
9887 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
9888
9889 * charset.c (read_hex): Don't treat SPC as a comment starter.
9890 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
9891 (Fdecode_char): Fix typo.
9892
9893 2008-02-01 Kenichi Handa <handa@m17n.org>
9894
9895 * charset.h (struct charset): New member `code_space_mask'.
9896
9897 * coding.c (coding_set_source): Delete the local variable beg_byte.
9898 (encode_coding_charset, Fdefine_coding_system_internal):
9899 Delete the local variable charset.
9900 (Fdefine_coding_system_internal): Setup
9901 attrs[coding_attr_charset_valids] correctly.
9902
9903 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
9904 member to check if CODE is valid or not.
9905 (Fdefine_charset_internal): Initialize `code_space_mask' member.
9906 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
9907 is within the range of charset->min_code and carset->max_code.
9908
9909 2008-02-01 Dave Love <fx@gnu.org>
9910
9911 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
9912
9913 * dispextern.h (generate_ascii_font): Fix return type.
9914
9915 * xfaces.c (generate_ascii_font): Fix arg declaration.
9916
9917 * coding.c (coding_inherit_eol_type)
9918 (Fset_terminal_coding_system_internal)
9919 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
9920
9921 2008-02-01 Kenichi Handa <handa@m17n.org>
9922
9923 * coding.c (decode_coding_charset, encode_coding_charset): Handle
9924 multiple charsets correctly.
9925
9926 2008-02-01 Kenichi Handa <handa@m17n.org>
9927
9928 * search.c (boyer_moore): Fix handling of mulitbyte character
9929 translation.
9930
9931 * xdisp.c (display_mode_element): When the variable `elt' is
9932 changed, update `this' and `lisp_string'.
9933
9934 2008-02-01 Kenichi Handa <handa@m17n.org>
9935
9936 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
9937
9938 * callproc.c (Fcall_process): Be sure to give the current buffer
9939 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
9940
9941 * charset.c (struct charset_map_entries): New struct.
9942 (load_charset_map): Rename from parse_charset_map. New args
9943 entries and n_entries. Change caller.
9944 (load_charset_map_from_file): Rename from load_charset_map.
9945 Change caller. New arg control_flag. Call load_charset_map at
9946 the tail.
9947 (load_charset_map_from_vector): New function.
9948 (Fdefine_charset_internal): Setup charset.compact_codes_p.
9949 (encode_char): If the charset is compact, change a character index
9950 to a code point.
9951
9952 * coding.c (coding_alloc_by_making_gap): Check the case that the
9953 source and destination are the same correctly.
9954 (decode_coding_raw_text): Set coding->consumed_char and
9955 coding->consumed to 0.
9956 (produce_chars): If coding->chars_at_source is nonzero, update
9957 coding->consumed_char and coding->consumed before calling
9958 alloc_destination.
9959 (Fdefine_coding_system_alias): Register ALIAS in
9960 Vcoding_system_alist.
9961 (syms_of_coding): Define `no-convesion' coding system at the tail.
9962
9963 * fileio.c (Finsert_file_contents): Set coding_system instead of
9964 val. If the current buffer is multibyte, always call
9965 decode_coding_gap.
9966
9967 * xfaces.c (try_font_list): Give higher priority to fontset's
9968 family than face's family.
9969
9970 2008-02-01 Kenichi Handa <handa@m17n.org>
9971
9972 * callproc.c (Fcall_process): Be sure to give the current buffer
9973 to decode_coding_c_string.
9974
9975 * xfaces.c (try_font_list): Give a family specified in a fontset
9976 higher priority than a family specified in a face.
9977
9978 2008-02-01 Kenichi Handa <handa@m17n.org>
9979
9980 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
9981 Fix arguments to insert_from_buffer.
9982
9983 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
9984
9985 2008-02-01 Kenichi Handa <handa@m17n.org>
9986
9987 * coding.c (produce_chars): Set the variable `multibytep' correctly.
9988 (decode_coding_gap): Set coding->dst_multibyte correctly.
9989
9990 2008-02-01 Kenichi Handa <handa@m17n.org>
9991
9992 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
9993 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
9994 (encode_coding_utf_16): Substitute coding->default_char for
9995 non-Unicode characters.
9996 (decode_coding): Don't call record_insert here.
9997 (setup_coding_system): Initialize `surrogate' of
9998 coding->spec.utf_16 to 0.
9999 (EMIT_ONE_BYTE): Fix for multibyte case.
10000
10001 * insdel.c (insert_from_gap): Call record_insert.
10002
10003 2008-02-01 Kenichi Handa <handa@m17n.org>
10004
10005 * casefiddle.c (casify_region): Fix multibyte case.
10006
10007 * character.c (c_string_width): Add return type `int'.
10008 (char_string_with_unification): Delete arg ADVANCED.
10009
10010 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
10011 (CHAR_STRING): Adjust for the change of char_string_with_unification.
10012 (CHAR_STRING_ADVANCE): Make it do-while statement.
10013
10014 * chartab.c (sub_char_table_set_range): Optimize for the case
10015 DEPTH == 3. Add workaround code for a GCC optimization bug.
10016
10017 * charset.c (parse_charset_map): Remove an unused variable.
10018
10019 * coding.c: Delete unused variables.
10020
10021 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
10022 earlier. If inserted is zero and the coding system doesn't
10023 require flushing, don't call decode_coding_gap.
10024
10025 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
10026
10027 2008-02-01 Kenichi Handa <handa@m17n.org>
10028
10029 The following changes are for using Unicode as an internal
10030 character model, and use UTF-8 format for buffer/string
10031 representation.
10032
10033 * .gdbinit (xchartable): Adjust for the change of char table structure.
10034 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
10035
10036 * Makefile.in (obj): Add character.o and chartab.o.
10037 (lisp, shortlisp): Remove utf-8.elc.
10038 (*.o): For many files, change dependency on charset.h to
10039 character.h, and add dependency on character.h.
10040 (character.o, chartab.o): New targets.
10041
10042 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
10043 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
10044 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
10045 of "charset.h".
10046
10047 * dired.c, filelock.c: Include "character.h".
10048
10049 * alloc.c: Include "character.h" instead of "charset.h".
10050 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
10051 (syms_of_alloc): Remove defsubr for Smake_char_table.
10052
10053 * buffer.c: Include "character.h" instead of "charset.h", don't
10054 include "coding.h".
10055 (Fset_buffer_multibyte): Adjust for UTF-8.
10056
10057 * buffer.h: EXFUN Fbuffer_live_p.
10058
10059 * callproc.c: Include "character.h" instead of "charset.h".
10060 (Fcall_process): Big change for the new code-conversion APIs.
10061
10062 * casetab.c: Include "character.h" instead of "charset.h".
10063 (set_canon, set_identity, shuffle): Adjust for the new
10064 map_char_table spec.
10065 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
10066 accessing the char table structure.
10067
10068 * chartab.c: New file that implements char table.
10069
10070 * category.c: Include "character.h".
10071 (copy_category_entry): New function.
10072 (copy_category_table): Call map_char_table and copy_category_entry.
10073 (Fmake_category_table): Initialize all top-vel slots.
10074 (char_category_set): New function.
10075 (modify_lower_category_set): Delete.
10076 (Fmodify_category_entry): Call char_table_ref_and_range.
10077
10078 * category.h (CATEGORY_SET): Just call char_category_set.
10079
10080 * ccl.c: Include "character.h".
10081 (Qccl, Qcclp): New variables.
10082 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
10083 it's less than 256.
10084 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
10085 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
10086 and DST type.
10087 (ccl_driver): Change types of argument, adjust code accordingly.
10088 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
10089 ccl_driver.
10090 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
10091
10092 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
10093 New members src_multibyte, dst_multibyte, consumed, and produced.
10094 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
10095 (CODING_SPEC_CCL_PROGRAM): New macro.
10096 (ccl_driver): Update prototype.
10097 (Qccl, Qcclp, Fccl_program_p): Extern them.
10098 (CHECK_CCL_PROGRAM): New macro.
10099
10100 * character.c, character.h, chartab.c: New files.
10101
10102 * charset.c: Mostly re-written. Move character and multibyte sequence
10103 handling codes to character.c.
10104
10105 * charset.h: Mostly re-written. Move character and multibyte sequence
10106 handling codes to character.h.
10107
10108 * coding.c, coding.h: Mostly re-written.
10109
10110 * composite.c: Include "character.h" instead of "charset.h".
10111 (CHAR_WIDTH): Move to character.h.
10112 (HASH_KEY, HASH_VALUE): Delete.
10113
10114 * composite.h (enum composition_method): Change order of enumeration
10115 symbols.
10116
10117 * data.c: Include "character.h" instead of "charset.h".
10118 (Faref): Call CHAR_TABLE_REF for a char table.
10119 (Faset): Call CHAR_TABLE_SET for a char table.
10120
10121 * dispextern.h (free_realized_face, check_face_attribytes)
10122 (generate_ascii_font): Extern them.
10123 (free_realized_multibyte_face): Delete extern.
10124
10125 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
10126 table structure.
10127
10128 * editfns.c: Include "character.h" instead of "charset.h".
10129 (Fchar_to_string): Always call CHAR_STRING.
10130
10131 * emacs.c (main): Call init_charset_once, init_charset,
10132 syms_of_chartab, and syms_of_character.
10133
10134 * fileio.c: Include "character.h" instead of "charset.h".
10135 (Finsert_file_contents): Big change for the new code-conversion API.
10136 (choose_write_coding_system, Fwrite_region): Likewise.
10137 (build_annotations_2): Delete.
10138 (e_write): Big change for the new code-conversion API.
10139
10140 * fns.c: Include "character.h" instead of "charset.h".
10141 (copy_sub_char_table): Move to chartab.c.
10142 (Fcopy_sequence): Call copy_char_table for a char table.
10143 (concat): Delete codes calling count_multibyte.
10144 (string_char_to_byte, string_byte_to_char): Adjust for the new
10145 multibyte form.
10146 (internal_equal): Adjust for the change of char table structure.
10147 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
10148 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
10149 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
10150 (char_table_translate, optimize_sub_char_table)
10151 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
10152 chartab.c.
10153 (char_table_ref_and_index): Delete.
10154 (HASH_KEY, HASH_VALUE): Move to lisp.h.
10155 (Fmd5): Call preferred_coding_system instead of accessing
10156 Vcoding_category_list. Adjust for the new code-conversion API.
10157 (syms_of_fns): Move defsubr for char table related functions to
10158 chartab.c.
10159
10160 * fontset.c: Mostly re-written.
10161
10162 * fontset.h (struct font_info): Change type of the member encoding_type.
10163 (enum FONT_SPEC_INDEX): New enum.
10164 (fontset_font_pattern, fs_load_font): Update prototype.
10165 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
10166
10167 * indent.c: Include "character.h" instead of "charset.h".
10168 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
10169
10170 * insdel.c: Include "character.h" instead of "charset.h".
10171 (copy_text): Don't refer to Vnonascii_translation_table.
10172 (insert_from_gap): New function.
10173
10174 * keyboard.c: Include "character.h" instead of "charset.h".
10175 (command_loop_1): Never call direct_output_forward_char before
10176 a non-ASCII character.
10177 (read_char): If Vkeyboard_translate_table is a char table, always
10178 translate a character.
10179
10180 * keymap.c: Include "character.h".
10181 (store_in_keymap): Handle the case that IDX is a cons.
10182 (Fdefine_key): Handle the case that KEY is a cons and the car part
10183 is also a cons (range).
10184 (push_key_description): Adjust for the new character code.
10185 (describe_vector): Call describe_char_table for a char table.
10186 (describe_char_table): New function.
10187
10188 * keymap.h (describe_char_table): Extern it.
10189
10190 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
10191 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
10192 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
10193 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
10194 Delete.
10195 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
10196 structure.
10197 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
10198 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
10199 (CHARTAB_SIZE_BITS_3): New macros.
10200 (chartab_size): Extern it.
10201 (struct Lisp_Char_Table): Re-design.
10202 (struct Lisp_Sub_Char_Table): New structure.
10203 (HASH_KEY, HASH_VALUE): Move from fns.c.
10204 (CHARACTERBITS): Define as 22.
10205 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
10206 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
10207 (GC_SUB_CHAR_TABLE_P): New macro.
10208 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
10209 (code_convert_string_norecord): Deleted extern.
10210 (init_character_once, syms_of_character, init_charset)
10211 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
10212
10213 * lread.c: Include "character.h".
10214 (read_multibyte): New arg NBYTES.
10215 (read_escape): Change the meaning of returned *BYTEREP.
10216 (to_multibyte): Delete.
10217 (read1): Adjust the handling of char table and string.
10218
10219 * print.c: Include "character.h" instead of "charset.h".
10220 (print_string): Convert 8-bit raw bytes to octal form by
10221 string_escape_byte8.
10222 (print_object): Adjust for the new multibyte form. Print 8-bit
10223 raw bytes always in octal form. Handle sub char table correctly.
10224
10225 * process.c: Include "character.h" instead of "charset.h".
10226 (read_process_output, send_process): Adjust for the new
10227 code-conversion API.
10228
10229 * puresize.h (BASE_PURESIZE): Increase.
10230
10231 * regex.c: Include "character.h" instead of "charset.h".
10232 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
10233 (regex_compile): Accept a range whose starting and ending
10234 character have different leading bytes.
10235 (analyse_first): Adjust for the above change.
10236
10237 * search.c: Include "character.h" instead of "charset.h".
10238 (search_buffer, boyer_moore): Adjust for the new multibyte form.
10239 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
10240
10241 * syntax.c: Include "character.h" instead of "charset.h".
10242 (syntax_parent_lookup): Delete.
10243 (Fmodify_syntax_entry): Accept a cons as CHAR.
10244 (skip_chars): Adjust for the new multibyte form.
10245 (init_syntax_once): Call char_table_set_range instead of directly
10246 accessing the structure of a char table.
10247
10248 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
10249 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
10250 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
10251 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
10252
10253 * term.c: Include "buffer.h" and "character.h".
10254 (encode_terminal_code, write_glyphs): Adjust for the new
10255 code-conversion API.
10256 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
10257
10258 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
10259
10260 * xdisp.c: Include "character.h".
10261 (get_next_display_element): Adjust for the new multibyte form.
10262 (disp_char_vector): Adjust for the new char table structure.
10263 (decode_mode_spec_coding): Adjust for the new structure of
10264 coding system.
10265 (decode_mode_spec): Adjust for the new code-conversion API.
10266
10267 * xfaces.c: Include "character.h" instead of "charset.h".
10268 (load_face_font): Adjust for the change of choose_face_font and
10269 FS_LOAD_FONT.
10270 (generate_ascii_font): New function.
10271 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
10272 (set_font_frame_param): Adjust for the change of choose_face_font.
10273 (free_realized_face): Make it public.
10274 (free_realized_faces_for_fontset): Rename from
10275 free_realized_multibyte_face. Free also faces realized for ASCII.
10276 (choose_face_font): Change arguments. Adjust for the change of
10277 fontset_font_pattern and FS_LOAD_FONT.
10278
10279 * xfns.c: Include "character.h".
10280 (x_encode_text): Adjust for the new code-conversion API.
10281
10282 * xselect.c: Don't include "charset.h".
10283 (selection_data_to_lisp_data): Adjust for the new code conversion API.
10284
10285 * xterm.c: Include "character.h".
10286 (x_encode_char): New argument CHARSET. Change caller.
10287 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
10288 Call ENCODE_CHAR instead of SPLIT_CHAR.
10289 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
10290 CHAR_WIDTH instead of CHARSET_WIDTH.
10291 (XTread_socket): Adjust for the new code-conversion API.
10292 (x_new_font): Adjust for the change of FS_LOAD_FONT.
10293 (x_load_font): Adjust for the change of struct font.
10294
10295 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10296
10297 * xfaces.c (face_at_buffer_position): Remove unused vars.
10298
10299 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10300
10301 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
10302 Fix overflow checking.
10303
10304 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10305
10306 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
10307 Cancel previous change.
10308
10309 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10310
10311 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
10312 ccl->eight_bit_control. Fix check for buffer overflow.
10313 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
10314 (ccl_driver): Initialize extra_bytes to 0.
10315
10316 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10317
10318 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
10319 return it ORed with ctrl_modifier.
10320
10321 2008-01-29 Miles Bader <miles@gnu.org>
10322
10323 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
10324
10325 2008-01-28 Jason Rumney <jasonr@gnu.org>
10326
10327 * w32.c (stat): Don't double check for networked drive.
10328
10329 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10330
10331 * window.c (run_window_configuration_change_hook): New function.
10332 Code extracted from set_window_buffer. Set the selected frame.
10333 (set_window_buffer): Use it.
10334 * window.h (run_window_configuration_change_hook): Declare.
10335 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
10336
10337 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
10338
10339 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
10340
10341 * Makefile.in: Remove references to unused macros.
10342
10343 2008-01-26 Eli Zaretskii <eliz@gnu.org>
10344
10345 * w32.c (g_b_init_get_sid_sub_authority)
10346 (g_b_init_get_sid_sub_authority_count): New static variables.
10347 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
10348 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
10349 (init_user_info): Use them to retrieve uid and gid.
10350 Use 500/513, the Windows defaults, as Administrator's uid/gid.
10351 (fstat): Use pw_uid and pw_gid from the_passwd structure for
10352 st_uid and st_gid of the file.
10353
10354 2008-01-26 Jason Rumney <jasonr@gnu.org>
10355
10356 * w32.c (logon_network_drive): New function.
10357 (stat): Use it.
10358
10359 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
10360
10361 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
10362 invisible text covered with an ellipsis.
10363
10364 2008-01-25 Richard Stallman <rms@gnu.org>
10365
10366 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
10367 jump back to beginning. Move some other initializations after that.
10368 (Qwindow_text_change_functions, Vwindow_text_change_functions):
10369 New variables.
10370 (syms_of_xdisp): Init them.
10371
10372 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
10373
10374 * buffer.c (reset_buffer_local_variables):
10375 Implement `permanent-local-hook'.
10376 (Qpermanent_local_hook): New variable.
10377 (syms_of_buffer): Init and staticpro it.
10378
10379 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
10380
10381 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
10382
10383 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
10384
10385 * fns.c (Fclrhash): Return TABLE.
10386
10387 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10388
10389 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
10390 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
10391 is set even without positional changes.
10392 (x_scroll_bar_clear): Set bar->redraw_needed_p.
10393
10394 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
10395
10396 2008-01-23 Jason Rumney <jasonr@gnu.org>
10397
10398 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
10399
10400 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
10401 the unicode range available in MULE by locale-coding-system.
10402 Improve dbcs lead byte detection. Set event timestamp and modifiers
10403 earlier.
10404
10405 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10406
10407 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
10408 [MAC_OSX] (init_mac_osx_environment): Initialize it.
10409 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
10410 when used on child processes.
10411
10412 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
10413
10414 * dbusbind.c (Fdbus_method_return_internal): Rename from
10415 Fdbus_method_return.
10416 (Fdbus_unregister_object): Move to dbus.el.
10417 (Fdbus_call_method, Fdbus_method_return_internal)
10418 (Fdbus_send_signal): Improve debug messages.
10419
10420 2008-01-20 Martin Rudalics <rudalics@gmx.at>
10421
10422 * undo.c (undo_inhibit_record_point): New variable.
10423 (syms_of_undo): Initialize it.
10424 (record_point): Don't record point when undo_inhibit_record_point
10425 is set.
10426
10427 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
10428
10429 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
10430
10431 * xdisp.c (Qauto_hscroll_mode): New var.
10432 (syms_of_xdisp): Initialize it.
10433 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
10434 window's buffer.
10435 (hscroll_windows): Don't check automatic_hscrolling_p here.
10436
10437 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
10438 vscroll if we're setting window-buffer to the value it already has.
10439
10440 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
10441
10442 * m/intel386.h: Remove references to XENIX.
10443
10444 2008-01-17 Andreas Schwab <schwab@suse.de>
10445
10446 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
10447 instead of HAVE_X86_64_LIB64_DIR.
10448 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
10449
10450 2008-01-17 Glenn Morris <rgm@gnu.org>
10451
10452 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
10453 to HAVE_X86_64_LIB64_DIR.
10454
10455 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
10456
10457 * s/irix3-3.h:
10458 * s/irix4-0.h:
10459 * s/386-ix.h:
10460 * s/domain.h:
10461 * s/hpux9-x11r4.h:
10462 * s/hpux9shxr4.h: Remove files for systems no longer supported.
10463
10464 * sysdep.c: Remove code containing references to symbols defined
10465 by unsupported systems.
10466
10467 2008-01-16 Glenn Morris <rgm@gnu.org>
10468
10469 * coding.c (select-safe-coding-system-function): Doc fix.
10470
10471 2008-01-15 Glenn Morris <rgm@gnu.org>
10472
10473 * config.in: Revert 2008-01-13 change: this is a generated file.
10474
10475 2008-01-13 Tom Tromey <tromey@redhat.com>
10476
10477 * lisp.h: Fix typo.
10478
10479 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10480
10481 * m/sequent-ptx.h:
10482 * m/sequent.h:
10483 * s/ptx.h:
10484 * s/ptx4-2.h:
10485 * s/ptx4.h: Remove files for systems no longer supported.
10486
10487 * callproc.c (Fcall_process): Fix previous change.
10488
10489 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10490
10491 * unexsunos4.c: Remove file, system not supported anymore.
10492
10493 * m/mips.h:
10494 * m/intel386.h:
10495 * callproc.c:
10496 * config.in:
10497 * ecrt0.c:
10498 * emacs.c:
10499 * fileio.c:
10500 * frame.c:
10501 * getpagesize.h:
10502 * keyboard.c:
10503 * lread.c:
10504 * process.c:
10505 * puresize.h:
10506 * sysdep.c:
10507 * systty.h:
10508 * syswait.h:
10509 * unexec.c:
10510 * xdisp.c:
10511 * alloc.c: Remove code containing references to symbols defined by
10512 unsupported systems.
10513
10514 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
10515
10516 * coding.c (detect_coding_mask): Fix previous change.
10517
10518 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
10519
10520 * coding.c (detect_coding_iso2022): New arg
10521 latin_extra_code_state. Allow Latin extra codes only
10522 when *latin_extra_code_state is nonzero.
10523 (detect_coding_mask): If there is a NULL byte, detect the encoding
10524 as UTF-16 or binary. If Latin extra codes exist, detect the
10525 encoding as ISO-2022 only when there's no other proper encoding is
10526 found.
10527
10528 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10529
10530 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
10531 #ifdef MAC_OS.
10532
10533 2008-01-08 Richard Stallman <rms@gnu.org>
10534
10535 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
10536
10537 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
10538
10539 * keyboard.c (parse_menu_item): Don't enclose key bindings on
10540 menu bar in parentheses.
10541
10542 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
10543
10544 * m/7300.h:
10545 * m/acorn.h:
10546 * m/alliant-2800.h:
10547 * m/alliant.h:
10548 * m/alliant1.h:
10549 * m/alliant4.h:
10550 * m/altos.h:
10551 * m/amdahl.h:
10552 * m/apollo.h:
10553 * m/att3b.h:
10554 * m/aviion-intel.h:
10555 * m/aviion.h:
10556 * m/celerity.h:
10557 * m/clipper.h:
10558 * m/cnvrgnt.h:
10559 * m/convex.h:
10560 * m/cydra5.h:
10561 * m/delta88k.h:
10562 * m/dpx2.h:
10563 * m/dual.h:
10564 * m/elxsi.h:
10565 * m/f301.h:
10566 * m/gould-np1.h:
10567 * m/gould.h:
10568 * m/i860.h:
10569 * m/ibmps2-aix.h:
10570 * m/ibmrt-aix.h:
10571 * m/ibmrt.h:
10572 * m/irist.h:
10573 * m/is386.h:
10574 * m/isi-ov.h:
10575 * m/mega68.h:
10576 * m/mg1.h:
10577 * m/news-r6.h:
10578 * m/news-risc.h:
10579 * m/news.h:
10580 * m/nh3000.h:
10581 * m/nh4000.h:
10582 * m/ns16000.h:
10583 * m/ns32000.h:
10584 * m/nu.h:
10585 * m/orion.h:
10586 * m/orion105.h:
10587 * m/paragon.h:
10588 * m/pfa50.h:
10589 * m/plexus.h:
10590 * m/pyramid.h:
10591 * m/pyrmips.h:
10592 * m/sh3el.h:
10593 * m/sps7.h:
10594 * m/sr2k.h:
10595 * m/stride.h:
10596 * m/sun1.h:
10597 * m/sun2.h:
10598 * m/sun3-68881.h:
10599 * m/sun3-fpa.h:
10600 * m/sun3-soft.h:
10601 * m/sun3.h:
10602 * m/sun386.h:
10603 * m/symmetry.h:
10604 * m/tad68k.h:
10605 * m/tahoe.h:
10606 * m/targon31.h:
10607 * m/tek4300.h:
10608 * m/tekxd88.h:
10609 * m/tower32.h:
10610 * m/tower32v3.h:
10611 * m/ustation.h:
10612 * m/wicat.h:
10613 * m/xps100.h:
10614 * s/cxux.h:
10615 * s/cxux7.h:
10616 * s/dgux.h:
10617 * s/dgux4.h:
10618 * s/dgux5-4-3.h:
10619 * s/dgux5-4r2.h:
10620 * s/esix.h:
10621 * s/esix5r4.h:
10622 * s/hiuxmpp.h:
10623 * s/hiuxwe2.h:
10624 * s/iris3-5.h:
10625 * s/iris3-6.h:
10626 * s/isc2-2.h:
10627 * s/isc3-0.h:
10628 * s/isc4-0.h:
10629 * s/isc4-1.h:
10630 * s/newsos5.h:
10631 * s/newsos6.h:
10632 * s/osf1.h:
10633 * s/osf5-0.h:
10634 * s/riscix1-1.h:
10635 * s/riscix12.h:
10636 * s/sco4.h:
10637 * s/sco5.h:
10638 * s/sunos4-0.h:
10639 * s/sunos4-1.h:
10640 * s/sunos413.h:
10641 * s/sunos4shr.h:
10642 * s/umax.h:
10643 * s/unipl5-2.h:
10644 * s/xenix.h:
10645 * cxux-crt0.s:
10646 * unexapollo.c:
10647 * unexconvex.c:
10648 * unexenix.c:
10649 * unexsni.c: Remove files for systems no longer supported.
10650
10651 * m/intel386.h: Remove references to unsupported systems.
10652
10653 * w32.c (get_emacs_configuration): Remove reference to i860.
10654
10655 * sysdep.c: Remove dead code.
10656
10657 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
10658
10659 * s/rtu.h:
10660 * m/masscomp.h: Remove files. Platform is obsolete.
10661
10662 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
10663
10664 * dbusbind.c (Fdbus_method_return): New function.
10665 (xd_read_message): Add the serial number to the event.
10666 (Fdbus_register_method): Activate the function.
10667
10668 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
10669
10670 * keyboard.c (read_key_sequence): Fix typo.
10671
10672 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
10673
10674 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
10675 (xd_signature, xd_append_arg): Handle element type detection for
10676 empty arrays.
10677 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
10678 SDATA () calls; this must be solved more general.
10679 (Fdbus_register_signal): Use SBYTES instead of strlen.
10680
10681 2008-01-03 Magnus Henoch <magnus@zemdatav>
10682
10683 * dbusbind.c (xd_append_arg): Use unsigned char instead of
10684 unsigned int for byte values (necessary for big-endian platform).
10685 (Fdbus_call_method): Handle the case of no returned arguments.
10686
10687 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
10688
10689 * dbusbind.c (xd_read_message): Use non-static input_event struct.
10690
10691 2007-12-31 Magnus Henoch <mange@freemail.hu>
10692
10693 * dbusbind.c (xd_signature): Signature of variant is just "v".
10694
10695 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
10696
10697 * dbusbind.c: Fix several errors and compiler warnings.
10698 Reported by Tom Tromey <tromey@redhat.com>.
10699 (XD_ERROR, XD_DEBUG_MESSAGE)
10700 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
10701 (xd_append_arg): Part for basic D-Bus types rewitten.
10702 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
10703 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
10704 appropriate.
10705 (xd_read_message): Return Qnil. Don't signal an error; it is not
10706 useful during event reading.
10707 (Fdbus_register_signal): Signal an error if the check for
10708 FUNCTIONP fails.
10709 (Fdbus_register_method): New function. The implementation is not
10710 complete, the call of the function signals an error therefore.
10711 (Fdbus_unregister_object): New function, renamed from
10712 Fdbus_unregister_signal. The initial check signals an error, if
10713 the object is not well formed.
10714
10715 2007-12-30 Richard Stallman <rms@gnu.org>
10716
10717 * textprop.c (get_char_property_and_overlay):
10718 Signal error if POSITION is out of range in a buffer.
10719
10720 2007-12-29 Martin Rudalics <rudalics@gmx.at>
10721
10722 * w32fns.c (Fx_create_frame): Make copy of frame parameters
10723 because the original parameters are in pure storage now.
10724
10725 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10726
10727 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
10728
10729 2007-12-22 Eli Zaretskii <eliz@gnu.org>
10730
10731 * callint.c (syms_of_callint) <command-history>: Add reference to
10732 history-length in the doc string.
10733
10734 2007-12-17 Jason Rumney <jasonr@gnu.org>
10735
10736 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
10737 before passing as wParam.
10738
10739 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
10740
10741 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
10742 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
10743 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
10744 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
10745 as number.
10746 (Fdbus_call_method): Fix docstring.
10747
10748 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
10749
10750 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
10751 New macros.
10752 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
10753 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
10754 Simplify.
10755 (xd_signature): New function.
10756 (xd_append_arg): Compute also signatures. Major rewrite.
10757 (xd_retrieve_arg): Make debug messages friendly.
10758 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
10759 Check for signatures of arguments.
10760
10761 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
10762
10763 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
10764 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
10765 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
10766 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
10767 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
10768 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
10769 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
10770 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
10771 (xd_retrieve_value): Remove. Functionality included in ...
10772 (xd_append_arg): New function.
10773 (Fdbus_call_method, Fdbus_send_signal): Apply it.
10774
10775 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
10776
10777 * dbusbind.c (top): Include <stdio.h>.
10778 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
10779 dbus_message_new_method_call and dbus_message_new_signal.
10780 (Fdbus_register_signal): Rename unique_name to uname.
10781 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
10782 non-existing unique name. Fix typos in matching rule. Return an
10783 object which is useful in Fdbus_unregister_signal.
10784 (Fdbus_unregister_signal): Reimplementation, in order to remove
10785 only the corresponding entry.
10786 (Vdbus_registered_functions_table): Change the order of entries.
10787 Apply these changes in xd_read_message and Fdbus_register_signal.
10788
10789 2007-12-16 Andreas Schwab <schwab@suse.de>
10790
10791 * fileio.c (Finsert_file_contents): Fix overflow check to not
10792 depend on undefined integer overflow.
10793
10794 2007-12-14 Jason Rumney <jasonr@gnu.org>
10795
10796 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
10797 for characters above 127.
10798
10799 2007-12-13 Jason Rumney <jasonr@gnu.org>
10800
10801 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
10802 before dereferencing array.
10803 (lookup_vk_code): Remove zero comparison.
10804
10805 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
10806
10807 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
10808 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
10809 Use `unsigned int' instead of `uint'.
10810 (xd_read_message, Fdbus_register_signal): Split expressions into
10811 multiple lines before operators "&&" and "||", according to the
10812 GNU Coding Standards.
10813
10814 2007-12-14 Eli Zaretskii <eliz@gnu.org>
10815
10816 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
10817
10818 2007-12-12 Juri Linkov <juri@jurta.org>
10819
10820 * buffer.c (Frename_buffer): In interactive spec replace
10821 `read-buffer' with `read-string' that uses `buffer-name-history'
10822 as history, and the current buffer's name as default.
10823
10824 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
10825
10826 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
10827 manipulating the backtrace manually.
10828 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
10829 (struct backtrace, backtrace_list): Remove.
10830 (command_loop_1): Remove dead var `no_direct'.
10831
10832 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
10833 preserve non-built-in buffer-local variables.
10834 (Fkill_all_local_variables): Don't re-create&re-set permanent
10835 buffer-local variables.
10836
10837 2007-12-09 Juri Linkov <juri@jurta.org>
10838
10839 * buffer.c (Frename_buffer): Change interactive spec from "s" to
10840 Lisp code that uses `read-buffer' with current buffer as default.
10841
10842 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
10843
10844 * dbusbind.c (xd_read_message): Generate an event for every
10845 registered handler. There might be several handlers registered
10846 for the same signal.
10847 (Fdbus_register_signal): Don't overwrite a registration for the
10848 same signal. Add a new registration if handlers are different.
10849 (Vdbus_registered_functions_table): Rework doc string.
10850
10851 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
10852
10853 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
10854 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
10855 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
10856 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
10857 Unify argument lists.
10858 (xd_read_message, Fdbus_register_signal): Reorder and extend event
10859 arguments and hash table keys. Use unique name for service.
10860 (Fdbus_unregister_signal): Remove checks.
10861 (Vdbus_registered_functions_table): Fix doc string.
10862
10863 2007-12-05 Magnus Henoch <mange@freemail.hu>
10864
10865 * process.c (make_process): Initialize pty_flag to 0.
10866
10867 2007-12-05 Jason Rumney <jasonr@gnu.org>
10868
10869 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
10870 specified XBMs.
10871
10872 2007-12-05 Richard Stallman <rms@gnu.org>
10873
10874 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
10875
10876 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10877
10878 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
10879 New variable.
10880 (mac_try_close_socket) [MAC_OSX]: New function.
10881 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
10882 Update cfsockets_for_select. Replace invalid CFRunLoop source.
10883
10884 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
10885 Use mac_try_close_socket.
10886
10887 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10888
10889 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
10890 reloc_base.
10891 (copy_dysymtab): Compute relocation base here.
10892 (rebase_reloc_address) [__ppc64__]: New function.
10893 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
10894 changed.
10895
10896 2007-12-05 Jason Rumney <jasonr@gnu.org>
10897
10898 * w32proc.c (sys_spawnve): Quote args with wildcards.
10899
10900 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10901
10902 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
10903 __objc_* sections.
10904 (unrelocate) [_LP64]: Set relocation base to address of data segment.
10905
10906 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
10907
10908 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
10909 Move check for Vdbus_registered_functions_table to
10910 xd_read_queued_messages.
10911 (xd_read_queued_messages): Protect xd_read_message calls by
10912 internal_condition_case_1.
10913
10914 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
10915
10916 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
10917 Qdbus_system_bus and Qdbus_session_bus, respectively.
10918 (Vdbus_intern_symbols): Remove.
10919 (Vdbus_registered_functions_table): New hash table.
10920 (XD_SYMBOL_INTERN_SYMBOL): Remove.
10921 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
10922 Rewrite in order to manage registered functions by hash table
10923 Vdbus_registered_functions_table.
10924
10925 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
10926
10927 * xterm.c: Update URL to Window Manager Specification in comment.
10928
10929 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
10930
10931 * config.in (HAVE_DBUS): Add.
10932
10933 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
10934 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
10935 (obj): Add $(DBUS_OBJ).
10936 (LIBES): Add $(DBUS_LIBS).
10937 (dbusbind.o): New target.
10938
10939 * dbusbind.c: New file.
10940
10941 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
10942
10943 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
10944 (Qdbus_event): New Lisp symbol.
10945 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
10946 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
10947 (keys_of_keyboard ): Define dbus-event.
10948
10949 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
10950
10951 2007-12-01 Richard Stallman <rms@gnu.org>
10952
10953 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
10954
10955 2007-11-30 Jason Rumney <jasonr@gnu.org>
10956
10957 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
10958 (w32con_reset_terminal_modes): Clear screen buffer.
10959 (w32_face_attributes): Don't use color indexes that are out of range.
10960 Only reverse the default colors.
10961
10962 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
10963 WINDOWSNT.
10964
10965 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
10966
10967 2007-11-29 Jason Rumney <jasonr@gnu.org>
10968
10969 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
10970 (w32_face_attributes): Use Vtty_defined_color_alist to determine
10971 if the terminal colors are initialized.
10972 (unspecified_fg, unspecified_bg): Remove unused declarations.
10973
10974 2007-11-29 Andreas Schwab <schwab@suse.de>
10975
10976 * keyboard.c (apply_modifiers): Fix typo.
10977
10978 2007-11-29 Richard Stallman <rms@gnu.org>
10979
10980 * keymap.c (Fcurrent_local_map): Doc fix.
10981
10982 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
10983
10984 * s/gnu-kfreebsd.h: New file.
10985
10986 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
10987
10988 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
10989 Don't cast redundantly.
10990
10991 * keyboard.c (KEY_TO_CHAR): New macro.
10992 (parse_modifiers, apply_modifiers): Accept integer arguments.
10993 (read_key_sequence): Use them to unify the "shift->unshift" mapping
10994 for chars and symbol keys.
10995 After doing such remapping, apply function-key-map again.
10996
10997 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
10998
10999 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
11000 compiled anymore.
11001
11002 2007-11-26 Andreas Schwab <schwab@suse.de>
11003
11004 * process.c (list_processes_1): Fix indentation level of the
11005 command column.
11006
11007 2007-11-23 Andreas Schwab <schwab@suse.de>
11008
11009 * editfns.c (Fformat): Handle %c specially since it requires the
11010 argument to be of type int.
11011
11012 2007-11-23 Markus Triska <markus.triska@gmx.at>
11013
11014 * emacs.c (main): Call init_editfns before init_process, since
11015 init_process sets Vprocess_connection_type depending on OS release.
11016
11017 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11018
11019 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
11020 (find_symbol_value): Use do_symval_forwarding.
11021
11022 * data.c (set_internal): Set the value in the `cons-cell' (for
11023 Buffer_Local_values) not only for frame-local variables.
11024
11025 2007-11-22 Andreas Schwab <schwab@suse.de>
11026
11027 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
11028 values to sprintf.
11029 * keymap.c (Fsingle_key_description): Likewise.
11030 * print.c (print_object): Likewise.
11031
11032 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
11033
11034 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
11035 file for image is nil.
11036
11037 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
11038
11039 * term.c: Include stdarg.h.
11040 (fatal): Implement using varargs.
11041 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
11042
11043 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11044
11045 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
11046 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
11047 Update call to buffer_slot_type_mismatch.
11048 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
11049 (buffer_slot_type_mismatch): Update.
11050 * buffer.c (buffer_local_types): Remove.
11051 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
11052 (defvar_per_buffer): Set the type in the buffer_objfwd.
11053
11054 2007-11-21 Jason Rumney <jasonr@gnu.org>
11055
11056 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
11057 CreateFileMapping returns NULL on failure.
11058
11059 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11060
11061 * search.c (Fset_match_data): Remove the `evaporate' feature.
11062 (unwind_set_match_data): Don't use the `evaporate' feature.
11063
11064 2007-11-21 Jason Rumney <jasonr@gnu.org>
11065
11066 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
11067
11068 * w32console.c (w32con_write_glyphs): Remove unused variables.
11069
11070 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
11071
11072 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
11073
11074 * s/darwin.h (MULTI_KBOARD): Remove.
11075
11076 * macfns.c (x_create_tip_frame, Fx_create_frame)
11077 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
11078
11079 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11080
11081 * buffer.c (Fbuffer_local_value): Remove redundant test.
11082 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
11083 than in `current-buffer' to match the comment.
11084 Do the swap using swap_in_global_binding.
11085
11086 * data.c (store_symval_forwarding, set_internal):
11087 * eval.c (specbind): Remove dead code.
11088
11089 * coding.c (detect_coding, Fupdate_coding_systems_internal):
11090 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
11091 Since we do not want to see internal Lisp_*fwd objects here.
11092
11093 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
11094
11095 * sysdep.c (init_system_name): Use getaddrinfo if available.
11096
11097 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
11098 (x_scroll_bar_note_movement): start, end, with, height in struct
11099 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
11100
11101 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
11102
11103 * puresize.h (BASE_PURESIZE): Increase to 1190000.
11104
11105 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11106
11107 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
11108 This undoes Richard's change of 14-Oct-2002.
11109
11110 * alloc.c (allocate_other_vector):
11111 * lisp.h (allocate_other_vector): Remove.
11112
11113 * window.c (struct save_window_data): Move non-lisp data to the end
11114 and make it `int' rather than Lisp_Object.
11115 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
11116 Done wrap/unwrap integer values.
11117 (Fset_window_configuration, compare_window_configurations):
11118 Update use of fields to their new types.
11119
11120 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
11121 Turn integer fields into `int'. Merge x_window_low and x_window_high.
11122 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
11123 (SET_SCROLL_BAR_X_WINDOW): Remove.
11124 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
11125 Access the new x_window field directly.
11126 * xterm.c (x_scroll_bar_create): Use a pseudovector.
11127 Don't wrap/unwrap integers into Lisp_Objects.
11128 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
11129 (x_scroll_bar_report_motion):
11130 Don't wrap/unwrap integers into Lisp_Objects.
11131 (x_term_init): Use SDATA.
11132 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
11133 (x_scroll_bar_set_handle, x_scroll_bar_remove)
11134 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
11135 (x_scroll_bar_report_motion, x_scroll_bar_clear):
11136 * xfns.c (x_set_background_color):
11137 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
11138 Access the new x_window field directly.
11139
11140 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
11141 (allocate_pseudovector): Make non-static.
11142
11143 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
11144 (allocate_pseudovector): Declare.
11145 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
11146
11147 2007-11-15 Andreas Schwab <schwab@suse.de>
11148
11149 * editfns.c (Fformat): Correctly format EMACS_INT values.
11150 Also take precision into account when formatting an integer.
11151
11152 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
11153
11154 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
11155
11156 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
11157 (syms_of_keyboard): Defsubr it.
11158
11159 * data.c (swap_in_global_binding): Fix longstanding bug where
11160 store_symval_forwarding was not called with the right second argument,
11161 thus causing objfwd-ing from being dropped.
11162
11163 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
11164
11165 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
11166 (Fx_display_pixel_height, Fx_display_planes)
11167 (Fx_display_color_cells, Fx_server_max_request_size)
11168 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11169 (Fx_display_visual_class, Fx_display_save_under):
11170 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
11171 (Fx_display_pixel_height, Fx_display_planes)
11172 (Fx_display_color_cells, Fx_server_max_request_size)
11173 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11174 (Fx_display_mm_height, Fx_display_mm_width)
11175 (Fx_display_backing_store, Fx_display_visual_class)
11176 (Fw32_select_font, Fx_display_save_under):
11177 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
11178 (Fx_display_pixel_height, Fx_display_planes)
11179 (Fx_display_color_cells, Fx_server_max_request_size)
11180 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11181 (Fx_display_save_under): Fix typos in docstrings.
11182
11183 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
11184
11185 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
11186 corresponding to deleted entries; they are an implementation detail.
11187 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
11188 Remove variables.
11189 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
11190 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
11191 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
11192 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
11193 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
11194 (Fw32_define_rgb_color, Fw32_load_color_file)
11195 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
11196 Fix typos in docstrings.
11197 (Fx_server_version): Reflow docstring.
11198 (Fw32_shell_execute): Doc fixes.
11199
11200 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
11201
11202 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
11203 if w32_parse_hot_key returned nil.
11204
11205 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11206
11207 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
11208
11209 2007-11-09 Jason Rumney <jasonr@gnu.org>
11210
11211 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
11212
11213 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
11214
11215 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
11216 Remove W32_SCROLL_BAR_CLICK_EVENT.
11217
11218 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
11219 Add MULTIMEDIA_KEY_EVENT.
11220
11221 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
11222 (lispy_multimedia_keys) [WINDOWSNT]: New array.
11223 (make_lispy_event) [WINDOWSNT]: Use it to translate
11224 MULTIMEDIA_KEY_EVENT.
11225
11226 * w32term.h (WM_APPCOMMAND): Define if not already.
11227 (GET_APPCOMMAND_LPARAM): Likewise.
11228
11229 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
11230 WM_APPCOMMAND.
11231
11232 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
11233 (syms_of_w32fns): Export and initialize it.
11234 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
11235
11236 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
11237
11238 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
11239 twice.
11240
11241 * xdisp.c (handle_face_prop): Fix last change.
11242
11243 2007-11-09 Richard Stallman <rms@gnu.org>
11244
11245 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
11246 not just for after-strings and before-strings.
11247 Call face_for_overlay_string and pass the overlay to it.
11248 (handle_display_prop): Determine whether property came from an overlay.
11249 Pass OVERLAY arg to handle_single_display_spec.
11250 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
11251 (load_overlay_strings): Fill in it->string_overlays.
11252 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
11253
11254 * xfaces.c (face_for_overlay_string): Function renamed from
11255 face_at_buffer_position_no_overlays, and add arg OVERLAY.
11256
11257 * dispextern.h (struct it): New elt string_overlays.
11258 New elt from_overlay, also in stack.
11259 Rearrange a few elements.
11260 (face_for_overlay_string): Decl renamed from
11261 face_at_buffer_position_no_overlays, and add argument.
11262
11263 2007-11-09 Richard Stallman <rms@gnu.org>
11264
11265 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
11266 to get the base face for an overlay string.
11267
11268 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
11269
11270 * xfaces.c (face_at_buffer_position_no_overlays): New function.
11271
11272 * xdisp.c (handle_stop): Move some code out of loop.
11273
11274 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11275
11276 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
11277 Fix conversion from Lisp object to ATSUFontID.
11278
11279 2007-11-09 Jason Rumney <jasonr@gnu.org>
11280
11281 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
11282
11283 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11284
11285 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
11286 Don't assume regions are aligned to page boundary.
11287 (print_load_command_name): Add LC_UUID if defined.
11288
11289 2007-11-09 Richard Stallman <rms@gnu.org>
11290
11291 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
11292
11293 2007-11-07 Jason Rumney <jasonr@gnu.org>
11294
11295 * s/windows95.h: Remove.
11296
11297 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
11298
11299 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
11300 abort with a message on unhandled store_type values.
11301
11302 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
11303
11304 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
11305 Remove HAVE_X11R5 and HAVE_X11R4.
11306
11307 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11308
11309 * Makefile.in: Remove references to sunfns.c and sunfns.o.
11310
11311 2007-11-01 Johan Bockgård <bojohan@gnu.org>
11312
11313 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
11314 Don't set s->stippled_p here, since it has already been set by
11315 x_set_glyph_string_gc from x_draw_glyph_string.
11316
11317 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11318
11319 * sunfns.c: Remove file.
11320
11321 * m/sun386.h:
11322 * m/sun2.h:
11323 * m/sparc.h: Remove Sun windows code.
11324
11325 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
11326
11327 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
11328 (init_keyboard): Set current_kboard's window-system to nil.
11329 (tty_read_avail_input): Typo.
11330 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
11331
11332 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
11333
11334 * s/usg5-4.h:
11335 * s/usg5-3.h:
11336 * s/ptx.h:
11337 * m/is386.h:
11338 * m/ibmps2-aix.h:
11339 * Makefile.in: Remove all mentions of X10.
11340
11341 * dispnew.c (syms_of_display): Don't mention version 10.
11342
11343 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
11344
11345 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
11346 ($(BLD)/abbrev.$(O)): Remove.
11347
11348 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11349
11350 Rewrite abbrev.c in Elisp.
11351 * image.c (Qcount): Don't declare as extern.
11352 (syms_of_image): Initialize and staticpro `Qcount'.
11353 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
11354 * emacs.c (main): Don't call syms_of_abbrev.
11355 * Makefile.in (obj): Remove abbrev.o.
11356 (abbrev.o): Remove.
11357 * abbrev.c: Remove.
11358
11359 2007-10-26 Martin Rudalics <rudalics@gmx.at>
11360
11361 * window.c (window_min_size_2): Don't count header-line.
11362
11363 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
11364
11365 * frame.h (struct frame): Move all bit fields after the first bit
11366 field to take advantage of the available space. Group all the
11367 chars together to reduce wasted space due to padding.
11368
11369 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
11370
11371 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
11372
11373 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
11374 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
11375 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
11376 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
11377 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
11378 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
11379 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
11380 (last_marked, mark_object_loop_halt): Make static.
11381
11382 * frame.c (syms_of_frame) <delete-frame-functions>:
11383 Fix typo in docstring.
11384
11385 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
11386
11387 * w32.c (init_environment): Fix tiny memory leak.
11388 (w32_get_resource): Remove unused variable `ok'.
11389
11390 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
11391
11392 Make `window-system' into a keyboard-local variable (rather than
11393 frame-local as done originally by multi-tty).
11394
11395 * keyboard.h (struct kboard): Add Vwindow_system.
11396 * keyboard.c (init_kboard): Set a default for Vwindow_system.
11397 (mark_kboards): Mark Vwindow_system.
11398
11399 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
11400 (init_display): Don't set the obsolete `window-system' frame-param.
11401
11402 * xterm.c (x_term_init):
11403 * w32term.c (w32_create_terminal):
11404 * term.c (init_tty): Set Vwindow_system.
11405 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
11406 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
11407
11408 * xfns.c (Fx_create_frame, x_create_tip_frame):
11409 * w32fns.c (Fx_create_frame, x_create_tip_frame):
11410 * macfns.c (Fx_create_frame):
11411 Don't set the obsolete `window-system' frame-param.
11412
11413 * frame.h (Qwindow_system): Remove.
11414 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
11415 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
11416
11417 2007-10-24 Richard Stallman <rms@gnu.org>
11418
11419 * frame.c (x_figure_window_size): For fullscreen case,
11420 set USPosition | PPosition without clobbering rest of window_prompting.
11421
11422 * keyboard.c (Fcurrent_idle_time): Doc fix.
11423
11424 * print.c (Fwith_output_to_temp_buffer): Doc fix.
11425
11426 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11427
11428 * process.c (unwind_request_sigio): Only define if __ultrix__.
11429
11430 * callproc.c (child_setup): Remove spurious *.
11431
11432 * lisp.h (Fget_text_property): Declare.
11433 (have_menus_p): Declare it here rather than in sys-dep header files.
11434 * macterm.h (have_menus_p):
11435 * msdos.h (have_menus_p):
11436 * xterm.h (have_menus_p): Remove.
11437
11438 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11439 (Fmake_variable_frame_local): Just check the variable's const-ness
11440 rather than checking nil or t.
11441
11442 2007-10-22 Jason Rumney <jasonr@gnu.org>
11443
11444 * w32fns.c: Include math.h.
11445 (w32_abort): Declaration moved to nt/config.nt.
11446
11447 * s/ms-w32.h (HAVE_STDLIB_H): Define.
11448 (abort): Redefinition moved to nt/config.nt.
11449
11450 * m/windowsnt.h: Remove.
11451
11452 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
11453
11454 * emacs.c (Fdump_emacs): Fix typo in message.
11455 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
11456 <installation-directory>: Reflow docstring.
11457
11458 2007-10-22 Juri Linkov <juri@jurta.org>
11459
11460 * minibuf.c: Allow minibuffer default to be a list of default values.
11461 With empty input use the first element of this list as returned default.
11462 (string_to_object)
11463 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
11464 (read_minibuf): If defalt is cons, set histstring to its car.
11465 (Fread_string): If default_value is cons, set val to its car.
11466 (Fread_buffer): If def is cons, use its car.
11467 (Fcompleting_read): If defalt is cons, set val to its car.
11468
11469 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
11470
11471 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
11472
11473 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
11474
11475 * doc.c (Fdocumentation): Check for advice in all cases.
11476
11477 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
11478
11479 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
11480
11481 2007-10-19 Richard Stallman <rms@gnu.org>
11482
11483 * doc.c (Fdocumentation): Check for and handle an advised function.
11484
11485 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
11486
11487 * process.c (Fset_process_filter): Doc fix.
11488
11489 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11490
11491 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
11492 which caused key-translation-map to applied repeatedly (thus breaking
11493 double-mode).
11494
11495 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11496
11497 * xselect.c (x_own_selection, x_handle_selection_clear)
11498 (x_clear_frame_selections):
11499 * w32menu.c (list_of_panes, list_of_items):
11500 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
11501 * textprop.c (validate_plist, interval_has_all_properties)
11502 (interval_has_some_properties, interval_has_some_properties_list)
11503 (add_properties, text_property_list):
11504 * process.c (Fget_buffer_process, list_processes_1, status_notify):
11505 * minibuf.c (Fassoc_string):
11506 * macselect.c (x_own_selection, x_clear_frame_selections)
11507 (Fx_disown_selection_internal):
11508 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
11509 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
11510
11511 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
11512
11513 * process.c: Link to libs for calling res_init() if available.
11514 (Fmake_network_process): Call res_init() before getaddrinfo or
11515 gethostbyname, if possible.
11516
11517 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11518
11519 * lread.c (read1): Set pvectype for char_tables.
11520
11521 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
11522 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
11523 Add type checks.
11524 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
11525
11526 * alloc.c (free_misc): Use XMISCTYPE.
11527 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
11528
11529 2007-10-17 Glenn Morris <rgm@gnu.org>
11530
11531 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
11532 (syms_of_minibuf): Add Qcompletion_ignore_case.
11533 * dired.c (Qcompletion_ignore_case): Change to external.
11534 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
11535 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
11536 (Fread_file_name): Use it rather than intern'ing.
11537
11538 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
11539 (Fread_coding_system): Ignore case of user input.
11540
11541 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11542
11543 * xdisp.c (handle_display_prop): Ignore display specs after
11544 replacing one when string text is being replaced.
11545 (handle_single_display_spec): Pretend as if characters with display
11546 property haven't been consumed only when buffer text is being replaced.
11547
11548 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
11549
11550 * xfns.c (Fx_create_frame, Fx_display_list):
11551 * window.c (window_fixed_size_p, enlarge_window)
11552 (shrink_window_lowest_first):
11553 * macterm.c (init_font_name_table):
11554 * macfns.c (Fx_create_frame, Fx_display_list):
11555 * lread.c (close_load_descs):
11556 * keyboard.c (read_char_x_menu_prompt):
11557 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
11558 * coding.c (code_convert_region_unwind): Test the type of an object
11559 rather than just !NILP before extracting data from it.
11560
11561 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
11562
11563 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
11564 (XMISCANY): New macro.
11565 (XMISCTYPE): Use it.
11566 (struct Lisp_Misc_Any): New type.
11567 (union Lisp_Misc): Use it.
11568 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
11569 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
11570 (find_symbol_value, set_internal, default_value, Fset_default)
11571 (Fmake_variable_buffer_local, Fmake_local_variable)
11572 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
11573 (Flocal_variable_if_set_p, Fvariable_binding_locus):
11574 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
11575 * alloc.c (allocate_buffer): Set the size and tag.
11576 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
11577 Use XMISCANY.
11578 (die): Follow the GNU convention for error messages.
11579 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
11580 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
11581 tag any more.
11582 (set_buffer_internal_1):
11583 * frame.c (store_frame_param):
11584 * eval.c (specbind):
11585 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
11586
11587 * doc.c (Fsnarf_documentation): Simplify.
11588
11589 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
11590
11591 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
11592 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
11593
11594 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
11595
11596 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
11597
11598 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
11599
11600 * eval.c (do_autoload): Don't save autoloads.
11601
11602 * data.c (Ffset): Save autoload of the function being set.
11603
11604 2007-10-07 John Paul Wallington <jpw@pobox.com>
11605
11606 * xfns.c (x_create_tip_frame): Set the `display-type' frame
11607 parameter before setting up faces.
11608
11609 2007-10-13 Eli Zaretskii <eliz@gnu.org>
11610
11611 * ccl.c (Fregister_code_conversion_map):
11612 * keyboard.c (append_tool_bar_item): Reformat last change.
11613
11614 * lisp.h (eabs): Rename from `abs'. All callers changed.
11615
11616 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
11617
11618 * buffer.c (add_overlay_mod_hooklist):
11619 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
11620 * fontset.c (make_fontset):
11621 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
11622 (append_tool_bar_item):
11623 * macmenu.c (grow_menu_items):
11624 * w32menu.c (grow_menu_items):
11625 * xmenu.c (grow_menu_items): Use larger_vector.
11626
11627 2007-10-13 Eli Zaretskii <eliz@gnu.org>
11628
11629 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
11630 selected frame'' on MSDOS).
11631
11632 2007-10-12 Martin Rudalics <rudalics@gmx.at>
11633
11634 * frame.c (Qexplicit_name): New variable.
11635 (x_report_frame_params): Report it in parameter alist.
11636 (syms_of_frame): Intern and staticpro it.
11637
11638 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
11639
11640 * macfns.c (x_create_tip_frame): Set terminal for frame.
11641
11642 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
11643
11644 * frame.c (Qenvironment): Remove.
11645 (syms_of_frame) <Qenvironment>: Don't initialize.
11646 (Fdelete_frame): Don't treat the `environment' param specially.
11647 * frame.h (Qenvironment): Don't declare.
11648 * callproc.c (set_initial_environment): Don't set unused frame param.
11649
11650 * frame.c (Fframe_with_environment): Remove.
11651 (syms_of_frame) <Sframe_with_environment>: Don't declare.
11652
11653 * lisp.h (Fframe_with_environment): Don't declare.
11654
11655 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
11656
11657 * indent.c (indent_tabs_mode, last_known_column)
11658 (last_known_column_modified): Make static.
11659 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
11660
11661 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
11662
11663 * puresize.h (BASE_PURESIZE): Increase to 1170000.
11664
11665 2007-10-09 Jason Rumney <jasonr@gnu.org>
11666
11667 * w32term.c (x_set_window_size): Disable code that attempts to tell
11668 Lisp code about a size change before it actually happens.
11669
11670 2007-10-09 Richard Stallman <rms@gnu.org>
11671
11672 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
11673 return HANDLED_RETURN.
11674
11675 2007-10-08 Martin Rudalics <rudalics@gmx.at>
11676
11677 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
11678 when there's an unread command event.
11679
11680 * frame.c (focus_follows_mouse): Move here from frame.el to allow
11681 window autoselection act appropriately when leaving selected frame.
11682 (syms_of_frame): Initialize focus_follows_mouse.
11683 * frame.h (focus_follows_mouse): Extern it.
11684 * macterm.c (XTread_socket): When focus_follows_mouse is nil
11685 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
11686 * msdos.c (dos_rawgetc): Likewise.
11687 * w32term.c (w32_read_socket): Likewise.
11688 * xterm.c (handle_one_xevent): Likewise.
11689 * xdisp.c (syms_of_xdisp): In doc-string of
11690 mouse-autoselect-window mention focus-follows-mouse.
11691
11692 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11693
11694 * macterm.c (mac_load_query_font): Fix missing return value.
11695 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
11696 Add BLOCK_INPUT.
11697
11698 2007-10-08 Richard Stallman <rms@gnu.org>
11699
11700 * xdisp.c (get_window_cursor_type): Implement documented behavior
11701 for cursor-in-non-selected-windows = t.
11702
11703 2007-10-08 Jason Rumney <jasonr@gnu.org>
11704
11705 * w32.c (w32_get_resource): Always close registry keys.
11706
11707 2007-10-08 Jason Rumney <jasonr@gnu.org>
11708
11709 * makefile.w32-in (LIBS): Add COMCTL32.
11710
11711 * w32fns.c (globals_of_w32fns): Init common controls.
11712
11713 2007-10-08 Richard Stallman <rms@gnu.org>
11714
11715 * image.c (our_memory_buffer): Rename from omfib_buffer.
11716
11717 2007-10-08 Richard Stallman <rms@gnu.org>
11718
11719 * buffer.c (Foverlays_at): Doc fix.
11720
11721 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
11722
11723 * fns.c (Fplist_put): Preserve uneven tail data.
11724
11725 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
11726
11727 * termhooks.h (enum event_kind): Remove trailing comma.
11728
11729 * frame.h (enum): Remove trailing comma.
11730
11731 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11732
11733 * w32proc.c (delete_child): Don't terminate threads of zombies.
11734
11735 2007-10-08 Martin Rudalics <rudalics@gmx.at>
11736
11737 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
11738
11739 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
11740 last-repeatable-command.
11741 (init_kboard): Initialize Vlast_repeatable_command.
11742 (command_loop_1): Set it to real_this_command unless that was
11743 bound to an input event.
11744 (mark_kboards): Mark it.
11745
11746 2007-10-08 Richard Stallman <rms@gnu.org>
11747
11748 * eval.c (condition-case): Doc fix.
11749
11750 2007-10-08 Masatake YAMATO <jet@gyve.org>
11751
11752 * xfaces.c (tty_supports_face_attributes_p): Fix code
11753 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
11754 was copied and not edited.
11755
11756 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
11757
11758 Add new `input-decode-map' keymap and use it for terminal
11759 escape sequences.
11760 * keyboard.h (struct kboard): Add Vinput_decode_map.
11761 Remove Vlocal_key_translation_map.
11762 * keyboard.c (read_key_sequence): Add support for input-decode-map.
11763 (init_kboard): Init input-decode-map.
11764 Replace local-key-translation-map back with key-translation-map.
11765 (syms_of_keyboard): Declare input-decode-map.
11766 Remove local-key-translation-map. Update docstrings.
11767 (mark_kboards): Mark Vinput_decode_map.
11768 Don't mark Vlocal_key_translation_map.
11769 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
11770 Replace local-key-translation-map back with key-translation-map.
11771 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
11772 Bind in input-decode-map rather than function-key-map.
11773
11774 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
11775 This was made redundant by the previous introduction of XSETPVECTYPE.
11776
11777 2007-10-09 Richard Stallman <rms@gnu.org>
11778
11779 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
11780
11781 2007-09-29 Richard Stallman <rms@gnu.org>
11782
11783 * eval.c (internal_condition_case_2, internal_condition_case_1)
11784 (internal_condition_case): Reenable abort if x_catching_errors ()
11785 to see if that really happens and why.
11786
11787 2007-10-06 Andreas Schwab <schwab@suse.de>
11788
11789 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
11790
11791 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
11792
11793 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
11794
11795 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
11796
11797 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
11798
11799 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
11800
11801 * window.h (struct window):
11802 * window.c (struct save_window_data, struct saved_window):
11803 * termhooks.h (struct terminal):
11804 * process.h (struct Lisp_Process):
11805 * frame.h (struct frame):
11806 * buffer.h (struct buffer):
11807 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
11808 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
11809 The size field of (pseudo)vectors is now unsigned.
11810 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
11811
11812 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
11813 Turn `count' into an integer.
11814
11815 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
11816 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
11817 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
11818 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
11819 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
11820
11821 * alloc.c (allocate_pseudovector): New fun.
11822 (ALLOCATE_PSEUDOVECTOR): New macro.
11823 (allocate_window, allocate_terminal, allocate_frame)
11824 (allocate_process): Use it.
11825 (mark_vectorlike): New function.
11826 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
11827 (mark_terminals): Use it.
11828 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
11829 (Fmake_byte_code): Use XSETPVECTYPE.
11830
11831 * frame.c (Fframe_parameters): Minor simplification.
11832
11833 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
11834
11835 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
11836
11837 * buffer.c (Fget_buffer_create, init_buffer_once):
11838 * lread.c (defsubr):
11839 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
11840
11841 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
11842 defined differently in the m/*.h files.
11843 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
11844 (XSETPVECTYPE): New macro.
11845 (XSETPSEUDOVECTOR): Use it.
11846
11847 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
11848 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
11849
11850 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
11851 * lread.c (defvar_per_buffer):
11852 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
11853
11854 * window.c (candidate_window_p): Only consider as visible frames that
11855 are on the same terminal.
11856
11857 * m/ibms390x.h (MARKBIT): Remove unused macro.
11858
11859 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
11860
11861 * lread.c (Fload): Fix typo in docstring.
11862
11863 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
11864
11865 * floatfns.c (Fexpt): Manually check for overflows, so that a power
11866 of a non-zero value can't yield zero.
11867
11868 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
11869
11870 * term.c (term_clear_mouse_face, term_mouse_highlight)
11871 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
11872
11873 * print.c (safe_debug_print): Use XHASH.
11874
11875 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
11876 Lisp elements such as tags.
11877 (XHASH): New macro.
11878 (EQ): Use it.
11879 (SREF, SSET, STRING_COPYIN): Use SDATA.
11880 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
11881
11882 * alloc.c (mark_terminal): Remove left-over declaration.
11883 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
11884 (allocate_vectorlike): Remove type argument. Adjust callers.
11885 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
11886 Only handle the one remaining MEM_TYPE_VECTORLIKE.
11887
11888 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
11889 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
11890 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
11891 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
11892 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
11893 Use them.
11894
11895 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
11896 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
11897 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
11898
11899 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11900
11901 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
11902 loaded by default.
11903
11904 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11905
11906 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
11907 on this tty.
11908 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
11909
11910 * term.c (mouse_face_window): Rename from Qmouse_face_window.
11911 Update all users.
11912 (handle_one_term_event): Use Gpm_DrawPointer.
11913 (Fgpm_mouse_start): Rename from Fterm_open_connection.
11914 Signal errors instead of returning nil. Always return nil.
11915 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
11916 Make it a noop if gpm-mouse was not activated.
11917 (syms_of_term): Update names.
11918
11919 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
11920
11921 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
11922 (init_sys_modes): Check that gpm_tty is the current tty.
11923
11924 * alloc.c (allocate_terminal): Set the vector size to only count the
11925 lisp fields. Initialize those to nil.
11926 (mark_object): Don't treat terminals specially.
11927 (mark_terminal): Remove.
11928 (mark_terminals): Use mark_object instead.
11929
11930 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
11931 the GC to the beginning.
11932
11933 * indent.h:
11934 * indent.c: Use EMACS_INT for ints coming from Elisp data.
11935
11936 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
11937
11938 2007-09-25 Jason Rumney <jasonr@gnu.org>
11939
11940 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
11941
11942 * w32console.c (create_w32cons_output): Remove.
11943
11944 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
11945
11946 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
11947 (reset_sys_modes): Use reset_terminal_modes_hook.
11948
11949 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
11950
11951 * eval.c (do_autoload): Don't output any message.
11952
11953 2007-09-24 Juri Linkov <juri@jurta.org>
11954
11955 * emacs.c (standard_args): Change priority of "--no-splash"
11956 from 40 to 3. Add "--no-desktop" with the same priority.
11957
11958 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
11959
11960 * alloc.c (gc_sweep): Check cons cell mark bits word by word
11961 and optimize the case where they are all 1.
11962
11963 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
11964
11965 * lisp.h (abs): Define if not defined.
11966 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
11967 Don't define `abs', since it's defined in lisp.h.
11968
11969 2007-09-22 Eli Zaretskii <eliz@gnu.org>
11970
11971 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
11972 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
11973 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
11974 (init_tty): Use DEV_TTY instead of "/dev/tty".
11975 [WINDOWSNT]: No need to protect from NAME arg being null.
11976
11977 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11978
11979 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
11980 up the tty state.
11981
11982 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11983
11984 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
11985 (gpm_tty): Change its type.
11986 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
11987 (gpm_tty): Change its type and initialize it.
11988 (Fterm_open_connection): Check the frame is indeed a tty.
11989 Use the new gpm_tty.
11990 (Fterm_close_connection): Use the new gpm_tty.
11991 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
11992 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
11993
11994 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
11995
11996 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
11997 underline_color, to draw strike-through.
11998
11999 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12000
12001 * lisp.h (allocate_terminal): Declare.
12002
12003 * window.c (candidate_window_p): Consider frames that are being placed
12004 by the user as somewhere between visible and iconified.
12005 (window_loop): Prefer windows on the current frame.
12006 (Fselect_window): Move the use of select-frame to the beginning so we
12007 can just delegate all the work (it'll call us back anyway).
12008
12009 * frame.c (Qdisplay_environment_variable):
12010 * frame.h (Qdisplay_environment_variable): Delete.
12011
12012 * .gdbinit (xbacktrace): Print the arg's address rather than the value
12013 of the first arg, since that value may be a union.
12014
12015 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
12016 parameter rather than Qdisplay_environment_variable. If all else
12017 fails, look for DISPLAY in initial-environment.
12018
12019 2007-09-21 Glenn Morris <rgm@gnu.org>
12020
12021 * Makefile.in (emacstool): Remove target.
12022 (lisp, shortlisp): Remove termdev.elc.
12023
12024 2007-09-21 Markus Triska <markus.triska@gmx.at>
12025
12026 * xterm.c (x_delete_display): Compile session management conditionally.
12027
12028 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
12029
12030 * callproc.c (getenv_internal_1): New function.
12031 (getenv_internal): Use it.
12032 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
12033
12034 * terminal.c (get_terminal): Don't accept ints to represent terminals.
12035 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
12036 (Fset_terminal_parameter): Work with dead terminals as well.
12037 (Fmodify_terminal_parameters): Remove.
12038
12039 * terminal.c (get_terminal): Handle terminals.
12040 Make sure the terminal returned is live.
12041 (create_terminal): Use allocate_terminal.
12042 (mark_terminals): Move to alloc.c.
12043 (delete_terminal): Use terminal->name as liveness status.
12044 NULL out fields after freeing their contents.
12045 Don't deallocate the object.
12046 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
12047 rather than an int.
12048 (Fterminal_live_p): Accept non-integer arguments.
12049 (Fterminal_list): Return terminal objects rather than an ints.
12050
12051 * alloc.c (enum mem_type): New member for `terminal' objects.
12052 (allocate_terminal): New function.
12053 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
12054 Handle terminals.
12055 (mark_terminal): New fun.
12056 (mark_terminals): Move from terminal.c.
12057
12058 * term.c (get_tty_terminal): Don't treat output_initial specially.
12059 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
12060 (delete_tty): Use terminal->name as liveness status.
12061
12062 * termhooks.h (struct terminal): Make it into a pseudovector.
12063 Remove `deleted' replaced by checking `name's nullness.
12064
12065 * print.c (print_object): Handle terminals.
12066
12067 * lisp.h (enum pvec_type): New `terminal' pseudovector.
12068 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
12069
12070 * frame.c (make_terminal_frame):
12071 * keyboard.c (tty_read_avail_input):
12072 * w32term.c (x_delete_terminal):
12073 * xfns.c (Fx_create_frame, x_create_tip_frame):
12074 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
12075
12076 2007-09-20 Glenn Morris <rgm@gnu.org>
12077
12078 * process.c (Fmake_network_process): Doc fix.
12079
12080 2007-09-19 Jason Rumney <jasonr@gnu.org>
12081
12082 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
12083
12084 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
12085
12086 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
12087 Fix a C warning regarding variable constness.
12088
12089 * xterm.c (handle_one_xevent): Fix a C warning.
12090
12091 2007-09-18 Jason Rumney <jasonr@gnu.org>
12092
12093 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
12094
12095 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
12096
12097 * gtkutil.c (gdpy_def): New variable.
12098 (xg_initialize): Initialize gdpy_def.
12099 (xg_display_close): If no other display exists, set gdpy_def to a
12100 new connection.
12101
12102 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
12103
12104 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
12105 when we have no file name for the icon.
12106 (xg_tool_bar_expose_callback): Remove.
12107 (xg_create_tool_bar): Don't connect expose signal to
12108 xg_tool_bar_expose_callback.
12109 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
12110
12111 2007-09-16 Andreas Schwab <schwab@suse.de>
12112
12113 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
12114 values instead of zapping them.
12115
12116 2007-09-14 Glenn Morris <rgm@gnu.org>
12117
12118 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
12119 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
12120 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
12121 scope and rename to omfib_buffer for clarity.
12122 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
12123
12124 2007-09-14 Kenichi Handa <handa@m17n.org>
12125
12126 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
12127
12128 2007-09-13 Jason Rumney <jasonr@gnu.org>
12129
12130 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
12131
12132 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
12133
12134 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
12135 (mac_term_init): Call here instead, passing rif.
12136
12137 2007-09-13 Glenn Morris <rgm@gnu.org>
12138
12139 * s/hpux.h: No longer define `static' as nothing.
12140
12141 2007-09-13 Johan Bockgård <bojohan@gnu.org>
12142
12143 * callint.c (Fcall_interactively): Remove unused var `fun'.
12144
12145 2007-09-12 Romain Francoise <romain@orebokech.com>
12146
12147 * window.c (prefer_window_split_horizontally, display_buffer):
12148 Revert 2007-09-08 change.
12149
12150 2007-09-12 Glenn Morris <rgm@gnu.org>
12151
12152 * alloca.c: Remove file.
12153 * Makefile.in (alloca): Do not undef.
12154 (allocaobj, alloca.o): Remove.
12155 (otherobj): Remove allocaobj.
12156 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
12157 * regex.c (C_ALLOCA): Remove all references and code that was only
12158 used when this was defined.
12159 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
12160 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
12161 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
12162
12163 * Makefile.in (SOURCES, unlock, relock): Delete.
12164
12165 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
12166 (menu_grab_callback): All uses changed.
12167
12168 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
12169 (x_reply_selection_request): All uses changed.
12170
12171 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12172
12173 * lread.c (load_warn_old_style_backquotes): Change message to look
12174 better when it appears in the middle of byte-compiler messages.
12175
12176 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
12177
12178 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
12179
12180 * xterm.c (x_create_terminal): Add comment.
12181
12182 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
12183
12184 2007-09-10 Richard Stallman <rms@gnu.org>
12185
12186 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
12187
12188 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
12189
12190 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
12191 (DEFUN): Document `intspec', use it instead of `prompt'.
12192
12193 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
12194
12195 * data.c (Finteractive_form): If the interactive specification starts
12196 with a `(', use it as a Lisp form.
12197
12198 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
12199 name and file modes.
12200
12201 * callint.c (Fcall_interactively): Comment fixes.
12202
12203 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12204
12205 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
12206 and compiled functions.
12207
12208 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
12209
12210 * window.c (prefer_window_split_horizontally): New variable.
12211 (display_buffer): Consider splitting window horizontally depending
12212 on prefer_window_split_horizontally.
12213
12214 2007-09-08 Eli Zaretskii <eliz@gnu.org>
12215
12216 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
12217
12218 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12219
12220 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
12221
12222 * frame.c (x_set_frame_parameters): Check number is positive before
12223 using XFASTINT.
12224
12225 * window.c (freeze_window_start): Don't presume selected_window holds
12226 a window object.
12227 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
12228
12229 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
12230
12231 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
12232
12233 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12234
12235 * window.c (Vsplit_window_preferred_function): New var.
12236 (Fdisplay_buffer): Use it.
12237 (syms_of_window): Export, and initialize it.
12238
12239 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
12240
12241 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
12242
12243 2007-09-06 Glenn Morris <rgm@gnu.org>
12244
12245 * gtkutil.c (menu_grab_callback) <cnt>:
12246 * xselect.c (x_reply_selection_request) <cnt>: Move static
12247 variable to file scope.
12248
12249 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
12250
12251 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
12252 consistent values of selected_frame and selected_window.
12253
12254 2007-09-04 Jason Rumney <jasonr@gnu.org>
12255
12256 * w32console.c (initialize_w32_display): Zero unused hooks.
12257
12258 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12259
12260 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
12261 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
12262
12263 2007-09-04 Jason Rumney <jasonr@gnu.org>
12264
12265 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
12266 in w32console.c. Set up input. Remove XXX comments that have been
12267 confirmed as correct.
12268
12269 * s/ms-w32.h (MULTI_KBOARD): Define.
12270
12271 * w32console.c (one_and_only_w32cons): Remove.
12272 (initialize_w32_display): Take terminal argument.
12273
12274 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
12275 initialize_w32_display.
12276 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
12277
12278 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
12279
12280 * keyboard.c (discard_mouse_events): Discard it.
12281 (make_lispy_event): Translate it to a lisp event.
12282 (lispy_wheel_names): Add wheel-left and right events.
12283 (syms_of_keyboard): Enlarge wheel_syms.
12284
12285 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
12286 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
12287
12288 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
12289
12290 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
12291 from WM_MOUSEHWHEEL.
12292 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
12293
12294 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
12295 terminal.
12296
12297 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
12298 keyboard for the terminal.
12299
12300 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12301
12302 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
12303 (Vresume_tty_hook): Rename from Vresume_tty_functions.
12304 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
12305 and resume-tty-function to resume-tty-hook.
12306 (Fsuspend_tty, Fresume_tty): Use new names.
12307
12308 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
12309
12310 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
12311 if it starts with "n:".
12312
12313 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
12314
12315 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
12316
12317 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12318
12319 * frame.h:
12320 * frame.c (Qterm_environment_variable): Remove.
12321 (syms_of_frame): Don't init and staticpro it.
12322
12323 * callproc.c (getenv_internal): Remove special case for $TERM.
12324
12325 * callproc.c (Vinitial_environment): New variable.
12326 (set_initial_environment): Initialize it.
12327 (syms_of_callproc): Declare it.
12328 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
12329 TERM under which a process runs is never related to the TERM in which
12330 Emacs is running.
12331
12332 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12333
12334 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
12335 * s/darwin.h: ... do it here.
12336
12337 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12338
12339 * lisp.h (set_initial_environment): Rename from set_global_environment.
12340
12341 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
12342 removed by mistake on the multi-tty branch.
12343
12344 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
12345 (Fmodify_frame_parameters): Return a value.
12346
12347 * image.c (png_load): Comment-out var only used in commented-out code.
12348
12349 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
12350 before passing it to mark_object.
12351
12352 * xfaces.c (internal_resolve_face_name): Return a value.
12353 (internal_resolve_face_name, resolve_face_name_error): Comment out.
12354
12355 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
12356 (x_icon): Comment-out var only used in commented-out code.
12357
12358 2007-08-29 Romain Francoise <romain@orebokech.com>
12359
12360 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
12361 QUIT hasn't been provided.
12362
12363 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12364
12365 * callproc.c (child_setup, getenv_internal): Use the
12366 display-environment-variable and term-environment-variable frame params.
12367 (set_initial_environment): Initialise Vprocess_environment.
12368
12369 * config.in: Disable multi-keyboard support on a mac.
12370
12371 * frame.c (Qterm_environment_variable)
12372 (Qdisplay_environment_variable): New variables.
12373 (syms_of_frame): Intern and staticpro them.
12374 (Fmake_terminal_frame): Disable output method test.
12375
12376 * frame.h: Declare them here.
12377
12378 * macfns.c (x_set_mouse_color): Get rif from the frame.
12379 (x_set_tool_bar_lines): Don't use updating_frame.
12380 (mac_window): Add 2 new parameters for consistency with other systems.
12381 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
12382 frame parameters following what is done in X11 and w32. Don't use
12383 FRAME_MAC_DISPLAY_INFO.
12384 (Fx_open_connection, start_hourglass): Remove window-system check.
12385 (x_create_tip_frame): Get the keyboard from the terminal.
12386
12387 * macmenu.c: Reorder includes.
12388 (Fx_popup_menu): Use terminal specific mouse_position_hook.
12389
12390 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
12391 terminal parameter.
12392 (x_clear_frame): Add a frame parameter.
12393 (note_mouse_movement): Get rif from the frame.
12394 (mac_term_init): Initialize the terminal.
12395 (mac_initialize): Make static and move terminal initialization ...
12396 (mac_create_terminal): ... to this new function.
12397
12398 * macterm.h (struct mac_display_info): Add terminal.
12399 (mac_initialize): Delete declaration.
12400
12401 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
12402
12403 * sysdep.c: Comment out text after #endif.
12404
12405 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
12406 is defined. Better initialize ttys in windows. Use terminal
12407 specific mouse_position_hook.
12408
12409 * termhooks.h (union display_info): Add mac_display_info.
12410
12411 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
12412 Set the default minibuffer frame, window_system and the rest of the
12413 frame parameters following what is done in X11.
12414
12415 * w32term.c (w32_initialize): Make static.
12416
12417 * xselect.c (x_handle_selection_clear): Only access
12418 terminal->kboard when MULTI_KBOARD is defined.
12419
12420 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
12421 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
12422
12423 2007-08-29 Jason Rumney <jasonr@gnu.org>
12424
12425 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
12426 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
12427
12428 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
12429 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
12430
12431 * keyboard.c (restore_kboard_configuration): Only define when
12432 MULTI_KBOARD defined.
12433
12434 * makefile.w32-in: Update dependancies from Makefile.in.
12435 (OBJ1): Add terminal.$(O)
12436
12437 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
12438 Don't define function body.
12439 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
12440
12441 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
12442
12443 * w32.c (request_sigio, unrequest_sigio): Remove.
12444
12445 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
12446 (w32con_clear_frame, w32con_clear_end_of_line)
12447 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
12448 (w32con_delete_glyphs, w32con_set_terminal_window)
12449 (scroll_line, w32_sys_ring_bell): Add frame arg.
12450 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
12451 Add terminal arg.
12452 (PICK_FRAME): Remove.
12453 (w32con_write_glyphs): Use frame specific terminal coding.
12454 (one_and_only_w32cons): New global variable.
12455 (initialize_w32_display): Use it for storing hooks.
12456 (create_w32cons_output): New function.
12457
12458 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
12459 arg a frame.
12460
12461 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
12462 Set window_system.
12463 (x_set_tool_bar_lines): Don't use updating_frame.
12464 (Fx_create_frame): Set terminal and ref count.
12465 (Fx_open_connection): Remove window-system check.
12466
12467 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
12468
12469 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
12470 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
12471 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
12472 Add frame arg.
12473 (x_delete_terminal, w32_create_terminal): New functions.
12474 (w32_term_init): Create a terminal.
12475 (w32_initialize): Move terminal specific initialization to
12476 w32_create_terminal.
12477
12478 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
12479 (w32_clear_rect, w32_clear_area): Use background from frame.
12480 (w32_display_info): Add terminal.
12481 (w32_sys_ring_bell, x_delete_display): Declare here.
12482
12483 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
12484
12485 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
12486
12487 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
12488
12489 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
12490 Fix get_named_tty calls for the controlling tty.
12491
12492 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
12493
12494 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
12495
12496 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
12497
12498 * term.c (tty_insert_glyphs): Add missing first parameter.
12499
12500 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
12501
12502 * buffer.c (Fbuffer_list, Fbury_buffer):
12503 Take frame->buried_buffer_list into account.
12504
12505 * cm.c (current_tty): New variable, for cmputc().
12506 (cmputc): Use it.
12507 (cmcheckmagic): Add tty parameter, look up terminal streams there.
12508 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
12509 (cmgoto): Add tty parameter. Pass it on to calccost().
12510 Use emacs_tputs() instead of tputs().
12511
12512 * cm.h (emacs_tputs): New macro to set current_tty, and then call
12513 tputs().
12514 (current_tty): New variable, for cmputc().
12515 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
12516
12517 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
12518 (internal_condition_case, internal_condition_case_1)
12519 (internal_condition_case_2): Don't abort when x_catching_errors.
12520
12521 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
12522 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
12523 prevent crashes caused by bogus longjmps in read_char.
12524
12525 * keymap.h (Fset_keymap_parent): Add EXFUN.
12526
12527 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
12528 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12529 Remove redundant definition.
12530
12531 * macfns.c (x_set_mouse_color, x_make_gc):
12532 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12533
12534 * w32term.c (x_free_frame_resources):
12535 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12536 (w32_initialize): Use the accessor macros for terminal characteristics.
12537
12538 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
12539 Use the accessor macros for terminal characteristics.
12540 * msdos.c (internal_terminal_init): Use the accessor macros for
12541 terminal characteristics.
12542 (ScreenVisualBell, internal_terminal_init):
12543 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12544
12545 * termopts.h (no_redraw_on_reenter): Declare.
12546
12547 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
12548 (mark_terminals, mark_ttys): Declare.
12549 (Fgarbage_collect): Call them.
12550 (mark_object): Mark buried_buffer_list.
12551
12552 * prefix-args.c: Include stdlib.h for exit.
12553
12554 * syssignal.h: Add comment.
12555
12556 * indent.c: Include stdio.h.
12557
12558 * window.h (Vinitial_window_system): Declare.
12559 (Vwindow_system): Delete declaration.
12560
12561 * fontset.c (Finternal_char_font): Use FRAME_RIF.
12562
12563 * image.c (lookup_image): Don't initialize `c' until the xasserts
12564 have been run.
12565
12566 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
12567 FRAME_FOREGROUND_PIXEL.
12568
12569 * print.c (print_preprocess): Don't lose print_depth levels while
12570 iterating.
12571
12572 * widget.c (update_from_various_frame_slots):
12573 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12574
12575 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
12576 frames.
12577 (window_internal_height): Remove bogus make_number call.
12578 (init_window_once): Call make_terminal_frame with two zero parameters.
12579
12580 * fileio.c (Fread_file_name): Update comment.
12581
12582 * callint.c (Fcall_interactively):
12583 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
12584 Make sure it is correctly unwound.
12585
12586 * xsmfns.c (x_session_close): New function.
12587
12588 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
12589 Delete declarations.
12590
12591 * xterm.h: Remove declaration for x_fully_uncatch_errors.
12592 (x_output): Remove background_pixel and foreground_pixel fields.
12593 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
12594 (x_delete_device, x_session_close): Declare.
12595
12596 * lread.c: Include setjmp.h. Update declaration of `read_char'.
12597 (read_filtered_event): Call `read_char' with a local
12598 `wrong_kboard_jmpbuf'.
12599
12600 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
12601 Don't call single_kboard_state. Use FRAME_RIF.
12602
12603 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
12604 systems.
12605
12606 * lisp.h (set_process_environment): Rename to `set_global_environment'.
12607 (Fframe_with_environment, Fset_input_meta_mode)
12608 (Fset_quit_char): EXFUN.
12609 (x_create_device, tty_output, terminal, tty_display_info): Declare.
12610 (init_sys_modes, reset_sys_modes): Update prototypes.
12611 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
12612
12613 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
12614 Vlocal_key_translation_map, and Vkeyboard_translate_table.
12615 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
12616 Delete declarations.
12617 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
12618 (temporarily_switch_to_single_kboard, tty_read_avail_input):
12619 New declarations.
12620
12621 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
12622 already does that during init_display(). Call syms_of_keymap
12623 before syms_of_keyboard. Call `syms_of_terminal'.
12624 Call set_initial_environment, not set_process_environment.
12625 (shut_down_emacs): Call reset_all_sys_modes() instead of
12626 reset_sys_modes().
12627
12628 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
12629 (internal_resolve_face_name, resolve_face_name_error): New functions.
12630 (resolve_face_name): Protect against loops and errors thrown by Fget.
12631 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
12632 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
12633
12634 * scroll.c: Replace CURTTY() with local variables throughout the
12635 file (where applicable).
12636 (calculate_scrolling, calculate_direct_scrolling)
12637 (scrolling_1, scroll_cost): Use the accessor macros for terminal
12638 characteristics.
12639
12640 * keymap.c (Vfunction_key_map): Remove.
12641 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
12642 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
12643 (Vkey_translation_map): Remove.
12644 (syms_of_keymap): Remove DEFVAR for key-translation-map.
12645 (Fdescribe_buffer_bindings)
12646 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
12647 Update for terminal-local key-translation-map.
12648
12649 * Makefile.in (callproc.o): Update dependencies.
12650 (lisp, shortlisp): Add termdev.elc.
12651 (obj): Add terminal.o.
12652 (terminal.o): Add dependencies.
12653 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
12654 (data.o, fns.o): Add termhooks.h dependency.
12655 (SOME_MACHINE_LISP): Add dnd.elc.
12656 (minibuf.o): Fix typo.
12657 Update dependencies.
12658
12659 * data.c (do_symval_forwarding, store_symval_forwarding)
12660 (find_symbol_value): Use the selected frame's keyboard, not
12661 current_kboard.
12662
12663 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
12664 Vwindow_system.
12665
12666 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
12667 Fmenu_bar_open.
12668 (syms_of_xmenu): Update defsubr.
12669 (mouse_position_for_popup, Fx_popup_menu)
12670 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
12671 (set_frame_menubar, free_frame_menubar)
12672 (create_and_show_popup_menu, xmenu_show, )
12673 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
12674 an X frame.
12675
12676 * xselect.c (x_own_selection): Abort if not an X frame.
12677 (some_frame_on_display): Check if it is an X frame.
12678 (x_handle_selection_clear): Deal with MULTI_KBOARD.
12679
12680 * coding.c: Include frame.h and termhooks.h.
12681 (terminal_coding, keyboard_coding): Delete.
12682 (Fset_terminal_coding_system_internal)
12683 (Fset_keyboard_coding_system_internal)
12684 (Fkeyboard_coding_system)
12685 (Fterminal_coding_system): Add a terminal parameter.
12686 Get terminal_coding from the terminal.
12687 (init_coding_once): Don't call setup_coding_system here.
12688
12689 * dispextern.h (set_scroll_region, turn_off_insert)
12690 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
12691 (tty_clear_end_of_line, tty_setup_colors)
12692 (delete_tty, updating_frame)
12693 (produce_special_glyphs, produce_glyphs, write_glyphs)
12694 (insert_glyphs): Remove.
12695 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
12696 (tty_turn_off_highlight, get_tty_size): Add declaration.
12697 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
12698
12699 * frame.h (enum output_method): Add output_initial.
12700 (struct x_output): Delete.
12701 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12702 Access foreground_pixel and background_pixel directly from the frame.
12703 (tty_display): Delete.
12704 (struct frame): Add buried_buffer_list, foreground_pixel,
12705 background_pixel and terminal. Delete kboard.
12706 (union output_data): Add tty.
12707 (FRAME_KBOARD): Get the kboard from the terminal.
12708 (FRAME_INITIAL_P): New macro.
12709 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
12710 (Qterm_environment_variable, Qdisplay_environment_variable)
12711 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
12712 New declarations.
12713
12714 * termchar.h (tty_output, tty_display_info): New structures.
12715 (tty_list): Declare.
12716 (FRAME_TTY, CURTTY): New macros.
12717 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
12718 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
12719 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
12720 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
12721
12722 * callproc.c: Include frame.h and termhooks.h, for terminal
12723 parameters.
12724 (add_env): New function.
12725 (child_setup): Use it.
12726 (child_setup, getenv_internal): Handle the new Vprocess_environment.
12727 (getenv_internal): Fix get_terminal_param call.
12728 (Fgetenv_internal, egetenv): Update doc.
12729 (syms_of_callproc): Initialize Vprocess_environment to nil.
12730 Register and initialize them. Remove obsolete defvars. Update doc
12731 strings.
12732 (child_setup): Handle Vlocal_environment_variables.
12733 (getenv_internal): Add terminal parameter.
12734 Handle Vlocal_environment_variables.
12735 (Fgetenv_internal): Add terminal parameter.
12736 (child_setup, getenv_internal, Fgetenv_internal): Store the local
12737 environment in a frame (not terminal) parameter. Update doc strings.
12738 (set_initial_environment): Rename from set_global_environment.
12739 Store Emacs environment in initial frame parameter.
12740
12741 * xdisp.c (redisplay_internal): Update references to
12742 `previous_terminal_frame'.
12743 (display_mode_line, Fformat_mode_line): Replace calls to
12744 `push_frame_kboard' with `push_kboard'.
12745 (get_glyph_string_clip_rects): Add extra parentheses and
12746 braces to prevent compiler warnings.
12747 (calc_pixel_width_or_height): Add xassert to check that the
12748 frame is alive. Don't call `lookup_image' on a termcap frame.
12749 (message2_nolog, message3_nolog, redisplay_internal)
12750 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
12751 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
12752 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
12753 (Fx_display_pixel_width, Fx_display_pixel_height)
12754 (Fx_display_planes, Fx_display_color_cells)
12755 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
12756 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
12757 (Fx_display_backing_store, Fx_display_visual_class)
12758 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
12759 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
12760
12761 * xfns.c (x_set_foreground_color x_set_background_color)
12762 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
12763 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12764 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
12765 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
12766 terminal that is being deleted.
12767 (Fx_create_frame): Use `store_frame_param' to set `window-system'
12768 frame parameter, and make sure it overrides any user-supplied setting.
12769 (Fx_close_connection, Fx_synchronize): Unify argument names with
12770 the rest of the DEFUNs.
12771
12772 * dispnew.c (Fsend_string_to_terminal): Update call to
12773 `get_tty_terminal'.
12774 (Fredraw_frame, Fsend_string_to_terminal)
12775 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
12776 FRAME_TERMCAP_P and FRAME_TTY.
12777 (window_change_signal): Don't believe width/height values that are
12778 impossibly small.
12779 (Vinitial_window_system): Rename from Vwindow_system.
12780 (termscript, Wcm, rif): Delete.
12781
12782 * termhooks.h (struct terminal): New struct containing the
12783 previously global text display hooks and new members NAME,
12784 DELETED and PARAM_ALIST.
12785 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
12786 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
12787 (FRAME_RIF): New macros.
12788 (get_terminal_param, get_device): New declarations.
12789 (termscript): Delete declaration.
12790
12791 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
12792 (XTflash, x_free_frame_resources, x_scroll_bar_create)
12793 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
12794 FRAME_FOREGROUND_PIXEL.
12795 (x_fully_uncatch_errors): Disable definition.
12796 (x_scroll_bar_expose): Fix reference to foreground pixel.
12797 (XTread_socket): Disable loop on all X displays.
12798 (x_delete_terminal): Don't set terminal->deleted and let
12799 delete_terminal delete the frames on the terminal.
12800 (x_delete_display): Doc update to reflect changes in
12801 delete_terminal.
12802 (x_display_info) <terminal>: Move member earlier in the struct.
12803 (deleting_tty): Remove old variable.
12804 (Fsuspend_tty): Call clear_tty_hooks.
12805 (Fresume_tty, init_tty): Call set_tty_hooks.
12806 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
12807 errors on X frames.
12808 (x_catch_errors_unwind): Abort if x_error_message is NULL.
12809 (handle_one_xevent): Initialize `f' to NULL.
12810 (x_delete_terminal, x_create_terminal): New functions.
12811 (XTset_terminal_modes, XTreset_terminal_modes)
12812 (XTread_socket, x_connection_closed, x_term_init)
12813 (x_term_init, x_delete_display): Add terminal parameter.
12814 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
12815 X connections.
12816
12817 * frame.c: Include termchar.h.
12818 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
12819 (Qwindow_system, Qenvironment, Qterm_environment_variable)
12820 (Qdisplay_environment_variable): New vars.
12821 (Fframep): Deal with output_initial.
12822 (Fframe-live-p): Doc fix.
12823 (Fwindow-system): New function.
12824 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
12825 (make_terminal_frame): Don't create frames on a terminal that is
12826 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12827 (store_frame_param): Check for found_for_frame before calling XFRAME.
12828 (Fmake_terminal_frame): Handle NULL tty names correctly.
12829 (syms_of_frame): Enhance doc string of `default-frame-alist'.
12830 (Fdelete_frame): Remove unused variable `count'. Don't allow other
12831 frames to refer to a deleted frame in their 'environment parameter.
12832 (Fframe_with_environment): New function.
12833 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
12834 (get_future_frame_param): New function.
12835 (Fmake_terminal_frame): Use it.
12836 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
12837
12838 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
12839 * sysdep.c (reset_sys_modes): Update for renames.
12840
12841 * keyboard.c (tty_read_avail_input): New function.
12842 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
12843 (syms_of_keyboard): Defsubr them.
12844 (Fset_input_meta_mode, Fset_quit_char): New functions.
12845 (Fset_input_mode): Split to above functions.
12846 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
12847 parameter. Use it in call to `read_char'.
12848 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
12849 Set wrong_kboard_jmpbuf correctly in recursive calls.
12850 Use current_kboard to access Vkeyboard_translate_table.
12851 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
12852 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
12853 Update longjmp invocations. Remember the original current_kboard,
12854 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
12855 changes it. Comment out unnecessary calls to
12856 `record_single_kboard_state' and `any_kboard_state'.
12857 Update recursive calls.
12858 (wrong_kboard_jmpbuf): Remove global variable.
12859 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
12860 Handle deleted interrupted_kboards correctly; that is a legal
12861 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
12862 and read_char calls. Abort if interrupted_kboard died in read_char.
12863 (any_kboard_state, single_kboard_state)
12864 (push_frame_kboard): Remove function.
12865 (pop_kboard): Switch out of single_kboard mode if the kboard has
12866 been deleted. Remove unused variable. Help debugging by not
12867 changing current_kboard unnecessarily. Set current_kboard to the
12868 kboard of the selected frame when the stored kboard object has
12869 been deleted before pop_kboard.
12870 (temporarily_switch_to_single_kboard): Change first parameter to a
12871 frame pointer. Throw an error when caller wants to change kboards
12872 while in single_kboard mode. Don't push_kboard if we weren't in
12873 single kboard state. Don't pop_kboard if we popped into any
12874 kboard state.
12875 (restore_kboard_configuration): Abort if pop_kboard changed the
12876 kboard in single_kboard mode. Call pop_kboard only after setting
12877 up single_kboard mode.
12878 (Frecursive_edit): Switch to single_kboard mode only in nested
12879 command loops.
12880 (cmd_error, command_loop, command_loop_1, timer_check):
12881 Comment out unnecessary call to `any_kboard_state' and
12882 `record_single_kboard_state'.
12883 (delete_kboard): Exit single_kboard mode if we have just deleted
12884 that kboard. Use FRAME_KBOARD.
12885 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
12886 `fatal_error_signal'.
12887 (record_single_kboard_state): Don't push_kboard if we weren't in
12888 single kboard state. Don't pop_kboard if we popped into any
12889 kboard state.
12890 (push_frame_kboard): Rename to push_kboard.
12891 (kbd_buffer_get_event): Use FRAME_TERMINAL.
12892 (read_avail_input): Read input from all terminals.
12893 (mark_kboards): Also mark Vkeyboard_translate_table.
12894 (kbd_buffer_store_event_hold): Simplify condition.
12895 (read_key_sequence): Reinitialize fkey and keytran at each replay.
12896 (Vkeyboard_translate_table): Move to struct kboard.
12897 (init_kboard): Initialize Vkeyboard_translate_table.
12898 (syms_of_keyboard): Use DEFVAR_KBOARD to define
12899 Vkeyboard_translate_table. Update doc strings. Update docs of
12900 local-function-key-map and function-key-map.
12901
12902 * terminal.c: New file.
12903
12904 * term.c: Include errno.h.
12905 (Vring_bell_function, device_list, initial_device)
12906 (next_device_id, ring_bell, update_begin, update_end)
12907 (set_terminal_window, cursor_to, raw_cursor_to)
12908 (clear_to_end, clear_frame, clear_end_of_line)
12909 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
12910 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
12911 (syms_of_term): Move their initialization to terminal.c.
12912 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
12913 (Ftty_display_color_cells)
12914 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
12915 (clear_tty_hooks, set_tty_hooks)
12916 (init_tty, maybe_fatal): New functions.
12917 (Ftty_type): Return nil if terminal is not on a tty instead of
12918 throwing an error. Doc update.
12919 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
12920 Doc update. Initialize new subrs and variables.
12921 (delete_tty): Use terminal->deleted.
12922 (tty_set_terminal_modes): Rename from set_terminal_modes.
12923 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
12924 (set_scroll_region): Rename to `tty_set_scroll_region'.
12925 (turn_on_insert): Rename to `tty_turn_on_insert'.
12926 (turn_off_insert): Rename to `tty_turn_off_insert'.
12927 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
12928 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
12929 (toggle_highligh): Rename to `tty_toggle_highlight'.
12930 (background_highlight): Rename to `tty_background_highlight'.
12931 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
12932 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
12933 (tty_set_scroll_region, tty_background_highlight)
12934 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
12935 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
12936 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
12937 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
12938 Add static modifier.
12939 (tty_reset_terminal_modes, tty_set_terminal_window)
12940 (tty_set_scroll_region, tty_background_highlight)
12941 (tty_highlight_if_desired, tty_cursor_to)
12942 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
12943 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
12944 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
12945 renames.
12946
12947 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
12948
12949 * keyboard.c: Qrtl is new.
12950 (parse_tool_bar_item): Handle :rtl keyword.
12951 (syms_of_keyboard): Intern :rtl keyword.
12952
12953 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
12954
12955 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
12956 so no Lisp code is executed.
12957 (file_for_image, find_rtl_image): New functions.
12958 (xg_get_image_for_pixmap): Use file_for_image.
12959 (update_frame_tool_bar): If direction is RTL, use RTL image if
12960 defined. Use Gtk stock images if defined.
12961
12962 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12963
12964 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
12965 for nonexistent or zero-width glyph in composition glyph.
12966
12967 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
12968
12969 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
12970
12971 * xdisp.c (Finvisible_p): New function.
12972 (syms_of_xdisp): defsubr it.
12973
12974 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
12975
12976 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
12977 Doc fixes.
12978
12979 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12980
12981 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
12982
12983 2007-08-24 Martin Rudalics <rudalics@gmx.at>
12984
12985 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
12986 whether decoding has modified buffer contents.
12987
12988 2007-08-24 Jason Rumney <jasonr@gnu.org>
12989
12990 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
12991 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
12992 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
12993 (init_svg_functions) [HAVE_NTGUI]: New function.
12994 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
12995 (svg_load_image): Use them.
12996 (svg_load_image) [HAVE_NTGUI]: Implement background.
12997
12998 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12999
13000 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
13001 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
13002 (LIBX): Remove @RSVG_LIBS@.
13003 (LIBES): Add $(RSVG_LIBS).
13004
13005 * image.c (svg_load_image): Blend with specified background if exists.
13006 Use IMAGE_BACKGROUND. Add Mac OS Support.
13007
13008 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
13009 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
13010 Remove macros.
13011 [MAC_OSX] (socket_callback): Do nothing.
13012 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
13013 ReceiveNextEvent.
13014 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
13015 socket_callback.
13016 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
13017
13018 2007-08-22 Glenn Morris <rgm@gnu.org>
13019
13020 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
13021
13022 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
13023
13024 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
13025
13026 * image.c: Add support for SVG images. Some additional comments
13027 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
13028 (svg_image_p): New function to test for SVG image.
13029 (svg_load): New function to load SVG image.
13030 (svg_load_image): New function, helper for svg_load.
13031 (Qsvg): New Lisp_object.
13032 (svg_keyword_index): New enum.
13033 (svg_format): New static `image_keyword' struct.
13034 (svg_type): New static `image_type' struct.
13035 (librsvg/rsvg.h): Include it.
13036
13037 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
13038
13039 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
13040
13041 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
13042
13043 * lread.c (Qold_style_backquotes): New var.
13044 (syms_of_lread): Init and staticpro it.
13045 (load_warn_old_style_backquotes): New fun.
13046 (Fload): Use them to warn about old style backquotes.
13047 (end_of_file_error, Fload): Remove unused vars.
13048
13049 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
13050
13051 * lread.c (Vold_style_backquotes): New var.
13052 (syms_of_lread): Init and export it to Elisp.
13053 (read1): Set it when we find an old-style (back)quote.
13054
13055 2007-08-22 Jason Rumney <jasonr@gnu.org>
13056
13057 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
13058
13059 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
13060
13061 * puresize.h (BASE_PURESIZE): Increase to 1140000.
13062
13063 2007-08-19 Richard Stallman <rms@gnu.org>
13064
13065 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
13066
13067 2007-08-19 Andreas Schwab <schwab@suse.de>
13068
13069 * alloc.c (pure): Round PURESIZE up.
13070
13071 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
13072
13073 * xterm.c (handle_one_xevent): Remove check that mouse click is in
13074 active frame.
13075
13076 2007-08-16 Richard Stallman <rms@gnu.org>
13077
13078 * eval.c (Fcommandp): Add parens to clarify.
13079
13080 * minibuf.c (Fall_completions): Use enum for type of table.
13081
13082 * emacs.c (USAGE2): Improve text.
13083
13084 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
13085
13086 * term.c (tty_default_color_capabilities): Declare static
13087 variables in file scope, to avoid HPUX compiler problem.
13088
13089 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
13090
13091 * gtkutil.c (update_frame_tool_bar): Use -1 as index
13092 to gtk_toolbar_insert.
13093
13094 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
13095
13096 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
13097
13098 * insdel.c (reset_var_on_error): New fun.
13099 (signal_before_change, signal_after_change):
13100 Use it to reset (after|before)-change-functions to nil in case of error.
13101 Bind inhibit-modification-hooks to t.
13102 Don't bind (after|before)-change-functions to nil while they run.
13103
13104 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13105
13106 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
13107 filling pixmap with stippled background.
13108
13109 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13110
13111 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
13112 Don't use invisible frame as parent window for repositioning.
13113
13114 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
13115
13116 * print.c (new_backquote_output): Rename from old_backquote_output.
13117 (print): Inverse its logic (according to its name) so as to match the
13118 behavior of new_backquote_flag in lread.c.
13119
13120 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13121
13122 * gmalloc.c (posix_memalign): New function.
13123
13124 * macterm.c (frame_highlight, frame_unhighlight): Don't call
13125 ActivateControl/DeactivateControl here.
13126 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
13127 frame-notice-user-settings is non-nil.
13128 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
13129 for kEventParamFMFontStyle.
13130 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
13131 mac_pass_command_to_system and mac_pass_control_to_system here.
13132 (XTread_socket): Call ActivateControl/DeactivateControl here.
13133 (XTread_socket) [TARGET_API_MAC_CARBON]:
13134 Check mac_pass_command_to_system and mac_pass_control_to_system here.
13135 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
13136 for window repositioning.
13137
13138 2007-08-08 Glenn Morris <rgm@gnu.org>
13139
13140 * Replace `iff' in doc-strings and comments.
13141
13142 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
13143
13144 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
13145
13146 2007-08-07 Martin Rudalics <rudalics@gmx.at>
13147
13148 * fileio.c (Finsert_file_contents): Run format-decode and
13149 after_insert_file_functions on entire buffer when REPLACE is
13150 non-nil and inhibit modification_hooks and point_motion_hooks.
13151 For consistency, run after_insert_file_functions iff something
13152 got inserted. Move signal_after_change and update_compositions
13153 after code running after_insert_file_functions. Make sure that
13154 undo_list doesn't record intermediate steps of the decoding process.
13155
13156 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13157
13158 * emacs.c (main)
13159 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
13160 Call malloc_enable_thread on interactive startup.
13161
13162 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
13163 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
13164 [USE_PTHREAD]: Conditionalize with it.
13165 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
13166 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
13167 New functions.
13168
13169 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
13170
13171 * xdisp.c (redisplay_window): When restoring original buffer
13172 position, make sure it is still valid.
13173
13174 * image.c (png_load): Ignore png-supplied background color.
13175
13176 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13177
13178 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
13179 Use kCFAbsoluteTimeIntervalSince1970.
13180
13181 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
13182 New variable.
13183 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
13184 event loop should be quit.
13185 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
13186 Quit dialog event loop if quit_dialog_event_loop is set.
13187
13188 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
13189 (Selection): New typedef. Use instead of ScrapRef.
13190 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
13191 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
13192 (mac_clear_selection): Rename from clear_scrap.
13193 (get_flavor_type_from_symbol): New argument SEL and subsume function of
13194 scrap_has_target_type. All uses changed.
13195 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13196 (mac_selection_has_target_p): New functions.
13197 (mac_put_selection_value): Rename from put_scrap_string.
13198 (mac_get_selection_value): Rename from get_scrap_string.
13199 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
13200 (put_scrap_private_timestamp, scrap_has_target_type)
13201 (get_scrap_private_timestamp): Remove functions.
13202 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
13203 (x_own_selection, x_get_local_selection):
13204 Use mac_valid_selection_value_p.
13205 (x_own_selection): Don't use put_scrap_private_timestamp.
13206 Record OWNERSHIP-INFO into Vselection_alist instead.
13207 (x_get_local_selection): Don't check type if request is local.
13208 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
13209 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
13210
13211 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
13212
13213 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
13214 add comment explaining why.
13215
13216 2007-08-03 Richard Stallman <rms@gnu.org>
13217
13218 * fileio.c (Fvisited_file_modtime): Use make_time.
13219
13220 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
13221
13222 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
13223 build.
13224
13225 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
13226
13227 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
13228
13229 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
13230
13231 * puresize.h (BASE_PURESIZE): Increase to 1130000.
13232
13233 2007-07-30 Richard Stallman <rms@gnu.org>
13234
13235 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
13236
13237 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
13238
13239 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
13240
13241 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
13242
13243 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
13244 remote default-directory.
13245
13246 * buffer.c (mode-line-format): Update doc string.
13247
13248 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13249
13250 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
13251 scroll bar gap.
13252 (x_scroll_bar_create): Set bar->fringe_extended_p.
13253 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
13254 on frame edge. Check fringe background extension. Don't clear
13255 extended fringe background area.
13256
13257 * w32term.h (struct scroll_bar): New member fringe_extended_p.
13258 (w32_fill_area): Enclose multiple statements with do ... while (0).
13259
13260 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
13261 Extend fringe background to scroll bar gap.
13262 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
13263 Set bar->fringe_extended_p.
13264 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13265 Put leftmost/rightmost scroll bars on frame edge. Check fringe
13266 background extension. Don't clear extended fringe background area.
13267
13268 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13269 New member fringe_extended_p.
13270
13271 2007-07-25 Glenn Morris <rgm@gnu.org>
13272
13273 * Relicense all FSF files to GPLv3 or later.
13274
13275 * COPYING: Switch to GPLv3.
13276
13277 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
13278
13279 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
13280
13281 * data.c (Finteractive_form): Check for the presence of an
13282 `interactive-form' symbol property more thoroughly.
13283
13284 * data.c (Finteractive_form): Use an `interactive-form' property if
13285 present, analogous to the function-documentation property.
13286
13287 2007-07-24 Jason Rumney <jasonr@gnu.org>
13288
13289 * w32fns.c (x_real_positions): Get real position from OS instead of
13290 calculating it.
13291
13292 2007-07-23 Jason Rumney <jasonr@gnu.org>
13293
13294 * filelock.c (current_lock_owner): Allow for @ sign in username.
13295
13296 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
13297
13298 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
13299 remote default-directory.
13300
13301 * buffer.c (mode-line-format): Describe above case in doc string.
13302
13303 2007-07-20 Eli Zaretskii <eliz@gnu.org>
13304
13305 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
13306 Define if not defined.
13307
13308 2007-07-18 Jason Rumney <jasonr@gnu.org>
13309
13310 * w32proc.c (w32_executable_type): Handle 64 bit executables.
13311
13312 2007-07-18 Richard Stallman <rms@gnu.org>
13313
13314 * data.c (Fsetq_default): Doc fix.
13315
13316 * eval.c (Fsetq): Doc fix.
13317
13318 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
13319
13320 * coding.c (Ffind_operation_coding_system):
13321 * eval.c (For, Fand): Doc fixes.
13322 Reported by Johan Bockgård.
13323
13324 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
13325
13326 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
13327
13328 * xterm.h: Declare x_ewmh_activate_frame.
13329
13330 * xterm.c (x_ewmh_activate_frame): New function.
13331 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
13332
13333 2007-07-17 Martin Rudalics <rudalics@gmx.at>
13334
13335 * window.c (Fdisplay_buffer): If largest or LRU window is the
13336 only window, split it even if it is not eligible for splitting.
13337 This restores the original behavior broken by the 2007-07-15
13338 change.
13339
13340 2007-07-17 Glenn Morris <rgm@gnu.org>
13341
13342 * abbrev.c (abbrev_check_chars): New function.
13343 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13344 Call abbrev_check_chars to check abbrev characters are word
13345 constituents. Doc fix.
13346
13347 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13348
13349 * process.c (Fstart_process, Fmake_network_process)
13350 (read_process_output): Fix up last changes.
13351
13352 2007-07-16 Eli Zaretskii <eliz@gnu.org>
13353
13354 * makefile.w32-in (clean): Don't delete *~.
13355
13356 2007-07-16 Andreas Schwab <schwab@suse.de>
13357
13358 * window.c (Fdisplay_buffer): Use NILP.
13359 (Fset_window_scroll_bars): Likewise.
13360
13361 2007-07-15 Martin Rudalics <rudalics@gmx.at>
13362
13363 * window.c (window_min_size_2): New function.
13364 (window_min_size_1, size_window, Fdisplay_buffer)
13365 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
13366 windows without mode- or header-lines when window-min-height is
13367 too small.
13368 (size_window): Reset nodelete_p after testing it, following an
13369 earlier note by Kim F. Storm.
13370 (display_buffer): Do not set split_height_threshold to twice the
13371 value of window_min_height to avoid changing the value of a
13372 customizable variable. Rather explicitly check whether the
13373 height of the window that shall be splitted is at least as large
13374 as split_height_threshold.
13375 (Fwindow_full_width_p): New defun.
13376 (syms_of_window): Defsubr it.
13377
13378 * window.h: Add EXFUN for Fwindow_full_width_p.
13379
13380 2007-07-14 Jason Rumney <jasonr@gnu.org>
13381
13382 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
13383
13384 2007-07-14 Richard Stallman <rms@gnu.org>
13385
13386 * eval.c (maybe_call_debugger): New function.
13387 (find_handler_clause): Use maybe_call_debugger.
13388 Call it when the handler says `debug'.
13389 Eliminate DEBUGGER_VALUE_PTR.
13390 (Fsignal): Eliminate debugger_value.
13391 (Qdebug): New variable.
13392 (syms_of_eval): Initialize it.
13393
13394 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
13395
13396 * eval.c (Fprogn):
13397 * keyboard.c (Ftrack_mouse):
13398 * print.c (Fwith_output_to_temp_buffer):
13399 * window.c (Fsave_window_excursion): Doc fix.
13400
13401 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
13402
13403 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
13404
13405 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
13406
13407 * process.h (struct Lisp_Process): Turn slots infd, outfd,
13408 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
13409 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
13410 read_output_delay, and read_output_skip from Lisp_Objects to ints.
13411 Remove unused encoding_carryover.
13412 * process.c: Adjust all functions accordingly.
13413
13414 2007-07-12 Richard Stallman <rms@gnu.org>
13415
13416 * term.c: Include unistd.h only if HAVE_UNISTD_H.
13417
13418 2007-07-11 Jason Rumney <jasonr@gnu.org>
13419
13420 * makefile.w32-in (LIBS): Include OLE32.
13421
13422 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
13423 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
13424
13425 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
13426
13427 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
13428 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
13429 from a Lisp_Object into a bare pointer.
13430 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13431 Adjust the code correspondingly.
13432
13433 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
13434
13435 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
13436 (term_show_mouse_face): Remove unused var `j'.
13437 (handle_one_term_event): Remove unused vars `i' and `j'.
13438 Don't cast return value of ttyname since it's not necessary.
13439
13440 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
13441
13442 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
13443 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
13444
13445 * fns.c (map_char_table): Use an array of int for `indices' rather than
13446 an array of Lisp_Objects (which are only ever integers anyway).
13447 (Fmap_char_table): Update caller.
13448 * lisp.h: Update prototype.
13449 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
13450 * fontset.c (Ffontset_info):
13451 * casetab.c (set_case_table): Update callers.
13452
13453 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
13454
13455 * keymap.c (struct accessible_keymaps_data)
13456 (struct where_is_internal_data): New structures.
13457 (accessible_keymaps_1, where_is_internal_1): Use them to change
13458 interface to adhere to the one used by map_keymap.
13459 (Faccessible_keymaps, where_is_internal): Use map_keymap.
13460 (accessible_keymaps_char_table, where_is_internal_2): Remove.
13461
13462 * keymap.h (map_keymap_function_t): More informative prototype.
13463
13464 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
13465
13466 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
13467 (looking_at_1): Don't change search_regs and last_thing_searched
13468 if `inhibit-changing-match-data' is non-nil.
13469 (string_match_1, search_buffer, set_search_regs): Likewise.
13470 (syms_of_search): Add Lisp level definition for
13471 `inhibit-changing-match-data' and set it to nil.
13472 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
13473 start and end of the match, instead of using values in search_regs.
13474
13475 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
13476
13477 * minibuf.c (Fcompleting_read): New value `confirm-only'
13478 for `require-match'.
13479
13480 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
13481
13482 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
13483 part of the 2007-06-27 change to syms_of_fileio.
13484
13485 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13486
13487 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
13488 Check WINDOWP before using XWINDOW. Consolidate return statements.
13489
13490 2007-06-27 Richard Stallman <rms@gnu.org>
13491
13492 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13493
13494 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
13495
13496 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
13497
13498 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13499
13500 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
13501 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
13502 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
13503 (_free_internal, memalign): Use them.
13504 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
13505 Initialize to PTHREAD_MUTEX_INITIALIZER.
13506 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
13507 (morecore_nolock): Rename from morecore. All uses changed.
13508 Use only nolock versions of internal allocation functions.
13509 (_malloc_internal_nolock, _realloc_internal_nolock)
13510 (_free_internal_nolock): New functions created from
13511 _malloc_internal, _realloc_internal, and _free_internal.
13512 (_malloc_internal, _realloc_internal, _free_internal): Use them.
13513 Copy hook value to automatic variable before its use.
13514 (memalign): Copy hook value to automatic variable before its use.
13515
13516 2007-06-26 Kenichi Handa <handa@m17n.org>
13517
13518 * coding.c (Ffind_operation_coding_system): Docstring improved.
13519 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
13520
13521 2007-06-25 David Kastrup <dak@gnu.org>
13522
13523 * keymap.c (Fcurrent_active_maps): Add `position' argument.
13524 (Fwhere_is_internal): Adjust call to `current-active-maps' to
13525 cater for additional parameter.
13526
13527 * keymap.h: Adjust number of parameters to `current-active-maps'.
13528
13529 * doc.c (Fsubstitute_command_keys): Adjust call of
13530 `current-active-maps'.
13531
13532 2007-06-25 David Kastrup <dak@gnu.org>
13533
13534 * callint.c (Fcall_interactively): Make the parsing of interactive
13535 specs somewhat more readable.
13536
13537 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13538
13539 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
13540 to scroll bar gap also when bitmap fills fringe. Draw only foreground
13541 if extended background has already been filled.
13542
13543 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13544
13545 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
13546 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
13547
13548 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
13549 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
13550 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
13551 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
13552 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
13553 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
13554 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
13555 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
13556 Run timers during dialog popup.
13557 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
13558
13559 2007-06-21 Jason Rumney <jasonr@gnu.org>
13560
13561 * image.c (convert_mono_to_color_image): Swap fore and background.
13562
13563 2007-06-20 Jason Rumney <jasonr@gnu.org>
13564
13565 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
13566 (w32_free_bdf_font): Unmap memory not handle.
13567
13568 2007-06-20 Sam Steingold <sds@gnu.org>
13569
13570 * gmalloc.c (__morecore): Fix the declaration to comply with the
13571 definition.
13572
13573 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
13574
13575 * w32term.c (w32_delete_display): Remove leftover declaration.
13576 (w32_define_cursor, w32_initialize): Make static.
13577
13578 * w32.c (_wsa_errlist): Fix typo in error message.
13579 (init_environment): Ignore any environment variable from the
13580 registry having a null value.
13581
13582 2007-06-20 Glenn Morris <rgm@gnu.org>
13583
13584 * Makefile.in (LIBGIF): Default to -lgif.
13585
13586 2007-06-17 Jason Rumney <jasonr@gnu.org>
13587
13588 * w32menu.c (add_menu_item): Don't use multibyte string functions on
13589 unicode strings.
13590
13591 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
13592
13593 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
13594 Fix typo in docstring.
13595
13596 2007-06-16 Eli Zaretskii <eliz@gnu.org>
13597
13598 * w32menu.c (add_menu_item): Escape `&' characters in menu items
13599 and their keybindings.
13600
13601 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
13602
13603 * composite.c (update_compositions): Fix last fix.
13604
13605 2007-06-14 Jason Rumney <jasonr@gnu.org>
13606
13607 * w32.c (get_process_times_fn): New function pointer.
13608 (globals_of_w32): Intialize it if present in kernel32.dll.
13609 (w32_get_internal_run_time): New function.
13610
13611 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
13612
13613 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
13614
13615 * composite.c (update_compositions): Check the validness of
13616 compositions.
13617
13618 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13619
13620 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
13621 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
13622
13623 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
13624 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
13625
13626 * macgui.h (USE_MAC_TOOLBAR): New define.
13627
13628 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13629 Return immediately unless popup is activated.
13630
13631 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
13632 background to scroll bar gap.
13633 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
13634 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
13635 scroll bars on frame edge. Check fringe background extension.
13636 Don't clear extended fringe background area.
13637 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
13638 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
13639 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
13640 [USE_MAC_TOOLBAR]: New macros.
13641 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
13642 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
13643 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
13644 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
13645 [USE_MAC_TOOLBAR]: New functions.
13646 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
13647 manually if previous repositioning has failed.
13648 (mac_handle_keyboard_event): Use precomputed event kind.
13649 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
13650 as tool bar item click. Handle mouse movement over tool bar items.
13651
13652 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
13653 toolbar_win_gravity.
13654 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
13655 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
13656 Add externs.
13657
13658 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
13659 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
13660
13661 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
13662
13663 * image.c (search_image_cache): Remove unused variable.
13664
13665 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
13666
13667 * xfns.c, xmenu.c: Link to xaw3d if available.
13668
13669 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13670
13671 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
13672 frame_foreground and frame_background.
13673
13674 * image.c (lookup_image): Save frame foreground and background colors.
13675 (search_image_cache): Check if saved and current frame colors match.
13676
13677 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13678
13679 * regex.c (regex_compile): Remove the `regnum' counter.
13680 Use bufp->re_nsub instead. Add support for \(?N:RE\).
13681
13682 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13683
13684 * term.c: Include intervals.h to declare Fget_text_property.
13685
13686 2007-06-10 Jason Rumney <jasonr@gnu.org>
13687
13688 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
13689
13690 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
13691
13692 * callint.c (Fcall_interactively):
13693 * editfns.c (Fdelete_and_extract_region):
13694 * fileio.c (Fread_file_name):
13695 * fns.c (Fmapconcat):
13696 * keyboard.c (cmd_error_internal):
13697 * keymap.c (Fkey_description):
13698 * lread.c (openp):
13699 * minibuf.c (read_minibuf):
13700 * search.c (wordify):
13701 * sunfns.c (sel_read):
13702 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
13703 * xfns.c (x_default_scroll_bar_color_parameter):
13704 * xmenu.c (menu_help_callback):
13705 * xselect.c (Fx_get_atom_name):
13706 * xterm.c (x_term_init): Use empty_unibyte_string.
13707
13708 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
13709
13710 * alloc.c (init_strings): Initialize canonical empty strings.
13711 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
13712 canonical empty string when the requested size is 0.
13713
13714 * emacs.c (empty_unibyte_string): Rename from empty_string.
13715 (empty_multibyte_string): New canonical empty string.
13716 (syms_of_emacs): Don't initialize empty_string.
13717
13718 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
13719 string, if appropriate.
13720 (empty_unibyte_string, empty_multibyte_string): New externs.
13721 (empty_string): Remove extern.
13722
13723 * lread.c (syms_of_lread): Use empty_unibyte_string.
13724
13725 2007-06-07 Jason Rumney <jasonr@gnu.org>
13726
13727 * s/ms-w32.h: Don't define HAVE_TZNAME.
13728
13729 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
13730
13731 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13732
13733 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
13734
13735 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
13736 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
13737
13738 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13739 Don't call next handler.
13740 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
13741 Remove argument. Install handler to application.
13742 (set_frame_menubar): Don't change deep_p.
13743 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
13744 FRAME_OUTER_TO_INNER_DIFF_Y.
13745 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13746 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13747 [HAVE_DIALOGS]: New macros.
13748 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
13749 Use them.
13750 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
13751
13752 * macselect.c [MAC_OSX] (install_service_handler): Rename from
13753 init_service_handler. All callers changed. Return OSStatus value.
13754
13755 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
13756 All callers changed so as not to call SetPortWindowPort.
13757 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
13758 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
13759 mac_draw_string_common.
13760 (mac_draw_image_string_qd): Likewise.
13761 (mac_draw_string_common): Use them. Add INLINE.
13762 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
13763 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
13764 GetGlobalMouse.
13765 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
13766 and FRAME_OUTER_TO_INNER_DIFF_Y.
13767 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
13768 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
13769 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
13770 repositioning window to mac_handle_window_event.
13771 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
13772 saving window location to mac_handle_window_event
13773 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
13774 (install_menu_target_item_handler): Remove argument in extern.
13775 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
13776 Also accept command events.
13777 (do_keystroke): New function created from XTread_socket.
13778 (init_command_handler): Remove functions.
13779 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
13780 and save window location by kEventWindowShowing and kEventWindowHiding
13781 handlers here. Don't call next handler for window state change and
13782 focus events.
13783 (mac_handle_application_event, mac_handle_keyboard_event)
13784 [TARGET_API_MAC_CARBON]: New functions.
13785 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
13786 kEventWindowShowing and kEventWindowHiding events. Move installation
13787 of mouse, font, text input and menu target item handlers to
13788 install_application_handler.
13789 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
13790 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13791 New function.
13792 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13793 Register it.
13794 (XTread_socket) [TARGET_API_MAC_CARBON]:
13795 Consolidate SendEventToEventTarget calls.
13796 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
13797 Move application activation handler to mac_handle_application_event.
13798 Move keyboard handler to mac_handle_keyboard_event.
13799 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
13800 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
13801 init_command_handler. Call install_application_handler.
13802
13803 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
13804 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
13805
13806 2007-06-07 Glenn Morris <rgm@gnu.org>
13807
13808 * emacs.c (main): Use `emacs-copyright' in --version output.
13809
13810 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
13811
13812 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
13813
13814 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13815
13816 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
13817
13818 * macgui.h: Replace WindowPtr with WindowRef.
13819
13820 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13821 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13822 Replace ControlHandle with ControlRef.
13823 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
13824
13825 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13826 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13827 Replace ControlHandle with ControlRef.
13828 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
13829 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
13830
13831 * macterm.h (struct scroll_bar): Rename member control_handle_low
13832 and control_handle_high to control_ref_low and control_ref_high.
13833 All uses changed.
13834 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
13835 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
13836 respectively. All uses changed.
13837 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
13838 (install_window_handler, remove_window_handler): Replace WindowPtr
13839 with WindowRef in externs.
13840
13841 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
13842
13843 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
13844
13845 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
13846
13847 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
13848
13849 * frame.c (Fmouse_position, Fmouse_pixel_position):
13850 Condition on HAVE_GPM too.
13851
13852 * term.c (term_mouse_highlight): Remove unused variables.
13853 (Fterm_open_connection): Set gpm_zerobased to 1.
13854 (term_mouse_movement, term_mouse_click, handle_one_term_event):
13855 Use zero based co-ordinates.
13856 (handle_one_term_event): Report a drag as mouse movement too.
13857
13858 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
13859
13860 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
13861
13862 * image.c (search_image_cache): New function. Require background
13863 color match if background color is unspecified in the image spec.
13864 (uncache_image, lookup_image): Use it.
13865
13866 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
13867
13868 * window.c (Fshrink_window): Reflow docstring.
13869
13870 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
13871
13872 * Version 22.1 released.
13873
13874 2007-06-01 Richard Stallman <rms@gnu.org>
13875
13876 * xfns.c (x_encode_text): Add GCPRO.
13877
13878 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13879
13880 * xfns.c (x_set_name_internal): Save encoded name before
13881 x_encode_text in case string data is relocated.
13882
13883 2007-05-31 Richard Stallman <rms@gnu.org>
13884
13885 * buffer.c (syms_of_buffer): Doc fix.
13886
13887 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
13888
13889 * sysdep.c (init_sys_modes): Add rather than replace with
13890 O_NONBLOCK.
13891
13892 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
13893 term_mouse_moveto.
13894
13895 * termhooks.h (term_mouse_moveto): New extern.
13896
13897 * term.c (mouse_face_window): Rename...
13898 (Qmouse_face_window): ...to this.
13899 (term_show_mouse_face, term_clear_mouse_face)
13900 (term_mouse_highlight): Use Qmouse_face_window.
13901 (term_mouse_moveto): New function.
13902 (term_mouse_position): Make it work.
13903 (syms_of_term): Uncomment assignment to mouse_position_hook.
13904 Staticpro Qmouse_face_window.
13905
13906 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13907
13908 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
13909 around current_column call.
13910
13911 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
13912
13913 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
13914 * xdisp.c (next_element_from_buffer):
13915 * window.c (delete_window):
13916 * term.c (term_mouse_highlight):
13917 * msdos.c (getdefdir):
13918 * macterm.c (mac_create_bitmap_from_bitmap_data)
13919 (init_font_name_table):
13920 * fns.c (Fsxhash):
13921 * data.c (Fmake_local_variable):
13922 * ccl.c (ccl_driver): Likewise.
13923
13924 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13925
13926 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
13927 Call mac_wakeup_from_rne on window size change.
13928
13929 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
13930
13931 * image.c (uncache_image): Fix typo.
13932
13933 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
13934
13935 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
13936
13937 2007-05-22 Richard Stallman <rms@gnu.org>
13938
13939 * xterm.c (x_connection_closed): Remove NO_RETURN.
13940
13941 2007-05-22 Martin Rudalics <rudalics@gmx.at>
13942
13943 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
13944
13945 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
13946
13947 * image.c (uncache_image): New function.
13948 (Fimage_refresh): New function.
13949
13950 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
13951
13952 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
13953
13954 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13955
13956 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
13957 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
13958
13959 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13960
13961 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
13962 conditional on [HAVE_GPM_H].
13963
13964 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13965
13966 * syntax.c (skip_chars): Update syntax-table only after we checked that
13967 the new location is valid.
13968
13969 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13970
13971 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
13972 mac_get_window_bounds.
13973
13974 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13975
13976 * Makefile.in (LIBGPM): Allow it to be set from configure.
13977 If set then link Emacs with it.
13978
13979 * config.in: Regenerate.
13980
13981 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
13982 New externs.
13983
13984 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
13985 Include gpm.h.
13986 (handle_one_term_event, term_gpm): New externs.
13987
13988 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
13989 and allow it to be interrupted by SIGIO.
13990
13991 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
13992 (wait_reading_process_output): Wait on gpm_fd too.
13993 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
13994 (add_gpm_wait_descriptor_called_flag): New variable.
13995 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
13996
13997 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
13998 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
13999 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
14000 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
14001 (make_lispy_event): Add case GPM_CLICK_EVENT.
14002 (read_avail_input): Handle mouse input.
14003
14004 * term.c (write_glyphs_with_face): New function.
14005 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
14006 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
14007 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
14008 (mouse_face_face_id, term_gpm, pos_x, pos_y)
14009 (last_mouse_x, last_mouse_y): New variables.
14010 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
14011 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
14012 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
14013 (Fterm_close_connection): New functions.
14014 (term_init): Initialise mouse_face_window.
14015
14016 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
14017
14018 * xdisp.c (redisplay_window): If first window line is a
14019 continuation line, recompute the new window start instead of
14020 recentering.
14021
14022 2007-05-18 Glenn Morris <rgm@gnu.org>
14023
14024 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
14025 Suggested by Alfred M. Szmidt <ams@gnu.org>.
14026
14027 2007-05-17 Glenn Morris <rgm@gnu.org>
14028
14029 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
14030
14031 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14032
14033 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
14034 dead key repeat and up events.
14035
14036 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
14037
14038 * image.c (pbm_load): Check image size for monochrome pbm.
14039
14040 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
14041
14042 * xterm.c (XTread_socket): Revert last change.
14043
14044 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
14045
14046 * image.c (pbm_load): Correctly check image size for greyscale pbm.
14047
14048 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
14049
14050 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14051
14052 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
14053 mixup (YAILOM).
14054
14055 2007-05-07 Andreas Schwab <schwab@suse.de>
14056
14057 * keymap.c (Flookup_key): Fix typo in last change.
14058
14059 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14060
14061 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
14062 mapping for unibyte strings.
14063
14064 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14065
14066 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
14067 (Fx_popup_dialog) [MAC_OSX]: Likewise.
14068
14069 2007-04-29 Richard Stallman <rms@gnu.org>
14070
14071 * insdel.c (replace_range): For undo, record insertion first.
14072
14073 2007-04-29 Andreas Schwab <schwab@suse.de>
14074
14075 * lisp.h (VECSIZE): Use OFFSETOF.
14076
14077 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14078
14079 * xdisp.c (try_window_reusing_current_matrix): Fix number of
14080 disabled lines.
14081
14082 2007-04-28 Richard Stallman <rms@gnu.org>
14083
14084 * lread.c (read_escape): In a string, \s is always space.
14085
14086 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
14087
14088 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
14089
14090 * gtkutil.c (xg_update_menubar, create_menus): Create empty
14091 submenu for menu bar items.
14092
14093 See ChangeLog.10 for earlier changes.
14094
14095 ;; Local Variables:
14096 ;; coding: utf-8
14097 ;; add-log-time-zone-rule: t
14098 ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
14099 ;; End:
14100
14101 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
14102
14103 This file is part of GNU Emacs.
14104
14105 GNU Emacs is free software: you can redistribute it and/or modify
14106 it under the terms of the GNU General Public License as published by
14107 the Free Software Foundation, either version 3 of the License, or
14108 (at your option) any later version.
14109
14110 GNU Emacs is distributed in the hope that it will be useful,
14111 but WITHOUT ANY WARRANTY; without even the implied warranty of
14112 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14113 GNU General Public License for more details.
14114
14115 You should have received a copy of the GNU General Public License
14116 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
14117
14118 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40