]> code.delx.au - gnu-emacs/blob - src/ChangeLog
* nsfns.m: Change NS to Nextstep in docstrings and error messages.
[gnu-emacs] / src / ChangeLog
1 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
2
3 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
4 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7 (Fns_display_mm_height, Fns_display_mm_width)
8 (Fns_display_backing_store, Fns_display_visual_class)
9 (Fns_display_save_under, Fns_open_connection)
10 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13 (Fns_display_pixel_width, Fns_display_pixel_height)
14 (Fns_display_usable_bounds, Fx_display_planes)
15 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16
17 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18
19 * print.c (print_object): Check print_depth before searching for
20 circularities.
21
22 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
23
24 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
25 only sprintf.
26
27 2008-07-21 Kenichi Handa <handa@m17n.org>
28
29 * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
30
31 2008-07-20 Andreas Schwab <schwab@suse.de>
32
33 * syntax.c (find_start_pos, find_start_value)
34 (find_start_value_byte, find_start_begv, find_defun_start)
35 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer
36 positions.
37
38 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
39
40 * s/sol2-3.h: Insert contents of s/sol2.h.
41 (LD_SWITCH_SYSTEM): Remove redundant definition.
42 * s/sol2.h: Remove, unused.
43
44 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
45
46 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for
47 HSV,AHSV.
48
49 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
50
51 * Makefile.in (ns_appdir): Fix typo in find command.
52
53 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
54
55 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
56
57 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
58 added not supported anymore.
59
60 * s/usg5-4-2.h (LIBS_SYSTEM):
61 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
62
63 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
64 * s/lynxos.h (GETPGRP_NO_ARG):
65 * s/hpux10-20.h (NO_SIOCTL_H):
66 * s/gnu.h (GETPGRP_NO_ARG):
67 * s/gnu-linux.h (NO_SIOCTL_H):
68 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
69 * s/cygwin.h (GETPGRP_NO_ARG):
70 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
71 (C_DEBUG_SWITCH): Remove duplicate definition.
72
73 * m/ibms390.h: Remove boilerplate comments.
74
75 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
76
77 * process.c (HAVE_SERIAL): Consolidate ifdefs.
78 (wait_reading_process_output): Remove code for SunOS, platform not
79 supported anymore. Use SOLARIS2 instead of sun.
80
81 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
82
83 * font.c (font_open_by_name): Under NS, default lface height to zero.
84 (font_open_for_lface): Under NS, set size based on frame fontsize.
85 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
86 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
87
88 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
89
90 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
91 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
92 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
93 YES/NO.
94 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
95 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
96 * Makefile.in (clean): Clear out build destination dir.
97
98 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
99
100 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
101 xterm, xselect.
102 * lisp.h: Remove declaration of hash_remove.
103 * nsgui.h: Remove redefinitions of hash_remove.
104 * fns.c (hash_remove): Rename to hash_remove_from_table.
105
106 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
107
108 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
109 strdup() the family UTF8String before modifying it. Patch due to
110 Seiji Zenitani.
111
112 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
113
114 * nsfns.m (ns_set_background_color): Apply patch from Chong Yidong to
115 fix crash.
116 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
117 NS_FACE_BACKGROUND with 0 instead of nil.
118 * nsfont.m (nsfont_draw): Same.
119
120 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
121
122 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
123
124 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
125
126 * puresize.h (BASE_PURESIZE): Increase to 1240000.
127
128 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
129
130 * gtkutil.c: Include <config.h> instead of "config.h".
131
132 * lisp.h (Foverlay_buffer): Add EXFUN.
133
134 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
135 child process to complete child_setup. Undo 2005-09-21 change.
136
137 * s/darwin.h: Mention setsid after vfork.
138
139 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
140
141 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
142 Depend on macgui.h.
143
144 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
145 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
146
147 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
148 and f19.
149 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
150
151 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
152 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
153 Remove enumerators.
154
155 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
156 Check if FACE_FROM_ID returns NULL.
157
158 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
159
160 * w32inevt.c (change_frame_size): Remove extern declaration.
161 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
162 change_frame_size.
163
164 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
165
166 * getloadavg.c: Revert last change (2008-07-15).
167
168 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
169
170 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
171 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
172 from configure.
173
174 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
175
176 * s/sol2.h:
177 * s/sol2-4.h: Reorganize conditionals.
178
179 * ecrt0.c: Remove code depending on m68000, not used anymore.
180
181 * fns.c (hash_remove): Make static.
182 * lisp.h (hash_remove): Don't prototype.
183
184 * m/ibmrs6000.h:
185 * m/ibms390x.h:
186 * m/macppc.h: Remove boilerplate comments.
187
188 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
189 Solaris, which does not need them.
190
191 * m/vax.h: Remove comments about unsupported systems.
192
193 * s/darwin.h: Reorganize ifdefs.
194
195 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
196
197 * config.in:
198 * dispextern.h:
199 * frame.c:
200 * image.c:
201 * nsfns.m:
202 * nsfont.m:
203 * nsgui.h:
204 * nsmenu.m:
205 * nsterm.h:
206 * nsterm.m:
207 * s/darwin.h:
208 * xdisp.c: Change most cases of PENDING to TODO, some to FIXME or XXX.
209
210 2008-07-17 Andreas Schwab <schwab@suse.de>
211
212 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
213
214 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
215
216 Use SDATA. Follow coding convention of placing operators at
217 beginning of next line rather than end of previous line, and placing
218 spaces around infix operators.
219
220 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
221 in case it was defined already.
222 USE @GNUSTEP_MAKEFILES@ rather than envvars.
223 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
224 ns_default.
225 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
226 Lisp_Objects.
227 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
228 (ns_defined_color, ns_color_to_lisp): Declare.
229 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
230 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
231 it's accepted even with USE_LISP_UNION_TYPE.
232 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
233 (update_frame_tool_bar): Remove apparently obsolete tests for
234 non-integerness of f->tool_bar_lines.
235 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
236 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
237 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
238 (nsfont_open): Don't confuse NULL for Qnil.
239 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
240 * menu.h (find_and_call_menu_selection):
241 * menu.c (find_and_call_menu_selection): Use just int for vector size.
242 (find_and_return_menu_selection): Always return something.
243 * frame.h: Include dispextern.h for Display_Info.
244 (display_x_get_resource): Declare.
245
246 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
247
248 * syntax.c: Remove stdio.h include accidentally introduced in
249 Emacs.app commit.
250 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
251 NS_IMPL_COCOA.
252 * keyboard.c (handle_async_input, input_available_signal): Remove
253 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
254
255 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
256
257 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
258 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
259 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
260 Use SDATA.
261
262 * keymap.c: Remove all NS-specific code.
263 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
264 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
265 where_is_preferred_modifier, return a different value depending on how
266 preferred is the binding.
267 (where_is_internal): Adjust accordingly.
268 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
269 Adjust to new preferred_sequence_p.
270 (syms_of_keymap): Declare `where-is-preferred-modifier'.
271 * keyboard.c (parse_solitary_modifier): Not static any more.
272 * keyboard.h (parse_solitary_modifier): Declare.
273
274 2008-07-16 Andreas Schwab <schwab@suse.de>
275
276 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
277 of easymenu.
278
279 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
280
281 * xdisp.c (move_it_in_display_line): Account for word wrap, so
282 that we don't move off the line.
283
284 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
285
286 * keyboard.c (Qsuper): Remove.
287 (parse_menu_item): Don't call where_is_internal specially for NS.
288
289 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
290
291 * s/gnu-linux.h: Remove boilerplate comments.
292
293 * m/alpha.h (__ELF__): Consolidate conditions.
294
295 * m/m68k.h (linux): Use GNU_LINUX instead.
296 Remove boilerplate comments.
297
298 * m/intel386.h: Undo reactoring from previous change.
299 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
300 too, remove dead code.
301 (linux): Use GNU_LINUX instead.
302
303 2008-07-16 Jason Rumney <jasonr@gnu.org>
304
305 * w32gui.h: Repeat 26 June changes lost by last change.
306
307 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
308
309 * systty.h: Remove code for Aix on 386, unsupported platform.
310
311 * s/ms-w32.h: Remove boilerplate comments.
312 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
313
314 * s/gnu-linux.h (TERM): Remove support.
315 (HAVE_SYSVIPC): Remove, unused.
316 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
317 for this system.
318
319 * process.c: Remove support for IRIS, unused.
320 Remove support for TERM, not relevant anymore.
321
322 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
323 used with the definition.
324
325 * s/aix4-2.h (static): Do not undef.
326
327 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
328 only used on Aix.
329 (HAVE_SYSVIPC): Remove, unused.
330
331 * m/hp800.h (CANNOT_DUMP): Do not undef.
332
333 * m/alpha.h: Fix comment.
334
335 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
336 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
337 used by this configuration.
338 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
339 * unexec.c: Remove code depending on HPUX and
340 USG_SHARED_LIBRARIES, not used with this file. Remove code
341 depending on IRIS, unused. Remove if 0-ed code.
342
343 * s/template.h: Remove comments about static.
344
345 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
346 Remove if 0-ed code.
347 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
348 were the same as the default.
349 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
350 Remove boilerplate comments.
351 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
352 (HAVE_SYSVIPC): Remove, unused.
353 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
354
355 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
356 Remove boilerplate comments.
357 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
358 Remove boilerplate comments.
359 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
360 Remove boilerplate comments.
361 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
362
363 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
364 USG systems which do not use DATA_SEG_BITS.
365 Refactor code. Remove boilerplate comments.
366
367 * m/ibms390.h:
368 * m/m68k.h:
369 * s/bsd-common.h:
370 * s/cygwin.h:
371 * s/darwin.h:
372 * s/freebsd.h:
373 * s/gnu.h:
374 * s/msdos.h: Remove boilerplate comments.
375
376 * m/iris4d.h: Remove boilerplate comments and code for systems that
377 do not use this file.
378 (IRIS_4D): Remove, unused.
379
380 * m/mips.h: Remove boilerplate comments and code for systems that
381 do not use this file.
382 (SIGN_EXTEND_CHAR):
383 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
384 * unexmips.c: Remove file, unused.
385
386 * editfns.c (Fuser_full_name): Replace the only use of
387 USER_FULL_NAME with its value.
388 * config.in: Regenerate.
389
390 2008-07-16 David Reitter <david.reitter@gmail.com>
391
392 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
393 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
394
395 2008-07-16 Glenn Morris <rgm@gnu.org>
396
397 * emacs.c (system-type): Doc fix.
398
399 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
400
401 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
402 If the cache doesn't work, let's fix it, rather than work around it.
403
404 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
405
406 * Makefile.in: Correct additions for nsfont.o in last commit.
407 * nsfont.m: New file (forgot last commit).
408
409 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
410
411 Changes and additions for NeXTstep windowing system (Cocoa and
412 GNUstep) support.
413
414 * Makefile.in:
415 * config.in: Support defines and build commands for NS port.
416 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
417 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
418 * callproc.c (set_initial_environment): Initialize
419 Vprocess_environment under CANNOT_DUMP (fixes crash when
420 batch-compiling for bootstrap, due to Chris Hall).
421 * dispextern.h: Include nsgui.h and add needed typedefs under NS
422 windowing.
423 (struct face): Add synth_ital field.
424 * dispnew.c: Include nsterm.h when compiling under NS windowing.
425 (init_display): Initialize Vinitial_window_system to "ns" when so
426 compiled.
427 * emacs.c: Include GSConfig.h when compiling under GNUstep.
428 (display_arg): Use under NS.
429 (main): Under NS, allocate autorelease pool and handle command line
430 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
431 (standard_args): Add NS-specific args.
432 (shut_down_emacs): Shut down NS terminal if compiled under NS.
433 * font.c (DEFAULT_ENCODING): New variable.
434 (font_find_for_lface): Use it.
435 (syms_of_font): Load syms_of_nsfont under NS.
436 * font.h: Declare nsfont_driver when compiled under NS.
437 * fontset.c: When compiling under NS, include nsterm.h.
438 (fontset_from_font): Autoconstruct fontset under NS.
439 * frame.c (various): Under NS, include nsterm.h, add Qns window system
440 symbol, document and use it.
441 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
442 patch to fix crash due to different init order, due to Chris Hall and
443 Yamamoto Mitsuharu.
444 (do_switch_frame): When for_deletion under Cocoa, add
445 Fraise_frame(Qnil).
446 (x_set_frame_parameters): Ensure font attribute changes are picked up.
447 (x_get_arg): Allow "yes" and "no" as boolean values.
448 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
449 Qright under Cocoa.
450 (focus-follows-mouse): Default to 0 under NS.
451 * frame.h (enum output_method): Add output_ns.
452 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
453 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
454 (FRAME_WINDOW_P): NS-specific definition.
455 * fringe.c (max_used_fringe_bitmap): Make public.
456 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
457 (getloadavg): Use NeXT code under descendant OS's.
458 * image.c (includes and header section, x_create_bitmap_from_data)
459 (x_create_bitmap_from_file, free_bitmap_record, image_background)
460 (image_background_transparent, x_clear_image_1)
461 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
462 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
463 (x_to_xcolors, x_from_xcolors, x_disable_image)
464 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
465 other GUIs, including XPM support using code originally written for
466 Carbon GUI.
467 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
468 using NS API.
469 (image_ascent): Use font metrics macros instead of direct struct field
470 access.
471 * keyboard.c (includes): Add nsterm.h when compiling under NS.
472 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
473 Also, handle NS as GTK for menu bar purposes.
474 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
475 toolkit where they differ.
476 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
477 use cachelist, still needed under NS.
478 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
479 (struct widget_value): Define it here for menu.c.
480 * keymap.c (includes): Include modifier internals.
481 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
482 NS.
483 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
484 support for preferring sequences using certain modifiers, specified by
485 the FIRSTONLY argument.
486 * lisp.h (hash_remove): Rename to avoid name clash when compiling
487 under NS GNUstep implementation.
488 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
489 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
490 * menu.c: Include nsterm.h under NS.
491 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
492 (free_menubar_widget_tree_value, update_submenu_strings)
493 (find_and_call_menu_selection): Treat NS as X and NT.
494 (find_and_return_menu_selection): New function, used for popup menus.
495 * nsgui.h:
496 * nsterm.h:
497 * nsfns.m:
498 * nsimage.m:
499 * nsmenu.m:
500 * nsselect.m:
501 * nsterm.m: New files.
502 * process.c (wait_reading_process_output): Under NS, call ns_select()
503 instead of plain select().
504 * syntax.c (char_quoted): Under NS, avoid a crash when called near
505 beginning of buffer.
506 * sysselect.h (init_process): Rename when compiling under Cocoa to
507 avoid name conflict.
508 * termhooks.h (display_info): Add ns_display_info to union.
509 * terminal.c (Fterminal_live_p): Add ns to terminal types.
510 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
511 COCOA environment.
512 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
513 unexec() signature. (Note, this will dump, but the resulting file
514 crashes; unexosx is used instead; keeping around for reference and
515 possible aid in getting dump working under GNUstep.)
516 * w32gui.h (button_type, widget_value): Remove definitions (now in
517 keyboard.h).
518 * window.c: Include nsterm.h when compiling under NS.
519 * xdisp.c (includes): Include nsterm.h when compiling under NS.
520 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
521 other GUI windowing systems.
522 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
523 GTK.
524 (x_consider_frame_title): Under NS, set icon type and frame
525 modified-state indicator; use ns_set_name_as_filename() when using
526 formatted title.
527 (update_window_cursor): Make public when compiling under NS.
528 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
529 (hourglass_atimer, Vhourglass_delay
530 * xfaces.c (header section, init_frame_faces, clear_font_table)
531 (defined_color, unload_color, x_face_list_fonts)
532 (prepare_face_for_display): Add NS support parallel to other GUIs.
533 Emulate GCs like other non-X GUIs.
534 (split_font_name): Don't lowercase font name under NS.
535 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
536 under NS.
537 * s/darwin.h: Add support for compilation under NS.
538
539 2008-07-15 Jason Rumney <jasonr@gnu.org>
540
541 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
542 (w32_show_hourglass): Rename from show_hourglass.
543 (w32_hide_hourglass): Rename from hide_hourglass.
544 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
545 (Vhourglass_delay): Declare extern.
546 (hourglass_started): Remove.
547
548 * xdisp.c (Vhourglass_delay): Remove static.
549 (hourglass_started, start_hourglass, cancel_hourglass):
550 Don't include these versions on WINDOWSNT.
551
552 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
553
554 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
555 variables (formerly in xfns.c).
556 (show_hourglass, hide_hourglass): New prototypes (same).
557 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
558 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
559 in xfns.c).
560 (syms_of_xdisp): Declare/initialize display-hourglass,
561 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
562 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
563 formerly in xfns.c.
564 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
565 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
566 (start_hourglass, cancel_hourglass): Remove.
567 (show_hourglass, hide_hourglass): Remove prototypes and static
568 modifiers.
569 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
570 hourglass_atimer, hourglass_shown_p declaration/initialization.
571 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
572 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
573 (start_hourglass, cancel_hourglass): Remove.
574 (show_hourglass, hide_hourglass): Remove prototypes and static
575 modifiers.
576 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
577 hourglass_atimer, hourglass_shown_p declaration/initialization.
578 * w32fns.c (display_hourglass_p, Vhourglass_delay)
579 (DEFAULT_HOURGLASS_DELAY): Remove.
580 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
581 hourglass_shown_p declaration/initialization.
582
583 2008-07-14 Jason Rumney <jasonr@gnu.org>
584
585 * w32fns.c (w32_get_arg): Remove wrapper function.
586 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
587 directly.
588 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
589
590 2008-07-14 Kenichi Handa <handa@m17n.org>
591
592 * xfont.c (xfont_open): Add workaround for X's bug.
593
594 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
595
596 * fontset.c: Include <stdio.h> unconditionally.
597
598 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
599
600 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
601 for filtering.
602
603 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
604
605 * s/vms.h: Use __GNUC__ instead of _GNUC_.
606
607 * m/macppc.h:
608 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
609
610 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
611 (SPECIAL_EMACS_INT):
612 * m/ia64.h (SPECIAL_EMACS_INT):
613 * m/amdx86-64.h (SPECIAL_EMACS_INT):
614 * s/gnu.h (NLIST_STRUCT):
615 * aix4-2.h (X11R5_INHIBIT_I18N):
616 * s/gnu-linux.h (LINUX):
617 * s/msdos.h (HAVE_FACES):
618 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
619
620 * systty.h:
621 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
622 anymore.
623
624 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
625
626 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
627 always defined as int.
628
629 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
630 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
631 * s/gnu-linux.h (HAVE_WAIT_HEADER):
632 * s/freebsd.h (HAVE_WAIT_HEADER):
633 * s/bsd-common.h (HAVE_UNION_WAIT):
634 * s/aix4-2.h (HAVE_WAIT_HEADER):
635 * m/mips.h (HAVE_UNION_WAIT):
636 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
637 (COFF, static): Do not define, they are undefined later in the file.
638
639 * process.c (update_status): Don't use a union.
640 (status_convert):
641 (sigchld_handler): Use int instead of WAITTYPE.
642
643 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
644
645 * indent.c (Fvertical_motion): Restore hscroll before moving to
646 goal column.
647
648 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
649
650 * lisp.h: Remove left over code.
651
652 2008-07-11 Andreas Schwab <schwab@suse.de>
653
654 * lisp.h: Fix logic in last change.
655
656 * menu.h: New file.
657 * menu.c: Include it.
658 * xmenu.c: Likewise.
659 * Makefile.in: Update dependencies.
660
661 2008-07-11 Kenichi Handa <handa@m17n.org>
662
663 * fontset.c (fontset_from_font): Cancel the previous change.
664
665 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
666
667 * lisp.h:
668 * w32heap.c:
669 * emacs.c:
670 * alloc.c: Replace all references of NO_UNION_TYPE with
671 USE_LISP_UNION_TYPE.
672
673 * m/xtensa.h (NO_UNION_TYPE):
674 * m/vax.h (NO_UNION_TYPE):
675 * m/template.h (NO_UNION_TYPE):
676 * m/sparc.h (NO_UNION_TYPE):
677 * m/mips.h (NO_UNION_TYPE):
678 * m/macppc.h (NO_UNION_TYPE):
679 * m/m68k.h (NO_UNION_TYPE):
680 * m/iris4d.h (NO_UNION_TYPE):
681 * m/intel386.h (NO_UNION_TYPE):
682 * m/ibms390x.h (NO_UNION_TYPE):
683 * m/ibms390.h (NO_UNION_TYPE):
684 * m/ibmrs6000.h (NO_UNION_TYPE):
685 * m/ia64.h (NO_UNION_TYPE):
686 * m/hp800.h (NO_UNION_TYPE):
687 * m/arm.h (NO_UNION_TYPE):
688 * m/amdx86-64.h (NO_UNION_TYPE):
689 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
690 defining it the same.
691
692 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
693
694 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
695
696 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
697
698 * src/fileio.c:
699 * src/sysdep.c
700 * src/systty.h:
701 * src/m/ibmrs6000.h:
702 * src/m/iris4d.h:
703 * src/s/aix4-2.h:
704 * src/s/freebsd.h:
705 * src/s/gnu-linux.h:
706 * src/s/hpux10-20.h:
707 * src/s/hpux11.h:
708 * src/s/netbsd.h:
709 * src/s/sol2-3.h:
710 * src/s/sol2-4.h:
711 * src/s/sol2.h:
712 * src/s/usg5-4.h:
713 * src/s/vms.h: Remove references to unused variables.
714
715 2008-07-10 Andreas Schwab <schwab@suse.de>
716
717 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
718 pattern before matching the generic family.
719
720 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
721
722 * unexec.c:
723 * s/vms.h:
724 * s/usg5-4-2.h:
725 * s/sol2-5.h:
726 * s/freebsd.h:
727 * s/darwin.h: Remove dead code.
728
729 * m/template.h:
730 * m/sparc.h:
731 * m/mips.h:
732 * m/m68k.h:
733 * m/iris4d.h:
734 * m/intel386.h:
735 * m/ibms390x.h:
736 * m/ibms390.h:
737 * m/ia64.h:
738 * m/hp800.h:
739 * m/arm.h:
740 * m/amdx86-64.h: Remove dead code and references to unused
741 and compiler defined symbols.
742
743 * unexmips.c:
744 * unexelf.c: Remove references to desupported systems.
745
746 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
747
748 * m/powermac.h: Remove boilerplate comments.
749 (NO_REMAP): Remove unused definition.
750
751 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
752 define them.
753
754 2008-07-10 Kenichi Handa <handa@m17n.org>
755
756 * xfont.c (xfont_open): Log the reason of failure.
757
758 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
759
760 * fontset.c (fontset_get_font_group):
761 * font.c (font_check_otf): Specify argument types.
762
763 2008-07-09 Kenichi Handa <handa@m17n.org>
764
765 * coding.c (detect_coding_utf_8): Set detect_info->found only when
766 non-ASCII char is found.
767
768 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
769 (reorder_font_vector): Change the arg preferred_family to font.
770 Prefer the spec matching with font.
771 (fontset_get_font_group): New function.
772 (fontset_find_font): Change the format of an element of a realized
773 fontset. Use fontset_get_font_group.
774 (fontset_font): Try the current fontset, the default fontset, the
775 fallbacks of the current fonset, and the fallbacks of the default
776 fontset in this order.
777 (face_for_char): Delete the shortcut to use the current font.
778 (fontset_from_font): Don't set fonts for Latin in the fontset.
779
780 * font.h (font_make_object, font_match_p): Adjust prototypes.
781
782 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
783
784 * font.c (font_make_object): New arg entity and pixelsize.
785 (font_check_otf_features, font_check_otf): New functions.
786 (font_match_p): Check :lang, :script, and :otf properties.
787
788 * xfont.c (xfont_open): Adjust it for the change of
789 font_make_object.
790 (xfont_text_extents): Fix initial setting of metrics.
791
792 * ftfont.c (struct ftfont_info): New member index, delete member
793 fc_charset_idx. Make the member order compatible with struct
794 xftfont_info.
795 (fc_charset_table): Change charset names to registry names.
796 (ftfont_pattern_entity): Delete the args registry and
797 fc_charset_idx. Change the value of :font-entity property
798 to (FONTNAME . INDEX). Always set :registry property to
799 `iso10646-1'.
800 (struct ftfont_cache_data): New struct.
801 (ftfont_lookup_cache): New arg for_face.
802 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
803 (ftfont_driver): Set the member otf_capability.
804 (ftfont_get_charset): Adjust it for the change of
805 fc_charset_table.
806 (OTF_TAG_SYM): New macro.
807 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
808 for the change of fc_charset_table.
809 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
810 ftfont_pattern_entity. Add FC_INDEX to objset.
811 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
812 and ftfont_pattern_entity.
813 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
814 font_make_object, struct ftfont_info.
815 (ftfont_has_char): Use ftfont_get_fc_charset.
816 (ftfont_otf_features, ftfont_otf_capability): New functions.
817 (ftfont_shape): Use ftfont_get_otf.
818 (ftfont_text_extents): Fix initial setting of metrics.
819
820 * xftfont.c (struct xftfont_info): New member ft_size. Make the
821 member order compatible with struct ftfont_info.
822 (xftfont_open): Add FC_CHARSET to the pattern. Set
823 xftfont_info->ft_size. Don't unlock the face. Check BDF
824 properties if appropriate.
825 (xftfont_close): Unlock the face.
826 (xftfont_anchor_point, xftfont_shape): Deleted.
827 (syms_of_xftfont): Don't set members anchor_point and shape of
828 xftfont_driver.
829
830 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
831 font_make_object.
832
833 * w32font.c (w32font_open): Adjust it for the change of
834 font_make_object.
835 (w32font_open_internal): Don't set properties of font_object here.
836
837 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
838
839 * macfns.c (x_create_tip_frame):
840 * w32fns.c (x_create_tip_frame):
841 * xfns.c (x_create_tip_frame): Pass parameter argument to
842 face-set-after-frame-default.
843
844 * xfaces.c (Finternal_merge_in_global_face): Save merged
845 attributes for the default face back into the face vector.
846
847 2008-07-08 Andreas Schwab <schwab@suse.de>
848
849 * fontset.h: Declare fontset_from_font. Don't declare
850 new_fontset_from_font and fontset_from_font_name.
851 * xterm.c: Include "fontset.h".
852 * Makefile.in (xterm.o): Update dependencies.
853
854 2008-07-08 Glenn Morris <rgm@gnu.org>
855
856 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
857 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
858
859 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
860
861 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
862 (x_set_frame_parameters): Don't bind it.
863
864 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
865
866 * w32fns.c (map_w32_filename): Declare extern.
867
868 2008-07-07 Jason Rumney <jasonr@gnu.org>
869
870 * w32term.c (WS_EX_LAYERED): Define if not already.
871
872 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
873
874 * xfaces.c (set_font_frame_param): Don't try to set the font
875 parameter if it is still unspecified in the lface.
876
877 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
878
879 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
880 face if it didn't already exist.
881
882 * xdisp.c (try_window_id): Give up if word-wrapping is on.
883
884 2008-07-05 Andreas Schwab <schwab@suse.de>
885
886 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
887
888 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
889
890 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
891 word-wrapping.
892 (IT_DISPLAYING_WHITESPACE): New macro.
893 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
894 when word-wrapping. Simplify word-wrapping logic. Use correct
895 pixel positions when saving copies of the iterator.
896 (display_line): Use proper wrap point if the last character on a
897 line was preceded by whitespace.
898
899 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
900
901 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
902
903 2008-07-04 Kenichi Handa <handa@m17n.org>
904
905 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
906
907 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
908
909 2008-07-02 Jason Rumney <jasonr@gnu.org>
910
911 * xfns.c (syms_of_xfns): Only define x-select-font when both
912 HAVE_FREETYPE and USE_GTK
913
914 * xdisp.c (next_element_from_display_vector): Move assignment out
915 of if statement.
916
917 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
918
919 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
920
921 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
922 (syms_of_fileio): Initialize and export them.
923 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
924
925 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
926 (Fsystem_move_file_to_trash): New function.
927 (syms_of_w32fns): Export it to lisp.
928
929 2008-07-01 Jason Rumney <jasonr@gnu.org>
930
931 * w32font.c (w32font_text_extents): Don't count overhang as part
932 of width.
933
934 2008-06-30 Miles Bader <miles@gnu.org>
935
936 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
937 Add `avoid_cursor_p' field.
938
939 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
940 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
941 (append_glyph, append_composite_glyph, produce_image_glyph)
942 (append_stretch_glyph): Initialize avoid_cursor_p.
943 (get_it_property): Rename from `get_line_height_property'.
944 (x_produce_glyphs): Use get_it_property.
945 (handle_line_prefix, push_display_prop): New functions.
946 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
947 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
948 New variables.
949 (syms_of_xdisp): Initialize them.
950
951 2008-06-30 Kenichi Handa <handa@m17n.org>
952
953 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
954 XftDefaultSubstitute (they are called in XftFontMatch).
955 (xftfont_open): Fix args to ftfont_font_format.
956
957 * ftfont.c (fc_charset_table): New member lang.
958 (ftfont_resolve_generic_family): New arg pattern.
959 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
960 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
961 (ftfont_open): Fix args to ftfont_font_format.
962 (ftfont_font_format): New arg filename.
963
964 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
965
966 * xfaces.c (Finternal_merge_in_global_face): If default face was
967 modified, realize it again. Update the font face attribute.
968
969 2008-06-29 Jason Rumney <jasonr@gnu.org>
970
971 * w32term.c (x_set_frame_alpha): Fix logic.
972
973 2008-06-29 Kenichi Handa <handa@m17n.org>
974
975 * fontset.c (Finternal_char_font): Return font-object instead of
976 font-name.
977
978 * composite.c (get_composition_id): Fix the width calculation for TAB.
979
980 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
981
982 * indent.c (Fvertical_motion): Properly handle float column arg.
983
984 2008-06-28 Jason Rumney <jasonr@gnu.org>
985
986 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
987 (pfnSetLayeredWindowAttributes): New function pointer.
988 (w32_initialize): Initialize it when supported.
989 (x_set_frame_alpha): New function.
990
991 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
992 (w32_frame_parm_handlers): Set alpha handler.
993
994 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
995
996 2008-06-27 Jason Rumney <jasonr@gnu.org>
997
998 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
999 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
1000 (w32_to_x_charset, x_to_w32_charset)
1001 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1002 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1003 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1004 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1005 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1006 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1007 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
1008 (Qw32_charset_unicode): Remove.
1009 (syms_of_w32fns): Update for above changes.
1010
1011 * w32font.c (w32_to_x_charset, x_to_w32_charset)
1012 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1013 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1014 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1015 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1016 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1017 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1018 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
1019 (syms_of_w32font): Update for above changes.
1020
1021 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1022
1023 * s/usg5-4.h: Fix previous change: keep the correct branch of a
1024 removed #if.
1025 (USG_SHARED_LIBRARIES): Remove duplicate definition.
1026
1027 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
1028 Eli Zaretskii <eliz@gnu.org>
1029
1030 * makefile.w32-in (LOCAL_FLAGS):
1031 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
1032
1033 * sysdep.c (_spawnlp, _getpid):
1034 Declare with explicit _cdecl instead of _CRTAPI1.
1035
1036 * editfns.c (Fget_internal_run_time):
1037 Check for WINDOWSNT with #ifdef, not #if.
1038
1039 2008-06-26 Jason Rumney <jasonr@gnu.org>
1040
1041 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
1042
1043 * w32term.c (x_draw_glyph_string_foreground)
1044 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
1045 Use FONT_HANDLE macro.
1046 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
1047
1048 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
1049 (uniscribe_encode_char): Use FONT_HANDLE macro.
1050
1051 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
1052 (w32font_text_extents): Use precast w32_font.
1053 (w32font_close): Free cached metrics.
1054 (w32font_open_internal): Allocate space for name on stack.
1055
1056 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
1057
1058 * xdisp.c (extend_face_to_end_of_line): Fix last change.
1059
1060 2008-06-26 Jason Rumney <jasonr@gnu.org>
1061
1062 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
1063 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
1064
1065 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
1066
1067 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
1068
1069 2008-06-26 Jason Rumney <jasonr@gnu.org>
1070
1071 * w32bdf.c, w32bdf.h: Remove obsolete files.
1072
1073 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1074
1075 * w32gui.h: Don't include w32bdf.h.
1076 (XCharStruct, enum w32_char_font_type, W32FontStruct):
1077 Remove obsolete font support.
1078
1079 * w32font.h (struct w32font_info): Remove compat_w32_font.
1080 Add hfont member.
1081 (FONT_COMPAT): Remove obsolete macro.
1082
1083 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
1084 (w32font_encode_char, w32font_text_extents): Use new hfont member.
1085 (w32font_open_internal): Remove compat code. Set new hfont member.
1086 (Fx_select_font): Use new hfont member.
1087
1088 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
1089 (uniscribe_encode_char): Use new hfont member.
1090
1091 * w32term.c (x_draw_glyph_string_foreground)
1092 (x_draw_composite_glyph_string_foreground): Use new hfont member.
1093 (x_draw_glyph_string): Use metrics in w32font_info.
1094
1095 2008-06-26 Kenichi Handa <handa@m17n.org>
1096
1097 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
1098
1099 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
1100
1101 * unexnext.c:
1102 * m/ews4800.h:
1103 * m/hp9000s300.h:
1104 * m/ibm370aix.h:
1105 * m/mips-siemens.h:
1106 * m/ncr386.h:
1107 * m/next.h:
1108 * m/pmax.h:
1109 * m/powerpcle.h:
1110 * m/tandem-s2.h:
1111 * s/386bsd.h:
1112 * s/bsd386.h:
1113 * s/bsd4-1.h:
1114 * s/bsd4-2.h:
1115 * s/bsdos2-1.h:
1116 * s/bsdos2.h:
1117 * s/bsdos3.h:
1118 * s/bsdos4.h:
1119 * s/nextstep.h:
1120 * s/ultrix4-3.h:
1121 * s/usg5-0.h:
1122 * s/usg5-2-2.h:
1123 * s/usg5-2.h:
1124 * s/usg5-4-3.h:
1125 * s/ux4800.h:
1126 * s/uxpds.h:
1127 * s/uxpv.h: Remove support for obsolete systems.
1128 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
1129 Remove, insert contents in s/hpux-10.20.h
1130 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
1131 Remove, insert contents in s/aix-4.2.h
1132 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
1133 * s/bsd4-3.h: Rename to ..
1134 * s/bsd-common.h: ... this.
1135 * src/data.c:
1136 * src/doc.c:
1137 * src/ecrt0.c:
1138 * src/emacs.c:
1139 * src/fileio.c:
1140 * src/floatfns.c:
1141 * src/keyboard.c:
1142 * src/mem-limits.h:
1143 * src/print.c:
1144 * src/process.c:
1145 * src/sysdep.c:
1146 * src/syssignal.h:
1147 * src/systty.h:
1148 * src/syswait.h:
1149 * src/term.c:
1150 * src/unexec.c:
1151 * src/unexelf.c:
1152 * src/unexhp9k800.c:
1153 * src/m/hp800.h:
1154 * src/m/ibmrs6000.h:
1155 * src/m/mips.h:
1156 * src/m/vax.h:
1157 * src/s/darwin.h:
1158 * src/s/freebsd.h:
1159 * src/s/gnu.h:
1160 * src/s/ms-w32.h:
1161 * src/s/msdos.h:
1162 * src/s/netbsd.h:
1163 * src/s/template.h: Remove references to obsolete variables.
1164
1165 * Makefile.in: Add dependencies for all unexec files.
1166 (admindir): Remove unused variable.
1167 (UNEXEC_SRC): Remove references.
1168
1169 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
1170
1171 * xfns.c (x_default_font_parameter): If Xft is available, first
1172 try Monospace-12 for the default font.
1173
1174 2008-06-25 Jason Rumney <jasonr@gnu.org>
1175
1176 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
1177
1178 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
1179
1180 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
1181
1182 * buffer.c (syms_of_buffer): Remove default-word-wrap.
1183
1184 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
1185
1186 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
1187 <scroll-conservatively>: Fix typo in docstring.
1188
1189 * xselect.c (Fx_send_client_event): Doc fix.
1190
1191 2008-06-25 Kenichi Handa <handa@m17n.org>
1192
1193 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
1194
1195 * font.c (font_parse_fcname): Remove unused variables.
1196 (font_sort_entites): Delete the arg SPEC. Caller changed.
1197 Fix for the case of ! best_only.
1198 (font_delete_unmatched): Check DPI and AVGWIDTH too.
1199
1200 * lisp.h (Fstring_to_unibyte): EXFUN it.
1201
1202 * character.h (str_to_unibyte): Extern it.
1203
1204 * character.c (str_to_unibyte): New function.
1205
1206 * fns.c (Fstring_to_unibyte): New function.
1207 (syms_of_fns): Defsubr it.
1208
1209 2008-06-24 Kenichi Handa <handa@m17n.org>
1210
1211 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
1212 DPI too.
1213 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
1214
1215 2008-06-24 Andreas Schwab <schwab@suse.de>
1216
1217 * Makefile.in (${lispsource}loaddefs.el): Rename from
1218 ../lisp/loaddefs.el.
1219 (bootstrap-clean): Do what distclean does but don't remove
1220 Makefile.
1221 (distclean): Depend on bootstrap-clean and remove Makefile.
1222
1223 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
1224
1225 * buffer.h (struct buffer): New member word_wrap.
1226
1227 * buffer.c (syms_of_buffer): New variables default-word-wrap and
1228 word-wrap.
1229 (init_buffer_once): Initialize them.
1230
1231 * dispextern.h (struct it): Replace bool truncate_lines_p with a
1232 line_wrap enum possessing three possible values.
1233
1234 * termopts.h: Replace truncate_partial_width_windows with
1235 Vtruncate_partial_width_windows.
1236
1237 * dispnew.c (direct_output_for_insert): Avoid direct output when
1238 inserting a space with word wrap on.
1239
1240 * indent.c (compute_motion): Obey integer values of
1241 truncate-partial-width-windows.
1242
1243 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
1244 replacing truncate_partial_width_windows.
1245 (init_iterator): If Vtruncate_partial_width_windows is an integer,
1246 truncate only if the window width is below that integer.
1247 (start_display, resize_mini_window, produce_stretch_glyph)
1248 (display_string, move_it_in_display_line_to): Use line_wrap.
1249 (back_to_previous_visible_line_start, reseat_1): Reset
1250 string_from_display_prop_p.
1251 (display_line): Extend default face to end of line when wrapping.
1252
1253 2008-06-24 Kim F. Storm <storm@cua.dk>
1254
1255 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
1256 to wrap continued lines at word boundaries.
1257
1258 2008-06-24 Jason Rumney <jasonr@gnu.org>
1259
1260 * font.c (Ffont_face_attributes): Multiply pixel size before point
1261 conversion to avoid multiplying rounding error.
1262
1263 2008-06-23 Jason Rumney <jasonr@gnu.org>
1264
1265 * w32term.c (x_draw_glyph_string_background)
1266 (x_draw_glyph_string): Remove old bdf font code.
1267
1268 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
1269
1270 2008-06-22 Kenichi Handa <handa@m17n.org>
1271
1272 * font.c (font_find_for_lface): Try the adstyle specified in
1273 the property of LFACE_FONT of LFACE (if any).
1274
1275 2008-06-21 Seiji Zenitani <zenitani@mac.com>
1276 Ryo Yoshitake <ryo@shiftmode.net>
1277
1278 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
1279
1280 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
1281
1282 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
1283 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
1284 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
1285 (witness-emacs): Remove.
1286 (lisp, shortlisp): Move loaddefs.el earlier.
1287 (mostlyclean): Forget about witness-emacs.
1288
1289 2008-06-22 Glenn Morris <rgm@gnu.org>
1290
1291 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
1292 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
1293
1294 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1295
1296 * Makefile.in (PRECOMP): Remove.
1297 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
1298 (witness-emacs): Run `compile-first'.
1299 (.el.elc): Use the new compile-onefile target.
1300
1301 2008-06-21 Kenichi Handa <handa@m17n.org>
1302
1303 * xftfont.c (xftfont_open): Handle QCembolden only when
1304 FC_EMBOLDEN is defined.
1305
1306 2008-06-21 Andreas Schwab <schwab@suse.de>
1307
1308 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
1309 (.el.elc): Likewise.
1310
1311 2008-06-21 Miles Bader <miles@gnu.org>
1312
1313 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
1314 build dir, not the lisp source dir.
1315
1316 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1317
1318 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
1319 (bootstrapclean): Remove.
1320 (.el.elc): New rule.
1321 (PRECOMP): New var.
1322 (../lisp/subdirs.el): Remove.
1323 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
1324 (witness-emacs): New target.
1325 (mostlyclean): Remove witness-emacs as well.
1326 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
1327 Add witness-emacs dependency.
1328
1329 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
1330
1331 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
1332 defined by the font.
1333
1334 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1335
1336 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
1337 (bootstrap-clean): New target that keeps TAGS around.
1338 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
1339 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
1340
1341 2008-06-20 Jason Rumney <jasonr@gnu.org>
1342
1343 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
1344 Remove obsolete font code.
1345
1346 * w32font.c (font_matches_spec): Use csb bitfield from font signature
1347 to determine language support.
1348
1349 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1350
1351 * sysdep.c (cfsetspeed): New fun extracted from the code.
1352 (cfmakeraw): Move before first use.
1353
1354 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
1355
1356 * sysdep.c (cfmakeraw): Provide fallback implementation.
1357 (serial_configure): Provide fallback implementation of cfsetspeed.
1358
1359 2008-06-20 Kenichi Handa <handa@m17n.org>
1360
1361 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
1362 the pattern.
1363
1364 * fontset.c (fontset_from_font): Copy font_spec before changing
1365 the elements.
1366
1367 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
1368
1369 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1370
1371 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
1372 for explicit `font' parameters.
1373
1374 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
1375
1376 2008-06-19 Kenichi Handa <handa@m17n.org>
1377
1378 * frame.c: Include <ctype.h>.
1379 (x_set_font_backend): Allow spacing characters in the X resource
1380 for FontBackend.
1381
1382 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
1383
1384 * w32fns.c, xfns.c (Qfont_param): New var.
1385 (syms_of_w32fns): Initialize it.
1386 (x_default_font_parameter): Record explicit `font' into
1387 `font-parameter'.
1388
1389 2008-06-18 Kenichi Handa <handa@m17n.org>
1390
1391 * font.c (font_parse_xlfd): Fix previous change.
1392 (font_parse_fcname): Don't use :fc-unknown-spec.
1393 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
1394 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
1395 (font_add_log): Prepend the driver name to the resulting fonts.
1396
1397 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
1398 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
1399 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
1400
1401 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
1402 (QCembolden): New variables.
1403 (syms_of_xftfont): DEFSYM them.
1404 (xftfont_open): Call XftFontMatch. Don't trust the result of
1405 XftTextExtents8 if the pixel_size is less than 5.
1406
1407 2008-06-18 Andreas Schwab <schwab@suse.de>
1408
1409 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
1410 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
1411
1412 2008-06-18 Jason Rumney <jasonr@gnu.org>
1413
1414 * w32font.c (w32font_list, w32font_match): Add logging.
1415
1416 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
1417
1418 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
1419
1420 * font.c (font_parse_fcname): Store divider characters for
1421 unknown-spec list. For known key symbols, intern using correct
1422 symbol name.
1423
1424 2008-06-17 Kenichi Handa <handa@m17n.org>
1425
1426 * xfaces.c (realize_default_face): If the frame is not on window
1427 system, set the fontset of face to nil.
1428
1429 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1430
1431 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
1432
1433 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
1434
1435 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
1436 (build_font_name_from_vector): Delete externs.
1437
1438 * xfaces.c (struct font_name): Don't declare.
1439
1440 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1441
1442 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
1443
1444 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
1445
1446 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
1447
1448 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
1449
1450 * font.c (Ffont_spec): Fix usage in docstring.
1451 (Ffont_face_attributes): Doc fix.
1452
1453 2008-06-16 Andreas Schwab <schwab@suse.de>
1454
1455 * font.c (Ffont_face_attributes): Fix definition.
1456
1457 2008-06-16 Jason Rumney <jasonr@gnu.org>
1458
1459 * font.h (font_style_symbolic_from_value): Remove.
1460
1461 * font.c (font_style_symbolic_from_value): Remove.
1462 (font_style_symbolic): Revert to pre 2008-06-13 version.
1463
1464 * w32font.c (w32_to_fc_weight): New function.
1465 (w32font_full_name, logfont_to_fcname): Use it.
1466
1467 2008-06-16 Kenichi Handa <handa@m17n.org>
1468
1469 * font.c (font_check_object): Delete it.
1470 (font_clear_cache): Check if a font-object is alive.
1471 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
1472 font-object to nil.
1473 (font_close_object): Don't check FONT_CLOSE_OBJECT.
1474 (font_at): Don't call font_check_object.
1475 (Ffont_get): Return a symbol for :weight, :slant, and :width.
1476
1477 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
1478
1479 * puresize.h (BASE_PURESIZE): Increase to 1230000.
1480
1481 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
1482
1483 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
1484
1485 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
1486
1487 * font.c (font_parse_fcname): Only one decimal point.
1488 (font_unparse_fcname): Handle data in family and foundry indices
1489 as symbols, not strings.
1490 (font_unparse_gtkname, Ffont_face_attributes): New functions.
1491
1492 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
1493
1494 * font.h (font_unparse_gtkname): Add prototype.
1495
1496 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
1497
1498 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
1499
1500 2008-06-15 Andreas Schwab <schwab@suse.de>
1501
1502 * font.c (font_update_drivers): Fix crash when no drivers match.
1503
1504 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
1505
1506 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
1507 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
1508
1509 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
1510
1511 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
1512
1513 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
1514
1515 * process.c (Fserial_process_configure, Fprocess_send_eof):
1516 Use EQ to compare Lisp_Objects.
1517
1518 2008-06-13 Jason Rumney <jasonr@gnu.org>
1519
1520 * w32fns.c (Fw32_select_font): Remove old font API function.
1521
1522 * w32font.c (logfont_to_fcname): New function.
1523 (Fx_select_font): New font dialog function compatible with
1524 GTK/fontconfig version.
1525
1526 * font.c (font_style_symbolic_from_value): New function.
1527 (font_style_symbolic): Use it.
1528
1529 * font.h (font_style_symbolic_from_value): Declare new function.
1530
1531 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
1532
1533 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
1534 <font-width-table>: Fix typos in docstrings.
1535
1536 2008-06-13 Daniel Engeler <engeler@gmail.com>
1537
1538 These changes add serial port access.
1539 * process.c: Add HAVE_SERIAL.
1540 (Fdelete_process, Fprocess_status, Fset_process_buffer)
1541 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
1542 (list_processes_1, select_wrapper, Fstop_process)
1543 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
1544 (status_notify): Modify to handle serial processes.
1545 [HAVE_SERIAL] (Fserial_process_configure)
1546 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
1547 New functions.
1548 * process.h (struct Lisp_Process): Add `type'.
1549 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
1550 New functions.
1551 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
1552 serial ports.
1553 (serial_open, serial_configure) New functions.
1554 * w32.h: Add FILE_SERIAL.
1555 (struct _child_process): Add ovl_read, ovl_write.
1556
1557 2008-06-13 Kenichi Handa <handa@m17n.org>
1558
1559 * dispextern.h (enum lface_attribute_index): New member
1560 LFACE_FOUNDRY_INDEX.
1561
1562 * font.c (font_score): Delete arg alternate_families. Check only
1563 weight, slant, width, and size. Ignore the difference of alias
1564 style symbols.
1565 (font_sort_entites): Adjust for the above change. Reflect the
1566 order of font-driver to scores.
1567 (font_list_entities): Don't check alternate_familes here.
1568 (font_clear_prop): Handle foundry.
1569 (font_update_lface): Don't parse "foundry-family" form here.
1570 Handle FONT_FOUNDRY_INDEX.
1571 (font_find_for_lface): Likewise. Handle alternate families here.
1572 If registry is nil, try iso8859-1 and ascii-0.
1573 (font_open_for_lface): Pay attention to size in ENTITY.
1574 (font_open_by_name): Simplify by calling font_load_for_lface.
1575 (free_font_driver_list): Delete it.
1576 (font_update_drivers): Preserve the order of backends.
1577 (syms_of_font): Setting of sort_shift_bits adjusted for the change
1578 of font_score and font_sort_entites.
1579 (font_update_sort_order): Likewise.
1580
1581 * xfaces.c (LFACE_FOUNDRY): New macro.
1582 (check_lface_attrs): Check foundry.
1583 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
1584 (merge_face_vectors): Check foundry.
1585 (merge_face_ref): Likewise.
1586 (Finternal_set_lisp_face_attribute): Likewise.
1587 (x_update_menu_appearance): Likewise.
1588 (Finternal_get_lisp_face_attribute): Likewise.
1589 (lface_hash): Likewise.
1590 (lface_same_font_attributes_p): Likewise.
1591 (x_supports_face_attributes_p): Likewise.
1592 (tty_supports_face_attributes_p): Likewise.
1593 (Finternal_set_alternative_font_family_alist): Intern strings.
1594 (Finternal_set_alternative_font_registry_alist): Downcase strings.
1595 (realize_default_face): Set LFACE_FOUNDRY (lface).
1596
1597 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
1598 font-driver at first.
1599
1600 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
1601
1602 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1603
1604 * lread.c (Fload): Use xfree, not free on saved_doc_string.
1605
1606 2008-06-12 Jim Meyering <meyering@redhat.com>
1607
1608 Make unexec_free handle NULL the same way free does.
1609 * unexmacosx.c (unexec_free): Ignore a NULL argument.
1610
1611 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
1612
1613 * character.h (CHAR_TO_BYTE_SAFE): New macro.
1614 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
1615 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
1616 (WEAK_ALIAS): Simplify.
1617 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
1618 when searching a unibyte buffer.
1619
1620 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
1621
1622 * xfns.c (Fx_select_font): Rename from x-font-dialog.
1623
1624 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
1625
1626 * w32font.c: Include ctype.h.
1627
1628 2008-06-11 Jason Rumney <jasonr@gnu.org>
1629
1630 * w32font.c (w32font_encode_char): Detect missing glyphs that are
1631 misreported as space.
1632 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
1633 as aliases for registry iso10646-1.
1634
1635 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
1636
1637 * buffer.c (clone_per_buffer_values): Skip `name'.
1638
1639 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
1640
1641 * font.c (font_parse_fcname): Fix last change; accept decimal
1642 points in font size.
1643
1644 2008-06-10 Jason Rumney <jasonr@gnu.org>
1645
1646 * w32uniscribe.c (add_opentype_font_name_to_list):
1647 Skip non unicode fonts.
1648
1649 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
1650
1651 * xfns.c (Fx_font_dialog): New function.
1652
1653 * gtkutil.c (xg_dialog_response_cb): Rename from
1654 xg_file_response_callback.
1655 (pop_down_dialog): Rename from pop_down_file_dialog.
1656 (xg_get_file_name): Callers changed.
1657 (xg_get_font_name): New function.
1658
1659 * gtkutil.h (xg_get_font_name): Insert prototype.
1660
1661 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1662
1663 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
1664 x_underline_minimum_display_offset.
1665 (syms_of_xdisp): Declare it here rather than in xterm.c.
1666 * dispextern.h (underline_minimum_offset): Declare it.
1667 * w32term.c (x_draw_glyph_string): Use it.
1668 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
1669 (syms_of_xterm): Don't declare it any more.
1670 (x_draw_glyph_string): Adjust to the new name.
1671
1672 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
1673
1674 * xterm.c (x_underline_minimum_display_offset): New var.
1675 (x_draw_glyph_string): Use it.
1676 (syms_of_xterm): Declare it.
1677
1678 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
1679
1680 * font.c (font_parse_fcname): Accept GTK-style font names too.
1681
1682 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1683
1684 * dired.c (file_name_completion): Don't return t if the match is exact
1685 but with different capitalization.
1686 * minibuf.c (Ftry_completion): Simplify.
1687
1688 * window.c (Vwindow_point_insertion_type): New var.
1689 (set_window_buffer): Use it.
1690 (syms_of_window): Init and export it to Lisp.
1691
1692 2008-06-10 Kenichi Handa <handa@m17n.org>
1693
1694 * font.h (font_intern_prop): Prototype adjusted.
1695
1696 * font.c (font_intern_prop): New arg force_symbol.
1697 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
1698 Adjust for the change of font_intern_prop.
1699
1700 * ftfont.c (ftfont_pattern_entity):
1701 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
1702 (w32_registry):
1703 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
1704 the change of font_intern_prop.
1705
1706 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
1707
1708 * w32menu.c (digest_single_submenu): Declare extern.
1709
1710 2008-06-09 Jason Rumney <jasonr@gnu.org>
1711
1712 * w32term.c (x_make_frame_visible): Use alternate restore flags.
1713
1714 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
1715 (parse_single_submenu): Remove.
1716 (digest_single_submenu): Remove.
1717 (syms_of_w32menu): Don't initialise variables that have moved
1718 to menu.c.
1719 (set_frame_menubar): Sync with version in xmenu.c.
1720 (w32_menu_show): Sync with xmenu_show in xmenu.c.
1721
1722 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
1723 Make static again.
1724
1725 2008-06-09 Jason Rumney <jasonr@gnu.org>
1726
1727 Changes to w32 files related to the move of common menu code
1728 to menu.c on 2008-06-08 by Chong Yidong.
1729
1730 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
1731 defs to w32gui.h.
1732 (single_keymap_panes, push_menu_item, push_menu_pane):
1733 Make globally visible.
1734
1735 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
1736 (local_free, malloc_widget_value, free_widget_value)
1737 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
1738 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
1739 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
1740 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
1741 (menu_items, menu_items_allocated, menu_items_used)
1742 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
1743 (init_menu_items, finish_menu_items, discard_menu_items)
1744 (grow_menu_items, push_submenu_start, push_submenu_end)
1745 (push_left_right_boundary, push_menu_pane, push_menu_item)
1746 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
1747 (free_menubar_widget_tree_value, parse_single_submenu)
1748 (update_submenu_strings): Remove functions.
1749 (xmalloc_widget_value): Remove and declare extern.
1750
1751 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
1752 (OBJ1): Build it.
1753
1754 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
1755 (local_heap, local_alloc, local_free, malloc_widget_value)
1756 (free_widget_value): Define here.
1757
1758 2008-06-09 Kenichi Handa <handa@m17n.org>
1759
1760 * font.h (Qascii_0): Extern it.
1761
1762 * font.c (Qascii_0): New variable.
1763 (syms_of_font): DEFSYM it.
1764 (font_open_by_name): If the registry "iso8859-1" fails, try also
1765 "ascii-0".
1766
1767 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
1768
1769 2008-06-08 Kenichi Handa <handa@m17n.org>
1770
1771 * .gdbinit (xfont): New command.
1772
1773 2008-06-08 Andreas Schwab <schwab@suse.de>
1774
1775 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
1776 * Makefile.in (menu.o): Update dependencies.
1777
1778 * Makefile.in (obj): Always add menu.o.
1779 * emacs.c (main): Always call syms_of_menu.
1780 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
1781
1782 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
1783
1784 * Makefile.in: Compile menu.c.
1785
1786 * lisp.h: Declare syms_of_menu.
1787
1788 * emacs.c (main): Call syms_of_menu.
1789
1790 * keyboard.h: Relocate platform-independent menu definitions from
1791 xmenu.c.
1792
1793 * menu.c: New file. Relocate platform-independent menu
1794 definitions from xmenu.c. Suggested by Adrian Robert.
1795
1796 * xmenu.c: Remove platform-independent menu definitions.
1797 (menu_items menu_items_inuse, menu_items_allocated)
1798 (menu_items_used, menu_items_n_panes)
1799 (menu_items_submenu_depth): Move to keyboard.h.
1800 (init_menu_items, finish_menu_items, unuse_menu_items)
1801 (discard_menu_items, restore_menu_items, save_menu_items)
1802 (grow_menu_items, push_submenu_start, push_submenu_end)
1803 (push_left_right_boundary, push_menu_pane, push_menu_item)
1804 (keymap_panes, single_keymap_panes, single_menu_item)
1805 (list_of_panes, list_of_items, find_and_call_menu_selection)
1806 (xmalloc_widget_value, free_menubar_widget_value_tree)
1807 (parse_single_submenu, digest_single_submenu)
1808 (update_submenu_strings): Move to menu.c.
1809
1810 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
1811
1812 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
1813
1814 2008-06-06 Miles Bader <miles@gnu.org>
1815
1816 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
1817 face, not frame default.
1818
1819 2008-06-05 Martin Rudalics <rudalics@gmx.at>
1820
1821 * window.c (pop_up_windows, pop_up_frames)
1822 (display_buffer_reuse_frames, Vpop_up_frame_function)
1823 (Vdisplay_buffer_function, Veven_window_heights)
1824 (Vspecial_display_buffer_names, Vspecial_display_regexps)
1825 (Vspecial_display_function, Vsame_window_buffer_names)
1826 (Vsame_window_regexps, split_height_threshold)
1827 (Vsplit_window_preferred_function): Move those vars to window.el.
1828 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
1829 (Fdisplay_buffer): Move those functions to window.el.
1830 (syms_of_window): Remove corresponding declarations.
1831 (display_buffer): New function.
1832 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
1833 * dispnew.c (Flast_nonminibuf_frame): New function.
1834 * buffer.c (Fpop_to_buffer): Move to window.el.
1835
1836 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1837
1838 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
1839
1840 2008-06-05 Kenichi Handa <handa@m17n.org>
1841
1842 * coding.c (detect_coding): Fix previous change.
1843 (detect_coding_system): Likewise.
1844
1845 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1846
1847 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
1848
1849 * keymap.c (Vminibuffer_local_filename_must_match_map):
1850 Rename from Vminibuffer_local_must_match_filename_map.
1851 (syms_of_keymap):
1852 * minibuf.c (Fcompleting_read): Adjust accordingly.
1853 * commands.h: Rename declaration as well.
1854
1855 2008-06-05 Kenichi Handa <handa@m17n.org>
1856
1857 * font.c (Ffont_spec): Don't use font_parse_family_registry for
1858 family name.
1859 (Ffont_put): Likewise.
1860
1861 * fontset.c (fontset_find_font): Call font_open_for_lface with the
1862 current font-spec.
1863
1864 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
1865 is unspecified.
1866
1867 * xfaces.c (realize_x_face): If the font-related face attributes
1868 are the same as those of default face, realize a new fontset from
1869 default->fontset.
1870 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
1871
1872 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1873
1874 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
1875 (move_it_in_display_line): New wrapper.
1876
1877 * window.c (window_scroll_pixel_based_preserve_x)
1878 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
1879 (window_scroll_pixel_based, window_scroll_line_based):
1880 Use them to preserve column positions.
1881 (syms_of_window): Initialize them.
1882
1883 * indent.c (Fvertical_motion): Extend first arg to allow passing an
1884 (HPOS . VPOS) pair.
1885
1886 * dispextern.h (move_it_in_display_line): Declare.
1887
1888 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
1889
1890 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
1891 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
1892 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
1893
1894 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
1895
1896 * window.c (Fset_window_parameter): Doc fix.
1897 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
1898
1899 2008-06-04 Joakim Verona <joakim@verona.se>
1900
1901 * window.h (struct window): Add new member window_parameters.
1902
1903 * window.c (Fwindow_parameters, Fwindow_parameter)
1904 (Fset_window_parameter): New defuns.
1905 (syms_of_window): Defsubr the new defuns.
1906 (make_window): Initialize window_parameters to nil.
1907
1908 2008-06-04 John Paul Wallington <jpw@pobox.com>
1909
1910 * eval.c (Fdefmacro): Doc fix.
1911
1912 2008-06-04 Kenichi Handa <handa@m17n.org>
1913
1914 * coding.c (detect_coding): Fix handling of coding->head_ascii.
1915 Be sure to call setup_coding_system when we find a proper coding system.
1916 (detect_coding_system): Fix handling of coding->head_ascii.
1917
1918 2008-06-03 Andreas Schwab <schwab@suse.de>
1919
1920 * font.c (font_prop_validate_spacing): Fix last change.
1921
1922 2008-06-03 Kenichi Handa <handa@m17n.org>
1923
1924 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
1925 (font_parse_fcname): Fix handling of unknown key.
1926
1927 * xfont.c (xfont_list): Try an alias.
1928
1929 * charset.c (char_charset): Return NULL if the arg charset_list is
1930 specified and C doesn't belong to any of them.
1931
1932 2008-06-02 Chip Coldwell <coldwell@redhat.com>
1933
1934 * font.c (font_pixel_size): Don't take cdr of an integer.
1935
1936 2008-06-02 Jim Meyering <meyering@redhat.com>
1937
1938 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
1939 * alloc.c (xfree): Return right away for a NULL arg.
1940 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
1941 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
1942 * mac.c (create_apple_event_from_event_ref): Likewise.
1943 (create_apple_event_from_drag_ref, cfstring_create_normalized):
1944 Likewise.
1945 * doprnt.c (doprnt1): Likewise.
1946 * frame.c (frame): Likewise.
1947 * keyboard.c (wipe_kboard): Likewise.
1948 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
1949 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
1950 * term.c (tty_default_color_capabilities, maybe_fatal)
1951 (delete_tty): Likewise.
1952 * w16select.c (string): Likewise.
1953 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
1954 * w32bdf.c (w32_free_bdf_font): Likewise.
1955 * w32fns.c (w32_unload_font): Likewise.
1956 * w32font.c (w32font_close): Likewise.
1957 * window.c (size_window): Likewise.
1958 * xselect.c (receive_incremental_selection): Likewise.
1959 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
1960 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
1961 * w32.c (stat): Likewise.
1962
1963 Remove useless if-before-free tests.
1964 * editfns.c (Fset_time_zone_rule): Likewise.
1965 * lread.c (nosuffix): Likewise.
1966 * ralloc.c (get_bloc): Likewise.
1967 * regex.c (reg_free): Likewise.
1968 * xftfont.c (xftfont_open, xftfont_close): Likewise.
1969 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
1970 * xsmfns.c (smc_save_yourself_CB): Likewise.
1971
1972 2008-06-02 Kenichi Handa <handa@m17n.org>
1973
1974 * font.c (font_find_for_lface): Handle float font size.
1975 (font_open_for_lface): Likewise.
1976
1977 * xfaces.c (x_supports_face_attributes_p): Check face->font before
1978 comparing the properties.
1979
1980 2008-06-01 Jason Rumney <jasonr@gnu.org>
1981
1982 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
1983 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
1984 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
1985 Don't add empty script list.
1986 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
1987
1988 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1989
1990 * Makefile.in (dot, dotdot): Remove, update users.
1991 ".." has been used elsewhere in the file for a long time.
1992 (LIBXT_STATIC): Remove conditional based on unused variable.
1993
1994 2008-06-01 Miles Bader <miles@gnu.org>
1995
1996 * xfaces.c (Vface_remapping_alist): New variable.
1997 (syms_of_xfaces): Initialize it.
1998 (enum named_merge_point_kind): New type.
1999 (struct named_merge_point): Add `named_merge_point_kind' field.
2000 (push_named_merge_point): Make cycle detection respect different
2001 named-merge-point kinds.
2002 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
2003 Remove face-name alias resolution.
2004 (lface_from_face_name): New definition using
2005 `lface_from_face_name_no_resolve'.
2006 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
2007 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
2008 (get_lface_attributes): New definition that layers face-remapping on
2009 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
2010 (lookup_basic_face): New function.
2011 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
2012 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
2013 `get_lface_attributes'.
2014 (face_at_buffer_position): Use `lookup_basic_face' to lookup
2015 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
2016 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
2017
2018 * xdisp.c (init_iterator): Pass base_face_id through
2019 `lookup_basic_face' when we actually use it as a face-id.
2020 (handle_single_display_prop): Use `lookup_basic_face' to lookup
2021 DEFAULT_FACE_ID.
2022
2023 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
2024 lookup the initial face-id.
2025
2026 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
2027
2028 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
2029
2030 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
2031 (Fremove_text_properties): Fix typos in docstrings.
2032
2033 2008-05-31 Kenichi Handa <handa@m17n.org>
2034
2035 * font.c (font_list_entities): Fix the car part of data to be
2036 stored in the cache.
2037
2038 * ftfont.c (ftfont_font_format): Don't use strcasestr.
2039
2040 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2041
2042 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
2043 Add a `test' argument so another predicate than `equal' can be used.
2044 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
2045 (map_char_table): Remove unused vars `c' and `i'.
2046 * lisp.h (Foptimize_char_table): Adjust declaration.
2047 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
2048
2049 2008-05-30 Kenichi Handa <handa@m17n.org>
2050
2051 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
2052 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
2053 defined.
2054
2055 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2056
2057 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2058 (Fmake_variable_frame_local): Disallow mixing buffer-local and
2059 frame-local settings for the same variable.
2060
2061 2008-05-30 Kenichi Handa <handa@m17n.org>
2062
2063 * fontset.c (Ffont_info): Move to font.c.
2064 (syms_of_fontset): Delete defsubr of Sfont_info.
2065
2066 * font.c (font_style_to_value, font_score): Delete casting of the
2067 args to xstcasecmp.
2068 (register_font_driver): Increment num_font_drivers only when
2069 registering the driver globally.
2070 (Ffont_info): Move from fontset.c. Handle a font object too.
2071 (syms_of_font): Defsubr Sfont_info.
2072
2073 2008-05-29 Kenichi Handa <handa@m17n.org>
2074
2075 * coding.h (enum define_coding_utf8_arg_index): New enum.
2076 (enum coding_attr_index): Change coding_attr_utf_16_bom to
2077 coding_attr_utf_bom.
2078 (enum utf_bom_type): Rename from utf_16_bom_type.
2079 (struct utf_16_spec): Adjust for the above change.
2080 (struct coding_system): Add utf_8_bom in `spec' union.
2081
2082 * coding.c (CODING_UTF_8_BOM): New macro.
2083 (enum coding_category): Delete coding_category_utf_8, add
2084 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
2085 coding_category_utf_8_sig.
2086 (CATEGORY_MASK_UTF_8): Delete it.
2087 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
2088 (CATEGORY_MASK_UTF_8_SIG): New macros.
2089 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
2090 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
2091 CATEGORY_MASK_UTF_8_SIG.
2092 (CATEGORY_MASK_UTF_8): New macro.
2093 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
2094 (detect_coding_utf_8): Check BOM.
2095 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
2096 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
2097 (encode_coding_utf_16): Likewise.
2098 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
2099 (detect_coding, detect_coding_system): Handle utf-8-auto.
2100 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
2101 (syms_of_coding): Fix setting up of Vcoding_category_table.
2102
2103 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
2104
2105 * process.c (Faccept_process_output): If `millisec' is non-nil,
2106 `seconds' default to 0.
2107 (wait_reading_process_output): Also return non-nil if we read output
2108 from a non-running process.
2109
2110 2008-05-29 Jason Rumney <jasonr@gnu.org>
2111
2112 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
2113 `raster' specified.
2114 (add_font_entity_to_list): Allow non-opentype truetype fonts back
2115 in the uniscribe backend, but disallow any font that has no
2116 unicode subrange support.
2117
2118 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
2119
2120 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
2121 Fix typos in docstrings.
2122
2123 2008-05-29 Kenichi Handa <handa@m17n.org>
2124
2125 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
2126 (Fx_family_fonts): Set frame correctly.
2127
2128 2008-05-28 Jason Rumney <jasonr@gnu.org>
2129
2130 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
2131
2132 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2133
2134 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
2135 calling build_annotations.
2136
2137 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
2138
2139 * coding.c (Fdecode_coding_region, Fencode_coding_region)
2140 (Fencode_coding_string):
2141 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
2142 <latin-extra-code-table>: Fix typos in docstrings.
2143 (syms_of_coding) <coding-system-alist>: Doc fix.
2144 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
2145
2146 2008-05-28 Kenichi Handa <handa@m17n.org>
2147
2148 * fontset.c (Ffont_info): Don't call font_close_object.
2149
2150 * font.c (font_parse_family_registry): Use Ffont_put to validate
2151 foundry and family.
2152 (font_delete_unmatched): Don't check spacing.
2153 (font_list_entities): Add spacing to the spec to list fonts.
2154
2155 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
2156 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
2157
2158 * coding.c (encode_coding_raw_text): Fix previous change.
2159 (encode_coding_object): When the dst_object is a buffer and is
2160 different from src_object, move gap to PT.
2161
2162 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
2163
2164 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
2165
2166 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2167
2168 * coding.c (encode_coding_raw_text): Set coding->produced_char for
2169 all branches. Compute it differently.
2170
2171 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
2172
2173 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
2174
2175 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
2176 into "else if () ... else ...".
2177
2178 2008-05-27 Jason Rumney <jasonr@gnu.org>
2179
2180 * w32font.c (w32font_open_internal): Determine if glyph indices
2181 are likely to work here.
2182
2183 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
2184
2185 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
2186 draw overlap glyphs with appropriate highlighting.
2187
2188 2008-05-27 Kenichi Handa <handa@m17n.org>
2189
2190 * xfont.c (xfont_open): Fix calculation of font->average_width.
2191
2192 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2193
2194 * casefiddle.c (casify_object): Try to guess better whether the
2195 argument is a byte or a char.
2196
2197 2008-05-26 Andreas Schwab <schwab@suse.de>
2198
2199 * xselect.c (x_reply_selection_request): Properly handle format == 32.
2200 Always send multiples of format size.
2201
2202 * xterm.c (x_set_frame_alpha): Fix type mismatch.
2203
2204 2008-05-26 Jason Rumney <jasonr@gnu.org>
2205
2206 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
2207 (compute_metrics): Don't set failure if we just cleared the cache.
2208 (w32_weight_table): Remove unused variable.
2209 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
2210 backwards compatibility.
2211
2212 2008-05-25 Kenichi Handa <handa@m17n.org>
2213
2214 * w32term.c (x_draw_glyph_string):
2215 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
2216
2217 * xfaces.c: Delete unused function prototypes.
2218 (xstrlwr, font_frame): Delete them.
2219 (clear_face_cache): Delete unused variable.
2220
2221 * xftfont.c (xftfont_open): Delete unused variable.
2222 If underline_thickness is not 1, adjust underline_position.
2223
2224 * ftxfont.c (ftxfont_open): Delete unused variable.
2225
2226 * fontset.c (face_for_char): Optimize for the case of no charset
2227 property.
2228
2229 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
2230 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
2231 (otf_open, font_otf_capability, generate_otf_features)
2232 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
2233 Comment out by surrounding "#if 0" and "#endif" for the moment.
2234 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
2235 (syms_of_font): Codes for accessing above commented out.
2236
2237 2008-05-24 Eli Zaretskii <eliz@gnu.org>
2238
2239 * w32proc.c: Include dispextern.h.
2240
2241 * w32.c: Include dispextern.h.
2242
2243 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
2244
2245 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
2246 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
2247 Fix typos in docstrings.
2248
2249 2008-05-23 Jason Rumney <jasonr@gnu.org>
2250
2251 * xsmfns.c: Remove includes that are already included by config.h.
2252
2253 2008-05-23 Kenichi Handa <handa@m17n.org>
2254
2255 * charset.c (Qemacs, charset_emacs): New variables.
2256 (char_charset): Fix for non-Unicode characters.
2257 (syms_of_charset): Define charset_emacs.
2258
2259 * w32term.c (x_draw_glyph_string): Be sure to update
2260 s->underline_thickness and s->underline_position. Be sure to draw
2261 underline within the current line area.
2262
2263 * xterm.c (x_draw_glyph_string): Be sure to update
2264 s->underline_thickness and s->underline_position. Be sure to draw
2265 underline within the current line area.
2266
2267 * fontset.c: Delete unused variables and add casting for char *
2268 throughout the file.
2269 (fontset_font): Try the fallback fonts of the current fontset
2270 before consulting the default fontset.
2271
2272 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
2273
2274 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
2275
2276 2008-05-22 Jason Rumney <jasonr@gnu.org>
2277
2278 * font.c: Don't include strings.h.
2279
2280 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
2281
2282 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
2283 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
2284 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
2285 to call xstrcasecmp.
2286
2287 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
2288
2289 * fontset.c (fs_query_fontset): Use xstrcasecmp.
2290
2291 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
2292
2293 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
2294
2295 2008-05-22 Kenichi Handa <handa@m17n.org>
2296
2297 * puresize.h (BASE_PURESIZE): Increase to 1220000.
2298
2299 * font.c (font_prop_validate_style): Adjust for the format
2300 change of font_style_table.
2301
2302 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
2303 two args.
2304
2305 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
2306 two args.
2307
2308 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
2309
2310 * minibuf.c (keys_of_minibuf): Delete.
2311 * lisp.h (keys_of_minibuf): Delete.
2312 * emacs.c (main): Don't call keys_of_minibuf.
2313
2314 2008-05-22 Kenichi Handa <handa@m17n.org>
2315
2316 * ftfont.c (ftfont_resolve_generic_family): Rename from
2317 ftfont_list_generic_family. Return a single family for each
2318 generic family.
2319 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
2320 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
2321 Call font_add_log.
2322 (ftfont_match): Call font_add_log.
2323
2324 * font.h (Ffont_xlfd_name): EXFUN adjusted.
2325 (FONT_DEBUG): Define it.
2326 (font_add_log): Extern it.
2327 (font_assert): Rename from xassert.
2328
2329 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
2330 (xfont_list_family): Call font_add_log.
2331 (xfont_match): Likewise.
2332 (memq_no_quit): Delete.
2333
2334 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
2335 call of Ffont_xlfd_name.
2336
2337 * xfaces.c (struct table_entry, slant_table, weight_table)
2338 (swidth_table): Move to font.c.
2339
2340 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
2341 xassert are changed to font_assert. Delete many unused variables.
2342 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
2343 New variables.
2344 (struct table_entry): Move from xfaces.c and modified.
2345 (weight_table, slant_table, width_table): Move from xfaces.c and
2346 contents adjusted for the change of struct table_entry.
2347 (font_style_to_value, font_style_symbolic): Adjust for the
2348 format change of font_style_table.
2349 (font_parse_family_registry): Don't overwrite existing foundry and
2350 family of font_spec.
2351 (font_score): Fix calculation of diff for sizes.
2352 (font_sort_entites): Call font_add_log.
2353 (font_delete_unmatched): Return a newly created list.
2354 (font_list_entities): Fix previous change. Call font_add_log.
2355 (font_matching_entity, font_open_entity, font_close_entity):
2356 Call font_add_log.
2357 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
2358 (Finternal_set_font_style_table): Delete.
2359 (BUILD_STYLE_TABLE): New macro.
2360 (build_style_table): New function.
2361 (Vfont_log, font_log_env_checked): New variables.
2362 (font_add_log): New function.
2363 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
2364 Declare Lisp variables "font-weight-table", "font-slant-table",
2365 "font-width-table", and "font-log". Initialize font_style_table.
2366
2367 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
2368
2369 * xterm.c (x_set_frame_alpha): Move declarations before statements.
2370
2371 2008-05-21 Seiji Zenitani <zenitani@mac.com>
2372 Ryo Yoshitake <ryo@shiftmode.net>
2373
2374 * frame.c (Qalpha): Add a new frame parameter `alpha'.
2375 (Vframe_alpha_lower_limit): New variable.
2376 (x_set_alpha): New function.
2377
2378 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
2379
2380 * xfns.c (x-create-frame, Qalpha):
2381 Initialize the frame parameter `alpha'.
2382 * xterm.c (OPAQUE, OPACITY): New.
2383 (x_set_frame_alpha): New function.
2384 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
2385
2386 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
2387 * w32fns.c (w32_frame_parm_handlers): Likewise.
2388
2389 2008-05-20 Jason Rumney <jasonr@gnu.org>
2390
2391 * w32font.c (add_font_entity_to_list): Don't add non-opentype
2392 truetype fonts to opentype list.
2393
2394 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
2395
2396 * fontset.c (Ffontset_info): Doc fix.
2397 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
2398 <ignore-relative-composition>: Fix typos in docstrings.
2399
2400 * font.c (syms-of-font) <font-encoding-alist>:
2401 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
2402 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
2403 (Ffont_otf_alternates): Doc fixes.
2404
2405 2008-05-20 Kenichi Handa <handa@m17n.org>
2406
2407 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
2408 font.h through out the file.
2409 (FONT_DRIVERS): Rename from FONTOBJ.
2410 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
2411 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
2412
2413 * emacs.c (main): Call syms_of_font unconditionally.
2414
2415 * font.h (find_font_encoding): Extern it.
2416
2417 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
2418 fontset.c.
2419 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
2420 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
2421 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
2422 only when HAVE_WINDOW_SYSTEM is defined.
2423 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
2424 when HAVE_WINDOW_SYSTEM is defined.
2425
2426 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
2427 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
2428
2429 * xfaces.c: Include font.h unconditionally.
2430 (merge_face_ref, merge_face_vectors)
2431 (Finternal_set_lisp_face_attribute): Cancel the previous change.
2432
2433 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
2434
2435 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
2436 indirect_variable.
2437 * eval.c (lisp_indirect_variable): New fun.
2438 (Fuser_variable_p): Use it.
2439
2440 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2441
2442 * lisp.h (indirect_variable):
2443 * data.c (indirect_variable, let_shadows_buffer_binding_p):
2444 Use Lisp_Symbol pointers rather than Lisp_Object.
2445 Adjust callers.
2446 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
2447 To this end, change calling-convention.
2448
2449 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
2450 if some non-hidden buffers are selected by string&pred.
2451
2452 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
2453
2454 * process.c (wait_reading_process_output): Always check status
2455 when in batch mode.
2456
2457 2008-05-19 Kenichi Handa <handa@m17n.org>
2458
2459 * font.c (font_list_entities): Fix handling of cache.
2460 (font_matching_entity): Likewise.
2461
2462 * ftfont.c (cs_iso8859_1): Delete.
2463 (ft_face_cache): New variable.
2464 (struct ftfont_info): New member fc_charset_idx.
2465 (ftfont_build_basic_charsets): Delete.
2466 (fc_charset_table): New variable.
2467 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
2468 . FC_CHARSET_IDX) as :font-entity property in the font entity.
2469 Callers changed.
2470 (ftfont_lookup_cache, ftfont_get_charset): New functions.
2471 (ftfont_spec_pattern): New argument fc_charset_idx.
2472 Check registry more rigidly. Change callers.
2473 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
2474 change of :font-entity property of the font.
2475
2476 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
2477 property of the font.
2478
2479 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
2480
2481 * coding.c (Fcoding_system_p): Rename argument to match docstring.
2482 (Funencodable_char_position, Fcheck_coding_systems_region)
2483 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
2484 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
2485 (Ffind_operation_coding_system, Fset_coding_system_priority)
2486 (Fcoding_system_eol_type): Doc fixes.
2487
2488 2008-05-17 Glenn Morris <rgm@gnu.org>
2489
2490 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
2491
2492 2008-05-16 Eli Zaretskii <eliz@gnu.org>
2493
2494 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
2495 and st_gid.
2496
2497 * frame.c (Fdelete_frame): Don't call font_update_drivers if
2498 HAVE_WINDOW_SYSTEM is not defined.
2499
2500 * xfaces.c (merge_face_ref, merge_face_vectors)
2501 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
2502 HAVE_WINDOW_SYSTEM is defined.
2503 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
2504
2505 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
2506
2507 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
2508
2509 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2510
2511 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
2512
2513 2008-05-15 Kenichi Handa <handa@m17n.org>
2514
2515 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
2516 preference.
2517
2518 2008-05-15 Glenn Morris <rgm@gnu.org>
2519
2520 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
2521
2522 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
2523
2524 * fns.c (init_fns): Don't initialize weak_hash_tables here.
2525 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
2526
2527 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
2528
2529 2008-05-15 Kenichi Handa <handa@m17n.org>
2530
2531 * ftfont.c (ftfont_list): Downcase family name to check generic
2532 families.
2533
2534 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
2535 font-spec for QCfont value.
2536
2537 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
2538 buffer. Check the return value of it.
2539
2540 2008-05-14 Jason Rumney <jasonr@gnu.org>
2541
2542 * w32term.c (w32_get_glyph_overhangs): Remove.
2543 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
2544
2545 2008-05-14 Kenichi Handa <handa@m17n.org>
2546
2547 * font.c (font_prop_validate): Make nil a valid value.
2548 (font_clear_cache): Check if the cached vector of entities is nil
2549 or not.
2550
2551 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2552
2553 * emacs.c (main_thread): Conditionalize on
2554 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2555 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
2556
2557 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
2558 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
2559 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
2560
2561 2008-05-14 Kenichi Handa <handa@m17n.org>
2562
2563 * coding.c (detect_coding_iso_2022): Ignore a coding category that
2564 has no corresponding coding system.
2565
2566 2008-05-14 Jason Rumney <jasonr@gnu.org>
2567
2568 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
2569
2570 * w32font.h (w32font_open_internal): Update declaration.
2571
2572 * w32font.c (w32font_open_internal): Change last argument from
2573 w32font_info struct to font object. Fill in font object from
2574 font_entity. Get Outline metrics if possible. Use them to
2575 calculate underline position and thickness. Use xlfd name as name
2576 property. Don't set codepage.
2577 (w32font_open): Pass font_object to w32font_open_internal. Don't
2578 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
2579 (w32font_draw): Use s->font.
2580 (clear_cached_metrics): Don't clear non-existent blocks.
2581
2582 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
2583 font was not found.
2584 (x_draw_glyph_string): Use underline position and thickness from font.
2585
2586 * w32uniscribe.c (uniscribe_open): Pass font_object to
2587 w32font_open_internal.
2588
2589 2008-05-14 Kenichi Handa <handa@m17n.org>
2590
2591 These changes are to delete all legacy font-handling codes, and
2592 make Emacs use only font-backends.
2593
2594 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
2595 (frame.o, image.o, print.o): Depend on $(FONTSRC).
2596
2597 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
2598
2599 * charset.h (Vcharset_non_preferred_head)
2600 (Vcurrent_iso639_language): Extern them.
2601
2602 * charset.c (Vcharset_non_preferred_head): New variable.
2603 (Vcurrent_iso639_language): New variable.
2604 (syms_of_charset): Declare it as a Lisp variable.
2605 (char_charset): Don't check non preferred charsets. As a last
2606 resort, return charset_unicode.
2607 (Fset_charset_priority): Update Vcharset_non_preferred_head.
2608
2609 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
2610 conditionals. Don't check enable_font_backend. Delete all codes
2611 used only when USE_FONT_BACKEND is not defined.
2612
2613 * dispextern.h (struct glyph_string): Change type of `font' to
2614 `struct font *'.
2615 (struct glyph_string): New member underline_position and
2616 underline_thickness.
2617 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
2618 (struct face): Change type of `font' to `struct font *'. Remove
2619 members `font_name', `font_info_id'.
2620 (per_char_metric, encode_char): Delete externs.
2621 (calc_pixel_width_or_height): Adjust the prototype.
2622
2623 * emacs.c (enable_font_backend): Delete extern.
2624 (main): Don't set enable_font_backend. Don't check the command
2625 line argument "-disable-font-backend".
2626
2627 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
2628 (enum font_property_index): New members FONT_DPI_INDEX,
2629 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
2630 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
2631 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
2632 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
2633 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
2634 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
2635 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
2636 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
2637 (struct font_spec, struct font_entity): New structs.
2638 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
2639 (struct font): Many members from old "struct font_info" moved to
2640 here. Members font and entity deleted.
2641 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
2642 the new font-related objects.
2643 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
2644 (CHECK_FONT_GET_OBJECT): Likewise.
2645 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
2646 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
2647 (struct font_driver): New members case_sensitive anc check. Type
2648 of the member list and open changed.
2649 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
2650 (font_symbolic_width, font_find_object, font_get_spec)
2651 (font_set_lface_from_name): Delete extern.
2652 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
2653
2654 * font.c: Include <strings.h>.
2655 (enable_font_backend): Delete it.
2656 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
2657 (CHECK_VALIDATE_FONT_SPEC): Delete it.
2658 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
2659 (null_string): Delete it.
2660 (null_vector): Make it static.
2661 (font_family_alist): Delete it.
2662 (Qnormal): Extern it.
2663 (QCextra, QClanguage): Delete it.
2664 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
2665 (font_make_spec, font_make_entity, font_make_object)
2666 (font_intern_prop): Renamed from intern_downcase. Don't downcase
2667 the string. Callers changed.
2668 (font_pixel_size): Adjusted for the format change of font-related
2669 objects.
2670 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
2671 (font_style_to_value, font_style_symbolic): New function.
2672 (build_font_family_alist): Delete it.
2673 (font_registry_charsets): Use Fassoc_string instead of
2674 assq_no_quit.
2675 (font_prop_validate_symbol): Don't return null_string.
2676 (font_prop_validate_style): Adjusted for the change of
2677 style-related values in a font vector.
2678 (font_property_table): Delete entries for QClanguage and
2679 QCantialias, add entries for QCavgwidth.
2680 (get_font_prop_index): Delete the 2nd argument FROM.
2681 (font_prop_validate): Arguments changed.
2682 (font_put_extra): Adjusted for the change of font-related objects.
2683 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
2684 (font_parse_fcname, font_unparse_fcname)
2685 (font_prepare_composition): Likewise.
2686 (font_parse_family_registry): Renamed from font_merge_old_spec.
2687 (otf_open): Delete the 1st arg entity.
2688 (font_otf_capability): Adjusted for the above change.
2689 (font_score): New arg alternate_families. Adjusted for the change
2690 of font-related objects.
2691 (font_sort_entites): New arg best_only.
2692 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
2693 Delete them.
2694 (font_match_p): Check alternate families.
2695 (font_find_object): Delete it.
2696 (font_check_object): New function.
2697 (font_clear_cache): Adjusted for the change of font-related objects.
2698 (font_delete_unmatched): New arg.
2699 (font_list_entities): Call font_driver->list with a spec that
2700 doesn't specify style-related properties.
2701 (font_matching_entity): Arguments changed. Caller changed.
2702 (font_open_entity): Adjusted for the change of font-related objects.
2703 (font_close_object, font_has_char, font_encode_char)
2704 (font_get_name, font_get_spec): Likewise.
2705 (font_spec_from_name, font_clear_prop, font_update_lface):
2706 New functions.
2707 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
2708 (font_prepare_for_face, font_done_for_face, font_open_by_name)
2709 (font_at): Adjusted for the change of font-related objects.
2710 (font_range): New function.
2711 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
2712 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
2713 (Fcopy_font_spec, Fmerge_font_spec): New function.
2714 (Ffont_family_list): Renamed from list-families.
2715 (Finternal_set_font_style_table): Arguments changed.
2716 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
2717 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
2718 change of font-related objects.
2719 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
2720
2721 * fontset.h (struct font_info): Delete it. Most members go to
2722 struct font.
2723 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
2724 (enum FONT_SPEC_INDEX): Delete it.
2725 (font_info, list_fonts_func, load_font_func, query_font_func)
2726 (set_frame_fontset_func, find_ccl_program_func)
2727 (get_font_repertory_func, new_fontset_from_font_name): Delete
2728 externs.
2729 (fontset_from_font_name): Extern it.
2730 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
2731 (FONT_INFO_FROM_FACE): Deleted.
2732 (face_for_font): Adjust prototype.
2733
2734 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
2735 conditionals. Don't check enable_font_backend. Delete all codes
2736 used only when USE_FONT_BACKEND is not defined.
2737 (get_font_info_func, list_font_func, load_font_func)
2738 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
2739 (get_font_repertory_func): Delete them.
2740 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
2741 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
2742 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
2743 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
2744 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
2745 (fontset_compare_rfontdef): New function.
2746 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
2747 ront-defs by qsort. Adjusted for the change of font-group vector.
2748 (load_font_get_repertory): Deleted.
2749 (fontset_find_font): Use new macros to ref/set elements of
2750 font-def and rfont-def.
2751 (fontset_font): Fix the timing of remembering that no font for C.
2752 (free_face_fontset): Do nothing if the face has no fontset.
2753 (face_suitable_for_char_p): Use new macros to ref/set elements of
2754 rfont-def.
2755 (face_for_char): Likewise. Call face_for_char with font_object.
2756 (fs_load_font): Delete. Delete #pragma surrounding it.
2757 (fs_query_fontset): Use strcasecmp instead of strcmp.
2758 (generate_ascii_font_name): Adjusted for the format change of
2759 font-spec.
2760 (Fset_fontset_font): Likewise. Use new macros to set elements of
2761 font-def.
2762 (Fnew_fontset): Use font_unparse_xlfd to generate
2763 FONTSET_ASCII (fontset).
2764 (new_fontset_from_font_name): Deleted.
2765 (fontset_from_font): Renamed from new_fontset_from_font. Check if
2766 a fontset is already created for the font. FIx updating of
2767 Vfontset_alias_alist.
2768 (fontset_ascii_font): Deleted.
2769 (Ffont_info): Adjusted for the format change of font-spec.
2770 (Finternal_char_font): Likewise.
2771 (Ffontset_info): Likewise.
2772 (syms_of_fontset): Don't check load_font_func.
2773
2774 * fns.c (internal_equal): Handle PREV_FONT.
2775
2776 * frame.h: Delete USE_FONT_BACKEND conditional.
2777
2778 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
2779 conditionals. Don't check enable_font_backend. Delete all codes
2780 used only when USE_FONT_BACKEND is not defined.
2781 (x_set_font): Call x_new_font, not x_new_fontset2.
2782 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
2783 already set for the frame.
2784
2785 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
2786 a font-entity by font_make_entity. Use font_intern_prop instead
2787 of intern_downcase. Use FONT_SET_STYLE to set a style-related
2788 font property. If a font is scalable, set avgwidth property to 0.
2789 Set font-entity property by font_put_extra.
2790 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
2791 (ffont_driver): Adjusted for the change of struct font_driver.
2792 (ftfont_spec_pattern): New function.
2793 (ftfont_list): Return a list, not vector.
2794 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
2795 (ftfont_list_family): Don't downcase names.
2796 (ftfont_free_entity): Deleted.
2797 (ftfont_open): Return a font-ojbect. Adjusted for the change of
2798 struct font. Get underline_thickness and underline_position from
2799 font property. Don't update dpyinfo->smallest_font_height and
2800 dpyinfo->smallest_char_width.
2801 (ftfont_close): Don't free `struct font'.
2802 (ftfont_has_char): Adjusted for the format change of font-entity.
2803 (ftfont_encode_char, ftfont_text_extents): Likewise.
2804
2805 * ftxfont.c (ftxfont_list): Return a list, not vector.
2806 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
2807 struct font. Get underline_thickness and underline_position from
2808 font property. Don't update dpyinfo->smallest_font_height and
2809 dpyinfo->smallest_char_width.
2810 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
2811 (ftxfont_draw): Adjusted for the change of struct font.
2812
2813 * image.c (image_ascent): Don't include "charset.h". Include
2814 "character.h" and "font.h".
2815
2816 * lisp.h (enum pvec_type): New member PREV_FONT.
2817 (Fassoc_string): EXFUN it.
2818
2819 * print.c: Include font.h.
2820 (print_object): Handle font-related objects.
2821
2822 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
2823 conditionals. Don't check enable_font_backend. Delete all codes
2824 used only when USE_FONT_BACKEND is not defined.
2825 (handle_auto_composed_prop): Do nothing if it->f is not on a
2826 window system. Check how many following characters can be
2827 displayed by the same font.
2828 (calc_pixel_width_or_height): Type of the 4th arg is changed to
2829 'struct font *'.
2830 (get_char_face_and_encoding): Assign the whole encoding task to
2831 the `encode-char' method of a font driver.
2832 (fill_composite_glyph_string): Adjusted for the change of `struct
2833 face' and `struct glyph_string'.
2834 (fill_glyph_string): Likewise.
2835 (get_per_char_metric): Arguments changed.
2836 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
2837 and `struct glyph_string'.
2838 (produce_stretch_glyph, calc_line_height_property)
2839 (x_produce_glyphs): Likewise.
2840
2841 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
2842 conditionals. Don't check enable_font_backend. Delete all codes
2843 used only when USE_FONT_BACKEND is not defined. Use
2844 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
2845 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
2846 (Qp): Extern them.
2847 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
2848 Deleted.
2849 (struct font_name): Deleted.
2850 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
2851 (compare_fonts_by_sort_order): New function.
2852 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
2853 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
2854 Deleted.
2855 (Fx_family_fonts): Use font_list_entities, and sort fonts by
2856 compare_fonts_by_sort_order.
2857 (Fx_font_family_list): Call Ffont_family_list.
2858 (face_numeric_value, face_numeric_weight, face_numeric_slant)
2859 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
2860 (face_symbolic_slant, face_symbolic_swidth)
2861 (split_font_name_into_vector, build_font_name_from_vector)
2862 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
2863 (font_rescale_ratio, split_font_name, build_font_name)
2864 (free_font_names, sort_fonts, x_face_list_fonts)
2865 (face_font_available_p, sorted_font_list, cmp_font_names)
2866 (font_list_1, concat_font_list, font_list, remove_duplicates):
2867 Deleted.
2868 (Fx_list_fonts): Use Ffont_list.
2869 (LFACE_AVGWIDTH): Deleted.
2870 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
2871 by FONTP.
2872 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2873 (set_lface_from_font_name): Delete it.
2874 (set_lface_from_font): Renamed from
2875 set_lface_from_font_and_fontset. Caller changed. Don't set
2876 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
2877 for face.
2878 (merge_face_vectors): Copy font-spec if necessary.
2879 Clear properties of the font-spec if necessary.
2880 (merge_face_ref): Clear properties of the font-spec if necessary.
2881 (Finternal_set_lisp_face_attribute): Likewise.
2882 (set_font_frame_param): Use font_load_for_lface to load a
2883 font-object, and call Fmodify_frame_parameters with it.
2884 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
2885 font name by Ffont_xlfd_name.
2886 (Finternal_lisp_face_attribute_values): Don't check QCweight,
2887 QCslant, and QCwidth.
2888 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
2889 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
2890 Compare fonts by EQ.
2891 (lookup_non_ascii_face): Deleted.
2892 (face_for_font): The 2nd argument changed.
2893 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
2894 Check atomic font properties by case insensitive.
2895 (realize_non_ascii_face): Set face->overstrike correctly.
2896 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
2897 (dump_realized_face): Get font name from
2898 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
2899
2900 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
2901 conditionals. Don't check enable_font_backend. Delete all codes
2902 used only when USE_FONT_BACKEND is not defined.
2903 (xic_create_xfontset): Original code deleted and renamed from
2904 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
2905 (x_make_gc): Don't set GCFont in GCs.
2906 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
2907 opened by "fixed".
2908 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
2909 find_ccl_program_func, query_font_func, set_frame_fontset_func,
2910 get_font_repertory_func.
2911
2912 * xfont.c: Include <stdlib.h> and "ccl.h".
2913 (struct xfont_info): New structure.
2914 (xfont_query_font): Deleted.
2915 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
2916 moved from xterm.c.
2917 (xfont_driver): Adjusted for the change of struct font_driver.
2918 (compare_font_names): New function.
2919 (xfont_list_pattern): Sort font names case insensitively. Make
2920 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
2921 (xfont_list): Return a list, not vector.
2922 (xfont_match): If the font doesn't have QCname property, generate
2923 a name from the other font properties.
2924 (xfont_open): Return a font-ojbect. Adjusted for the change of
2925 struct font. Get underline_thickness and underline_position from
2926 font property. Don't update dpyinfo->smallest_font_height and
2927 dpyinfo->smallest_char_width.
2928 (xfont_close): Don't free struct font.
2929 (xfont_prepare_face): Adjusted for the change of struct font.
2930 (xfont_done_face): Deleted.
2931 (xfont_has_char): Adjusted for the change of struct font.
2932 (xfont_encode_char, xfont_draw): Likewise.
2933 (xfont_check): New function.
2934
2935 * xftfont.c (xftfont_list): Adjusted for the change of `list'
2936 callback function.
2937 (xftfont_match): Adjusted for the fontmat change of font-entity.
2938 (xftfont_open): Adjusted for the format change of font-entity and
2939 font-object. Adjusted for the change of struct font. Return a
2940 font-object. Don't update dpyinfo->smallest_font_height and
2941 dpyinfo->smallest_char_width.
2942 (xftfont_close): Block input while calling XftFontClose.
2943 (xftfont_prepare_face): Don't block input while calling
2944 xftfont_get_colors. Adjusted for the change of struct font.
2945 (xftfont_shape): Return value of error case fixed.
2946
2947 * xrdb.c (x_load_resources): Don't setup a fontset resource.
2948
2949 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
2950 conditionals.
2951 (FONT_WIDTH): Return (f)->max_width.
2952 (struct x_display_info): Delete member `font'.
2953 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
2954 (x_find_ccl_program, x_get_font_repertory): Delete externs.
2955 (struct x_output): Change type of `font' to `struct font *'.
2956
2957 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
2958 conditionals. Don't check enable_font_backend. Delete all codes
2959 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
2960 (x_per_char_metric, x_encode_char): Deleted.
2961 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
2962 (x_compute_glyph_string_overhangs): Adjusted for the change of
2963 `struct face'.
2964 (x_draw_glyph_string_foreground)
2965 (x_draw_composite_glyph_string_foreground): Likewise.
2966 (x_draw_glyph_string): Likewise. Use font->underline_position and
2967 font->underline_thickness.
2968 (x_new_font): Renamed from x_new_fontset2.
2969 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
2970 (x_check_font): Call `check' method of a font driver.
2971 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
2972 (x_query_font, x_get_font_repertory): Deleted.
2973 (x_find_ccl_program): Renamed and moved to xfont.c.
2974 (x_redisplay_interface): Adjusted for the change of `struct
2975 redisplay_interface'.
2976
2977 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
2978 conditionals. Don't check enable_font_backend. Delete all codes
2979 used only when USE_FONT_BACKEND is not defined. Surround non-used
2980 code by "#ifdef OLD_FONT" and "endif".
2981 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
2982
2983 * w32font.h (struct w32font_info): New member.
2984 (FONT_COMPAT): New macro.
2985 (w32font_open_internal): Prototype adjusted.
2986
2987 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
2988 OLD_FONT" and "endif".
2989
2990 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
2991 conditionals. Don't check enable_font_backend. Delete all codes
2992 used only when USE_FONT_BACKEND is not defined.
2993 (w32font_open): Return a font-object. Make a font-object by
2994 font_make_object. Adjusted for the change of struct w32font_info.
2995 (w32font_close): Don't free struct font. Adjusted for the change
2996 of struct w32font_info.
2997 (w32font_encode_char, w32font_text_extents, w32font_draw):
2998 Adjusted for the change of struct w32font_info.
2999 (w32font_draw): Likewise.
3000 (w32font_list_internal): Return a list, not vector.
3001 (w32font_open_internal): Change the 4th arg to font-object.
3002 Adjusted for the change of struct w32font_info and font-object format.
3003 (add_font_name_to_list): Don't downcase names.
3004 (w32_enumfont_pattern_entity): Make a font-entity by
3005 font_make_entity. Adjusted for the format change of font-entity.
3006 Use FONT_SET_STYLE to set a style-related font property. If a
3007 font is scalable, set avgwidth property to 0. Set font-entity
3008 property by font_put_extra.
3009 (font_matches_spec): Adjusted for the format change of font-entity.
3010 (w32_weight_table, w32_decode_weight): New variables.
3011 (w32_encode_weight): New function.
3012 (fill_in_logfont): Adjusted for the format change of font-spec.
3013 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
3014 weight value.
3015 (w32font_driver): Adjusted for the change of struct font_driver.
3016
3017 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
3018 conditionals. Don't check enable_font_backend. Surround non-used
3019 code by "#ifdef OLD_FONT" and "endif".
3020 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
3021 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
3022
3023 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
3024 conditionals. Don't check enable_font_backend. Delete all codes
3025 used only when USE_FONT_BACKEND is not defined. Surround non-used
3026 code by "#ifdef OLD_FONT" and "endif".
3027
3028 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
3029 (uniscribe_open): Return value changed to font-object.
3030 Adjusted for the format change of font-object.
3031 (uniscribe_otf_capability): Adjusted for the change of struct font.
3032 (add_opentype_font_name_to_list): Don't downcase names.
3033 (uniscribe_font_driver): Adjusted for the change of struct
3034 font_driver.
3035
3036 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
3037
3038 * dispnew.c (update_frame_1): Check if tty output is still valid
3039 before flushing it.
3040
3041 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
3042
3043 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
3044 to Gtk+ menus.
3045
3046 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3047
3048 * dired.c (file_name_completion): Tweak the code so as to always do it
3049 in a single pass. Tighten the scope of some variables.
3050
3051 * dired.c (Qdefault_directory): New var.
3052 (file_name_completion): Use it instead of Fexpand_file_name.
3053 (syms_of_dired): Initialize it.
3054
3055 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
3056
3057 * fileio.c (double_dollars): Remove dead code.
3058
3059 2008-05-10 Eli Zaretskii <eliz@gnu.org>
3060
3061 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
3062 Mention w32-get-true-file-attributes in doc string.
3063
3064 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3065
3066 2008-05-09 Glenn Morris <rgm@gnu.org>
3067
3068 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
3069 2008-04-23.
3070
3071 2008-05-09 Eli Zaretskii <eliz@gnu.org>
3072
3073 Support for reporting owner and group of each file on MS-Windows:
3074 * dired.c (stat_uname, stat_gname): New functions, with special
3075 implementation for w32.
3076 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
3077
3078 * w32.c: Rename the_passwd_* to dflt_passwd_*.
3079 (dflt_group_name): New static variable.
3080 (dflt_group): Rename from the_group.
3081 (init_user_info): Init dflt_group fields. Get user's group name
3082 from LookupAccountSid.
3083 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
3084 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
3085 New initialization states.
3086 (globals_of_w32): Initialize them to zero. Initialize the default
3087 group name to "None".
3088 (GetFileSecurity_Name): New global var, the name of the function
3089 to call for GetFileSecurity.
3090 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
3091 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
3092 (get_file_security, get_security_descriptor_owner)
3093 (get_security_descriptor_group, is_valid_sid)
3094 (get_file_security_desc, get_rid, get_name_and_id)
3095 (get_file_owner_and_group): New functions.
3096 (stat): Use get_file_security_desc and get_file_owner_and_group to
3097 report the owner and primary group of each file. Don't ignore the
3098 high 32 bits of file's size, now that st_size is 64-bit wide.
3099 Fix test when to get true file attributes.
3100 (init_user_info): Use get_rid instead of equivalent inline code.
3101 (fstat): Don't ignore the high 32 bits of file's size.
3102
3103 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
3104
3105 * image.c (png_load): Use correct bit-depth for setting background
3106 color.
3107
3108 2008-05-08 Eli Zaretskii <eliz@gnu.org>
3109
3110 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
3111 epa-hook.elc.
3112
3113 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
3114
3115 * font.c (Ffont_match_p): Don't use `iff' in docstring.
3116
3117 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3118
3119 * macfns.c (Fx_create_frame): Make a copy of frame parameters
3120 because the original parameters are in pure storage now.
3121 (mac_window): Remove unused params. Update callers.
3122
3123 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3124
3125 * lread.c (substitute_object_recurse): Use lower-level primitives.
3126 Don't signal errors when traversing sub-char-tables.
3127 Don't loop over all the possible characters when traversing char-tables.
3128
3129 * print.c (print_preprocess): Add sub-char-tables to the print-table,
3130 just like we do in print.c.
3131
3132 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3133
3134 * minibuf.c (Ftry_completion): Remove code left over from when we used
3135 scmp instead of Fcompare_strings.
3136
3137 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
3138
3139 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
3140
3141 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3142
3143 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
3144 Create bitmap context in native byte order.
3145
3146 * macterm.c (XDrawLine)
3147 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
3148 context in native byte order.
3149
3150 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3151
3152 * config.in: Regenerate.
3153
3154 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
3155 New definitions for Image I/O support.
3156 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3157 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
3158 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3159 (mac_data_provider_release_data, image_load_image_io)
3160 [USE_MAC_IMAGE_IO]: New functions.
3161 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
3162 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
3163 (init_image_func_pointer) [MAC_OSX]: Remove function.
3164 (image_load_quartz2d) [MAC_OSX]: Check availability of
3165 CGImageCreateWithPNGDataProvider at compile time.
3166 Use lowercase `false' for boolean constant.
3167 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
3168 Use image_load_image_io.
3169 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
3170 Don't check MyCGImageCreateWithPNGDataProvider.
3171 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
3172 Don't call init_image_func_pointer.
3173
3174 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
3175
3176 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
3177 Make variable non-static.
3178 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3179 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3180
3181 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
3182 (RED_FROM_ULONG): Mask off higher bits.
3183 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
3184
3185 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
3186 Include AvailabilityMacros.h.
3187 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
3188 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
3189
3190 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
3191
3192 * chartab.c (Fset_char_table_range): If range is t, really set all
3193 chars to that value.
3194
3195 2008-05-03 Eli Zaretskii <eliz@gnu.org>
3196
3197 * dired.c (Ffile_attributes): Don't allow the device number become
3198 negative.
3199
3200 2008-05-02 Daiki Ueno <ueno@unixuser.org>
3201
3202 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
3203
3204 2008-05-02 Juri Linkov <juri@jurta.org>
3205
3206 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
3207 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
3208 DEFAULT argument as a list of default values in docstrings.
3209
3210 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
3211
3212 * puresize.h (BASE_PURESIZE): Increase to 1210000.
3213
3214 2008-05-01 Martin Rudalics <rudalics@gmx.at>
3215
3216 * dispnew.c (change_frame_size_1): Preserve small windows when
3217 shrinking frames by calling set_window_height|width with third
3218 arg 2.
3219
3220 * window.h (struct window): Replace field too_small_ok by field
3221 resize_proportionally.
3222
3223 * window.c (make_window): Initialize resize_proportionally.
3224 (enlarge_window): Temporarily set resize_proportionally to make
3225 sure that shrink_windows does scale the window proportionally.
3226 (shrink_windows): When window has resize_proportionally set try
3227 to shrink it proportionally by stealing from other windows.
3228 (struct saved_window, Fset_window_configuration)
3229 (compare_window_configurations): Handle resize_proportionally.
3230 (WINDOW_TOTAL_SIZE): New macro.
3231 (window_min_size, shrink_windows, size_window): Use it.
3232 (check_min_window_sizes): Remove. Invalid values of
3233 window-min-height|width are handled by window_min_size_2 now.
3234 (size_window, Fsplit_window, enlarge_window)
3235 (adjust_window_trailing_edge, grow_mini_window): Don't call
3236 check_min_window_sizes.
3237 (window_min_size_2, window_min_size_1, window_min_size):
3238 New argument safe_p for retrieving "safe" minimum sizes.
3239 (Fdisplay_buffer, Fsplit_window, enlarge_window)
3240 (adjust_window_trailing_edge, grow_mini_window):
3241 Adjust arguments of window_min_size... functions.
3242 (shrink_windows): Argument min_size removed. New argument
3243 safe_p allows shrinking windows to their safe minimum sizes.
3244 Calculate minimum size and decide whether a window shall be
3245 deleted for each window individually.
3246 (size_window): When nodelete_p equals 2, tell shrink_windows to
3247 delete windows only if their new minimum size is no more safe.
3248 (shrink_window_lowest_first): Call window_min_size_1 to make
3249 sure to preserve modeline of bottom-most window when resizing
3250 the minibuffer.
3251 (Fset_window_configuration, Fcurrent_window_configuration)
3252 (compare_window_configurations): Do not handle
3253 window-min-height|width any more.
3254 (syms_of_window): Clarify window-min-height|width doc-strings.
3255
3256 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
3257
3258 * dired.c (file_name_completion): Fix up the encoding/decoding issue
3259 some more. Copy some of the code from Ftry_completions.
3260 Remove special case code that dates back to initial revision when the
3261 slash was only added when necessary and that can't trigger nowadays.
3262
3263 2008-04-27 Kenichi Handa <handa@m17n.org>
3264
3265 * font.c (font_prop_validate): Signal `error' instead of `font'.
3266
3267 2008-04-29 Jason Rumney <jasonr@gnu.org>
3268
3269 * w32fns.c (Fw32_battery_status): New defun.
3270 (syms_of_w32fns): Defsubr it.
3271
3272 2008-04-28 Andreas Schwab <schwab@suse.de>
3273
3274 * dired.c (file_name_completion): Fix another mixing of encoded
3275 and decoded names.
3276
3277 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
3278
3279 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
3280
3281 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
3282
3283 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3284
3285 2008-04-27 Andreas Schwab <schwab@suse.de>
3286
3287 * dired.c (file_name_completion): Fix inappropriate mixing of
3288 encoded and decoded names.
3289
3290 * xterm.c (XTread_socket): Fix use of uninitialized variable.
3291
3292 * puresize.h (BASE_PURESIZE): Increase to 1200000.
3293
3294 2008-04-26 Eli Zaretskii <eliz@gnu.org>
3295
3296 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
3297 2008-03-31, it's not needed anymore with `struct stat' definition
3298 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
3299 for the same reasons.
3300
3301 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
3302
3303 * m/sparc.h: Additional redefinitions for GNU/Linux.
3304
3305 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3306
3307 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
3308 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3309 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
3310 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
3311 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3312 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
3313 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3314 Likewise.
3315
3316 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
3317 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
3318 (mac_ax_number_of_characters): Add externs.
3319 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3320 [USE_MAC_TSM]: Likewise.
3321 (mac_handle_text_input_event) [MAC_OSX]:
3322 Handle kEventTextInputOffsetToPos for no active input area case.
3323 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3324 (mac_handle_document_access_event)
3325 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
3326 (install_application_handler) [MAC_OSX]: Register handlers for
3327 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3328 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3329 Register mac_handle_document_access_event.
3330
3331 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
3332 Make functions non-static.
3333
3334 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3335
3336 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
3337 (read_file_name_completion_ignore_case, insert_default_directory)
3338 (Qdefault_directory): Move to minibuffer.el.
3339 (Fread_file_name): Call the new `read-file-name' instead.
3340
3341 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3342
3343 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
3344 Make function non-static.
3345 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
3346 Remove function.
3347 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3348 Move to mactoolbox.c.
3349 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
3350
3351 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
3352 (mac_rect_make): New macro.
3353
3354 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
3355 instead of float.
3356 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3357 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
3358 (XSetBackground) [USE_CG_DRAWING]: Likewise.
3359 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
3360 CGRectMake.
3361 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3362 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
3363 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
3364 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3365 instead of WindowRef in argument type.
3366 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
3367 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
3368 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
3369 instead of DISPLAY. All uses changed.
3370 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
3371 (x_calc_absolute_position): Simplify so as not to use
3372 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
3373
3374 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3375 instead of WindowRef in argument type.
3376 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
3377 [TARGET_API_MAC_CARBON]: Remove externs.
3378 (create_apple_event, mac_event_parameters_to_lisp)
3379 [TARGET_API_MAC_CARBON]: Add externs.
3380
3381 * mactoolbox.c (Vmac_ts_script_language_on_focus)
3382 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
3383 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
3384 is clicked.
3385 (x_activate_menubar): Remove extern for saved_menu_event_location.
3386 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3387 Move from mac.c.
3388
3389 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3390
3391 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
3392 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
3393
3394 2008-04-23 Jason Rumney <jasonr@gnu.org>
3395
3396 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
3397 attributes only for local files.
3398
3399 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
3400 default to Qlocal.
3401
3402 2008-04-22 Juri Linkov <juri@jurta.org>
3403
3404 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
3405 read-buffer-to-switch instead of using the letter "B".
3406
3407 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3408
3409 * fileio.c (Qdefault_directory): New variable.
3410 (Fread_file_name): Use it to pass `dir' to the completion functions.
3411
3412 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
3413
3414 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
3415
3416 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
3417
3418 * keyboard.c (Vpre_help_message): Remove.
3419 (show_help_echo): Remove default C code.
3420
3421 * dired.c (directory_files_internal, file_name_completion):
3422 Only call ENCODE_FILE if the string is indeed decoded.
3423
3424 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3425
3426 * Makefile.in (TOOLKIT_DEFINES): Remove.
3427 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
3428
3429 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3430
3431 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
3432 (mactoolbox.o): New target.
3433
3434 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
3435 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
3436
3437 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
3438 Use mac_set_frame_window_background instead of XSetWindowBackground.
3439 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
3440 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
3441 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
3442 instead of SetWindowTitleWithCFString.
3443 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
3444 Move function to mactoolbox.c.
3445 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
3446 Use mac_set_window_modified instead of SetWindowModified.
3447 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
3448 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
3449 (Fx_focus_frame): Use mac_front_non_floating_window instead of
3450 FrontNonFloatingWindow. Use mac_activate_window instead of
3451 ActivateWindow. Use mac_active_non_floating_window instead of
3452 ActiveNonFloatingWindow.
3453 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
3454 Use mac_show_hourglass and mac_hide_hourglass.
3455 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
3456 instead of GetGlobalMouse.
3457 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
3458 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
3459 Use mac_bring_window_to_front instead of BringToFront.
3460 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
3461 mactoolbox.c.
3462 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
3463 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
3464 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
3465 mactoolbox.c.
3466
3467 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
3468 (XtPointer): Move typedef from macmenu.c.
3469 (enum button_type): Move enum from macmenu.c.
3470 (widget_value): Move typedef from macmenu.c.
3471 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
3472 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3473 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3474 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3475 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3476 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3477 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3478 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
3479 (Selection): Move typedef from macselect.c.
3480 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
3481 macterm.c.
3482 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
3483 (mac_is_window_collapsed, mac_bring_window_to_front)
3484 (mac_send_window_behind, mac_hide_window, mac_show_window)
3485 (mac_collapse_window, mac_front_non_floating_window)
3486 (mac_active_non_floating_window, mac_activate_window)
3487 (mac_move_window_structure, mac_move_window, mac_size_window)
3488 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
3489
3490 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
3491 (enum mac_menu_kind): Move enum to mactoolbox.c.
3492 (min_menu_id): Move variable to mactoolbox.c.
3493 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
3494 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
3495 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
3496 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
3497 [TARGET_API_MAC_CARBON]: Likewise.
3498 (XtPointer): Move typedef to macgui.h.
3499 (enum button_type): Move enum to macgui.h.
3500 (widget_value): Move typedef to macgui.h.
3501 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3502 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3503 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3504 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3505 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3506 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3507 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
3508 (popup_activated_flag): Make variable non-static.
3509 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
3510 (add_menu_item, fill_menu, dispose_menus):
3511 Move functions to mactoolbox.c.
3512 (restore_show_help_function, menu_target_item_handler)
3513 (install_menu_target_item_handler, mac_handle_dialog_event)
3514 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
3515 [TARGET_API_MAC_CARBON]: Likewise.
3516 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
3517 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3518 (find_and_call_menu_selection, name_is_separator): Make function
3519 non-static.
3520 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
3521 to mactoolbox.c.
3522 (set_frame_menubar): Don't call install_menu_quit_handler.
3523 (menu_item_selection): New variable.
3524 (mac_menu_show): Use create_and_show_popup_menu.
3525 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
3526 selection but set variable menu_item_selection. All uses changed.
3527 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
3528 Call install_menu_quit_handler. Move to mactoolbox.c.
3529
3530 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
3531 (Selection): Move typedef to macgui.h.
3532 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
3533 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
3534 Make variables non-static.
3535 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3536 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
3537 Make functions non-static.
3538 (Vmac_service_selection) [MAC_OSX]: Likewise.
3539 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
3540 (mac_valid_selection_target_p, mac_clear_selection)
3541 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3542 (mac_put_selection_value, mac_selection_has_target_p)
3543 (mac_get_selection_value, mac_get_selection_target_list)
3544 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
3545 Move functions to mactoolbox.c.
3546 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
3547 Likewise.
3548 (copy_scrap_flavor_data, mac_handle_service_event)
3549 (install_service_handler) [MAC_OSX]: Likewise.
3550 (syms_of_macselect) <Vmac_dnd_known_types>:
3551 Use mac_dnd_default_known_types.
3552
3553 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
3554 Move to mactoolbox.c.
3555 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
3556 (Fx_selection_owner_p): Add EXFUN.
3557 (install_window_handler, remove_window_handler, XSetWindowBackground):
3558 Remove externs.
3559 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
3560 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
3561 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
3562 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
3563 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
3564 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
3565 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
3566 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
3567 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
3568 (create_and_show_popup_menu, mac_get_selection_from_symbol)
3569 (mac_valid_selection_target_p, mac_clear_selection)
3570 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
3571 (mac_put_selection_value, mac_selection_has_target_p)
3572 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
3573 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
3574 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
3575 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3576 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
3577 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3578 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
3579 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
3580 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
3581
3582 * mactoolbox.c: New file.
3583
3584 2008-04-18 Jason Rumney <jasonr@gnu.org>
3585
3586 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
3587
3588 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3589
3590 * character.c (Fmultibyte_char_to_unibyte):
3591 Return latin1 chars unchanged.
3592
3593 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
3594 relocated if it points to `name'.
3595
3596 2008-04-17 Kenichi Handa <handa@m17n.org>
3597
3598 * data.c (Faset): Allow setting a multibyte character in an
3599 ASCII-only unibyte string.
3600
3601 * lisp.h (STRING_SET_MULTIBYTE): New macro.
3602
3603 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
3604
3605 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
3606 done in config.h.
3607
3608 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
3609
3610 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
3611 (Fchar_direction): Add usage in the docstring.
3612
3613 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
3614
3615 * keyboard.c (read_key_sequence): Remove always-true checks.
3616
3617 2008-04-14 Jason Rumney <jasonr@gnu.org>
3618
3619 * w32font.c (w32font_open_internal): Set max_bounds.descent in
3620 compatibility struct, for better underline positioning.
3621
3622 2008-04-13 David Hansen <david.hansen@gmx.net>
3623
3624 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
3625 string.
3626
3627 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3628
3629 * m/hp800.h (XUINT, XSET): Remove.
3630
3631 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
3632
3633 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
3634 previous change.
3635
3636 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3637
3638 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
3639 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
3640
3641 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3642
3643 * keymap.h (map_keymap_canonical): Declare.
3644 * xmenu.c (single_keymap_panes): Use it.
3645
3646 2008-04-11 Glenn Morris <rgm@gnu.org>
3647
3648 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
3649 set the target's value to that of the alias.
3650
3651 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3652
3653 * term.c (set_tty_color_mode): Left over typo.
3654
3655 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
3656
3657 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
3658 only after check for file name handler functions. Signal, when
3659 native functionality is not supported.
3660 (syms_of_fileio): Declare it unconditionally.
3661
3662 2008-04-10 Jason Rumney <jasonr@gnu.org>
3663
3664 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
3665 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
3666
3667 * w32.c (logon_network_drive): Also logon to remote drives that
3668 are mapped to drive letters.
3669
3670 2008-04-10 Glenn Morris <rgm@gnu.org>
3671
3672 * xdisp.c (truncate-partial-width-windows): Doc fix.
3673
3674 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
3675
3676 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
3677 Move functions to minibuffer.el.
3678 (syms_of_fileio): Don't declare them.
3679
3680 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3681
3682 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
3683 (syms_of_minibuf): Remove its initialization.
3684
3685 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
3686
3687 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
3688
3689 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
3690
3691 2008-04-09 Jason Rumney <jasonr@gnu.org>
3692
3693 * makefile.w32-in (distclean): Delete makefile too.
3694 (maintainer-clean): New target.
3695
3696 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
3697
3698 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
3699 for new font backend and composite cases.
3700
3701 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
3702
3703 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
3704 Most of the code moved to run_timers.
3705 (do_pending_atimers): Call run_timers.
3706 (run_timers): New function.
3707
3708 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
3709 run atimers.
3710
3711 * process.c (wait_reading_process_output): The same as above.
3712
3713 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3714
3715 * minibuf.c (last_exact_completion): Remove variable.
3716 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
3717 (complete_and_exit_1, complete_and_exit_2)
3718 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3719 (Fdisplay_completion_list, display_completion_list_1)
3720 (Fminibuffer_completion_help, Fself_insert_and_exit)
3721 (Fexit_minibuffer, Fminibuffer_message): Move functions to
3722 minibuffer.el.
3723 (syms_of_minibuf): Remove corresponding initializations.
3724
3725 * keyboard.c (Qdeactivate_mark): New var.
3726 (command_loop_1): Use it to call `deactivate-mark'.
3727 (syms_of_keyboard): Initialize it.
3728
3729 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
3730 to another frame.
3731 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
3732 Don't call set_tty_color_mode.
3733 (store_frame_param): Reset previous_frame rather than call
3734 set_tty_color_mode.
3735 * term.c (set_tty_color_mode): Rewrite.
3736 * dispextern.h (set_tty_color_mode): New type.
3737 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
3738
3739 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
3740
3741 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
3742 for generic chars, which do not exist any more in emacs-unicode.
3743
3744 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
3745
3746 * coding.c (detect_coding_emacs_mule)
3747 (Ffind_operation_coding_system): Fix typo.
3748
3749 2008-04-08 Jason Rumney <jasonr@gnu.org>
3750
3751 * w32uniscribe.c (SNAME): Extract only symbol name.
3752
3753 * w32font.h (struct w32_metric_cache): New struct.
3754 (w32font_info): Use it.
3755 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
3756 (CACHE_BLOCKSIZE): New constants.
3757
3758 * w32font.c (Qja, Qko, Qzh): New symbols.
3759 (syms_of_w32font): Initialise them.
3760 (font_matches_spec): Use them to filter by language.
3761 (recompute_cached_metrics): Remove function.
3762 (compute_metrics, clear_cached_metrics): New functions.
3763 (w32font_encode_char): Use them to manage metric cache.
3764 (w32font_text_extents): Cache metrics for all glyphs on demand.
3765 Delay converting glyph indices to WORD until needed.
3766 (w32font_open_internal): Initialize metric cache to empty.
3767 (registry_to_w32_charset): Charset should always be a symbol.
3768 (fill_in_logfont, list_all_matching_fonts): Family should
3769 always be a symbol.
3770
3771 2008-04-06 Jason Rumney <jasonr@gnu.org>
3772
3773 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
3774 Give up if glyph indices not supported. Use uniscribe obtained
3775 ABC widths for individual metrics. Map glyph clusters back to
3776 characters using fClusterStart flag. Return number of glyphs
3777 produced, not chars processed.
3778 (uniscribe_shape): Map char at FROM to current glyph.
3779
3780 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3781
3782 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
3783 Use SetMenuItemHierarchicalMenu.
3784
3785 2008-04-05 Jason Rumney <jasonr@gnu.org>
3786
3787 * image.c (pbm_load): Allow color values up to 65535.
3788 Throw an error if max_color_idx is outside the supported range.
3789 Report an error when image size is invalid.
3790 Read two bytes at a time when raw images have max_color_idx above 255.
3791
3792 2008-04-05 Eli Zaretskii <eliz@gnu.org>
3793
3794 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3795 cFileName a file name that includes `?' characters, use the 8+3
3796 alias in cAlternateFileName instead.
3797
3798 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
3799
3800 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
3801 append "CCL: Quitted" when the CCL program is quitted.
3802 (setup_ccl_program): Initialize ccl->quit_silently to zero.
3803
3804 * ccl.h (struct ccl_program): New member quit_silently.
3805
3806 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
3807
3808 * search.c (compile_pattern_1): Treat non-nil and non-string of
3809 search-spaces-regexp as nil.
3810
3811 * minibuf.c (Fassoc_string): Tweak docstring.
3812
3813 2008-04-05 Eli Zaretskii <eliz@gnu.org>
3814
3815 * dired.c (Ffile_attributes): Support inode numbers wider than 32
3816 bits. Remove ugly WINDOWSNT-specific kludge introduced on
3817 2008-03-14 to force inode be positive.
3818
3819 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
3820 _S_* ones, since we now use our own sys/stat.h.
3821 (stat, fstat): Don't mangle the inode number.
3822 (init_user_info): Don't restrict UID and GID to 0-60000 range.
3823
3824 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
3825
3826 * frame.h (struct frame): Give one more bit to `visible' since we use
3827 values larger than 1 to indicate obscured frames on ttys.
3828
3829 * keymap.c (Qkeymap_canonicalize): New var.
3830 (Fmap_keymap_internal): New fun.
3831 (describe_map): Use keymap-canonicalize.
3832
3833 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
3834 (Fundo_boundary): Set them.
3835 (syms_of_undo): Initialize them.
3836 (record_point): Use them instead of last_point_position*.
3837 (last_undo_buffer): Change type.
3838
3839 2008-04-04 Jason Rumney <jasonr@gnu.org>
3840
3841 * w32font.c (w32font_text_extents): Use font's ascent and descent.
3842 (recompute_cached_metrics): Don't set ascent and descent per char.
3843
3844 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
3845 (uniscribe_check_otf): Add GC protection before consing.
3846 Rearrange loop for counting features.
3847
3848 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3849
3850 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
3851 buffer with byte-size of source buffer.
3852
3853 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
3854
3855 * callint.c (Fcall_interactively): Handle temporary region even
3856 when shift-select-mode is off.
3857
3858 2008-04-03 Jason Rumney <jasonr@gnu.org>
3859
3860 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
3861
3862 2008-04-03 Kenichi Handa <handa@m17n.org>
3863
3864 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
3865 (CATEGORY_MASK_UTF_16): Likewise.
3866 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
3867 binary file.
3868 (detect_coding): Add null-byte detection for a binary file.
3869 (detect_coding_system): Likewise.
3870
3871 2008-04-03 Jason Rumney <jasonr@gnu.org>
3872
3873 * w32uniscribe.c: New file.
3874
3875 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
3876
3877 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
3878
3879 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
3880 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
3881 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
3882 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
3883 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
3884 (Qphonetic): New symbols.
3885 (syms_of_w32font): Initialize them.
3886 (font_supported_scripts): Use them.
3887 (w32font_list_family): List all charsets.
3888 (w32font_text_extents, recompute_cached_metrics): Fix metric
3889 calculations.
3890 (w32_enumfont_pattern_entity): Make full_type a DWORD.
3891 Give opentype fonts their own format.
3892 (font_matches_spec): New arguments backend and logfont.
3893 Handle :otf spec for uniscribe backend.
3894 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
3895 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
3896
3897 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
3898 font backend.
3899 (globals_of_w32fns): Initialize uniscribe font backend.
3900
3901 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
3902 dependencies.
3903 (w32uniscribe.$(O)): New file to build.
3904 (FONT_OBJ): Include w32uniscribe.$(O).
3905 (LIBS): Add uniscribe libraries.
3906
3907 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
3908
3909 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
3910
3911 * callint.c (Vshift_select_mode): New var.
3912 (Finteractive): Document new ^ spec.
3913 (Fcall_interactively): Call handle-shift-selection if the ^ spec
3914 is present.
3915
3916 * keyboard.c (Vthis_command_keys_shift_translated): New var.
3917 (command_loop_1): Avoid running the direct display versions of
3918 forward-char and backward-char if shift-selection may occur.
3919 (read_key_sequence): Set Vthis_command_keys_shift_translated if
3920 shift-translation takes place.
3921
3922 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
3923 avoid clobbering by define-minor-mode.
3924
3925 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
3926 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
3927
3928 * syntax.c (Fforward_word): Add ^ interactive spec.
3929
3930 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
3931 (Fscroll_right): Add ^ interactive spec.
3932
3933 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
3934
3935 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
3936
3937 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
3938
3939 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
3940
3941 2008-03-31 Juri Linkov <juri@jurta.org>
3942
3943 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
3944
3945 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
3946
3947 * gtkutil.c (xg_set_geometry): Fix indentation.
3948 (xg_resize_outer_widget): Remove.
3949 (x_wm_size_hint_off): Fix indentation.
3950 (xg_frame_set_char_size): Call flush_and_sync after
3951 gtk_window_resize.
3952 (x_wm_set_size_hint): Pass NULL as geometry window to
3953 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
3954 Add menu bar and tool bar height to base height.
3955 (xg_update_frame_menubar, free_frame_menubar)
3956 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3957 (update_frame_tool_bar, free_frame_tool_bar):
3958 Change xg_resize_outer_widget to xg_frame_set_char_size.
3959
3960 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
3961
3962 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
3963 (Fdbus_call_method): New parameter TIMEOUT.
3964 (dbus-send-signal): Optimize UNGCPRO call.
3965
3966 2008-03-29 Juri Linkov <juri@jurta.org>
3967
3968 * window.c (Fdisplay_buffer): Move call to
3969 Vsplit_window_preferred_function out of conditions that check
3970 if window is eligible for vertical splitting.
3971 When Vsplit_window_preferred_function is non-nil, call it and use
3972 its non-nil return value as window. Otherwise, continue doing
3973 vertical splitting using Fsplit_window with arg horflag=nil.
3974 (syms_of_window) <Vsplit_window_preferred_function>: Change the
3975 default value from `split-window' to nil.
3976
3977 2008-03-29 Juri Linkov <juri@jurta.org>
3978
3979 * callint.c (Fcall_interactively): Revert 2008-03-16 change
3980 for interactive code letters 'b' and 'B'.
3981
3982 2008-03-29 Eli Zaretskii <eliz@gnu.org>
3983
3984 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
3985 multibyte string.
3986
3987 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3988
3989 * keyboard.c (pending_funcalls): New var.
3990 (timer_check): Run it.
3991 (syms_of_keyboard): Initialize it.
3992 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
3993 (Vdelete_terminal_functions): New vars.
3994 (syms_of_terminal): Initialize them.
3995 (Fdelete_terminal): Run delete-terminal-functions.
3996 * xdisp.c (safe_eval): Rewrite.
3997 (safe_call2): New fun.
3998 * frame.c (Qdelete_frame_functions): New var.
3999 (syms_of_frame): Initialize it.
4000 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
4001 * lisp.h (safe_call2, pending_funcalls): Declare.
4002
4003 2008-03-28 Andreas Schwab <schwab@suse.de>
4004
4005 * indent.c (Fmove_to_column): Move declaration before statements.
4006
4007 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
4008
4009 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
4010 (struct frame): Use bit fields for boolean vars.
4011
4012 * process.c (server_accept_connection): Simplify naming.
4013 (emacs_get_tty_pgrp): Use SDATA.
4014
4015 * coding.c (decode_coding_object): Fix last change.
4016
4017 2008-03-27 Jason Rumney <jasonr@gnu.org>
4018
4019 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
4020
4021 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
4022
4023 * charset.c (Fdefine_charset_internal): Change the way of
4024 registering charsets in Vcharset_order_list.
4025 (syms_of_charset): Make the charset `eight-bit' supplementary.
4026
4027 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
4028
4029 * regex.c (EXTEND_BUFFER): Change order of pointer addition
4030 operations, to avoid having the difference between pointers
4031 overflow.
4032
4033 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4034
4035 * indent.c (check_display_width): New fun.
4036 (scan_for_column): Use it.
4037
4038 * data.c (syms_of_data): Mark most-positive-fixnum and
4039 most-negative-fixnum as constants.
4040
4041 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
4042
4043 * indent.c (scan_for_column): Extract from current_column_1.
4044 Merge with the same code from Fmove_to_column.
4045 (current_column_1, Fmove_to_column): Use it.
4046
4047 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4048
4049 * keymap.c (map_keymap_internal): New fun.
4050 (map_keymap): Use it.
4051 (Fmap_keymap_internal): New fun.
4052 (Fmap_keymap): Remove left-out test from before make_save_value.
4053
4054 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
4055
4056 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
4057 Use XCAR/XCDR.
4058
4059 * process.h (struct Lisp_Process): Remove filter_multibyte.
4060 * process.c (QCfilter_multibyte): Remove.
4061 (setup_process_coding_systems): Don't use filter_multibyte.
4062 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
4063 (read_process_output): Don't adjust multibyteness to filter_multibyte.
4064 (Fset_process_filter_multibyte): Change the coding-system to
4065 approximate the previous behavior.
4066 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
4067 coding-system.
4068
4069 * coding.c (decode_coding_object): When not decoding into a buffer,
4070 obey the coding system's preference of (uni|multi)byte.
4071
4072 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4073
4074 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
4075 every char is changed and has a different byte-length.
4076 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
4077 Fix int -> EMACS_INT.
4078
4079 2008-03-23 David Hansen <david.hansen@gmx.net>
4080
4081 * dbusbind.c (xd_read_message): Remove extra copying of message
4082 strings. Check for NULL `interface' or `member'.
4083
4084 2008-03-22 Eli Zaretskii <eliz@gnu.org>
4085
4086 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4087 cFileName a file name that includes `?' characters, use the 8+3
4088 alias in cAlternateFileName instead.
4089
4090 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
4091
4092 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
4093
4094 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4095
4096 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
4097 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
4098 work on current_buffer only instead (that was already the case
4099 for some of the code anyway).
4100 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
4101 (temp_set_point, temp_set_point_both): Use EMACS_INT.
4102 (SET_PT, SET_PT_BOTH): Adjust.
4103 * intervals.h (set_point, temp_set_point, set_point_both)
4104 (temp_set_point_both): Remove redundant declarations.
4105
4106 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4107
4108 * fileio.c (Finsert_file_contents):
4109 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
4110 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
4111 when buffer != current_buffer anyway.
4112
4113 2008-03-20 Andreas Schwab <schwab@suse.de>
4114
4115 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
4116 as default.
4117
4118 2008-03-19 Jason Rumney <jasonr@gnu.org>
4119
4120 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
4121 (syms_of_w32fns): Initialize them.
4122 (HOURGLASS_ID): New constant.
4123 (x_window_to_frame): Don't check hourglass_window.
4124 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
4125 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
4126 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
4127 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
4128 Only change the cursor if hourglass is not active.
4129 (Fx_create_frame): Initialize frame's current_cursor.
4130 (hourglass_atimer): Remove.
4131 (hourglass_started): New function.
4132 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
4133 (show_hourglass): Adapt to w32, changing argument to frame.
4134
4135 * w32term.h (struct w32_output): Remove hourglass_window.
4136 Add current_cursor.
4137
4138 * eval.c (call_debugger, Fsignal):
4139 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
4140 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
4141 (Fexecute_extended_command, cancel_hourglass_unwind):
4142 * minibuf.c (read_minibuf):
4143 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
4144
4145 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
4146
4147 * window.c (run_funs): New fun.
4148 (run_window_configuration_change_hook): Use it to run the buffer-local
4149 and the global part of the hook.
4150
4151 * xdisp.c (format_mode_line_unwind_data): Add window argument.
4152 (unwind_format_mode_line): Restore selected window.
4153 (x_consider_frame_title, Fformat_mode_line): Set selected window.
4154
4155 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4156
4157 * editfns.c (Fchar_equal): Check they are valid characters.
4158
4159 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
4160
4161 2008-03-17 Andreas Schwab <schwab@suse.de>
4162
4163 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
4164 against a charset.
4165
4166 * lisp.h (Fbuffer_list): Declare.
4167
4168 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
4169
4170 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
4171 handlebox_widget is != 0.
4172
4173 2008-03-16 Juri Linkov <juri@jurta.org>
4174
4175 * callint.c (Fcall_interactively): For interactive code letters
4176 'b' and 'B' put the buffer list into the list of default "future"
4177 values of the minibuffer.
4178
4179 2008-03-16 Andreas Schwab <schwab@suse.de>
4180
4181 * keyboard.c (read_key_sequence): Fix downcasing of letters with
4182 modifiers.
4183
4184 * regex.c (re_match_2_internal): Correct matching of a charset
4185 against latin-1 characters.
4186
4187 2008-03-16 Kenichi Handa <handa@m17n.org>
4188
4189 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
4190 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
4191 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
4192 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
4193 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
4194 CHAR_STRING_ADVANCE.
4195 (produce_chars): Fix for the case that the source and the
4196 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
4197 instead of CHAR_STRING_ADVANCE.
4198 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
4199 STRING_CHAR_ADVANCE.
4200
4201 2008-03-15 Andreas Schwab <schwab@suse.de>
4202
4203 * regex.c (re_match_2_internal): Correct matching of eight bit
4204 characters in unibyte strings.
4205
4206 2008-03-15 Martin Rudalics <rudalics@gmx.at>
4207
4208 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
4209 at end of range when it coincides with the end of the buffer.
4210
4211 2008-03-14 Eli Zaretskii <eliz@gnu.org>
4212
4213 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
4214
4215 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
4216
4217 2008-03-14 Jason Rumney <jasonr@gnu.org>
4218
4219 * editfns.c (initial_tz): New variable.
4220 (syms_of_editfns): Initialize it.
4221 (Fset_time_zone_rule): Set it when first called.
4222 Use it when TZSTRING is nil.
4223
4224 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
4225 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
4226 (monitor_from_point_fn, get_monitor_info_fn): New globals.
4227 (globals_of_w32fns): Initialize them.
4228 (compute_tip_xy): Use them to position tooltips.
4229
4230 2008-03-14 Glenn Morris <rgm@gnu.org>
4231
4232 * emacs.c (main): Revert previous change.
4233 (standard_args): Revert -internal-script back to -scriptload,
4234 and remove the long-option form.
4235
4236 2008-03-13 Glenn Morris <rgm@gnu.org>
4237
4238 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
4239 Remove option -enable-font-backend.
4240
4241 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4242
4243 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
4244
4245 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
4246
4247 * xterm.c (x_connection_closed): For GTK: If this is the last
4248 terminal just exit without closing the display.
4249
4250 2008-03-11 Jason Rumney <jasonr@gnu.org>
4251
4252 * w32font.c (w32font_full_name): Use floor to round.
4253
4254 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
4255
4256 * sound.c (alsa_configure): Declare vol at beginning of block.
4257
4258 * fontset.c (Ffontset_info): Remove extra semicolon.
4259
4260 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4261
4262 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
4263 size of resulting string.
4264
4265 2008-03-10 Jason Rumney <jasonr@gnu.org>
4266
4267 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
4268
4269 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4270
4271 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
4272 Don't pretend as if characters with display property haven't been
4273 consumed for string-replacing-string case.
4274
4275 2008-03-08 Kim F. Storm <storm@cua.dk>
4276
4277 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
4278 (get_next_display_element, next_element_from_string)
4279 (next_element_from_ellipsis, next_element_from_buffer): Use it.
4280
4281 2008-03-08 Andreas Schwab <schwab@suse.de>
4282
4283 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
4284
4285 2008-03-06 Jason Rumney <jasonr@gnu.org>
4286
4287 * w32font.c (w32_registry): Take font_type argument. Use ANSI
4288 when charset not specified. Only translate ANSI to unicode when
4289 font_type is truetype.
4290 (w32font_coverage_ok): New function.
4291 (add_font_entity_to_list): Use it to filter unsuitable fonts.
4292
4293 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
4294
4295 * lread.c (Fread_char): Resolve modifiers.
4296 (Fread_char_exclusive): Likewise.
4297
4298 * character.c (char_resolve_modifier_mask): New function.
4299 (char_string): Use char_resolve_modifier_mask.
4300 (Fchar_resolve_modifiers): New function.
4301 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
4302 function.
4303
4304 2008-03-04 Jason Rumney <jasonr@gnu.org>
4305
4306 * makefile.w32-in: Always include w32font.c in the build.
4307 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
4308
4309 2008-03-04 Andreas Schwab <schwab@suse.de>
4310
4311 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
4312 (versionclean): Likewise.
4313
4314 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
4315
4316 * .cvsignore: Add oo.
4317
4318 2008-03-03 Andreas Schwab <schwab@suse.de>
4319
4320 * coding.c (decode_coding_object): Inhibit gap shrinking while
4321 decoding in place.
4322
4323 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
4324
4325 * w32term.c: Remove unused include "gnu.h".
4326 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
4327
4328 * gnu.h: Rename to ...
4329 * emacs-icon.h: ... this.
4330 * xterm.c: Use emacs-icon.h instead of gnu.h.
4331 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
4332
4333 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
4334
4335 * w32font.c: Include math.h.
4336
4337 2008-03-03 Jason Rumney <jasonr@gnu.org>
4338
4339 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
4340 Compute options separately.
4341 (w32font_open_internal): Set glyph_idx before caching metrics.
4342
4343 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
4344 Define if system headers don't.
4345 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
4346 (w32font_encode_char): Don't declare here.
4347
4348 * w32font.c (Quniscribe, QCformat): New symbols.
4349 (syms_of_w32font): Define them.
4350 (w32font_has_char): Indicate uncertainty.
4351 (w32font_encode_char): Encode as glyph point. Make static.
4352 (recompute_cached_metrics): New function.
4353 (w32font_open_internal): Use it. Set font to use glyph points
4354 initially. Set format based on type of font.
4355 (w32font_text_extents, w32font_draw): Optionally use glyph points.
4356 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
4357 on it. Set format based on information available here.
4358 (add_font_entity_to_list): Identify backend based on opentype_only.
4359
4360 2008-03-02 Andreas Schwab <schwab@suse.de>
4361
4362 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
4363
4364 * coding.c (decode_coding_big5, produce_chars):
4365 Fix typos in last change.
4366
4367 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
4368
4369 * gnu.h: New icon.
4370
4371 2008-03-02 Kenichi Handa <handa@m17n.org>
4372
4373 * coding.c (decode_coding_utf_8): When eol-type of CODING is
4374 `dos', don't decode '\r' if that is the last in the source.
4375 (decode_coding_utf_16, decode_coding_emacs_mule)
4376 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4377 (decode_coding_raw_text, decode_coding_charset): Likewise.
4378 (produce_chars): Don't decode EOL here. Use EMACS_INT.
4379
4380 2008-03-01 Jason Rumney <jasonr@gnu.org>
4381
4382 * w32font.c (w32font_full_name): Report point size for scalable fonts.
4383
4384 2008-03-01 Kim F. Storm <storm@cua.dk>
4385
4386 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
4387
4388 2008-03-01 Jason Rumney <jasonr@gnu.org>
4389
4390 * w32font.c (w32font_full_name): New function.
4391 (w32font_open_internal): Use it.
4392
4393 2008-03-01 Kim F. Storm <storm@cua.dk>
4394
4395 * dispnew.c (line_draw_cost): Fix invalid glyph check.
4396
4397 2008-03-01 Jason Rumney <jasonr@gnu.org>
4398
4399 * font.c (font_unparse_fcname): Increase len when style is a symbol.
4400
4401 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
4402
4403 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
4404 xg_frame_resized when the event is for the edit widget.
4405
4406 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
4407
4408 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
4409 set_char_size.
4410 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
4411 operations on widgets here. Just set frame size if needed.
4412 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
4413 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
4414 (x_wm_set_size_hint): Set size hints on the edit widget only, not
4415 the whole frame.
4416 (xg_create_tool_bar): Move attachement of the tool bar to
4417 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
4418 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
4419
4420 2008-03-01 Jason Rumney <jasonr@gnu.org>
4421
4422 * w32fns.c (w32_msg_pump): Disable debug code.
4423
4424 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4425
4426 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
4427
4428 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
4429
4430 * xdisp.c (next_overlay_string): Don't set
4431 overlay_strings_at_end_processed_p if we're currently reading from
4432 a display string.
4433
4434 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
4435
4436 * xdisp.c (get_overlay_strings_1): Fix typo.
4437
4438 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
4439
4440 * xdisp.c (get_overlay_strings_1): Add missing argument type.
4441
4442 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
4443
4444 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
4445
4446 * xdisp.c (display_mode_element): Cancel the previous change.
4447 (decode_mode_spec): Likewise.
4448 (handle_auto_composed_prop): Don't make composition if it->string
4449 is a string.
4450
4451 2008-02-27 Kim F. Storm <storm@cua.dk>
4452
4453 * lisp.h (GLYPH): Change type from int to struct with separate char
4454 and face_id members.
4455 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
4456 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
4457 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
4458 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
4459 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
4460 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
4461 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
4462 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
4463 handle new Lisp glyph code encoding, either an integer or a cons.
4464
4465 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
4466 (GLYPH_ALIAS): Delete.
4467 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
4468 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
4469 (GLYPH_FROM_CHAR): Replace macro by ...
4470 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
4471
4472 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
4473 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
4474 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
4475 (GLYPH_INVALID_P): New macro.
4476 (spec_glyph_lookup_face): Update prototype.
4477
4478 * dispnew.c (line_draw_cost): Adapt to new glyph type.
4479 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
4480 new glyph code encoding.
4481 (spec_glyph_lookup_face): No return value; update passed glyph instead.
4482 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
4483
4484 * xdisp.c (get_next_display_element, next_element_from_display_vector):
4485 Adapt to new glyph type and new glyph code encoding.
4486
4487 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
4488
4489 * indent.c (current_column, current_column_1, Fmove_to_column)
4490 (compute_motion): Adapt to new glyph code encoding.
4491
4492 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
4493
4494 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
4495
4496 * process.c (wait_reading_process_output): Check for window
4497 changes caused by timers.
4498 Suggested by Johan Bockgård.
4499
4500 2008-02-27 Glenn Morris <rgm@gnu.org>
4501
4502 * emacs.c (USAGE1): Add `--disable-font-backend'.
4503
4504 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
4505
4506 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
4507 is made to the buffer.
4508
4509 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
4510
4511 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
4512 (face_at_string_position):
4513 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4514 (face_at_string_position):
4515 * xdisp.c (display_string, next_overlay_change):
4516 * buffer.h (overlays_at):
4517 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
4518 Update callers.
4519
4520 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
4521
4522 * editfns.c (Fformat): Doc fix.
4523
4524 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
4525
4526 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
4527 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
4528 (Ffont_otf_alternates, Fquery_font): Doc fixes.
4529
4530 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4531
4532 * buffer.c (Fbuffer_swap_text): New function.
4533 (syms_of_buffer): Defsubr it.
4534
4535 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
4536
4537 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
4538
4539 2008-02-25 Jason Rumney <jasonr@gnu.org>
4540
4541 * w32font.c (w32font_draw): Draw one character at a time when padding.
4542
4543 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4544
4545 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
4546 Handle a nil arg. Use run_window_configuration_change_hook.
4547 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
4548 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
4549 Use run_window_configuration_change_hook.
4550
4551 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4552
4553 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
4554 1-pixel width.
4555
4556 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
4557
4558 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
4559 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
4560 if the glyph in the font is zero pixel with.
4561
4562 * dispextern.h (struct glyph_string): New member padding_p.
4563
4564 * w32font.c (w32font_draw): Pay attention to s->padding_p.
4565
4566 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
4567
4568 * xfont.c (xfont_draw): Pay attention to s->padding_p.
4569
4570 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
4571
4572 * font.c: If the font driver doesn't have `shape' function, return Qnil.
4573
4574 2008-02-25 Jason Rumney <jasonr@gnu.org>
4575
4576 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
4577
4578 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
4579
4580 Allow fine-grained image-cache flushing.
4581 * dispextern.h (struct image): Add `dependencies' field.
4582 (clear_image_caches): Change arg to Lisp_Object.
4583 * image.c (make_image): Initialize `dependencies' field.
4584 (clear_image_cache): Change arg to allow fine-grained flushing.
4585 Perform the flush even if image-cache-eviction-delay is nil.
4586 (clear_image_caches): Change arg to Lisp_Object.
4587 (Fclear_image_cache): Expand meaning of the argument.
4588 (mark_image): Mark `dependencies' field.
4589 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
4590 (lface_hash): Use XHASH rather than XFASTINT.
4591 (face_at_buffer_position): Fix int -> EMACS_INT position.
4592 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
4593 (select_frame_for_redisplay): Remove code duplication.
4594 (redisplay_internal): Adapt arg to call to clear_image_caches.
4595
4596 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
4597
4598 * s/vms4-0.h:
4599 * s/vms4-2.h:
4600 * s/vms4-4.h:
4601 * s/vms5-5.h: Remove, unused.
4602
4603 * s/irix5-2.h:
4604 * s/irix6-0.h:
4605 * s/riscos5.h:
4606 * s/mach-bsd4-3.h:
4607 * m/mips4.h: Remove files for obsolete systems.
4608
4609 * Makefile.in:
4610 * filelock.c:
4611 * unexmips.c:
4612 * m/hp9000s300.h:
4613 * m/iris4d.h:
4614 * s/aix3-1.h:
4615 * s/hpux.h:
4616 * s/msdos.h:
4617 * s/usg5-0.h:
4618 * s/usg5-2-2.h:
4619 * s/usg5-2.h:
4620 * s/usg5-3.h: Remove references to obsolete variables.
4621
4622 * s/irix5-0.h: Remove, move all the contents ...
4623 * s/irix6-5.h: ... here. Simplify.
4624 * config.in: Regenerate.
4625
4626 2008-02-24 Jason Rumney <jasonr@gnu.org>
4627
4628 * w32term.c (x_draw_glyph_string_background): Clear the background
4629 manually when cleartype is in use.
4630 (x_draw_glyph_string_foreground): Draw text transparently when
4631 cleartype is in use.
4632
4633 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
4634 a font into it unless we have to.
4635
4636 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4637
4638 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
4639 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
4640
4641 2008-02-18 Jason Rumney <jasonr@gnu.org>
4642
4643 * w32fns.c (Fw32_shell_execute): Encode parameters.
4644
4645 2008-02-09 Eli Zaretskii <eliz@gnu.org>
4646
4647 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
4648
4649 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
4650
4651 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
4652
4653 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
4654
4655 * xterm.c (x_set_offset): Don't change the gravity if
4656 CHANGE_GRAVITY is -1.
4657
4658 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
4659
4660 * fileio.c (auto_save_error_occurred): New var.
4661 (auto_save_error): Set it.
4662 (Fdo_auto_save): Don't overwrite the error message if an auto-save
4663 error occurred.
4664
4665 2008-02-23 Eli Zaretskii <eliz@gnu.org>
4666
4667 * w32.c (globals_of_w32): Add initializations for
4668 g_b_init_get_sid_sub_authority and
4669 g_b_init_get_sid_sub_authority_count.
4670
4671 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
4672
4673 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
4674 (font_parse_xlfd): Use them for sanity check.
4675 (Finternal_set_font_style_table): Make sure the table is bijective.
4676
4677 Consolidate the image_cache to the terminal struct.
4678 * termhooks.h (P_): Remove redundant def.
4679 (struct terminal): New field `image_cache'.
4680 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
4681 of FRAME_X_IMAGE_CACHE.
4682 * xterm.h (struct x_display_info): Remove image_cache field.
4683 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4684 * w32term.h (struct w32_display_info): Remove image_cache field.
4685 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4686 * macterm.h (struct mac_display_info): Remove image_cache field.
4687 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4688 * xterm.c (x_term_init):
4689 * w32term.c (w32_term_init):
4690 * macterm.c (mac_term_init): Set the image_cache in the terminal.
4691 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
4692 Remove declarations.
4693 (clear_image_caches, mark_image_cache): New declarations.
4694 * xfaces.c (clear_face_cache):
4695 * xdisp.c (redisplay_internal): Use clear_image_caches.
4696 * image.c (clear_image_cache): Don't check that a frame is on
4697 a window-system before checking if it shares the same cache.
4698 (clear_image_caches): New function.
4699 (Fclear_image_cache): Use it.
4700 (mark_image): Move from allo.c.
4701 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
4702 * alloc.c (mark_image, mark_image_cache): Move to image.c.
4703 (mark_object): Don't call mark_image_cache for frames.
4704 (mark_terminals): Call mark_image_cache.
4705
4706 * lisp.h (Fdelete_terminal): Declare.
4707
4708 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
4709 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
4710 wrong_type_argument.
4711
4712 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
4713
4714 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4715 malayalam.el, and tamil.el. Add sinhala.el.
4716
4717 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
4718
4719 * xterm.c (x_connection_closed): Consolidate identical tests.
4720 (x_delete_terminal): Don't crash if called via x_connection_closed.
4721
4722 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
4723
4724 * xdisp.c (decode_mode_spec): New arg string.
4725 (display_mode_element): Adjust for the above change.
4726
4727 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4728
4729 * callint.c (Fcall_interactively): Use AREF.
4730
4731 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4732
4733 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
4734
4735 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
4736
4737 * xfns.c (Fx_show_tip): Set string to " " if empty.
4738
4739 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
4740
4741 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
4742 with Qt.
4743
4744 2008-02-17 Kenichi Handa <handa@m17n.org>
4745
4746 * ftfont.c (ftfont_shape): Return Lispy number.
4747
4748 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
4749 for GCs.
4750 (Finternal_set_font_selection_order): Call font_update_sort_order
4751 only when enable_font_backend is set.
4752 (realize_x_face): Set face->font_info to that of default face only
4753 when enable_font_backend is set.
4754
4755 * xdisp.c (handle_composition_prop): Set it->c to the fist
4756 characte of the composed region.
4757 (fill_composite_glyph_string): Set base_face->font_info to
4758 s->font_info. Get a face for ascii from base_face->ascii_face.
4759 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
4760 with a face already decided.
4761 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
4762 non-negative.
4763 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
4764 call font_prepare_composition unconditionally.
4765
4766 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
4767
4768 * xterm.h (struct x_display_info): New member font.
4769
4770 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
4771 (x_set_mouse_face_gc, x_new_font): Likewise.
4772 (x_term_init): Setup display_info->font.
4773 (x_delete_terminal): Free display_info->font.
4774
4775 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
4776
4777 * ftxfont.c (ftxfont_default_fid): Delete it.
4778 (ftxfont_open): Set xfont->fid to 0.
4779 (ftxfont_end_for_frame): Clear data specific to the frame and the
4780 font-driver.
4781
4782 * xftfont.c (xftfont_default_fid): Delete it.
4783 (xftfont_open): Set xfont->fid to 0.
4784
4785 * fontset.c (FONTSET_OBJLIST): New macro.
4786 (fontset_find_font): Update font-object list of the fontset.
4787 (free_realized_fontset): New function.
4788 (free_face_fontset): Call free_realized_fontset.
4789 (Ffont_info): Call font_close_object only when enable_font_backend
4790 is set.
4791
4792 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
4793 [HAVE_NTGUI]: Include w32term.h.
4794 [MAC_OS]: Include macterm.ch.
4795 (font_otf_ValueRecord): Use make_number.
4796 (font_finish_cache): Fix handling of reference count.
4797 (font_clear_cache): Update num_fonts.
4798 (font_open_entity): Update smallest_char_width and
4799 smallest_font_height of the frame.
4800 (font_close_object): Update num_fonts.
4801 (Fclear_font_cache): Fix finding the target cache data.
4802
4803 2008-02-16 Glenn Morris <rgm@gnu.org>
4804
4805 * fontset.c (Finternal_char_font): Fix compilation warning.
4806
4807 2008-02-16 Eli Zaretskii <eliz@gnu.org>
4808
4809 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
4810 instead of char arrays. Enlarge the size of array passed to
4811 get_token_information.
4812
4813 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
4814 warnings.
4815
4816 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
4817
4818 * .gdbinit: Don't set `args', it breaks gdb --args.
4819
4820 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
4821
4822 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
4823 within a narrowed buffer.
4824
4825 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
4826
4827 * coding.c (decode_coding_object, encode_coding_object):
4828 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
4829
4830 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4831
4832 * coding.c (coding_set_destination): Use BEG_BYTE rather than
4833 hardcoding 1.
4834 (detect_coding_system):
4835 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
4836 (string_char_to_byte, string_byte_to_char, insert_from_gap):
4837 * insdel.c (insert_from_gap):
4838 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
4839 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
4840 (string_to_multibyte):
4841 * character.c (chars_in_text, multibyte_chars_in_text):
4842 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
4843
4844 * character.h (FETCH_STRING_CHAR_ADVANCE)
4845 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
4846 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
4847 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
4848
4849 * casefiddle.c (casify_region): Only call after-change and composition
4850 functions on the part of the region that was changed.
4851
4852 * keyboard.c (read_avail_input):
4853 * frame.c (Fdelete_frame): Call Fdelete_terminal.
4854
4855 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4856
4857 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
4858 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
4859
4860 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
4861
4862 * w32menu.c (push_submenu_start, push_submenu_end)
4863 (push_left_right_boundary, push_menu_pane, push_menu_item):
4864 * keyboard.c (read_key_sequence): Don't pass args with side effects
4865 to AREF, it fails when compiling with -DENABLE_CHECKING.
4866
4867 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
4868
4869 * Makefile.in (${lispsource}international/charprop.el):
4870 Delete this target.
4871
4872 * search.c (boyer_moore): Fix incorrect synching of the trunk and
4873 emacs-unicode-2.
4874
4875 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4876
4877 * terminal.c (Fdelete_terminal): Clean up the `force' path.
4878
4879 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4880
4881 * frame.c (Qnoelisp): New symbol.
4882 (syms_of_frame): Initialize it.
4883 (Fdelete_frame): Use it to distinguish a mere `force' passed from
4884 someharmles Elisp code, from a strong `force' from x_connection_closed.
4885 * frame.h (Qnoelisp): Declare.
4886 * xterm.c (x_connection_closed): Pass `noelisp'.
4887
4888 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
4889 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
4890 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
4891 rather than `int' for the type of `type'.
4892
4893 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
4894
4895 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
4896
4897 * Makefile.in (GNUC): Remove support for gcc-1.x.
4898
4899 2008-02-10 Richard Stallman <rms@gnu.org>
4900
4901 * lisp.h (ASET): Use AREF, not ASLOT.
4902
4903 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4904
4905 * lisp.h (ASET): Check bounds.
4906
4907 2008-02-10 Glenn Morris <rgm@gnu.org>
4908
4909 * buffer.c (mode-name): Doc fix.
4910
4911 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4912
4913 * Makefile.in:
4914 * emacs.c:
4915 * gmalloc.c:
4916 * keyboard.c:
4917 * lisp.h:
4918 * m/ibm370aix.h:
4919 * process.c:
4920 * regex.c:
4921 * s/hpux.h:
4922 * sysdep.c:
4923 * sysselect.h:
4924 * systty.h:
4925 * unexec.c:
4926 * w32term.c:
4927 * xsmfns.c:
4928 * xterm.c: Remove code that deals with obsolete variables.
4929
4930 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
4931
4932 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
4933 nothing else needs it anymore.
4934
4935 2008-02-09 Eli Zaretskii <eliz@gnu.org>
4936
4937 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
4938 instead of unibyte_char_to_multibyte.
4939
4940 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4941
4942 * s/gnu-linux.h: Remove commented out code.
4943
4944 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
4945
4946 * Makefile.in: Update what RMS says about using autoconf.
4947 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
4948 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
4949 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
4950 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
4951
4952 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4953
4954 * keymap.c (Fkey_description): Move side effect outside of macro call.
4955
4956 * xfaces.c (Finternal_make_lisp_face):
4957 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
4958
4959 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
4960 (syms_of_fontset): Use ASET.
4961
4962 * fns.c (concat): Move side effect outside of macro call.
4963 (hash_clear): Use ASET.
4964
4965 2008-02-08 Richard Stallman <rms@gnu.org>
4966
4967 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
4968 If FORCE, and frame has a surrogate minibuffer for another frame,
4969 delete the other frame first.
4970
4971 2008-02-07 Timo Savola <timo.savola@iki.fi>
4972
4973 * xterm.c (x_detect_focus_change): Handle embed client message.
4974 (handle_one_xevent): Ditto.
4975 (handle_one_xevent): If embedded and we get a button press/release,
4976 request focus.
4977 (xembed_set_info, xembed_send_message): New functions.
4978 (x_make_frame_visible): Call xembed_set_info if embedded.
4979 (x_make_frame_invisible): Call xembed_set_info if embedded.
4980 (x_term_init): Initialize Xatom_XEMBED.
4981 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
4982 (x_iconify_frame): Ditto.
4983
4984 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
4985 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
4986 (enum xembed_modifier, enum xembed_accelerator): New.
4987 (xembed_set_info, xembed_send_message): Declare.
4988 (FRAME_X_EMBEDDED_P): New.
4989
4990 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
4991 gtk_plug_new.
4992
4993 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
4994 window ID of a frame.
4995 (x_window): Reparent frame if embedded.
4996 (Fx_create_frame): Don't set border width if embedded.
4997
4998 * emacs.c (USAGE3): Add --parent-id.
4999 (standard_args): Ditto.
5000
5001 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
5002
5003 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
5004
5005 2008-02-07 Jim Meyering <meyering@redhat.com>
5006
5007 Use "do...while (0)", not "if (1)...else" in macro definitions.
5008 The latter provokes a warning from gcc about the empty else, when
5009 followed by ";". Also, without that trailing semicolon, it would
5010 silently swallow up any following statement.
5011 * syntax.h (SETUP_SYNTAX_TABLE)
5012 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
5013 * buffer.h (DECODE_POSITION): Likewise.
5014 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
5015 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
5016 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
5017 (FETCH_CHAR_ADVANCE): Likewise.
5018 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
5019
5020 2008-02-07 Jim Meyering <meyering@redhat.com>
5021
5022 * lread.c [lint]: Don't include <sys/inode.h>.
5023
5024 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
5025
5026 * xselect.c (x_handle_dnd_message):
5027 * xmenu.c (digest_single_submenu, xmenu_show):
5028 * xdisp.c (with_echo_area_buffer_unwind_data)
5029 (format_mode_line_unwind_data, unwind_format_mode_line)
5030 (display_menu_bar):
5031 * eval.c (Ffetch_bytecode):
5032 * doc.c (store_function_docstring):
5033 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
5034 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
5035 * buffer.c (add_overlay_mod_hooklist): Use ASET.
5036
5037 2008-02-07 Kenichi Handa <handa@m17n.org>
5038
5039 * ftxfont.c (ftxfont_open): Don't set
5040 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
5041
5042 * ftfont.c (ftfont_open): Fix previous change.
5043
5044 2008-02-06 Jason Rumney <jasonr@gnu.org>
5045
5046 * w32font.c (w32font_text_extents): Fill in lbearing metric.
5047 Use cached metrics for ASCII characters.
5048 (w32font_open_internal): Don't set font's owning_frame.
5049 Cache metrics for ASCII characters.
5050
5051 * w32font.h (struct w32font_info): Add ascii_metrics.
5052 Remove owning_frame.
5053
5054 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
5055
5056 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
5057 to negative value.
5058
5059 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
5060
5061 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
5062
5063 * charset.c (syms_of_charset): Set QCtest and Qeq.
5064
5065 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
5066
5067 * process.c (Fstart_process):
5068 * callproc.c (Fcall_process): Handle the case where
5069 Funhandled_file_name_directory returns nil.
5070
5071 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
5072 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
5073 * font.c (check_gstring): Use them and AREF to access the vector before
5074 we know it's really a gstring.
5075 (Ffont_shape_text): Fix typo.
5076 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
5077
5078 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
5079 Declare.
5080
5081 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
5082
5083 2008-02-05 Jason Rumney <jasonr@gnu.org>
5084
5085 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
5086 Set smallest_font_height and smallest_char_width in display info.
5087
5088 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
5089
5090 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
5091
5092 2008-02-05 Miles Bader <miles@gnu.org>
5093
5094 * xfaces.c (get_lface_attributes, merge_named_face)
5095 (lookup_named_face, lookup_derived_face, realize_named_face):
5096 Revert 2008-02-01 change by cyd@stupidchicken.com.
5097
5098 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
5099
5100 * fontset.c (Ffontset_info): Handle the case of inhibitting the
5101 fallback fonts.
5102 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
5103
5104 2008-02-04 Jason Rumney <jasonr@gnu.org>
5105
5106 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
5107 set full_name.
5108 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5109
5110 2008-02-03 Jason Rumney <jasonr@gnu.org>
5111
5112 * makefile.w32-in (OBJ1): Include font.o here.
5113 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
5114
5115 2008-02-02 Jason Rumney <jasonr@gnu.org>
5116
5117 * makefile.w32-in (temacs): Bump EMHEAP to 21.
5118
5119 2008-02-01 Jason Rumney <jasonr@gnu.org>
5120
5121 * s/cygwin.h: Define VIRT_ADDR_VARIES.
5122
5123 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
5124
5125 2008-02-01 Andreas Schwab <schwab@suse.de>
5126
5127 * Makefile.in (shortlisp, lisp): Update for rename of
5128 ../lisp/language/myanmar.el.
5129
5130 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
5131
5132 * xfaces.c (get_lface_attributes): Delete function.
5133 (merge_named_face, lookup_named_face, lookup_derived_face)
5134 (realize_named_face): Call lface_from_face_name directly, and use
5135 the fact that merge_face_vectors does not alter its FROM argument.
5136
5137 2008-02-01 Jason Rumney <jasonr@gnu.org>
5138
5139 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
5140 input in the default locale. Handle non-Unicode multibyte input.
5141
5142 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5143
5144 * fontset.c (reorder_font_vector): Exclude nil elements from the
5145 font group. Don't try multiple fonts.
5146 (fontset_font): Adjust for the above change.
5147 (Finternal_char_font): Return nil if the found font doesn't
5148 contain the character ch.
5149
5150 * Makefile.in (lisp, shortlisp): Add cham.el.
5151
5152 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5153
5154 * font.h (FONTP): Make it return 1 also for a font-object.
5155
5156 * .gdbinit (xfontset): New function.
5157
5158 * font.c (font_find_for_lface): Check if the character C is
5159 supported or not only for the first font.
5160
5161 * fontset.c (reorder_font_vector): Fix typo.
5162 (fontset_find_font): Don't add a font-spec specifying a script.
5163 Use 0 (not Qt) for the indication of empty font-group. Change the
5164 format of RFONT-DEF. Return Qt if no font in the font-group
5165 support the character.
5166 (fontset_font): Adjust for the above change. If no font was
5167 found the character, remember that.
5168 (face_for_char): Adjust for the change of RFONT-DEF.
5169 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
5170 no font for the target.
5171 (Finternal_char_font): Adjust for the change of RFONT-DEF.
5172
5173 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5174
5175 * font.c (font_load_for_face): Handle the case that the font in
5176 face->lface is a string.
5177
5178 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5179
5180 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
5181
5182 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5183
5184 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
5185 Fix previous change. If the frame is not on a window system,
5186 signal an error.
5187
5188 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5189
5190 * coding.c (decode_coding_object, encode_coding_object): Adjust
5191 marker positions after conversion.
5192
5193 * lisp.h (struct Lisp_Marker): New member need_adjustment.
5194
5195 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5196
5197 * font.c (font_find_for_lface): Fix the handling of the return
5198 value of font_has_char.
5199 (Ffont_shape_text): Fix previous change.
5200
5201 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
5202 (fontset_ref_and_range): Delete it.
5203 (fontset_find_font): Call char_table_ref_and_range instead of
5204 FONTSET_REF_AND_RANGE.
5205 (make_fontset): Don't setup font groups of Latin here.
5206 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
5207 (new_fontset_from_font): Make the specified font the default for
5208 all Latin characters.
5209
5210 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5211
5212 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
5213 is on a window system before accessing the fontset of the frame.
5214
5215 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5216
5217 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
5218
5219 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
5220 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
5221
5222 * font.c (Ffont_shape_text): If the font driver doesn't have a
5223 shaper function, make zero-width glyphs to have at least one-pixel
5224 width. Fix setting of `to' field of glyphs.
5225
5226 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5227
5228 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
5229 glyphs.
5230
5231 * font.h (struct font_driver): Improve docstring of member `shape'.
5232
5233 2008-02-01 Kenichi Handa <handa@m17n.org>
5234
5235 * composite.c (syms_of_composite): Fix docstring of
5236 auto-composition-function.
5237
5238 * font.h (LGLYPH_SIZE): New macro.
5239
5240 * font.c (Ffont_fill_gstring): Stop filling when a character not
5241 supported by the font is found.
5242 (Ffont_shape_text): When a shape callback function returns nil,
5243 try at most two more times with larger gstring.
5244 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
5245
5246 * xdisp.c (handle_auto_composed_prop): Change the argument to
5247 auto-composition-function.
5248
5249 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
5250 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
5251 Lispy glyph and store it in the lgstring.
5252
5253 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
5254
5255 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
5256
5257 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5258
5259 * font.c (Ffont_shape_text): Avoid unnecessary composition.
5260
5261 * fontset.c (Vfont_encoding_charset_alist): New variable.
5262 (syms_of_fontset): DEFVAR it.
5263 (reorder_font_vector, fontset_find_font): Optimize for the case of
5264 no need of reordering.
5265 (face_for_char): Map the charset property by
5266 Vfont_encoding_charset_alist.
5267
5268 2008-02-01 Jason Rumney <jasonr@gnu.org>
5269
5270 * w32font.c (logfonts_match): Don't check adstyle here.
5271 (font_matches_spec): Check here against physical font instead.
5272 (add_font_entity_to_list): Avoid some substitutions.
5273
5274 * font.c (font_parse_fcname): Default weight and slant to normal.
5275 (font_score): Prefer normal fonts if weight or slant unspecified.
5276 (font_score) [WINDOWSNT]: Scale weight difference down to closer
5277 match freetype scores.
5278
5279 2008-02-01 Jason Rumney <jasonr@gnu.org>
5280
5281 * w32font.c (w32font_text_extents): Don't use the frame stored in the
5282 font, as it may have been deleted.
5283 (w32_enumfont_pattern_entity): Map generic family to adstyle using
5284 most common hyphenless variation.
5285 (logfonts_match): Check generic family.
5286 (font_matches_spec): Don't check generic family here.
5287 (fill_in_logfont): Set generic family based on adstyle.
5288
5289 * w32font.h (w32font_get_cache): Update declaration.
5290
5291 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5292
5293 * ftfont.c (ftfont_get_cache): Adjust the argument type.
5294
5295 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
5296 If none of the new drivers are available, call font_update_drivers
5297 with the old drivers.
5298
5299 * w32font.c (w32font_get_cache): Adjust the argument type.
5300
5301 * xfont.c (xfont_get_cache): Adjust the argument type.
5302
5303 * font.h (struct font_driver): Change argument type of get_cache.
5304
5305 * xftfont.c (xftfont_start_for_frame): Delete prototype.
5306
5307 * font.c (Ffont_get): Fix arguments to Fassoc.
5308 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
5309 (font_clear_cache): New function.
5310 (font_list_entities, font_matching_entity): Use font_get_cache.
5311 (font_update_drivers): Call font_clear_cache when finishing a driver.
5312
5313 * fontset.c (fontset_find_font): Fix previous change.
5314
5315 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5316
5317 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
5318 dpyinfo->font_table.
5319 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
5320 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
5321
5322 * font.c (font_at): Handle the case that the arg C is negative.
5323 Handle the unibyte case.
5324 (Ffont_at): Call font_at with the arg C -1.
5325
5326 * xdisp.c (handle_auto_composed_prop): Don't get a character at
5327 the position here, and call font_at with the arg C -1.
5328 Don't check the range of the existing composition at the point.
5329
5330 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5331
5332 * fontset.c (fontset_add): New args charset_id and family.
5333 Change caller.
5334 (load_font_get_repertory, fontset_find_font): Assume that
5335 font_spec is always a font-spec object.
5336 (Fset_fontset_font): Always store a font-spec object in a fontset.
5337
5338 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
5339 instead of get_property_and_range.
5340
5341 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5342
5343 * xftfont.c (struct xftfont_info): Delete the member ft_face.
5344 (xftfont_open): Don't keep locking face.
5345 (xftfont_close): Don't unlock face.
5346 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
5347
5348 * fontset.c (fontset_find_font): Don't prefer a font of
5349 supplementary charset.
5350
5351 2008-02-01 Kenichi Handa <handa@m17n.org>
5352
5353 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
5354 script, langsys_tag to langsys, new member script.
5355 (OTF_TAG_STR): Terminate by '\0'.
5356 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
5357 listing to the script specified in that property. Fix arg to
5358 OTF_check_features.
5359
5360 2008-02-01 Jason Rumney <jasonr@gnu.org>
5361
5362 * w32font.h: New file.
5363
5364 * w32font.c: Include it.
5365 (struct w32font_info): Add owning_frame field. Move to w32font.h.
5366 (w32font_open): Set owning_frame.
5367 (w32font_text_extents): Use owning_frame.
5368 (struct font_callback_data): Add opentype_only field.
5369 (add_font_entity_to_list): Use it to filter fonts.
5370 Don't check against full name.
5371 (w32font_list_internal): New function.
5372 (w32font_list): Use it.
5373 (w32font_match_internal): New function.
5374 (w32font_match): Use it.
5375 (w32font_open_internal): New function.
5376 (w32font_open): Use it.
5377 (w32font_get_cache, w32font_close, w32font_has_char)
5378 (w32font_encode_char, w32font_text_extents, w32font_draw):
5379 Make non-static.
5380
5381 * makefile.w32-in (w32font.o): Depend on w32font.h.
5382
5383 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5384
5385 * charset.c (Fdefine_charset_internal): Record a supplementary
5386 charset at the tail of Vcharset_order_list.
5387
5388 * font.c (Ffont_shape_text): Fix the return value.
5389
5390 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
5391
5392 * xdisp.c (handle_auto_composed_prop): Fix previous change.
5393
5394 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5395
5396 * ftfont.c (struct OpenTypeSpec): New struct.
5397 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
5398 (ftfont_get_open_type_spec): New function.
5399 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
5400
5401 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
5402
5403 2008-02-01 Jason Rumney <jasonr@gnu.org>
5404
5405 * w32font.c (add_font_entity_to_list): Compare only the beginning
5406 of full name.
5407
5408 2008-02-01 Kenichi Handa <handa@m17n.org>
5409
5410 * xdisp.c (handle_auto_composed_prop): Simplify the code.
5411 Never return HANDLED_RECOMPUTE_PROPS.
5412
5413 2008-02-01 Kenichi Handa <handa@m17n.org>
5414
5415 * font.c (font_gstring_produce): Delete it.
5416
5417 * composite.h (COMPOSITION_METHOD):
5418 Handle COMPOSITION_WITH_GLYPH_STRING.
5419
5420 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5421
5422 * xfont.c (Qx): Delete.
5423 (syms_of_xfont): Don't initialize Qx.
5424
5425 * composite.h (enum composition_method):
5426 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
5427
5428 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5429
5430 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
5431 (choose_face_font): Accept new form of font-spec.
5432
5433 * frame.h (font_driver_list): Declare it unconditionally.
5434 (struct frame): Define members font_driver_list and font_data_list
5435 unconditionally.
5436
5437 * fontset.c: Include "font.h" unconditionally.
5438 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
5439 (Fset_fontset_font): Accept a font-spec object.
5440
5441 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
5442 PIXEL_SIZE part a wild card.
5443
5444 * dispextern.h (struct glyph_string): Define members clip and
5445 num_clips unconditionally.
5446 (struct face): Define members font_info and extra unconditionally.
5447
5448 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
5449 ftfont_info only when HAVE_LIBOTF is defined.
5450
5451 2008-02-01 Andreas Schwab <schwab@suse.de>
5452
5453 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
5454 and end.
5455
5456 2008-02-01 Jason Rumney <jasonr@gnu.org>
5457
5458 * w32font.c (w32font_driver): Add new fields.
5459
5460 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5461
5462 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
5463 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
5464 (LIBES): Add @M17N_FLT_CFLAGS@.
5465
5466 * composite.c (compose_text): Don't treat the new style
5467 composition specially.
5468
5469 * emacs.c (main): Call syms_of_font unconditionally.
5470
5471 * font.h (FONT_ENTITY_NOT_LOADABLE)
5472 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
5473 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
5474 (struct font_driver): New member shape.
5475 (font_registry_charsets): Extern it.
5476 (font_find_for_lface, font_prepare_composition): Adjust prototype.
5477 (font_otf_capability, font_drive_otf): Delete their externs.
5478
5479 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
5480 (font_charset_alist, font_registry_charsets): Move from xfont.c
5481 and rename.
5482 (font_prop_validate_otf): New function.
5483 (font_property_table): Register it for QCotf.
5484 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
5485 (font_drive_otf): Delete.
5486 (font_prepare_composition): New arg F. Adjust for the change of
5487 lispy gstring.
5488 (font_find_for_lface): New arg C.
5489 (font_load_for_face): Adjust for the change of font_find_for_lface.
5490 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
5491 lispy gstring.
5492 (Ffont_shape_text): New function.
5493 (Fopen_font): If the font size is not given, use 12-pixel.
5494 (Ffont_at): New arg STRING.
5495 (syms_of_font): Initalize font_charset_alist.
5496 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
5497 conditionally.
5498
5499 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
5500 fonts of the same font-spec. Change the format of RFONT-DEF.
5501 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
5502 Adjust for the change of RFONT-DEF.
5503 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
5504
5505 * ftfont.h: New file.
5506
5507 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
5508 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
5509 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5510 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
5511 font_otf_capability and font_drive_otf, set ftfont_shape.
5512 (ftfont_list): Adjust for the change of :otf property value.
5513 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
5514 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
5515 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
5516 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
5517 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
5518 (otf_gstring, gstring, m17n_flt_initialized): New variables.
5519
5520 * w32term.c (x_draw_composite_glyph_string_foreground):
5521 Adjust for the change of lispy gstring.
5522
5523 * xdisp.c (handle_composition_prop): Adjust for the change of
5524 lispy gstring. Call a function for auto-composition with the
5525 third arg it->window.
5526 (fill_composite_glyph_string): Adjust for the change of lispy string.
5527 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
5528
5529 * xfaces.c (set_font_frame_param): Adjust for the change of
5530 font_find_for_lface.
5531
5532 * xfont.c (x_font_charset_alist): Move to font.c and rename.
5533 (xfont_registry_charsets): Likewise. Change caller.
5534 (syms_of_xfont): Don't handle x_font_charset_alist.
5535
5536 * xftfont.c: Include "ftfont.h".
5537 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
5538 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5539 (xftfont_close) [HAVE_LIBOTF]: Close otf.
5540 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
5541 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
5542 Set xftfont_driver.shape to xftfont_shape.
5543
5544 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5545 the change of lispy gstring.
5546
5547 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5548
5549 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
5550
5551 2008-02-01 Jason Rumney <jasonr@gnu.org>
5552
5553 * w32font.c (w32font_draw): Fill background manually.
5554
5555 2008-02-01 Jason Rumney <jasonr@gnu.org>
5556
5557 * font.c (Qfontp): Remove unused symbol.
5558 (QCantialias): New symbol.
5559 (syms_of_font): Define it.
5560 (font_property_table): Set a validator for QCantialias.
5561
5562 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
5563 Define if not already.
5564 (QCfamily): Share with xfaces.c.
5565 (Qstandard, Qsubpixel, Qnatural): New symbols.
5566 (syms_of_w32font): Define them. Don't define QCfamily here.
5567 (w32_antialias_type, lispy_antialias_type): New functions.
5568 (w32_enumfont_pattern_entity): New arg requested_font.
5569 Set antialias parameter if non-default was requested.
5570 (fill_in_logfont): Fill in lfQuality if :antialias specified.
5571
5572 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5573
5574 * lread.c (read1): Undo the previous change.
5575
5576 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
5577
5578 * frame.c (Fdelete_frame): Call font_update_drivers only when
5579 USE_FONT_BACKEND is defined.
5580
5581 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5582
5583 * font.h (struct font_bitmap): New member bits_per_pixel.
5584 (struct font_driver): New members start_for_frame and end_for_frame.
5585 (struct font_data_list): New struct.
5586 (font_put_frame_data, font_get_frame_data): Extern them.
5587
5588 * frame.h (struct frame): New member font_data_list.
5589
5590 * font.c (font_update_drivers): Call driver->start_for_frame and
5591 driver->end_for_frame at proper timings.
5592 (font_put_frame_data, font_get_frame_data): New functions.
5593 (Ffont_spec): Add usage in the docstring.
5594
5595 * frame.c (make_frame): Initialize f->font_data_list to NULL.
5596 (Fdelete_frame): Call font_update_drivers.
5597
5598 * xftfont.c (struct xftface_info): Delete the member xft_draw.
5599 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
5600 (xftfont_get_xft_draw): New function.
5601 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
5602 (xftfont_end_for_frame): New function.
5603 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
5604
5605 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
5606 Change argument. Cache GCs in the per-frame data.
5607 (struct ftxfont_frame_data): New struct.
5608 (ftxfont_draw_bitmap): New arg gc_fore and flush.
5609 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
5610 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
5611 (ftxfont_end_for_frame): New function.
5612 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
5613
5614 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
5615
5616 2008-02-01 Kenichi Handa <handa@m17n.org>
5617
5618 * xselect.c (Vselection_coding_system)
5619 (Vnext_selection_coding_system): Delete them.
5620 (syms_of_xselect): Don't declare selection-coding-system and
5621 next-selection-coding-system. They are declared in select.el.
5622
5623 2008-02-01 Jason Rumney <jasonr@gnu.org>
5624
5625 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
5626
5627 * w32fns.c: Include imm.h.
5628 (get_composition_string_fn, get_ime_context_fn): New optional
5629 system functions.
5630 (globals_of_w32fns): Load them from imm32.dll.
5631 (ignore_ime_char): New flag.
5632 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
5633 WM_IME_ENDCOMPOSITION messages.
5634
5635 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
5636 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
5637
5638 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5639
5640 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
5641 (READCHAR_REPORT_MULTIBYTE): New macro.
5642 (readchar): New 2nd arg MULTIBYTE.
5643 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
5644 Make symbol's name multibyte according to the multibyteness of the
5645 source.
5646
5647 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5648
5649 * xfaces.c (face_for_overlay_string): Call lookup_face with
5650 correct arguments (fix of synching with the trunk).
5651
5652 2008-02-01 Kenichi Handa <handa@m17n.org>
5653
5654 * font.c (font_prop_validate_symbol, font_prop_validate_style)
5655 (font_prop_validate_non_neg, font_prop_validate_spacing):
5656 Delete argument prop_index.
5657 (font_property_table): Change arguments to validater. Change Callers.
5658 (font_lispy_object): Delete.
5659 (font_at): Use font_find_object instead fo font_lispy_object.
5660
5661 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
5662
5663 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
5664 and file names.
5665
5666 2008-02-01 Jason Rumney <jasonr@gnu.org>
5667
5668 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
5669 (font_matches_spec): Remove debug output.
5670 (add_font_entity_to_list): Avoid using substituted fonts.
5671
5672 2008-02-01 Jason Rumney <jasonr@gnu.org>
5673
5674 * doc.c (Fsnarf_documentation):
5675 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
5676
5677 2008-02-01 Miles Bader <miles@gnu.org>
5678
5679 * dispextern.h (struct glyph_row): Only define "clip" field if
5680 HAVE_WINDOW_SYSTEM is defined.
5681
5682 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
5683
5684 Fix up multi-tty merge.
5685
5686 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
5687 and indentation.
5688
5689 * xfaces.c (free_realized_face, clear_face_gcs):
5690 Include font_done_for_face in the input_blocked section, just in case.
5691
5692 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
5693 (get_char_face_and_encoding): Undo last change and remove the *other*
5694 duplicate definition (i.e. keep the one that's better scoped and that
5695 includes code for the font-backend).
5696
5697 * terminal.c (create_terminal): Default keyboard_coding to
5698 `no-conversion' and terminal_coding to `undecided'.
5699
5700 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
5701
5702 * fontset.c (free_realized_fontsets): Check that the table entry does
5703 contain a fontset before trying to compare it to `base'.
5704
5705 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
5706 syms_of_charset, and syms_of_coding earlier because init_window_once
5707 now needs Vcoding_system_hash_table to be setup.
5708
5709 * coding.h (default_buffer_file_coding): Remove.
5710
5711 * coding.c (default_buffer_file_coding): Remove.
5712 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
5713 than ->symbol, and use the terminal-local coding system.
5714 (syms_of_coding): Don't setup the coding-systems that are not
5715 terminal-local.
5716 (Fdefine_coding_system_internal): Use XCAR/XCDR.
5717
5718 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
5719 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
5720
5721 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
5722 in chartab.c and were re-added here by mistake.
5723 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
5724
5725 * doc.c (Fsnarf_documentation):
5726 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
5727 src to etc.
5728
5729 * ChangeLog.10: Add mistakenly removed entry.
5730
5731 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
5732
5733 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
5734
5735 2008-02-01 Miles Bader <miles@gnu.org>
5736
5737 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
5738 Add extra args to FACE_FOR_CHAR.
5739
5740 2008-02-01 Kenichi Handa <handa@m17n.org>
5741
5742 * keymap.c (where_is_internal_1): If key is a cons, store the copy
5743 in sequence.
5744
5745 * chartab.c (map_sub_char_table, map_char_table): If the range
5746 contains just one character, call the function with that character
5747 even if the depth is not 3.
5748
5749 2008-02-01 Jason Rumney <jasonr@gnu.org>
5750
5751 * w32font.c (w32font_text_extents): Calculate metrics for the
5752 whole string.
5753
5754 2008-02-01 Jason Rumney <jasonr@gnu.org>
5755
5756 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
5757
5758 2008-02-01 Jason Rumney <jasonr@gnu.org>
5759
5760 * w32term.c (x_set_glyph_string_clipping): Use
5761 get_glyph_string_clip_rects.
5762 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5763 Adjust for the change of struct glyph_string.
5764
5765 * w32font.c (w32font_draw): Do clipping here.
5766
5767 2008-02-01 Kenichi Handa <handa@m17n.org>
5768
5769 * xftfont.c (xftfont_draw): Adjust for the change of struct
5770 glyph_string.
5771
5772 * xterm.c (x_set_glyph_string_clipping): Use
5773 get_glyph_string_clip_rects.
5774 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5775 Adjust for the change of struct glyph_string.
5776
5777 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
5778 the resulting clip(s}.
5779 (expose_overlaps): Add arg r. Change callers. Set it to
5780 row->clip temporarily.
5781 (expose_window): Redraw rows overlapping the exposed area.
5782
5783 * dispextern.h (struct glyph_row): New member clip.
5784 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
5785 clip_height, new member clip, and num_clips.
5786
5787 2008-02-01 Kenichi Handa <handa@m17n.org>
5788
5789 * data.c (Fchar_or_string_p): Fix docstring.
5790
5791 2008-02-01 Kenichi Handa <handa@m17n.org>
5792
5793 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
5794 create a temporal XftDraw object.
5795
5796 2008-02-01 Kenichi Handa <handa@m17n.org>
5797
5798 * font.c (Ffontp): Fix docstring.
5799
5800 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
5801 strong evidence of ISO-2022.
5802
5803 2008-02-01 Kenichi Handa <handa@m17n.org>
5804
5805 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
5806 SYNTAX_ENTRY_FOLLOW_PARENT.
5807
5808 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
5809
5810 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
5811 its type.
5812 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
5813 Update to the new type of weak_hash_tables and next_weak.
5814
5815 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
5816 a plain C pointer to Lisp_Hash_Table.
5817
5818 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
5819 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
5820 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
5821 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
5822 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
5823 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
5824 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
5825 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
5826 (GC_EQ): Remove since they've been identical to their non-GC_
5827 alter-egos ever since the markbit was eradicated.
5828
5829 * alloc.c:
5830 * buffer.c:
5831 * buffer.h:
5832 * data.c:
5833 * fileio.c:
5834 * filelock.c:
5835 * fns.c:
5836 * frame.h:
5837 * lisp.h:
5838 * macterm.c:
5839 * print.c:
5840 * process.c:
5841 * w32fns.c:
5842 * w32menu.c:
5843 * w32term.c:
5844 * xfns.c:
5845 * xmenu.c:
5846 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
5847
5848 2008-02-01 Kenichi Handa <handa@m17n.org>
5849
5850 * chartab.c (map_sub_char_table): Make it work for the top-level
5851 char-table. Fix handling of parent char-table.
5852 (map_char_table): Adjust for the above change.
5853
5854 2008-02-01 Jason Rumney <jasonr@gnu.org>
5855
5856 * w32font.c (Qgdi): Rename from Qw32.
5857
5858 2008-02-01 Jason Rumney <jasonr@gnu.org>
5859
5860 * w32bdf.c (get_quoted_string): Make function static.
5861
5862 2008-02-01 Kenichi Handa <handa@m17n.org>
5863
5864 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
5865 bigger ascent and descent than those of the font, use them as
5866 font's ascent and descent.
5867
5868 2008-02-01 Kenichi Handa <handa@m17n.org>
5869
5870 * Makefile.in (${lispsource}international/charprop.el): Move this
5871 target within "#ifdef HAVE_UNIDATA" and "#endif".
5872
5873 2008-02-01 Kenichi Handa <handa@m17n.org>
5874
5875 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
5876 (shortlisp): Add ../lisp/language/tai-viet.el.
5877
5878 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
5879
5880 * Makefile.in (${lispsource}international/charprop.el): Depend on
5881 temacs${EXEEXT}.
5882
5883 2008-02-01 Jason Rumney <jasonr@gnu.org>
5884
5885 * w32font.c (w32font_close): Delete the GDI font object.
5886
5887 * w32menu.c: Include character.h.
5888
5889 * w32proc.c: Likewise.
5890
5891 * w32select.c: Likewise.
5892
5893 * makefile.w32-in (w32proc.o): Depend on character.h.
5894
5895 2008-02-01 Jason Rumney <jasonr@gnu.org>
5896
5897 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
5898
5899 * w32menu.c (syms_of_w32menu): Likewise.
5900
5901 * w32proc.c (syms_of_ntproc): Likewise.
5902
5903 * w32select.c (syms_of_w32select): Likewise.
5904
5905 * w32term.c (syms_of_w32term): Likewise.
5906
5907 2008-02-01 Jason Rumney <jasonr@gnu.org>
5908
5909 * w32font.c (w32font_draw): Delete brush after using it.
5910
5911 2008-02-01 Jason Rumney <jasonr@gnu.org>
5912
5913 * w32font.c (w32font_open): Don't set font_idx.
5914 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
5915 to font settings.
5916 (w32font_draw): Fill background explicitly.
5917
5918 2008-02-01 Jason Rumney <jasonr@gnu.org>
5919
5920 * w32term.c (w32_initialize): Don't call w32font_initialize.
5921
5922 * w32font.c (w32font_info): Remove subranges.
5923 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
5924 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
5925 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
5926 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
5927 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
5928 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
5929 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
5930 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
5931 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
5932 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
5933 New symbols.
5934 (font_callback_data): New struct.
5935 (w32font_list, w32font_match): Use it.
5936 (w32font_open): Don't populate subranges.
5937 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
5938 (w32font_encode_char): Always return unicode code-point as-is.
5939 (w32font_text_extents): Supply a tranformation matrix to
5940 GetGlyphOutline. Never look up by glyph index. Avoid looping
5941 twice. Use unicode version of GetTexExtentPoint32 instead of
5942 glyph index version.
5943 (set_fonts_frame): Remove.
5944 (w32_enumfont_pattern_entity): Add frame parameter, use it to
5945 set frame parameter. Use backward compatible fake foundries.
5946 Save generic family in extra slot under QCfamily. Make width slot
5947 constant. Save QCspacing value. Save list of scripts instead of
5948 binary subranges.
5949 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
5950 (add_font_entity_to_list): Use font_callback_data struct. Filter
5951 unwanted fonts.
5952 (add_one_font_entity_to_list): Use font_callback_data struct.
5953 (w32_registry): Default to iso10646_1.
5954 (fill_in_logfont): Use dpi from extra slot. Don't bother with
5955 string font registries. Don't fill in font name if it is a generic
5956 family name, fill family instead. Use spacing, family and script
5957 extra info to fill pitch, family and charset fields.
5958 (list_all_matching_fonts): Use font_callback_data struct.
5959 (unicode_range_for_char): Remove.
5960 (font_supported_scripts): New function.
5961 (w32font_initialize): Remove.
5962 (syms_of_w32font): Update which symbols are defined.
5963
5964 2008-02-01 Jason Rumney <jasonr@gnu.org>
5965
5966 * font.c (font_pixel_size): Reverse assq_no_quit args.
5967
5968 * w32term.h (FONT_WIDTH): Report max width, not average.
5969 (FONT_MAX_WIDTH): Remove.
5970 (FONT_AVG_WIDTH): New macro.
5971
5972 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
5973 redefinition of FONT_WIDTH.
5974
5975 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
5976 (w32_cache_char_metrics): Use FONT_WIDTH.
5977
5978 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
5979
5980 2008-02-01 Jason Rumney <jasonr@gnu.org>
5981
5982 * w32font.c (w32font_open): Make lfHeight negative.
5983
5984 * w32fns.c (x_default_font_parameter): Use new style font name.
5985 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
5986
5987 2008-02-01 Jason Rumney <jasonr@gnu.org>
5988
5989 * w32font.c (QCsubranges): New symbol.
5990 (w32font_open, w32font_has_char): Get subranges from subproperty
5991 of extra.
5992 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
5993 (syms_of_w32font): Define :subranges symbol.
5994
5995 * font.c (font_put_extra): Expose externally.
5996
5997 * font.h (font_put_extra): Move declaration from font.c.
5998
5999 * font.c (Ffont_get): Use font driver to determine otf capability.
6000 (adjust_anchor): Check if driver defines anchor_point before using.
6001
6002 * w32font.c (w32font_open): Handle size, height and pixel_size better.
6003 (w32font_draw): Use options.
6004 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
6005 Fix detection of truetype fonts.
6006 (registry_to_w32_charset): Handle charsets other than iso8859-1
6007 expressed as lisp symbols.
6008 (w32_registry): Express charset as lisp symbol.
6009 (fill_in_logfont): Reverse pixel and point height logic.
6010 Don't set width here. Set quality to default.
6011
6012 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
6013 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
6014
6015 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6016 Remove redundant loop and allocation.
6017
6018 * makefile.w32-in (font.o, w32font.o): New objects.
6019 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
6020 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
6021
6022 * xdisp.c (fill_composite_glyph_string): Make the first arg to
6023 STORE_XCHARB a valid l-value.
6024
6025 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
6026 calculations for non-Truetype fonts.
6027 (x_draw_glyph_string): Sync with xterm.c.
6028 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6029 Remove redundant code.
6030 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
6031
6032 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
6033 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
6034
6035 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
6036 (x_to_w32_charset, w32_to_x_charset): Expose externally.
6037
6038 * w32font.c: New file for w32 font backend.
6039
6040 2008-02-01 Kenichi Handa <handa@m17n.org>
6041
6042 * term.c: Don't include "buffer.h" twice.
6043
6044 2008-02-01 Kenichi Handa <handa@m17n.org>
6045
6046 * character.c (Funibyte_string): New function.
6047 (syms_of_character): Defsubr it.
6048
6049 2008-02-01 Jason Rumney <jasonr@gnu.org>
6050
6051 * w32term.c [USE_FONT_BACKEND]:
6052 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
6053 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
6054 (x_draw_glyph_string, x_draw_glyph_string_foreground)
6055 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
6056 (x_free_frame_resources): Sync with xterm.c.
6057
6058 2008-02-01 Andreas Schwab <schwab@suse.de>
6059
6060 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
6061 char-table size.
6062
6063 2008-02-01 Kenichi Handa <handa@m17n.org>
6064
6065 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
6066
6067 2008-02-01 Kenichi Handa <handa@m17n.org>
6068
6069 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
6070 font_otf_gpos, add font_drive_otf.
6071
6072 * fontset.c (fontset_find_font): Pay attention to font size
6073 specified for a font.
6074 (reorder_font_vector): Check contents of font_def.
6075
6076 * font.c (struct otf_list): Delete it.
6077 (otf_list): Make it a lisp variable.
6078 (otf_open): Use lispy otf_list.
6079 (generate_otf_features): Rename from parse_gsub_gpos_spec.
6080 (check_otf_features): New function.
6081 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6082 New functions.
6083 (font_drive_otf): New function merging font_otf_gsub and
6084 font_otf_gpos.
6085 (font_open_for_lface): New arg spec. Change argument order.
6086 (font_load_for_face): Adjust for the change of font_open_for_lface.
6087 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
6088 Ffont_otf_gpos.
6089 (syms_of_font): Staticpro otf_list. Delete defsubr of
6090 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
6091
6092 * xfaces.c (set_font_frame_param): Adjust for the change of
6093 font_open_for_lface.
6094
6095 * font.h (font_open_for_lface): Adjust prototype.
6096 (struct font_driver): Delete members otf_gsub and otf_gpos, add
6097 member otf_drive.
6098 (font_otf_gsub, font_otf_gpos): Delete externs.
6099 (font_drive_otf): Extern it.
6100
6101 2008-02-01 Kenichi Handa <handa@m17n.org>
6102
6103 * font.c (font_at): If the window W is not on a window system,
6104 return Qnil.
6105
6106 * coding.c (produce_chars, encode_coding): Don't call
6107 insert_from_gap if no characters to produce.
6108
6109 2008-02-01 Kenichi Handa <handa@m17n.org>
6110
6111 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
6112 Fclear_face_cache.
6113
6114 * xfaces.c (face_for_font): Check also face->font==font->font.font.
6115
6116 2008-02-01 Miles Bader <miles@gnu.org>
6117
6118 * emacs.c (main): Change default value of `enable_font_backend' to 1.
6119 Parse "--disable-font-backend" option.
6120 (standard_args): Add "--disable-font-backend" option.
6121
6122 2008-02-01 Kenichi Handa <handa@m17n.org>
6123
6124 * fontset.c (fontset_find_font): New function.
6125 (fontset_font): Use fontset_find_font.
6126 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
6127 Register the specified font for all Latin characters.
6128 (new_fontset_from_font): Register the specified font for all Latin
6129 characters.
6130 (dump_fontset): For a realized fontset, include the base fontset
6131 name in the returned vector.
6132
6133 2008-02-01 Kenichi Handa <handa@m17n.org>
6134
6135 * character.h (CHAR_STRING): Cast C to unsigned on calling
6136 char_string.
6137
6138 * character.c (char_string): Type of arg C changed to unsigned.
6139 Signal an error if C is an invalid character code.
6140
6141 * editfns.c (general_insert_function, Fchar_to_string):
6142 Use CHARACTERP, not INTEGERP.
6143
6144 2008-02-01 Kenichi Handa <handa@m17n.org>
6145
6146 * character.h (MIN_MULTIBYTE_LEADING_CODE)
6147 (MAX_MULTIBYTE_LEADING_CODE): New macros.
6148
6149 * regex.c (analyse_first): Fix for multibyte characters in "case
6150 charset:" and "case categoryspec:".
6151
6152 2008-02-01 Andreas Schwab <schwab@suse.de>
6153
6154 * Makefile.in (LIBES): Move standard libraries to the end.
6155
6156 2008-02-01 Kenichi Handa <handa@m17n.org>
6157
6158 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
6159 nonzero, don't shrink the buffer nextb.
6160
6161 * buffer.h (struct buffer_text): New member inhibit_shrinking.
6162
6163 * coding.c (coding_alloc_by_making_gap): New arg offset.
6164 (alloc_destination): Call coding_alloc_by_making_gap with the arg
6165 offset.
6166 (decode_coding_iso_2022): Update coding->safe_charsets.
6167 (decode_coding_gap): Temporarily set
6168 current_buffer->text->inhibit_shrinking to 1.
6169
6170 2008-02-01 Kenichi Handa <handa@m17n.org>
6171
6172 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
6173 indexing into elements of s->cmp and s->char2b.
6174
6175 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
6176
6177 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
6178
6179 2008-02-01 Kenichi Handa <handa@m17n.org>
6180
6181 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
6182 target_multibyte instead of multibyte.
6183 (re_match_2_internal): Call bcmp_translate with target_multibyte.
6184 (bcmp_translate): Change the argument name from multibyte to
6185 target_multibyte.
6186
6187 2008-02-01 Kenichi Handa <handa@m17n.org>
6188
6189 These changes are to compile a regexp into a pattern that can be
6190 used both for multibyte and unibyte targets.
6191
6192 * Makefile.in (search.o): Depend on charset.h.
6193
6194 * character.c (multibyte_char_to_unibyte_safe): New function.
6195
6196 * search.c: Include "charset.h".
6197 (compile_pattern_1): Delete argument multibyte. Don't set
6198 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
6199 (compile_pattern): Don't compare cp->buf.target_multibyte.
6200 Compare cp->buf.charset_unibyte.
6201 (compile_pattern): Set cp->buf.target_multibyte.
6202
6203 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
6204
6205 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
6206
6207 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
6208 multibyte. Change callers.
6209 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
6210 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
6211 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
6212 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
6213 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
6214 (regex_compile): Make the compiled pattern usable both for
6215 multibyte and unibyte targets.
6216 (analyse_first): Make the fastmap usable both for multibyte and
6217 unibyte targets.
6218 (TRANSLATE_VIA_MULTIBYTE): Delete.
6219 (re_match_2_internal): Pay attention to the case that the
6220 multibyteness of bufp and target may be different.
6221
6222 2008-02-01 Kenichi Handa <handa@m17n.org>
6223
6224 * xdisp.c (x_produce_glyphs): When a font is not found, make the
6225 empty box occupy at least one column width.
6226
6227 2008-02-01 Miles Bader <miles@gnu.org>
6228
6229 * Makefile.in: Remove redundant HAVE_XFT clause.
6230
6231 2008-02-01 Kenichi Handa <handa@m17n.org>
6232
6233 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
6234
6235 2008-02-01 Kenichi Handa <handa@m17n.org>
6236
6237 * fontset.c (Finternal_char_font): Fix for the case of POSITION
6238 being nil.
6239
6240 2008-02-01 Kenichi Handa <handa@m17n.org>
6241
6242 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
6243
6244 2008-02-01 Kenichi Handa <handa@m17n.org>
6245
6246 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
6247
6248 2008-02-01 Kenichi Handa <handa@m17n.org>
6249
6250 * search.c (simple_search): Fix previous change.
6251
6252 2008-02-01 Kenichi Handa <handa@m17n.org>
6253
6254 * xftfont.c (ftfont_font_format): Extern declaration.
6255
6256 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
6257
6258 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
6259 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
6260
6261 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
6262 (ftfont_font_format): Fix previous change.
6263
6264 * font.h (Ffont_xlfd_name): EXFUN it.
6265
6266 * font.c (font_parse_xlfd): Fix the array size of `f'.
6267 (register_font_driver): Use EQ to compare driver->type.
6268
6269 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
6270 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
6271 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
6272
6273 2008-02-01 Kenichi Handa <handa@m17n.org>
6274
6275 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
6276 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
6277
6278 2008-02-01 Kenichi Handa <handa@m17n.org>
6279
6280 * xfont.c (xfont_open): Set font->format.
6281
6282 * xftfont.c (xftfont_open): Set font->format.
6283
6284 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
6285 (ftfont_list): Include FC_FONTFORMAT in FcObject.
6286 (ftfont_open): Set font->format.
6287 (ftfont_font_format): New function.
6288
6289 * font.h (struct font): New memeber format.
6290
6291 * font.c (Qopentype): New variable.
6292 (syms_of_font): Defsym it.
6293 (Fquery_font): Change the format of the last element of the return
6294 value.
6295
6296 2008-02-01 Kenichi Handa <handa@m17n.org>
6297
6298 * xfns.c (xic_create_xfontset): Try the default fontset name as a
6299 last resort.
6300
6301 2008-02-01 Kenichi Handa <handa@m17n.org>
6302
6303 * coding.c (detect_coding_charset): Fix detection of multi-byte
6304 charset.
6305
6306 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
6307
6308 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
6309
6310 2008-02-01 Kenichi Handa <handa@m17n.org>
6311
6312 * xdisp.c (get_next_display_element): Set it->face_id for the
6313 first component of a composition.
6314 (x_produce_glyphs): Check if the font is changed or not for composition.
6315
6316 2008-02-01 Kenichi Handa <handa@m17n.org>
6317
6318 * fontset.c (Qlatin): New variable.
6319 (syms_of_fontset): Define it as a lisp symbol.
6320 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
6321
6322 2008-02-01 Kenichi Handa <handa@m17n.org>
6323
6324 * font.c (font_unparse_fcname): Pay attention to the case that
6325 some of font property is a null string.
6326
6327 2008-02-01 Kenichi Handa <handa@m17n.org>
6328
6329 * term.c: Include "composite.h".
6330 (encode_terminal_code): Output all components of composition.
6331 Check the size of encode_terminal_src.
6332 (produce_glyphs): For composition, call produce_composite_glyph.
6333 (append_composite_glyph, produce_composite_glyph): New functions.
6334
6335 * xdisp.c (x_produce_glyphs): In handling composition, if a font
6336 is not found, get font_info from the current ascii face.
6337
6338 2008-02-01 Kenichi Handa <handa@m17n.org>
6339
6340 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
6341 buffer-file-name to Qnil before calling insert_from_buffer.
6342
6343 * font.c (font_unparse_fcname): Pay attention to the case that
6344 foundry is a null string.
6345
6346 2008-02-01 Kenichi Handa <handa@m17n.org>
6347
6348 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
6349
6350 * font.c (Qunicode_sip): New variable.
6351 (syms_of_font): Declare it as a Lisp symbol.
6352
6353 * font.h (Qunicode_sip): Extern it.
6354
6355 2008-02-01 Kenichi Handa <handa@m17n.org>
6356
6357 * composite.c (get_composition_id): Pay attention to TAB component.
6358
6359 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
6360 TAB. Adjust for the change of s->char2b which always points to
6361 the first elememnt of allocated memory.
6362
6363 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
6364
6365 * xdisp.c (handle_composition_prop): Set it->c to the first
6366 non-TAB component.
6367 (fill_composite_glyph_string): Change argument.
6368 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
6369 (x_produce_glyphs): Fix handling of left/right padding.
6370
6371 2008-02-01 Kenichi Handa <handa@m17n.org>
6372
6373 * coding.c (detect_coding_system): Fix for handling off
6374 inhibit_iso_escape_detection. Fix for the case that no coding
6375 system is defined for a specific coding category.
6376
6377 2008-02-01 Kenichi Handa <handa@m17n.org>
6378
6379 * font.c (font_matching_entity): Delete unused local var.
6380
6381 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
6382 opening a font.
6383
6384 * fileio.c (Finsert_file_contents): On recovering a file, assume
6385 Unix-like eol.
6386 (choose_write_coding_system): On auto-saving a file, force
6387 Unix-like eol.
6388
6389 * coding.c (setup_coding_system): Fix setting of
6390 coding->common_flags based on eol_type.
6391 (coding_inherit_eol_type): If PARENT is not nil, be sure to
6392 inherit from it.
6393
6394 2008-02-01 Kenichi Handa <handa@m17n.org>
6395
6396 * alloc.c (NSTATICS): Increas to 0x600.
6397
6398 2008-02-01 Kenichi Handa <handa@m17n.org>
6399
6400 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
6401 (ftfont_list): Don't check :name property.
6402 (ftfont_match): New function.
6403 (ftfont_pattern_entity): If the pattern doesn't contain
6404 FC_SPACING, don't assuce FC_MONO.
6405
6406 * font.h (struct font_driver): New member `match'.
6407 (font_update_drivers): Adjust prototype.
6408
6409 * font.c (font_parse_fcname, font_parse_name): Don't change :name
6410 property of FONT.
6411 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
6412 them unconditionally.
6413 (font_matching_entity): New function.
6414 (font_open_by_name): Try font_matching_entity if exact match is
6415 not found.
6416 (font_update_drivers): Delete the arg FONT. Return a list of
6417 actually used backends. Don't free faces, font caches here.
6418 Don't store data in frame parameters. Don't call x_set_font.
6419 (Ffont_spec): Store :name property as is.
6420 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
6421 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
6422 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
6423 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
6424 Call font->driver->otf_gsub instead of font_otf_gsub.
6425
6426 * frame.c (x_set_font_backend): Do more works that were done in
6427 font_update_drivers before.
6428
6429 * xfont.c (xfont_match): New function.
6430 (xfont_driver): Set xfont_driver.match to xfont_match.
6431 (xfont_draw): Set font in GC if necessary.
6432
6433 * ftxfont.c (ftxfont_match): New function.
6434 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
6435
6436 * xftfont.c (xftfont_match): New function.
6437 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
6438
6439 2008-02-01 Kenichi Handa <handa@m17n.org>
6440
6441 * font.h (struct font): New member scalable.
6442 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
6443 (font_otf_gsub): Adjust prototype.
6444
6445 * font.c (font_otf_capability): Fix handling of the default langsys.
6446 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
6447 Check the contents of SPEC.
6448 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
6449 (check_gstring): New function.
6450 (REPLACEMENT_CHARACTER): New macro.
6451 (font_otf_gsub): New arg alternate_subst. Be sure to set all
6452 glyph codes of GSTRING.
6453 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
6454 (font_prepare_composition): Set cmp->glyph_len.
6455 (font_open_entity): Set font->scalable.
6456 (Ffont_get): Handle :otf property.
6457 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
6458 functions.
6459 (Fquery_font): Use font->font.full_name.
6460 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
6461 Sfont_otf_alternates.
6462
6463 * ftfont.c (ftfont_open): Set font->font.full_name and
6464 font->font.name properly. Fix calculation of font->font.height
6465 and font->min_width.
6466
6467 * ftxfont.c (ftxfont_create_gcs): New function.
6468 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
6469 (ftxfont_draw_backgrond): Fix filling region.
6470 (ftxfont_default_fid): New function.
6471 (ftxfont_open): Set xfotn->fid to the return value of
6472 ftxfont_default_fid.
6473 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
6474 (ftxfont_done_face): Free only GCs that are created by
6475 ftxfont_create_gcs.
6476 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
6477
6478 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
6479 Clip to src->width, etc (not src->clip_XXX).
6480
6481 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
6482 FontBackend frame parameter.
6483
6484 2008-02-01 Kenichi Handa <handa@m17n.org>
6485
6486 * font.h (struct font_driver_list): New member `on'.
6487 (Fclear_font_cache): EXFUN it.
6488 (font_update_drivers): Extern it.
6489
6490 * font.c (font_unparse_fcname): Fix typo (swidth->width).
6491 (font_list_entities): Check driver_list->on.
6492 (register_font_driver): Initalize `on' member to 0.
6493 (font_update_drivers): New function.
6494 (Fclear_font_cache): Check driver_list->on.
6495
6496 * frame.h (Qfont_backend): Extern it.
6497 (x_set_font_backend): Extern it.
6498
6499 * frame.c (Qfont_backend): New variable.
6500 (frame_parms): New element for font-backend.
6501 (x_set_font_backend): New function.
6502
6503 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
6504 FontBackend frame parameter.
6505 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
6506 x_set_font_backend.
6507
6508 * xfont.c (xfont_list): Don't try listing by :name property if the
6509 name is not for XLFD.
6510
6511 2008-02-01 Kenichi Handa <handa@m17n.org>
6512
6513 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
6514 (LGLYPH_SET_TO): New macros.
6515 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
6516 element of G is vector or not.
6517 (font_at): Extern it.
6518
6519 * font.c: Include window.h.
6520 (font_lispy_object): New function.
6521 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
6522 end of valid glyph.
6523 (font_close_object): Fix getting (struct font *).
6524 (font_at): New function.
6525 (Ffont_get): If FONT is a font-object, get entity from it.
6526 (Ffont_make_gstring): Initialize elements of glyphs with nil.
6527 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
6528 range check.
6529 (Ffont_at): New function.
6530 (syms_of_font): Defsubr Sfont_at.
6531
6532 * xdisp.c (it_props): Move the entry for Qauto_composed to just
6533 before the entry for Qcomposition.
6534 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
6535 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
6536 the font in gstring.
6537 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
6538 LGLYPH_FORM (g) to detect the end of valid glyph.
6539 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
6540 we are composing with gstring.
6541
6542 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
6543 Check if adjustment is vector or not.
6544
6545 * Makefile.in (font.o): Make it depends on window.h.
6546
6547 2008-02-01 Kenichi Handa <handa@m17n.org>
6548
6549 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
6550 adjustment is vector or not.
6551
6552 2008-02-01 Miles Bader <miles@gnu.org>
6553
6554 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
6555
6556 2008-02-01 Kenichi Handa <handa@m17n.org>
6557
6558 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
6559 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
6560 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
6561
6562 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
6563 (DEVICE_DELTA): Fix typo.
6564 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
6565 LGLYPH format.
6566
6567 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6568 the change of LGLYPH format.
6569
6570 2008-02-01 Kenichi Handa <handa@m17n.org>
6571
6572 * ftfont.c (ftfont_list): Fix typo.
6573 (ftfont_build_basic_charsets): Don't include letters with diacritics.
6574
6575 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6576
6577 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
6578
6579 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
6580 xftface_info is non-NULL.
6581
6582 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6583
6584 * ftfont.c (ftfont_list): Move misplaced #endif.
6585
6586 2008-02-01 Kenichi Handa <handa@m17n.org>
6587
6588 * ftfont.c (ftfont_list): Pay attention to the case that
6589 FC_CAPABILITY is not defined.
6590
6591 2008-02-01 Kenichi Handa <handa@m17n.org>
6592
6593 * xftfont.c (xftfont_open): Set charset related members to -1.
6594
6595 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
6596 QCname.
6597 (ftfont_open): Set charset related members to -1.
6598
6599 * fontset.c (Votf_script_alist): New variable.
6600 (syms_of_fontset): Initialize it.
6601 (fontset_font): Delete unused variable.
6602
6603 * fontset.h (Votf_script_alist): Extern it.
6604
6605 * font.c (font_find_for_lface): Optimize code.
6606
6607 * font.h (font_close_object, font_merge_old_spec): Extern them.
6608
6609 2008-02-01 Kenichi Handa <handa@m17n.org>
6610
6611 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
6612 (syms_of_font): Initialize them.
6613 (font_pixel_size): Allow float value in dpi.
6614 (font_prop_validate_type): Delete.
6615 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
6616 Change caller.
6617 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
6618 (font_prop_validate_extra): Delete.
6619 (font_prop_validate_spacing): New function.
6620 (font_property_table): Add elements for all known properties.
6621 (get_font_prop_index): Rename from check_font_prop_name. New
6622 argument FROM. Change caller.
6623 (font_prop_validate): Validate all known properties.
6624 (font_put_extra): Delete argument force. Change caller.
6625 (font_expand_wildcards): Make it static. Fix the way of shrinking
6626 the possible range.
6627 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
6628 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
6629 Change caller.
6630 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
6631 (font_parse_fcname): Delete argument merge. Fix parsing of point
6632 size. Don't validate properties values here. Change caller.
6633 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
6634 (font_open_by_name): Delete unused variable.
6635 (Ffont_spec): Likewise. Validate property values.
6636 (Ffont_match_p): New function.
6637
6638 * font.h (QCscalable): Extern it.
6639 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
6640
6641 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
6642
6643 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
6644 (xfont_list_pattern): New function.
6645 (xfont_list): Use xfont_list_pattern.
6646
6647 2008-02-01 Kenichi Handa <handa@m17n.org>
6648
6649 * font.h (Flist_fonts): EXFUN it.
6650
6651 2008-02-01 Jason Rumney <jasonr@gnu.org>
6652
6653 * w32term.c (w32_initialize): Add back smoothing_type and
6654 smoothing_enabled definitions.
6655
6656 2008-02-01 Kenichi Handa <handa@m17n.org>
6657
6658 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
6659 s->face->font on determining underline position.
6660
6661 2008-02-01 Kenichi Handa <handa@m17n.org>
6662
6663 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
6664 (font_has_char): Accept font-object too.
6665 (font_find_for_lface): Try at first with a size specified in face.
6666
6667 2008-02-01 Kenichi Handa <handa@m17n.org>
6668
6669 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
6670 font_open_by_name.
6671
6672 2008-02-01 Kenichi Handa <handa@m17n.org>
6673
6674 * font.h (QCspacing, QCdpi): Extern them.
6675 (enum font_spacing): New enum.
6676 (FONT_PIXEL_SIZE_QUANTUM): New macro.
6677
6678 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
6679 (QCspacing, QCdpi): New variables.
6680 (syms_of_font): Initialize them.
6681 (font_pixel_size): New function.
6682 (font_put_extra): New function.
6683 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
6684 in FONT_EXTRA.
6685 (font_parse_fcname): Handle enumenrated values (e.g. bold).
6686 Fix handling font size. Add QCname property that contains only
6687 unknown properties.
6688 (font_score): Change argument. Change caller. Pay attention to
6689 FONT_PIXEL_SIZE_QUANTUM.
6690 (font_sort_entites, font_list_entities, font_find_for_lface)
6691 (font_open_for_lface, font_open_by_name): Fix handling of font size.
6692 (Ffont_spec): Add QCname property that contains only unknown properties.
6693
6694 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
6695 include weight in listing pattern, instead check weight of each
6696 listed font. Don't include scalable in pattern. Pay attention to
6697 FONT_PIXEL_SIZE_QUANTUM.
6698
6699 2008-02-01 Kenichi Handa <handa@m17n.org>
6700
6701 * font.c (font_parse_fcname): Fix parsing of point-size.
6702 (font_unparse_fcname): Produce symbolic names for style properties.
6703 (font_list_entities): Handle float size correctly.
6704 (font_open_by_name): Prefer `normal' property values if the name
6705 doesn't specify them.
6706
6707 * fontset.c (Finternal_char_font): Use font_get_name, not
6708 Ffont_xlfd_name.
6709
6710 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
6711 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
6712 pattern. Don't force scalable.
6713
6714 * xftfont.c (xftfont_open): For generating a name, start from
6715 96-byte buffer.
6716
6717 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
6718
6719 * frame.h (x_new_fontset2): Fix prototype.
6720
6721 2008-02-01 Kenichi Handa <handa@m17n.org>
6722
6723 * font.h (struct font_driver): Delete member parse_name.
6724 (font_match_p, font_get_spec, font_parse_fcname)
6725 (font_unparse_fcname): Extern them.
6726 (font_get_name): Adjust prototype.
6727
6728 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
6729 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
6730 (font_expand_wildcards): Fix handling ENCODING field. Avoid
6731 unnecessary checks for weight, slant, and swidth.
6732 (font_parse_fcname): New function.
6733 (font_unparse_fcname): New function.
6734 (font_parse_name): New function.
6735 (font_match_p): New function.
6736 (font_get_name): Change return value to Lisp string.
6737 (font_get_spec): New function.
6738 (Qunspecified, Qignore_defface): Don't extern them.
6739 (font_find_for_lface): Assume that LFACE is fully specified.
6740 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
6741 object, use it for FACE.
6742 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
6743 driver->parse_name.
6744 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
6745
6746 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
6747 prototype.
6748
6749 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
6750 argument F. Don't call Fnew_fontset. Instead, directly call
6751 make_fontset.
6752
6753 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
6754
6755 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
6756 of x_new_fontset2.
6757
6758 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
6759 (Qsans__serif): New variables.
6760 (ftfont_generic_family_list): New variable.
6761 (syms_of_ftfont): Initialize the above variables.
6762 (ftfont_pattern_entity): Delete argument NAME.
6763 (ftfont_list_generic_family): New function.
6764 (ftfont_parse_name): Delete this function.
6765 (ftfont_list): Try generic family only when FcFontList found no font.
6766 (ftfont_list_family): Fix args to FcObjectSetBuild.
6767
6768 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
6769 object in attrs[LFACE_FONT_INDEX].
6770 (set_lface_from_font_name): Cancel all changes for font-backend.
6771 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
6772 function.
6773 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
6774 font object in QCfont attribute.
6775 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
6776 (realize_default_face) [USE_FONT_BACKEND]: Call
6777 set_lface_from_font_and_fontset.
6778
6779 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
6780 "fixed", and signal error here if no suitable font was found.
6781
6782 * xfont.c (xfont_parse_name): Delete this function.
6783
6784 * xftfont.c (xftfont_open): Change coding style of error
6785 handling. Generate fontconfig's fontname pattern.
6786
6787 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
6788 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
6789
6790 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
6791 Both args FONTSET and FONT_OBJECT must be existing ones.
6792
6793 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6794
6795 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
6796
6797 2008-02-01 Kenichi Handa <handa@m17n.org>
6798
6799 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
6800
6801 * font.h (struct font): Fix typo.
6802
6803 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
6804 XLFD_XXX_INDEX.
6805 (enum xlfd_field_mask): New enum.
6806 (intern_font_field): Changed argument. Change caller. If digits
6807 are followed by non-digits, return a symbol.
6808 (font_expand_wildcards): New function.
6809 (font_parse_xlfd): Fix wildcard handling.
6810 (Ffont_spec): If :name is specified, reflect the info in the other
6811 properties.
6812
6813 * ftfont.c (ftfont_pattern_entity): Fix typo.
6814 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
6815 locale.
6816
6817 2008-02-01 Kenichi Handa <handa@m17n.org>
6818
6819 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
6820
6821 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
6822 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
6823 registry doesn't specify encoding part.
6824 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
6825 (font_open_by_name): At first try parsing the name.
6826 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
6827 as Lisp symbols.
6828
6829 * fontset.c (reorder_font_vector): Pay attention to the case that
6830 the 3rd element of font_def is nil.
6831 (fontset_font): For the default fontset, append one more fontset
6832 elements for a script-based font specification. Don't add script
6833 attribute on finding a font.
6834 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
6835 font name.
6836 (fontset_ascii_font): If a font can't be opened, return nil.
6837
6838 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
6839 (ftfont_pattern_entity): New function.
6840 (ftfont_get_cache): Assume that freetype_font_cache is already
6841 initialized.
6842 (ftfont_list): Handle the case that a file is specified in font
6843 name. Use ftfont_pattern_entity to generate entities.
6844 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
6845 (syms_of_ftfont): Initialize freetype_font_cache.
6846
6847 * xftfont.c (xftfont_open): Make the font name fontconfig's
6848 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
6849 (xftfont_close): Free font->font.name if not NULL.
6850
6851 * xfont.c (xfont_list): If script is specified for a font, return
6852 null_vector.
6853 (xfont_list_family): Declare argument type.
6854
6855 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
6856 name, set LFACE_FONT (lface) to nil.
6857
6858 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
6859 return Qnil.
6860
6861 2008-02-01 Kenichi Handa <handa@m17n.org>
6862
6863 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
6864 (standard_args): Add "-enable-font-backend".
6865
6866 2008-02-01 Kenichi Handa <handa@m17n.org>
6867
6868 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
6869 (struct xftdraw_list, xftdraw_list): Delete them.
6870 (register_xftdraw, check_xftdraw): Delete them.
6871 (xftfont_prepare_face): Don't call register_xftdraw.
6872 (xftfont_done_face): Don't call check_xftdraw.
6873 (xftfont_draw): Get backroudn color only when with_background is
6874 nonzero.
6875
6876 * xfont.c (xfont_encode_char): Fix calculation of char2b.
6877
6878 2008-02-01 Kenichi Handa <handa@m17n.org>
6879
6880 These changes are for the new font handling codes.
6881
6882 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
6883 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
6884 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
6885 (FONTSRC, FONTOBJ): New variables.
6886 (obj): Add $(FONTOBJ).
6887 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
6888 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
6889 @LIBOTF_LIBS@.
6890 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
6891 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
6892
6893 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
6894
6895 * character.h (Vscript_representative_chars): Extern it.
6896
6897 * character.c (Vscript_representative_chars): New variable.
6898 (syms_of_character): Declare it as a Lisp variable.
6899
6900 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
6901 enable_font_backend is nonzero, accept the composition method
6902 COMPOSITION_WITH_GLYPH_STRING.
6903
6904 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
6905 enumeration COMPOSITION_WITH_GLYPH_STRING.
6906
6907 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
6908 members clip_x, clip_y, clip_width, and clip_height.
6909 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
6910
6911 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
6912 --enable-font-backend. Call syms_of_font.
6913
6914 * fns.c (assoc_no_quit): New function.
6915
6916 * fontset.h (FONT_INFO_FROM_FACE): New macro.
6917 (face_for_font, new_fontset_from_font)
6918 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
6919
6920 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
6921 (fontset_font, fontset_ascii, face_for_char)
6922 (make_fontset_for_ascii_face, Ffont_info)
6923 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
6924 is nonzero, use font-backend mechanism.
6925 (find_font_encoding): Make it non-static.
6926 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
6927 New functions.
6928
6929 * frame.h (struct frame): New members resx and resy.
6930 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
6931 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
6932
6933 * frame.c [USE_FONT_BACKEND]: Include "font.h".
6934 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
6935
6936 * lisp.h (assoc_no_quit): Extern it.
6937
6938 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
6939 Through out the file, use FONT_INFO_FROM_FACE instead of
6940 FONT_INFO_FROM_ID, use get_per_char_metric instead of
6941 rif->per_char_metric.
6942 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
6943 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
6944 (get_glyph_face_and_encoding, fill_composite_glyph_string)
6945 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6946 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
6947 nonzero, use font-backend mechanism.
6948 (get_per_char_metric): New function.
6949
6950 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
6951 (set_lface_from_font_name)
6952 (set_font_frame_param, free_realized_face)
6953 (prepare_face_for_display, clear_face_gcs)
6954 (Finternal_set_font_selection_order, realize_x_face)
6955 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
6956 font-backend mechanism.
6957 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
6958 (load_face_font) [USE_FONT_BACKEND]: Abort.
6959 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
6960 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
6961
6962 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
6963 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
6964 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
6965 nonzero, register all available font drivers. Call
6966 x_default_font_parameter for deciding a font.
6967 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
6968
6969 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
6970 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
6971 (x_set_glyph_string_clipping_exactly)
6972 (x_compute_glyph_string_overhangs)
6973 (x_draw_glyph_string_foreground)
6974 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
6975 (x_free_frame_resources) [USE_FONT_BACKEND]: If
6976 enable_font_backend is nonzero, use font-backend mechanism.
6977 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
6978
6979 2008-02-01 Kenichi Handa <handa@m17n.org>
6980
6981 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
6982 system_eol_type.
6983 (syms_of_coding): Initialize system_eol_type.
6984
6985 * process.c (Fset_process_coding_system): Inherit system's eol
6986 format if necessary.
6987
6988 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6989
6990 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
6991
6992 2008-02-01 Kenichi Handa <handa@m17n.org>
6993
6994 * coding.c (decode_eol): Pay attention to buffer relocation in
6995 del_range_2.
6996 (decode_coding): Call decode_eol before restoring undo_list.
6997
6998 2008-02-01 Kenichi Handa <handa@m17n.org>
6999
7000 * charset.c (Fdefine_charset_internal): Fix setting of
7001 emacs_mule_bytes.
7002
7003 2008-02-01 Kenichi Handa <handa@m17n.org>
7004
7005 * keyboard.c (read_char): Check if C is a character or not before
7006 looking up Vkeyboard_translate_table.
7007
7008 2008-02-01 Kenichi Handa <handa@m17n.org>
7009
7010 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
7011 condition to terminate the loop.
7012
7013 2008-02-01 Kenichi Handa <handa@m17n.org>
7014
7015 * coding.c (produce_composition): Compare charbuf[i] instead of
7016 args[i] against 0.
7017 (Fterminal_coding_system): Use EQ to compare Lisp objects.
7018
7019 2008-02-01 Kenichi Handa <handa@m17n.org>
7020
7021 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
7022 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
7023 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
7024 detect_coding.
7025 (emacs_mule_char): Handle old style (Emacs 20) component character
7026 of a composition.
7027 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
7028 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
7029 composition rule.
7030 (decode_coding_emacs_mule): Handle invalid bytes correctly.
7031
7032 2008-02-01 Kenichi Handa <handa@m17n.org>
7033
7034 * coding.c (encode_coding_ccl): Allocate destination dynamically
7035 when necessary.
7036
7037 2008-02-01 Kenichi Handa <handa@m17n.org>
7038
7039 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
7040 the loop. When quitted, show a proper error message.
7041
7042 2008-02-01 Kenichi Handa <handa@m17n.org>
7043
7044 * xterm.c (x_set_glyph_string_clipping_exactly): Set
7045 src->clip_head and src->clip_tail temporarily instead of src->hl.
7046
7047 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
7048 character sequence.
7049 (Fccl_execute_on_string): Use ASET, not XSET.
7050
7051 2008-02-01 Kenichi Handa <handa@m17n.org>
7052
7053 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
7054
7055 2008-02-01 Kenichi Handa <handa@m17n.org>
7056
7057 * coding.c (decode_coding): Fix the condition of terminating the
7058 decoding loop.
7059
7060 2008-02-01 Kenichi Handa <handa@m17n.org>
7061
7062 * data.c (Faset): On setting a character bigger than 255 in a
7063 unibyte string, signal an error instead of make the string multibyte.
7064
7065 2008-02-01 Kenichi Handa <handa@m17n.org>
7066
7067 * charset.c (map_charset_chars): Fix for ascii-compatible charset
7068 made by a mapping table.
7069
7070 2008-02-01 Kenichi Handa <handa@m17n.org>
7071
7072 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
7073 not.
7074 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
7075 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
7076
7077 * xterm.c (x_draw_composite_glyph_string_foreground): Check
7078 s->face is NULL or not.
7079
7080 2008-02-01 Kenichi Handa <handa@m17n.org>
7081
7082 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
7083 (x_draw_glyph_string): Fix drawing of right_overhang and
7084 left_overhang around/on cursor.
7085
7086 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
7087
7088 2008-02-01 Kenichi Handa <handa@m17n.org>
7089
7090 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
7091
7092 2008-02-01 Kenichi Handa <handa@m17n.org>
7093
7094 * coding.c (Fdefine_coding_system_internal)
7095 (Fdefine_coding_system_alias): Avoid a duplicated element in
7096 Vcoding_system_alist.
7097
7098 2008-02-01 Kenichi Handa <handa@m17n.org>
7099
7100 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7101
7102 * coding.c (Qcoding_system_define_form): New variable.
7103 (syms_of_coding): Intern and staticpro it.
7104 (Fcoding_system_p): Check Qcoding_system_define_form.
7105 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
7106
7107 * coding.h (CODING_SYSTEM_P): If ID is not available, call
7108 Fcoding_system_p.
7109 (CHECK_CODING_SYSTEM): If ID is not available, call
7110 Fcheck_coding_system.
7111 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
7112 Try also Fcheck_coding_system.
7113
7114 2008-02-01 Kenichi Handa <handa@m17n.org>
7115
7116 * coding.c (code_conversion_restore): GCPRO arg.
7117
7118 2008-02-01 Kenichi Handa <handa@m17n.org>
7119
7120 * character.c (lisp_string_width): Check multibyteness of STRING.
7121
7122 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7123
7124 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
7125 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
7126 (decode_mac_font_name): Use decode_coding_c_string instead of
7127 decode_coding.
7128 (x_load_font): Initialize fontp->fontset to -1. Set
7129 fontp->encoding_type.
7130
7131 2008-02-01 Kenichi Handa <handa@m17n.org>
7132
7133 * search.c (search_buffer): Give up BM search on case-fold-search
7134 if one of a target character has a case-equivalence of different
7135 byte length even if that target charcter is an ASCII.
7136 (simple_search): Fix calculation of byte length of matched text.
7137 (boyer_moore): Fix handling of case-equivalent multibyte characters.
7138
7139 2008-02-01 Kenichi Handa <handa@m17n.org>
7140
7141 * coding.c (decode_coding): Fix handling of invalid bytes.
7142
7143 2008-02-01 Kenichi Handa <handa@m17n.org>
7144
7145 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7146 Unicode characters.
7147
7148 2008-02-01 Kenichi Handa <handa@m17n.org>
7149
7150 * coding.c (encode_coding_object): If a pre-write-conversion
7151 function makes a new buffer, kill it.
7152
7153 2008-02-01 Kenichi Handa <handa@m17n.org>
7154
7155 * coding.c (QCascii_compatible_p): New variable.
7156 (syms_of_coding): Initialize it.
7157 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
7158 calling string_char.
7159 (record_conversion_result): Add `default:' case.
7160 (coding_charset_list): Delete unused variable `coding_type'.
7161 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
7162 property in the plist of the coding system.
7163 (Fcoding_system_put): Check QCascii_compatible_p.
7164
7165 2008-02-01 Miles Bader <miles@gnu.org>
7166
7167 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
7168 removed calculation of frame `f', as it's now used.
7169
7170 2008-02-01 Kenichi Handa <handa@m17n.org>
7171
7172 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
7173 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
7174 (UNIDATA): New variable.
7175 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
7176 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
7177 $(RUN_TEMACS) unconditionally.
7178
7179 2008-02-01 Kenichi Handa <handa@m17n.org>
7180
7181 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
7182 (admindir): New variable.
7183 ($(lispsource)international/charprop.el): New target.
7184
7185 2008-02-01 Miles Bader <miles@gnu.org>
7186
7187 * character.c (chars-in-region): Remove obsolete function.
7188 (syms_of_character): Remove its initialization.
7189
7190 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
7191
7192 * w32select.c (validate_coding_system)
7193 (setup_windows_coding_system): New functions.
7194 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
7195 setup_windows_coding_system.
7196 (setup_config, Fw32_get_clipboard_data): Use
7197 validate_coding_system.
7198 (Fx_selection_exists): Move call to setup_config to a place
7199 where signals are allowed.
7200
7201 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
7202 (Fcheck_coding_system): Add declarations.
7203
7204 2008-02-01 Kenichi Handa <handa@m17n.org>
7205
7206 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
7207
7208 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7209
7210 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
7211 string as the second argument for x_new_fontset.
7212
7213 2008-02-01 Kenichi Handa <handa@m17n.org>
7214
7215 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
7216 (encode_coding_object): Use safe_call instead of call2.
7217
7218 2008-02-01 Kenichi Handa <handa@m17n.org>
7219
7220 * fontset.c (Fset_fontset_font): Check family element of a given vector.
7221
7222 * Makefile.in (lisp): Include charprop.el.
7223
7224 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7225
7226 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
7227 Not sure if it's unnecessary.
7228
7229 2008-02-01 Steven Tamm <steventamm@mac.com>
7230
7231 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
7232 some possibly unnecessary fontset checking code that crashed
7233 when creating a new frame.
7234
7235 2008-02-01 Kenichi Handa <handa@m17n.org>
7236
7237 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
7238 lookup_face.
7239
7240 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
7241
7242 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
7243
7244 2008-02-01 Kenichi Handa <handa@m17n.org>
7245
7246 * coding.c: Cancel the change done in HEAD on 2008-02-01.
7247 (coding_charset_list): New function.
7248
7249 * coding.h (coding_charset_list): Extern it.
7250
7251 2008-02-01 Kenichi Handa <handa@m17n.org>
7252
7253 * fontset.c (Fset_fontset_font): Call find_font_encoding with
7254 concatenation of family and registry.
7255
7256 2008-02-01 Kenichi Handa <handa@m17n.org>
7257
7258 * character.h (BYTE8_STRING): Fix typo.
7259
7260 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
7261 string to multibyte (sync to HEAD).
7262
7263 * casefiddle.c (casify_region): Handle changes in byte-length
7264 using replace_range_2 (sync to HEAD).
7265
7266 2008-02-01 Andreas Schwab <schwab@suse.de>
7267
7268 * chartab.c (map_char_table): GCPRO table and arg.
7269
7270 2008-02-01 Kenichi Handa <handa@m17n.org>
7271
7272 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
7273 already at limit.
7274
7275 2008-02-01 Kenichi Handa <handa@m17n.org>
7276
7277 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
7278 instead of fast_c_string_match_ignore_case.
7279 (find_font_encoding): Change argument to Lisp_Object. Use
7280 fast_string_match_ignore_case instead of
7281 fast_c_string_match_ignore_case. Change caller.
7282
7283 2008-02-01 Kenichi Handa <handa@m17n.org>
7284
7285 * xdisp.c (get_next_display_element): In unibyte case, decide to
7286 display in octal form by checking a chacter by
7287 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
7288
7289 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
7290
7291 * character.c (unibyte_has_multibyte_table): New variable.
7292
7293 * character.h (unibyte_has_multibyte_table): Extern it.
7294 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
7295
7296 2008-02-01 Kenichi Handa <handa@m17n.org>
7297
7298 * coding.c (encode_coding_iso_2022): Fix handling of charset
7299 annotation.
7300
7301 2008-02-01 Kenichi Handa <handa@m17n.org>
7302
7303 * coding.c (setup_coding_system): If coding_system is nil, use
7304 Qundecided.
7305 (Fterminal_coding_system): Return nil if terminal coding system is
7306 `undecided'.
7307 (syms_of_coding): Define coding-system `undecided' here. Setup
7308 terminal_coding as `undecided'.
7309
7310 2008-02-01 Kenichi Handa <handa@m17n.org>
7311
7312 * xdisp.c (message_dolog, set_message_1): Call
7313 unibyte_char_to_multibyte with arg type int.
7314
7315 * lread.c (read1): Fix reading of a char-table.
7316
7317 * print.c (print_object): Include sub char-table in cicularities
7318 detection.
7319
7320 2008-02-01 Kenichi Handa <handa@m17n.org>
7321
7322 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
7323 cons. Append the found sequences in car of ARGS instead of prepending.
7324
7325 2008-02-01 Kenichi Handa <handa@m17n.org>
7326
7327 * fileio.c (report_file_error): Make a unibyte string from
7328 strerror (errorno).
7329 (Fsubstitute_in_file_name): Fix the arg to
7330 unibyte_char_to_multibyte. It is evaluated twice.
7331
7332 2008-02-01 Kenichi Handa <handa@m17n.org>
7333
7334 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
7335
7336 2008-02-01 Kenichi Handa <handa@m17n.org>
7337
7338 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
7339 BOM is not found.
7340 (detect_coding, detect_coding_system): Optimization for ISO-2022
7341 when no 8-bit data is found.
7342
7343 2008-02-01 Jason Rumney <jasonr@gnu.org>
7344
7345 * w32fns.c (x_to_w32_font): Update to use new coding struct.
7346
7347 2008-02-01 Kenichi Handa <handa@m17n.org>
7348
7349 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
7350 CHARS.
7351
7352 2008-02-01 Steven Tamm <steventamm@mac.com>
7353
7354 * macterm.c (mac_encode_char): Add charset argument and update
7355 to use encoding_type.
7356 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
7357 switch to pure fontset.
7358 (decode_mac_font_name): Temporarily remove decoding.
7359 (x_font_name_to_mac_font_name): Temporarily remove encoding.
7360 (x_load_font): Temporarily remove encoding.
7361
7362 2008-02-01 Kenichi Handa <handa@m17n.org>
7363
7364 * xfaces.c (Fface_font): If frame is not on a window system,
7365 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
7366 refer to face->font.
7367 (split_font_name_into_vector, build_font_name_from_vector)
7368 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
7369 whne HAVE_WINDOW_SYSTEM is defined.
7370
7371 2008-02-01 Kenichi Handa <handa@m17n.org>
7372
7373 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
7374 (x_produce_glyphs): Fix setting of members of cmp in case
7375 cmp->glyph_len is zero.
7376
7377 * fontset.c (Fset_fontset_font): Fix docstring.
7378 (Ffontset_info): Make it backward compatible. New arg ALL.
7379
7380 2008-02-01 Kim F. Storm <storm@cua.dk>
7381
7382 * process.c (read_process_output): Grow decoding_buf when needed;
7383 this could cause a crash in allocate_string and compact_small_strings.
7384
7385 2008-02-01 Kenichi Handa <handa@m17n.org>
7386
7387 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
7388
7389 2008-02-01 Kenichi Handa <handa@m17n.org>
7390
7391 * coding.c (setup_coding_system): Set coding->common_flags
7392 correctly for raw-text.
7393 (consume_chars): On encoding unibyte text by raw-text, don't check
7394 multibyte form.
7395 (encode_coding): On encoding by raw-text, never use translation tables.
7396
7397 * fileio.c (e_write): Short cut for the case of no encoding.
7398
7399 2008-02-01 Kenichi Handa <handa@m17n.org>
7400
7401 * coding.c (detect_coding, detect_coding_system): Delete unused
7402 variables.
7403
7404 2008-02-01 Kenichi Handa <handa@m17n.org>
7405
7406 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
7407 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
7408
7409 2008-02-01 Kenichi Handa <handa@m17n.org>
7410
7411 * coding.c (Ffind_coding_systems_region_internal): Include
7412 raw-text and no-conversion in the result.
7413
7414 2008-02-01 Kenichi Handa <handa@m17n.org>
7415
7416 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
7417 (load_font_get_repertory): Delete unnecessary check of ENCODING of
7418 FONT_DEF.
7419 (font_def_arg, add_arg, from_arg, to_arg): New args.
7420 (set_fontset_font): Change argument.
7421 (Fset_fontset_font): Fix for the case that TARGET is a script
7422 name and charset name.
7423 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
7424
7425 2008-02-01 Kenichi Handa <handa@m17n.org>
7426
7427 * fontset.c (fontset_font): Rename from fontset_face. Change return
7428 value.
7429 (face_suitable_for_char_p, face_for_char): Adjust for the change
7430 of fontset_font.
7431 (make_fontset_for_ascii_face): Fix setting of the fontset element
7432 for ASCII.
7433 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
7434 to get a font name.
7435 (Ffontset_info): Adjust for the change of fontset_font.
7436
7437 * coding.c (emacs_mule_char): Check invalid code more regidly.
7438
7439 * character.h (LEADING_CODE_LATIN_1_MIN)
7440 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
7441
7442 2008-02-01 Kenichi Handa <handa@m17n.org>
7443
7444 * editfns.c (check_translation): New function.
7445 (Ftranslate_region_internal): Handle M:N mapping.
7446
7447 2008-02-01 Kenichi Handa <handa@m17n.org>
7448
7449 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
7450
7451 2008-02-01 Kenichi Handa <handa@m17n.org>
7452
7453 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
7454 goto invalid_code.
7455 (decode_coding_iso_2022): Fix handling of invalid designation.
7456
7457 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
7458 after calling code_conversion_save.
7459
7460 2008-02-01 Kenichi Handa <handa@m17n.org>
7461
7462 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
7463
7464 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
7465
7466 * fontset.c: Include "intervals.h".
7467 (fontset_face): Fix comparing of Lisp_Objects.
7468 (free_face_fontset, new_fontset_from_font_name): Fix
7469 Lisp_Object/int mixup.
7470
7471 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
7472
7473 * coding.c: Add many prototypes for static functions.
7474 (get_translation_table): Allow max_lookup to be NULL.
7475 (decode_coding, Ffind_coding_systems_region_internal)
7476 (Funencodable_char_position, Fcheck_coding_systems_region): Call
7477 get_translation_table with max_lookup NULL.
7478
7479 2008-02-01 Kenichi Handa <handa@m17n.org>
7480
7481 * coding.c (get_translation_table): Declare it as Lisp_Object.
7482 (LOOKUP_TRANSLATION_TABLE): New macro.
7483 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
7484 instead of CHAR_TABLE_REF.
7485
7486 2008-02-01 Kenichi Handa <handa@m17n.org>
7487
7488 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
7489 annotation data format.
7490 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
7491 Change arguments FROM and TO to single argument NCHARS. Change caller.
7492 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
7493 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7494 (decode_coding_ccl, decode_coding_charset): Pay attention to
7495 coding->charbuf_used.
7496 (get_translation): New function.
7497 (produce_chars): New arguments translation_table and last_block.
7498 Translate characters here. Return number of carryover chars.
7499 Change caller.
7500 (produce_composition): New argument pos. Change caller.
7501 Adjust for the change of annotation data format.
7502 (produce_charset, produce_annotation): Likewise.
7503 (decode_coding, encode_coding): Don't call translate_chars.
7504 (consume_chars): New arg translation_table. Change caller.
7505 (translate_chars): Delete.
7506 (syms_of_coding): Make translation-table's number of extra slots 2.
7507
7508 2008-02-01 Kenichi Handa <handa@m17n.org>
7509
7510 * search.c (simple_search): Fix setting this_pos_byte in backward
7511 search.
7512
7513 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
7514 byte sequence.
7515 (detect_coding_ccl): Fix setting of the variable valids.
7516
7517 2008-02-01 Kenichi Handa <handa@m17n.org>
7518
7519 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
7520
7521 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
7522
7523 * editfns.c (Ftranslate_region_internal): Rename from
7524 Ftranslate_region. Accept a char-table in TABLE.
7525 (syms_of_editfns): Defsubr Stranslate_region_internal.
7526
7527 * xfaces.c (set_lface_from_font_name): If a font is specified for
7528 a frame, generate a fontset from the font.
7529 (build_scalable_font_name): If the scalable font is requested for
7530 a specific size, don't change that size.
7531 (try_font_list): Try a scalable font also in the case that a
7532 pattern string is specified.
7533
7534 2008-02-01 Kenichi Handa <handa@m17n.org>
7535
7536 * xfaces.c (Fface_font): New optional arg CHARACTER.
7537
7538 2008-02-01 Kenichi Handa <handa@m17n.org>
7539
7540 * charset.h (CHARSET_OFFSET): New macro.
7541
7542 2008-02-01 Kenichi Handa <handa@m17n.org>
7543
7544 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
7545
7546 * fontset.c (fontset_face): Handle the case that repertory is a
7547 char-table.
7548 (find_font_encoding): Return nil for unknown encoding.
7549 (Fset_fontset_font): Ignore a font of unknown encoding.
7550
7551 2008-02-01 Kenichi Handa <handa@m17n.org>
7552
7553 * keymap.c (describe_vector): Handle default value of a char table.
7554
7555 * fontset.c (fontset_face): Handle fallback fonts correctly.
7556 (Ffontset_info): Return infomation about fallback fonts.
7557
7558 2008-02-01 Kenichi Handa <handa@m17n.org>
7559
7560 * fontset.c (FONTSET_DEFAULT): New macro.
7561 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
7562 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
7563 the case that it is nil.
7564 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
7565 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
7566
7567 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
7568 subset or superset.
7569
7570 2008-02-01 Kenichi Handa <handa@m17n.org>
7571
7572 * emacs.c (main): Call init_charset after syms_of_XXX.
7573
7574 * charset.c (Vcharset_map_directory): Delete.
7575 (Vcharset_map_path): New variable.
7576 (load_charset_map_from_file): Use Vcharset_map_path instead.
7577 (init_charset): Initialize Vcharset_map_path.
7578 (syms_of_charset): Delete declaration of "charset-map-directory",
7579 add declaration of "charset-map-path".
7580
7581 2008-02-01 Kenichi Handa <handa@m17n.org>
7582
7583 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
7584 ASCII only string.
7585
7586 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
7587
7588 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
7589 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
7590
7591 2008-02-01 Kenichi Handa <handa@m17n.org>
7592
7593 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
7594
7595 * coding.c (QCmnemonic, QCdefalut_char)
7596 (QCdecode_translation_table, QCencode_translation_table)
7597 (QCpost_read_conversion, QCpre_write_conversion): New variables.
7598 (get_translation_table): Return a list of translation tables if
7599 necessary.
7600 (decode_coding): Call get_translation_table with ENCODEP 0.
7601 (char_encodable_p): If translation_table is non-nil, always call
7602 translate_char.
7603 (Fdefine_coding_system_internal): Accept list of translation
7604 tables as :encode-translation-table and :decode-translation-table.
7605 (Fcoding_system_put): New function.
7606 (syms_of_coding): Declare new symbols. Defsubr
7607 Scoding_system_put.
7608 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
7609 typically JISX0212.
7610
7611 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
7612 when the charset is superset type.
7613
7614 * character.c (translate_char): Accept list of translation tables.
7615
7616 2008-02-01 Kenichi Handa <handa@m17n.org>
7617
7618 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
7619 (CODING_ATTR_TRANS_TBL): New macro.
7620
7621 * coding.c (get_translation_table): New function.
7622 (translate_chars): Fix the bug of skipping annotation data.
7623 (decode_coding, encode_coding): Utilize get_translation_table.
7624 (char_encodable_p, Funencodable_char_position): Translate char if
7625 necessary.
7626 (Ffind_coding_systems_region_internal)
7627 (Fcheck_coding_systems_region): Setup translation table for encode
7628 in a coding system attribute vector in advance.
7629 (Fdefine_coding_system_internal): Allow a symbol as translation
7630 table. For shift-jis type coding system, allow 4th charset.
7631
7632 2008-02-01 Kenichi Handa <handa@m17n.org>
7633
7634 * coding.c (decode_coding_sjis): Check the first byte rigidly.
7635
7636 * xdisp.c (get_next_display_element): Pass -1 as POS to
7637 FACE_FOR_CHAR if displaying a C-string.
7638
7639 2008-02-01 Kenichi Handa <handa@m17n.org>
7640
7641 * composite.c (get_composition_id): Handle xoff and yoff in a
7642 composition rule.
7643
7644 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
7645 (struct composition): New member lbearing and rbearing.
7646
7647 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
7648 (x_get_glyph_overhangs): Handle a composition glyph.
7649 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
7650
7651 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
7652 composition glyph.
7653
7654 2008-02-01 Kenichi Handa <handa@m17n.org>
7655
7656 * print.c: Include charset.h.
7657 (Vprint_charset_text_property): New variable.
7658 (Qdefault): Extern it.
7659 (PRINT_STRING_NON_CHARSET_FOUND)
7660 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
7661 (print_check_string_result): New variable.
7662 (print_check_string_charset_prop): New function.
7663 (print_prune_charset_plist): New variable.
7664 (print_prune_string_charset): New function.
7665 (print_object): Call print_prune_string_charset if
7666 Vprint_charset_text_property is not t.
7667 (print_interval): Print nothing if itnerval->plist is nil.
7668 (syms_of_print): Declare Vprint_charset_text_property as a lisp
7669 variable. Init and staticpro print_prune_charset_plist.
7670
7671 2008-02-01 Kenichi Handa <handa@m17n.org>
7672
7673 * fontset.c (new_fontset_from_font_name): Use the specified font
7674 for all characters in the new fontset.
7675
7676 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7677 OBJECT args.
7678
7679 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
7680 OBJECT args for composition too.
7681
7682 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7683 OBJECT args.
7684
7685 2008-02-01 Kenichi Handa <handa@m17n.org>
7686
7687 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
7688
7689 * fontset.c (reorder_font_vector): Adjust for the change of
7690 FONT_DEF format.
7691 (fontset_face): New arg id. Change caller.
7692 (face_for_char): New args pos and object.
7693 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
7694 (fs_query_fontset): Check NAME by Fassoc too.
7695 (Fset_fontset_font): Allow non-XLFD font name.
7696 (Ffontset_info): Adjust for the change of FONT_DEF format.
7697
7698 * fontset.h (face_for_char): Adjust prototype.
7699
7700 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
7701 (append_space, extend_face_to_end_of_line)
7702 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7703 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
7704
7705 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
7706 POS and OBJECT args.
7707
7708 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
7709 POS and OBJECT args.
7710
7711 2008-02-01 Jason Rumney <jasonr@gnu.org>
7712
7713 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
7714 of GlobalAlloc'ed memory.
7715
7716 2008-02-01 Kenichi Handa <handa@m17n.org>
7717
7718 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
7719
7720 * charset.h (charset_table_used): Delete extern.
7721
7722 * charset.c (charset_table_used): Make it static.
7723 (map_charset_chars): Fix args to c_function with.
7724
7725 * chartab.c (map_sub_char_table_for_charset): Fix args to
7726 c_function with.
7727
7728 * coding.h (enum coding_result_code): Delete
7729 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
7730
7731 * coding.c (Qinsufficient_source, Qinconsistent_eol)
7732 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
7733 (Vlast_code_conversion_error): New variables.
7734 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
7735 (ONE_MORE_BYTE): Record error if any instead of signaling an
7736 error. If non-ASCII multibyte char is found, return the negative
7737 value of the code. All callers changed to check it.
7738 (ONE_MORE_BYTE_NO_CHECK): Likewise.
7739 (record_conversion_result): New function. Change all codes setting
7740 coding->result to call this function.
7741 (detect_coding_utf_8, decode_coding_utf_8)
7742 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
7743 Don't use the local variable incomplete.
7744 (emacs_mule_char): Change the second arg to `const'.
7745 (decode_coding): Fix of flushing out unprocessed data.
7746 (make_conversion_work_buffer): Fix making of a work buffer.
7747 (decode_coding_object): Return coding->dst_object.
7748
7749 * fontset.c (set_fontset_font): Fix args.
7750
7751 * lisp.h (CHARACTERBITS): Define as 22.
7752
7753 * process.c (send_process): Be sure to set coding->src_multibyte.
7754
7755 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
7756
7757 2008-02-01 Kenichi Handa <handa@m17n.org>
7758
7759 * xdisp.c (handle_auto_composed_prop): Give limit to
7760 Fnext_single_char_property_change.
7761
7762 2008-02-01 Kenichi Handa <handa@m17n.org>
7763
7764 * composite.c (syms_of_composite): Don't make the composition hash
7765 table weak.
7766
7767 * fontset.c (Fset_fontset_font): Fix docstring.
7768
7769 * lisp.h (detect_coding_system): Adjust prototype.
7770
7771 * fileio.c (kill_workbuf_unwind): Delete this function.
7772 (Finsert_file_contents): Adjust the call of detect_coding_system.
7773 Get conversion_buffer by code_conversion_save. Use the macor
7774 CODING_MAY_REQUIRE_DECODING. After decoding, update
7775 coding_system.
7776
7777 * coding.h (make_conversion_work_buffer): Delete extern.
7778 (code_conversion_save): Extern it.
7779
7780 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
7781 (CODING_GET_INFO): Delete argument eol_type. Change callers.
7782 (decode_coding_utf_8): Don't do eol converion.
7783 (detect_coding_utf_16): Check coding->src_chars, not
7784 coding->src_bytes. Add heuristics for those that have no signature.
7785 (decode_coding_emacs_mule, decode_coding_iso_2022)
7786 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7787 Don't do eol converion.
7788 (adjust_coding_eol_type): Return a new coding system.
7789 (detect_coding): Don't detect eol. Fix for utf-16 detection.
7790 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
7791 each change.
7792 (decode_coding): Pay attention to undo_list. Do eol convesion for
7793 all types of coding-systems (if necessary).
7794 (Vcode_conversion_work_buf_list): Delete it.
7795 (Vcode_conversion_reused_workbuf): Rename from
7796 Vcode_conversion_reused_work_buf.
7797 (Vcode_conversion_workbuf_name): New variable.
7798 (reused_workbuf_in_use): New variable.
7799 (make_conversion_work_buffer): Delete the arg DEPTH.
7800 (code_conversion_restore): Change argument to cons.
7801 (code_conversion_save): Delete the argument BUFFER. Change callers.
7802 (detect_coding_system): New argument src_chars. Change callers.
7803 Fix for utf-16 detection.
7804 (init_coding_once): Don't use ISO_carriage_return.
7805 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
7806 reused_workbuf_in_use.
7807
7808 2008-02-01 Kenichi Handa <handa@m17n.org>
7809
7810 * keymap.c (store_in_keymap): Pay attention to the case that idx
7811 is a cons specifying a character range.
7812
7813 2008-02-01 Kenichi Handa <handa@m17n.org>
7814
7815 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
7816 HANDLED_RECOMPUTE_PROPS.
7817
7818 * coding.c (Fdefine_coding_system_internal): Fix checking of
7819 ascii compatibility.
7820
7821 2008-02-01 Kenichi Handa <handa@m17n.org>
7822
7823 * charset.c (find_charsets_in_text): Delete unused locale variable.
7824 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
7825
7826 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
7827 Resync charset_list to Vemacs_mule_charset_list.
7828
7829 * keymap.c (store_in_keymap): Pay attention to the case that idx
7830 is a cons specifying a character range.
7831
7832 2008-02-01 Kenichi Handa <handa@m17n.org>
7833
7834 * composite.c (update_compositions): Bind inhibit-read-only, etc
7835 to t before calling remove-list-of-text-properties.
7836
7837 * print.c (print_object): Always print ASCII chars as is.
7838
7839 2008-02-01 Kenichi Handa <handa@m17n.org>
7840
7841 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
7842
7843 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
7844 is a char table.
7845
7846 2008-02-01 Kenichi Handa <handa@m17n.org>
7847
7848 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
7849
7850 2008-02-01 Kenichi Handa <handa@m17n.org>
7851
7852 * xfaces.c (set_lface_from_font_name): Fix for the case that
7853 FONTNAME is not fontset name.
7854
7855 2008-02-01 Kenichi Handa <handa@m17n.org>
7856
7857 * fns.c (base64_encode_1): Fix previous change.
7858
7859 2008-02-01 Kenichi Handa <handa@m17n.org>
7860
7861 * fontset.c (set_fontset_font): New function.
7862 (Fset_fontset_font): If a font is specified for a charset, use
7863 map_charset_chars to store the font spec in a fontset.
7864
7865 2008-02-01 Kenichi Handa <handa@m17n.org>
7866
7867 * fontset.c (fontset_face): Create a fallback fontset on demand.
7868 (make_fontset): Don't create a fallback fontset here.
7869 (free_face_fontset): Free a fallback fontset (if any) too.
7870 (n_auto_fontsets): Delete this variable.
7871 (auto_fontset_alist): New variable.
7872 (new_fontset_from_font_name): Check auto_fontset_alist.
7873 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
7874 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
7875 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
7876 Defsubr Sfontset_list_all.
7877
7878 2008-02-01 Kenichi Handa <handa@m17n.org>
7879
7880 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7881
7882 2008-02-01 Kenichi Handa <handa@m17n.org>
7883
7884 * fontset.c (Fnew_fontset): Check NAME more rigidly.
7885
7886 2008-02-01 Kenichi Handa <handa@m17n.org>
7887
7888 * editfns.c (Fgoto_char): Fix docstring.
7889
7890 2008-02-01 Kenichi Handa <handa@m17n.org>
7891
7892 * insdel.c (insert_from_gap): Adjust intervals correctly.
7893
7894 2008-02-01 Jason Rumney <jasonr@gnu.org>
7895
7896 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
7897 (pfnGetFontUnicodeRanges): New dynamically loaded function.
7898 (w32_initialize): Try to load it.
7899 (x_get_font_repertory): Use it if available.
7900 (w32_encode_char): Add shortcut for unicode output.
7901
7902 * w32fns.c (w32_load_system_font): Default charset to -1.
7903 (x_to_w32_charset): Match all fonts for unicode.
7904 (w32_to_x_charset): New parameter matching. Don't return partial
7905 or wildcard charsets.
7906 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
7907 (w32_codepage_for_font): Return CP_UNICODE for unicode.
7908 (w32_to_x_font): Match charset to real charset.
7909 (enum_font_cb2): Always list unicode versions.
7910
7911 * makefile.w32-in (temacs): Increase EMHEAP.
7912
7913 2008-02-01 Jason Rumney <jasonr@gnu.org>
7914
7915 * w32term.c (w32_encode_char): New charset parameter.
7916 font_info.encoding becomes encoding_type.
7917 (x_get_font_repertory): New function. Warning: stub only!
7918 (x_new_font): Return quickly if font already set.
7919 (x_new_fontset): fontsetname parameter is Lisp_Object.
7920 Use new fs_query_fontset. Try new_fontset_from_font_name.
7921 Use fontset_name for return value.
7922
7923 * w32term.h: Declare x_get_font_repertory.
7924
7925 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
7926 place of find_charset_in_text. Use encode_coding_object in place
7927 of encode_coding.
7928 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
7929 decode_coding.
7930
7931 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
7932 of x_new_fontset.
7933 (w32_load_system_font): Initialize charset as unicode.
7934 font_info.encoding becomes encoding_type.
7935 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
7936 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
7937 (syms_of_w32fns): Set get_font_repertory_func.
7938
7939 * w32console.c: Include character.h. Use terminal_encode_buffer
7940 from term.c.
7941 (write_glyphs): Use new version of encode_terminal_code. Use
7942 encode_coding_object in place of encode_coding.
7943
7944 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
7945 encoding becomes encoding_type.
7946
7947 * term.c (terminal_encode_buffer): Make externally visible.
7948
7949 * makefile.w32-in: Add character.h dependancies.
7950 (character.o, chartab.o): New targets.
7951
7952 2008-02-01 Kenichi Handa <handa@m17n.org>
7953
7954 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
7955 CODING_ID_EOL_TYPE.
7956
7957 2008-02-01 Andreas Schwab <schwab@suse.de>
7958
7959 * coding.c (produce_chars): Revert last change.
7960
7961 2008-02-01 Kenichi Handa <handa@m17n.org>
7962
7963 * charset.h (charset_unicode): Extern it.
7964
7965 * charset.c (string_xstring_p): Check by (C >= 0x100).
7966 (find_charsets_in_text): Change format of the arc CHARSETS. New
7967 arg MULTIBYTE.
7968 (Ffind_charset_region, Ffind_charset_string): Adjust for the
7969 change of find_charsets_in_text.
7970 (Fsplit_char): Fix doc. Never return unknown.
7971
7972 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
7973
7974 * coding.c (Fdefine_coding_system_alias): Update
7975 Vcoding_system_list.
7976
7977 * fontset.c (load_font_get_repertory): Pay attention to the case
7978 that ENCODING of a font is specified by a char-table.
7979
7980 * xterm.c (x_get_font_repertory): Handle the case that the
7981 encoding of font is other than Unicode.
7982
7983 2008-02-01 Kenichi Handa <handa@m17n.org>
7984
7985 * term.c (encode_terminal_code): Don't handle glyph-table. Check
7986 if a character is encodable by the terminal coding system. If
7987 not, produces proper number of `?'s. Update
7988 terminal_encode_buffer and terminal_encode_buf_size if necessary.
7989 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
7990
7991 2008-02-01 Kenichi Handa <handa@m17n.org>
7992
7993 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
7994 variables.
7995 (encode_terminal_code): Change argument. Encode multiple
7996 characters at once. Store the result of encoding in
7997 terminal_encode_buffer.
7998 (write_glyphs, insert_glyphs): Adjust for the change of
7999 encode_terminal_code.
8000 (term_init): Initialize terminal_encode_buffer and
8001 terminal_encode_buf_size.
8002
8003 * coding.c (consume_chars): If coding->src_object is nil, don't
8004 check annotation.
8005
8006 2008-02-01 Kenichi Handa <handa@m17n.org>
8007
8008 * character.c (char_string): Use ASCII_CHAR_P instead of
8009 SINGLE_BYTE_CHAR_P.
8010
8011 2008-02-01 Kenichi Handa <handa@m17n.org>
8012
8013 * xdisp.c (handle_auto_composed_prop): Check if the last
8014 characters of auto-composed region is newly composed with the
8015 following characters.
8016 (handle_composition_prop): Fix checking of point being inside
8017 composition.
8018
8019 2008-02-01 Kenichi Handa <handa@m17n.org>
8020
8021 * fns.c (concat): Don't change multibyteness of the result by
8022 concatenating an 8-bit character.
8023
8024 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
8025 multibyteness of the result when newelt is an 8-bit character.
8026
8027 2008-02-01 Dave Love <fx@gnu.org>
8028
8029 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
8030 EMACS_INT.
8031
8032 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
8033
8034 * xfaces.c (face_numeric_value): Declare dim size_t.
8035 (Finternal_lisp_face_equal_p): Remove unused f.
8036
8037 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
8038 (MATRIX_ROW): Remove unused vars.
8039 (draw_glyphs, x_insert_glyphs, fast_find_position)
8040 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
8041 byte/char counts.
8042
8043 * regex.c (regex_compile): Remove unused var.
8044
8045 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8046
8047 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8048 (Faccessible_keymaps, where_is_internal): Remove unused vars.
8049
8050 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
8051
8052 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
8053
8054 * fileio.c (Fwrite_region): Remove unused var.
8055
8056 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
8057 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
8058
8059 * composite.c (Fremove_list_of_text_properties): Declare.
8060
8061 * coding.c (inhibit_pre_post_conversion): Remove (unused).
8062 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
8063 (coding_inherit_eol_type): Remove unused attrs.
8064 (detect_coding): Cast arg of detect_eol.
8065
8066 * charset.c (syms_of_charset): Remove unused var p.
8067 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
8068 byte/char counts.
8069
8070 * casetab.c (set_case_table): Remove unused var.
8071
8072 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
8073 unused vars.
8074
8075 2008-02-01 Dave Love <fx@gnu.org>
8076
8077 * xterm.c (x_bitmap_mask): Declare.
8078
8079 2008-02-01 Dave Love <fx@gnu.org>
8080
8081 * xterm.c (x_term_init): Fix type error.
8082
8083 * lisp.h: Add Funibyte_char_to_multibyte.
8084
8085 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
8086 (Fset_coding_system_priority): Doc fix.
8087
8088 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
8089
8090 * indent.c (check_composition): Make start and end EMACS_INT.
8091
8092 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
8093
8094 * xdisp.c (handle_composition_prop, check_point_in_composition):
8095 Make buffer positions EMACS_INT.
8096
8097 * composite.c (find_composition, run_composition_function)
8098 (update_compositions, Ffind_composition_internal): Make buffer
8099 positions EMACS_INT.
8100
8101 * composite.h (find_composition, update_compositions): Make
8102 position args EMACS_INT.
8103
8104 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
8105
8106 * intervals.c (get_property_and_range):
8107 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
8108
8109 * unexalpha.c: Don't include varargs.h.
8110
8111 2008-02-01 Dave Love <fx@gnu.org>
8112
8113 * coding.h (ENCODE_UTF_8): New.
8114
8115 * Makefile.in (gtkutil.o): Depend on coding.h.
8116
8117 * coding.c (Fset_coding_system_priority): Doc fix.
8118
8119 2008-02-01 Kenichi Handa <handa@m17n.org>
8120
8121 * fileio.c (Finsert_file_contents): Call setup_coding_system in
8122 the case of auto saving.
8123
8124 2008-02-01 Andreas Schwab <schwab@suse.de>
8125
8126 * chartab.c (map_char_table, map_char_table_for_charset): Protect
8127 `range' from GC.
8128
8129 2008-02-01 Kenichi Handa <handa@m17n.org>
8130
8131 * coding.c (decode_coding_sjis): Check bytes more rigidly.
8132
8133 2008-02-01 Kenichi Handa <handa@m17n.org>
8134
8135 * fileio.c (choose_write_coding_system): Return a decided coding system.
8136 (Fwrite_region): Set Vlast_coding_system_used to the return value
8137 of choose_write_coding_system.
8138
8139 2008-02-01 Kenichi Handa <handa@m17n.org>
8140
8141 * charset.c (Fset_charset_priority): Pay attention to duplicated
8142 arguments.
8143
8144 * coding.c (QCcategory): New variable.
8145 (syms_of_coding): Defsym it. Set all elements of
8146 Vcoding_category_table and their symbol values.
8147 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
8148 coding-category-XXX, and coding-category-list.
8149 (Fdefine_coding_system_internal): Add category in the plist.
8150
8151 2008-02-01 Kenichi Handa <handa@m17n.org>
8152
8153 * callproc.c (Fcall_process): Handle carryover correctly.
8154
8155 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
8156 (raw_text_coding_system): Check NILP (coding_system).
8157 (coding_inherit_eol_type): Check NILP (coding_system) and
8158 NILP (parent).
8159 (consume_chars): Fix for the case of raw-text.
8160
8161 * process.c (read_process_output): Handle carryover correctly.
8162
8163 2008-02-01 Dave Love <fx@gnu.org>
8164
8165 * regex.c (re_search_2): Fix last change.
8166
8167 2008-02-01 Kenichi Handa <handa@m17n.org>
8168
8169 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
8170 target_multibyte. Even in a unibyte case, return a converted
8171 multibyte char.
8172 (GET_CHAR_AFTER): New macro.
8173 (PATFETCH): Translate via multibyte char.
8174 (HANDLE_UNIBYTE_RANGE): Delete this macro.
8175 (SETUP_MULTIBYTE_RANGE): New macro.
8176 (regex_compile): Setup compiled code so that its multibyteness
8177 matches that of a target. Fix the handling of "[X-YZ]" using
8178 SETUP_MULTIBYTE_RANGE.
8179 (analyse_first) <charset>: For filling fastmap for all multibyte
8180 characters, don't check by BASE_LEADING_CODE_P.
8181 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
8182 the same as RE_MULTIBYTE_P (bufp) now.
8183 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
8184 (TARGET_CHAR_AND_LENGTH): Delete this macro.
8185 (TRANSLATE_VIA_MULTIBYTE): New macro.
8186 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
8187 It is the same as RE_MULTIBYTE_P (bufp) now.
8188 <exactn>: Translate via multibyte.
8189 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
8190 translate it.
8191 <charset, charset_not>: Fetch a character by
8192 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
8193 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
8194 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
8195 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
8196 by GET_CHAR_AFTER.
8197 (bcmp_translate): Likewise.
8198
8199 * search.c (compile_pattern): Check the member target_multibyte,
8200 not the member multibyte of buf.
8201
8202 * lread.c (read1): While reading a string, set force_singlebyte
8203 and force_multibyte correctly.
8204
8205 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
8206 up of unibyte_to_multibyte_table.
8207
8208 2008-02-01 Kenichi Handa <handa@m17n.org>
8209
8210 * coding.c (setup_coding_system): If coding has
8211 post-read-conversion or pre-write-conversion, set
8212 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
8213 respectively.
8214 (decode_coding_gap): Run post-read-conversion if any.
8215
8216 * fileio.c (Finsert_file_contents): Even if we read into a
8217 unibyte buffer, check if we must decode the result or not.
8218
8219 2008-02-01 Kenichi Handa <handa@m17n.org>
8220
8221 * coding.c (make_conversion_work_buffer): Change the work buffer
8222 name to the same one as that of Emacs 21.
8223
8224 2008-02-01 Kenichi Handa <handa@m17n.org>
8225
8226 * coding.h (make_conversion_work_buffer): Adjust prototype.
8227 (code_conversion_restore): Don't extern it.
8228
8229 * coding.c (detected_mask): Delete unused variable.
8230 (decode_coding_iso_2022): Pay attention to the byte sequence of
8231 CTEXT extended segment, and retain those bytes as is.
8232 (decode_coding_ccl): Delete unused variable `valids'.
8233 (setup_coding_system): Delete unused variable `category'.
8234 (consume_chars): Delete unused variable `category'. Make it work
8235 for non-multibyte case.
8236 (make_conversion_work_buffer): Change argument.
8237 (saved_coding): Delete unused variable.
8238 (code_conversion_restore): Don't check saved_coding->destination.
8239 (code_conversion_save): New function.
8240 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
8241 instead of record_unwind_protect.
8242 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
8243 (detect_coding_system): Delete unused variable `mask'.
8244 (Fdefine_coding_system_internal): Delete unused vaiable id.
8245
8246 * fileio.c (kill_workbuf_unwind): New function.
8247 (Finsert_file_contents): On replacing, call
8248 make_conversion_work_buffer with correct args, and call
8249 record_unwind_protect with the first arg kill_workbuf_unwind.
8250
8251 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
8252
8253 2008-02-01 Kenichi Handa <handa@m17n.org>
8254
8255 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
8256 (fontset_add): Fix for the case that TO is less than TO1.
8257 (Ffontset_info): Don't use fallback fontset on checking the
8258 default fontset.
8259 (dump_fontset): New function for debugging.
8260
8261 * coding.c (Fdefine_coding_system_internal): Fix for the case that
8262 coding_type is Qcharset.
8263
8264 2008-02-01 Kenichi Handa <handa@m17n.org>
8265
8266 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
8267 (map_char_table): Don't inherit the value from the parent on
8268 initializing VAL. Adjust for the above change.
8269
8270 2008-02-01 Kenichi Handa <handa@m17n.org>
8271
8272 * coding.c (Qsignature, Qendian): Delete these variables.
8273 (syms_of_coding): Don't initialize them.
8274 (CATEGORY_MASK_UTF_16_AUTO): New macro.
8275 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
8276 detect_info->found.
8277 (decode_coding_utf_16): Don't detect BOM here.
8278 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
8279 is NOT utf_16_without_bom.
8280 (setup_coding_system): For a coding system of type utf-16, check
8281 if the attribute :endian is Qbig or not (not nil or not), and set
8282 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
8283 (detect_coding): If coding type is utf-16 and BOM detection is
8284 required, detect it.
8285 (Fdefine_coding_system_internal): For a coding system of type
8286 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
8287
8288 2008-02-01 Kenichi Handa <handa@m17n.org>
8289
8290 * coding.c (coding_set_source): Fix for the case that the current
8291 buffer is different from coding->src_object.
8292 (decode_coding_object): Don't use the conversion work buffer if
8293 DST_OBJECT is a buffer.
8294
8295 2008-02-01 Dave Love <fx@gnu.org>
8296
8297 * lread.c (read_emacs_mule_char) [len==2]: Index
8298 emacs_mule_charset correctly.
8299
8300 2008-02-01 Dave Love <fx@gnu.org>
8301
8302 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
8303 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
8304 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
8305 treated specially.)
8306 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
8307 (detected_mask): Remove Big5 bits.
8308
8309 2008-02-01 Kenichi Handa <handa@m17n.org>
8310
8311 The following changes are to make the font rescaling facility
8312 compatible with Emacs 21.
8313
8314 * xfaces.c (Vface_font_rescale_alist): Rename from
8315 Vface_resizing_fonts.
8316 (struct font_name): Rename member resizing_ratio to rescale_ratio.
8317 (font_rescale_ratio): Rename from font_resizing_ratio.
8318 (split_font_name): Set font->rescale_ratio.
8319 (better_font_p): Pay attention to font->rescale_ratio.
8320 (build_scalable_font_name): Likewise. Change RESX, and RESY
8321 fields.
8322 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
8323
8324 2008-02-01 Kenichi Handa <handa@m17n.org>
8325
8326 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
8327 (Qutf_16_le): Remove these variables.
8328 (syms_of_coding): Don't DEFSYM them.
8329 (decode_coding_utf_16): Fix handling of BOM.
8330 (encode_coding_utf_16): Fix handling of BOM.
8331
8332 2008-02-01 Kenichi Handa <handa@m17n.org>
8333
8334 * fileio.c (Finsert_file_contents): On replacing, before decoding
8335 the file into the work buffer, set point of the work buffer to the end.
8336
8337 2008-02-01 Dave Love <fx@gnu.org>
8338
8339 * coding.c (Fcheck_coding_systems_region): Fix type errors.
8340
8341 2008-02-01 Dave Love <fx@gnu.org>
8342
8343 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8344 and fix C types.
8345
8346 2008-02-01 Kenichi Handa <handa@m17n.org>
8347
8348 * xdisp.c (SKIP_GLYPHS): New macro.
8349 (set_cursor_from_row): Pay attention to string display properties.
8350
8351 * category.c (copy_category_entry): Fix for the case that RANGE
8352 is an integer.
8353
8354 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
8355
8356 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
8357
8358 2008-02-01 Kenichi Handa <handa@m17n.org>
8359
8360 * charset.c (Fcharset_id_internal): New function.
8361 (syms_of_charset): Defsubr it.
8362
8363 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
8364 with the last arg charset_list acquired from coding.
8365 (Fdefine_coding_system_internal): For ccl-based coding system, fix
8366 the attribute coding_attr_ccl_valids.
8367
8368 * coding.h (enum define_coding_ccl_arg_index): Set the first
8369 member coding_arg_ccl_decoder to coding_arg_max.
8370
8371 * ccl.h (ccl_driver): Adjust prototype.
8372
8373 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
8374 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
8375 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
8376 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
8377 last arg Qnil.
8378
8379 2008-02-01 Kenichi Handa <handa@m17n.org>
8380
8381 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
8382 call encode_char.
8383
8384 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
8385
8386 2008-02-01 Dave Love <fx@gnu.org>
8387
8388 * composite.c (syms_of_composite): Make composition_hash_table weak.
8389
8390 2008-02-01 Kenichi Handa <handa@m17n.org>
8391
8392 * dispextern.h (check_face_attributes, generate_ascii_font_name)
8393 (font_name_registry): Don't extern them.
8394 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
8395
8396 * fontset.h (Qfontset): Don't extern it.
8397 (new_fontset_from_font_name): Extern it.
8398
8399 * fontset.c: Give 8 extra slots to fontset objects.
8400 (Qfontset_info): New variable.
8401 (syms_of_fontset): Defsym it.
8402 (FONTSET_FALLBACK): New macro.
8403 (fontset_face): Try also the default fontset.
8404 (make_fontset): Realize a fallback fontset from the default fontset.
8405 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
8406 using split_font_name_into_vector and build_font_name_from_vector.
8407 (Fset_fontset_font): Access the elements of font_spec by enum
8408 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
8409 name by using split_font_name_into_vector.
8410 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
8411 generate a proper font name from the fontset name. Update
8412 Vfontset_alias_alist.
8413 (n_auto_fontsets): New variable.
8414 (new_fontset_from_font_name): New function.
8415 (Ffont_info): Store the information about fonts generated from the
8416 default fontset in the first extra slot of the returned char-table.
8417
8418 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
8419 (font_name_registry): Delete function.
8420 (split_font_name_into_vector): New function.
8421 (build_font_name_from_vector): New function.
8422 (font_list): The argument REGISTRY is now a list of registry names.
8423 (choose_face_font): If we are choosing an ASCII font, and ATTRS
8424 specifies an explicit font name, return the name as is. Make a
8425 list of registy names.
8426
8427 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
8428 of x_new_fontset.
8429 (Fx_create_frame): Don't call x_new_fontset here. Just use
8430 x_list_fonts to check the existence of fonts.
8431
8432 * xterm.h (x_new_fontset): Adjust prototype.
8433
8434 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
8435 string. Use new_fontset_from_font_name to create a fontset from a
8436 font name.
8437
8438 2008-02-01 Kenichi Handa <handa@m17n.org>
8439
8440 * syntax.c (Vfind_word_boundary_function_table): New name for
8441 Vnext_word_boundary_function_table.
8442 (find-word-boundary-function-table): New name for
8443 next-word-boundary-function-table.
8444
8445 2008-02-01 Dave Love <fx@gnu.org>
8446
8447 * Makefile.in: Fix some dependencies.
8448
8449 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
8450 set it to nil before returning.
8451
8452 * composite.c (update_compositions): Fix type error.
8453
8454 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
8455
8456 2008-02-01 Kenichi Handa <handa@m17n.org>
8457
8458 * xterm.c (x_new_font): Optimize for the case that the font is
8459 already set for the frame.
8460
8461 2008-02-01 Kenichi Handa <handa@m17n.org>
8462
8463 * chartab.c (char_table_ascii): Check if the char table contents
8464 is sub-char-table or not.
8465 (char_table_set, char_table_set_range): Fix argument to
8466 char_table_ascii.
8467
8468 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
8469 (detect_coding_utf_8, detect_coding_utf_16)
8470 (detect_coding_emacs_mule, detect_coding_iso_2022)
8471 (detect_coding_sjis, detect_coding_big5)
8472 (detect_coding_ccl, detect_coding_charset): Change argument MASK
8473 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
8474 sequence is valid in this coding system. Change callers.
8475 (MAX_ANNOTATION_LENGTH): New macro.
8476 (ADD_ANNOTATION_DATA): New macro.
8477 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
8478 ADD_ANNOTATION_DATA. Change the format of annotation data.
8479 (ADD_CHARSET_DATA): New macro.
8480 (emacs_mule_char): New argument ID. Change callers.
8481 (decode_coding_emacs_mule, decode_coding_iso_2022)
8482 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8483 Produce charset annotation data in coding->charbuf.
8484 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
8485 to charset annotation data in coding->charbuf.
8486 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
8487 coding->common_flags if the coding system is iso-2022 based and
8488 uses designation.
8489 (produce_composition): Adjust for the new annotation data format.
8490 (produce_charset): New function.
8491 (produce_annotation): Handle charset annotation.
8492 (handle_composition_annotation, handle_charset_annotation): New
8493 functions.
8494 (consume_chars): Handle charset annotation. Utilize the above two
8495 functions.
8496 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
8497 buffer, get the deleted text as a string and set
8498 coding->src_object to that string.
8499 (detect_coding, detect_coding_system): Use the new struct
8500 coding_detection_info.
8501
8502 * coding.h (struct coding_detection_info): New structure.
8503 (struct coding_system): Adjust prototype of the member `detector'.
8504 (CODING_ANNOTATE_CHARSET_MASK): New macro.
8505
8506 2008-02-01 Kenichi Handa <handa@m17n.org>
8507
8508 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
8509
8510 2008-02-01 Dave Love <fx@gnu.org>
8511
8512 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
8513 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
8514 to new local and nullify apropos_accumulate before returning.
8515 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
8516
8517 2008-02-01 Kenichi Handa <handa@m17n.org>
8518
8519 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
8520 correctly.
8521
8522 2008-02-01 Dave Love <fx@gnu.org>
8523
8524 * fns.c (Flanginfo): Call synchronize_system_time_locale.
8525
8526 2008-02-01 Kenichi Handa <handa@m17n.org>
8527
8528 The following changes are to make character composition happen
8529 automatically on displaying.
8530
8531 * Makefile.in (lisp, shortlisp): Add composite.elc.
8532
8533 * composite.h (Qauto_composed, Vauto_composition_function)
8534 (Qauto_composition_function): Extern them.
8535
8536 * composite.c (Vcomposition_function_table)
8537 (Qcomposition_function_table): Delete variables.
8538 (Qauto_composed, Vauto_composition_function)
8539 (Qauto_composition_function): New variables.
8540 (run_composition_function): Don't call
8541 compose-chars-after-function.
8542 (update_compositions): Clear `auto-composed' text property.
8543 (compose_chars_in_text): Delete this function.
8544 (syms_of_composite): Staticpro Qauto_composed and
8545 Qauto_composition_function. Declare Vauto_composition_function as
8546 a Lisp variable.
8547
8548 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
8549
8550 * xdisp.c (it_props): Add an entry for Qauto_composed.
8551 (handle_auto_composed_prop): New function.
8552
8553 * xselect.c (selection_data_to_lisp_data): Don't call
8554 compose_chars_in_text.
8555
8556 2008-02-01 Dave Love <fx@gnu.org>
8557
8558 * keyboard.c (read_char): Modify checking around use of
8559 Vkeyboard_translate_table.
8560
8561 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8562 and fix C types.
8563
8564 2008-02-01 Kenichi Handa <handa@m17n.org>
8565
8566 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
8567 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8568 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
8569 the case that the last byte is '\r' correctly.
8570 (decode_coding): Flush out the unprocessed data correctly.
8571 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
8572
8573 2008-02-01 Dave Love <fx@gnu.org>
8574
8575 * xterm.c (XTread_socket): Fix changes for defined keysyms.
8576 Add XK_ISO... case.
8577 (xaw_scroll_callback): Revert last change.
8578
8579 2008-02-01 Kenichi Handa <handa@m17n.org>
8580
8581 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
8582
8583 2008-02-01 Kenichi Handa <handa@m17n.org>
8584
8585 * xfaces.c (Vface_resizing_fonts): New variable.
8586 (struct font_name): New member `resizing_ratio'.
8587 (font_resizing_ratio): New function.
8588 (split_font_name): Set font->resizing_ratio.
8589 (better_font_p): Pay attention to font->resizing_ratio.
8590 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
8591 RESX, and RESY fields.
8592 (try_alternative_families): Try scalable fonts if
8593 Vscalable_fonts_allowed is not Qt.
8594 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
8595
8596 2008-02-01 Dave Love <fx@gnu.org>
8597
8598 * xterm.c (xaw_scroll_callback): Cast correctly.
8599
8600 2008-02-01 Dave Love <fx@gnu.org>
8601
8602 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
8603 (lispy_kana_keys): Comment out.
8604 (make_lispy_event) [XK_kana_A]: Comment out.
8605
8606 * xterm.c (xaw_scroll_callback): Cast call_data.
8607 (XTread_socket): Deal with ASCII keysyms.
8608 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
8609
8610 2008-02-01 Dave Love <fx@gnu.org>
8611
8612 * xterm.c (Vx_keysym_table): New.
8613 (syms_of_xterm): Initialize it.
8614 (XTread_socket): Use it.
8615 From head: Eliminate incorrect optimization that tried to avoid
8616 decoding the output of X*LookupString.
8617 (x_get_font_repertory): Delete charset declaration.
8618
8619 2008-02-01 Kenichi Handa <handa@m17n.org>
8620
8621 * coding.c (detect_coding_charset): If only ASCII bytes are found,
8622 return 0.
8623 (Fdefine_coding_system_internal): Setup
8624 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
8625
8626 2008-02-01 Dave Love <fx@gnu.org>
8627
8628 * coding.c (Fcheck_coding_system): Doc fix.
8629
8630 * editfns.c (Finsert_byte): Return a proper value.
8631
8632 2008-02-01 Kenichi Handa <handa@m17n.org>
8633
8634 * coding.c (decode_coding): Fix args to translate_chars. Pay
8635 attention to Vstandard_translation_table_for_decode.
8636 (encode_coding): Fix args to translate_chars. Pay attention to
8637 Vstandard_translation_table_for_encode.
8638
8639 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
8640 SINGLE_BYTE_CHAR_P.
8641
8642 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
8643 not by SINGLE_BYTE_CHAR_P.
8644
8645 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
8646 SINGLE_BYTE_CHAR_P.
8647
8648 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
8649 SINGLE_BYTE_CHAR_P.
8650
8651 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
8652 by SINGLE_BYTE_CHAR_P.
8653
8654 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
8655 SINGLE_BYTE_CHAR_P.
8656
8657 2008-02-01 Dave Love <fx@gnu.org>
8658
8659 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
8660
8661 2008-02-01 Dave Love <fx@gnu.org>
8662
8663 * fns.c (Flanginfo): Fix typo.
8664
8665 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
8666
8667 2008-02-01 Kenichi Handa <handa@m17n.org>
8668
8669 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
8670 (detect_coding_emacs_mule, detect_coding_iso_2022)
8671 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
8672 incomplete byte sequence. Don't update *mask when correctly detected.
8673 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
8674 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
8675 (detect_coding, detect_coding_system): Adjust for the changes above.
8676
8677 2008-02-01 Kenichi Handa <handa@m17n.org>
8678
8679 * character.c (char_string): Rename from
8680 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
8681 (string_char): Rename from string_char.
8682
8683 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
8684 if C is greater than MAX_3_BYTE_CHAR.
8685 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
8686 string_char instead of string_char_with_unification.
8687
8688 2008-02-01 Dave Love <fx@gnu.org>
8689
8690 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
8691
8692 2008-02-01 Kenichi Handa <handa@m17n.org>
8693
8694 * keymap.c (push_key_description): Pay attention to force_multibyte.
8695
8696 * regex.c (re_search_2): Fix for the case of unibyte buffer.
8697
8698 2008-02-01 Dave Love <fx@gnu.org>
8699
8700 * charset.c (define_charset_internal): Rename `supprementary'.
8701
8702 * Makefile.in (lisp, shortlisp): Remove latin-N.
8703
8704 2008-02-01 Dave Love <fx@gnu.org>
8705
8706 * xfns.c (x_window, x_window): Use use_xim.
8707
8708 * xterm.c (use_xim): Initialize.
8709 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8710 (x_term_init): Maybe set use_xim.
8711
8712 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8713
8714 2008-02-01 Kenichi Handa <handa@m17n.org>
8715
8716 * search.c (search_buffer): Fix case-fold-search of multibyte
8717 characters.
8718 (boyer_moore): Rename the last argument to char_high_bits.
8719
8720 2008-02-01 Kenichi Handa <handa@m17n.org>
8721
8722 * xdisp.c (display_string): Fix for the case of zero width glyph.
8723
8724 * xfns.c (x_set_font): Change the error message of the case that
8725 x_new_fontset returns Qt.
8726
8727 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
8728 (Finternal_set_lisp_face_attribute): Use signal_error for the
8729 error of invalid fontset.
8730
8731 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
8732 fontset, return Qt.
8733
8734 2008-02-01 Dave Love <fx@gnu.org>
8735
8736 * unexelf.c (unexec): Make .got handling not SGI-specific.
8737
8738 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
8739
8740 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
8741
8742 * keyboard.c (read_key_sequence): Fix type error.
8743
8744 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
8745 type error.
8746
8747 * fontset.c (fontset_add): Return Lisp_Object.
8748
8749 2008-02-01 Dave Love <fx@gnu.org>
8750
8751 * charset.h (charset_ordered_list_tick): Declare extern.
8752
8753 2008-02-01 Kenichi Handa <handa@m17n.org>
8754
8755 The following changes (and some of 2008-02-01 changes of mine) are
8756 for handling syntax, category, and case conversion for unibyte
8757 characters by converting them to multibyte on the fly. With these
8758 changes, we don't have to setup syntax and case tables for unibyte
8759 characters in each language environment.
8760
8761 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
8762 multibyte if necessary.
8763
8764 * bytecode.c (Fbyte_code): Likewise.
8765
8766 * character.h (LEADING_CODE_LATIN_1_MIN)
8767 (LEADING_CODE_LATIN_1_MAX): New macros.
8768 (unibyte_to_multibyte_table): Extern it.
8769 (unibyte_char_to_multibyte): New macro.
8770 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
8771 (CHAR_LEADING_CODE): New macro.
8772 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
8773
8774 * character.c (unibyte_to_multibyte_table): New variable.
8775 (unibyte_char_to_multibyte): Move to character.h and define as macro.
8776 (multibyte_char_to_unibyte): If C is an eight-bit character,
8777 convert it to the corresponding byte value.
8778
8779 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
8780 not 1, singals an error. Update the elements of
8781 unibyte_to_multibyte_table.
8782 (init_charset_once): Initialize unibyte_to_multibyte_table.
8783 (syms_of_charset): Define the charset `iso-8859-1'.
8784
8785 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
8786 as is without converting it to unibyte. In a unibyte buffer,
8787 convert C to multibyte before checking the syntax.
8788
8789 * lisp.h (unibyte_char_to_multibyte): Delete extern.
8790
8791 * minibuf.c (Fminibuffer_complete_word): Use the macro
8792 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
8793
8794 * regex.h (struct re_pattern_buffer): New member target_multibyte.
8795
8796 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
8797 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
8798 that is zero, convert an eight-bit char to multibyte.
8799 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
8800 non-emacs case.
8801 (PATFETCH): Convert an eight-bit char to multibyte.
8802 (HANDLE_UNIBYTE_RANGE): New macro.
8803 (regex_compile): Setup the compiled pattern for multibyte chars
8804 even if the given regex string is unibyte. Use PATFETCH_RAW
8805 instead of PATFETCH in many places. To handle `charset'
8806 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
8807 only for ASCII chars.
8808 (analyse_first) <exactn>: Simplify because the compiled pattern
8809 is multibyte.
8810 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
8811 <charset>: Use CHAR_LEADING_CODE to get leading codes.
8812 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
8813 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
8814 multibyte always 1.
8815 (re_search_2): In emacs, set the locale variable multibyte to 1,
8816 otherwise to 0. New local variable target_multibyte. Check it
8817 to decide the multibyteness of STR1 and STR2. If
8818 target_multibyte is zero, convert unibyte chars to multibyte
8819 before translating and checking fastmap.
8820 (TARGET_CHAR_AND_LENGTH): New macro.
8821 (re_match_2_internal): In emacs, set the locale variable multibyte
8822 to 1, otherwise to 0. New local variable target_multibyte. Check
8823 it to decide the multibyteness of STR1 and STR2. Use
8824 TARGET_CHAR_AND_LENGTH to fetch a character from D.
8825 <charset, charset_not>: If multibyte is nonzero, check fastmap
8826 only for ASCII chars. Call bcmp_translate with
8827 target_multibyte, not with multibyte.
8828 <begline>: Declare the local variable C as `unsigned'.
8829 (bcmp_translate): Change the last arg name to target_multibyte.
8830
8831 * search.c (compile_pattern_1): Don't adjust the multibyteness of
8832 the regexp pattern and the matching target. Set cp->buf.multibyte
8833 to the multibyteness of the regexp pattern. Set
8834 cp->but.target_multibyte to the multibyteness of the matching target.
8835 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
8836 FETCH_STRING_CHAR_ADVANCE.
8837 (Freplace_match): Convert unibyte chars to multibyte.
8838
8839 * syntax.c (char_quoted, back_comment, scan_words)
8840 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
8841 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
8842 unibyte chars to multibyte.
8843 (skip_chars): Delete the arg syntaxp, and move the code for
8844 handling syntaxes to skip_syntaxes. Change callers.
8845 Fix the case that the multibyteness of STRING and the current
8846 buffer doesn't match.
8847 (skip_syntaxes): New function.
8848 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
8849 SINGLE_BYTE_CHAR_P.
8850
8851 2008-02-01 Kenichi Handa <handa@m17n.org>
8852
8853 * xfaces.c (QCfontset): New variable.
8854 (LFACE_FONTSET): New macro.
8855 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
8856 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
8857 (Finternal_set_lisp_face_attribute)
8858 (Finternal_get_lisp_face_attribute): Handle QCfontset.
8859 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
8860 check also LFACE_FONTSET_INDEX.
8861 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
8862 attrs[LFACE_FONT_INDEX].
8863 (syms_of_xfaces): Intern and staticpro QCfontset.
8864
8865 * dispextern.h (enum lface_attribute_index): New member
8866 LFACE_FONTSET_INDEX.
8867
8868 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
8869
8870 2008-02-01 Kenichi Handa <handa@m17n.org>
8871
8872 * coding.c (coding_set_destination): Fix coding->destination for
8873 the case converting a region.
8874 (encode_coding_utf_8): Encode eight-bit chars as single byte.
8875 (encode_coding_object): Fix coding->dst_pos and
8876 coding->dst_pos_byte for the case converting a region.
8877
8878 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
8879
8880 * character.h (BYTE8_STRING): New macro.
8881
8882 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
8883
8884 2008-02-01 Kenichi Handa <handa@m17n.org>
8885
8886 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
8887 characters by octal form.
8888
8889 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8890
8891 * buffer.h (_fetch_multibyte_char_len): Delete extern.
8892 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
8893 _fetch_multibyte_char_len.
8894 (FETCH_CHAR_AS_MULTIBYTE): New macro.
8895
8896 * casetab.c (set_canon, set_identity, shuffle): Simplify.
8897
8898 * casefiddle.c (casify_object): Simplify. Handle the case that
8899 the case conversion change the byte length.
8900 (casify_region): Likewise.
8901
8902 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
8903
8904 * character.c (_fetch_multibyte_char_len): Delet this variable.
8905 (syms_of_character): Setup Vprintable_chars.
8906
8907 * editfns.c (Fchar_equal): Fix for the unibyte case.
8908 (Finsert_byte): New function.
8909 (syms_of_editfns): Defsubr it.
8910
8911 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
8912 of direct code 0x3ffff.
8913
8914 * search.c (Freplace_match): Fix for the unibyte case.
8915
8916 2008-02-01 Kenichi Handa <handa@m17n.org>
8917
8918 * lread.c (safe_to_load_p): Fix the logic.
8919
8920 * syntax.c (scan_words): Don't treat characters belonging to
8921 different scripts as constituting a word.
8922
8923 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8924
8925 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
8926
8927 * emacs.c (main): In the case of --unibyte, instead of aborting on
8928 finding non-empty buffer, make it unibyte.
8929
8930 2008-02-01 Kenichi Handa <handa@m17n.org>
8931
8932 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
8933 to create a fontset.
8934
8935 2008-02-01 Dave Love <fx@gnu.org>
8936
8937 * character.c (Funibyte_char_to_multibyte): Doc fix.
8938
8939 * xfns.c [HAVE_STDLIB_H]: Fix last change.
8940
8941 2008-02-01 Kenichi Handa <handa@m17n.org>
8942
8943 * fontset.c (fontset_add): Make the type `int'.
8944 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
8945
8946 * character.c (unibyte_char_to_multibyte)
8947 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
8948 charset_unibyte, not charset_primary.
8949
8950 * charset.h (charset_unibyte): Extern it instead of charset_primary.
8951
8952 * charset.c (charset_unibyte): Rename from charset_primary.
8953 (Funibyte_charset): Rename from Fprimary_charset.
8954 (Fset_unibyte_charset): Rename from Fset_primary_charset.
8955 (syms_of_charset): Adjust for the above changes.
8956
8957 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8958 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8959 it->multibyte_p is zero.
8960
8961 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
8962 Delete extern.
8963
8964 2008-02-01 Kenichi Handa <handa@m17n.org>
8965
8966 * coding.c (Fdefine_coding_system_internal): Fix category setting
8967 for a coding system of type iso-2022.
8968
8969 2008-02-01 Kenichi Handa <handa@m17n.org>
8970
8971 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
8972
8973 2008-02-01 Kenichi Handa <handa@m17n.org>
8974
8975 * syntax.c (Vnext_word_boundary_function_table): New variable.
8976 (next-word-boundary-function-table): Declare it as a Lisp variable
8977 in syms_of_syntax.
8978 (scan_words): Call functions in Vnext_word_boundary_function_table
8979 if any.
8980
8981 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
8982
8983 * fontset.c (fs_load_font): If fontp->charset is not negative,
8984 return fontp without setting its members.
8985
8986 2008-02-01 Dave Love <fx@gnu.org>
8987
8988 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
8989
8990 * m/sparc.h (HAVE_ALLOCA): Delete.
8991
8992 * s/irix6-5.h: Don't include strings.h.
8993 (bcopy, bzero, bcmp): Don't undef.
8994
8995 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
8996
8997 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
8998 (TIOCSIGSEND): Don't test IRIX6.
8999 (bcopy, bzero, bcmp): Define conditionally.
9000
9001 2008-02-01 Kenichi Handa <handa@m17n.org>
9002
9003 * buffer.c (Qas, Qmake, Qto): New variables.
9004 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
9005 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
9006
9007 * callproc.c (Fcall_process): Don't call insert_1_both directly if
9008 we are inserting a process output into a multibyte buffer.
9009
9010 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
9011 multibyte_char_to_unibyte.
9012
9013 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
9014 by the primary charset, make it eight-bit char.
9015 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
9016
9017 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
9018 (charset_8_bit__control, charset_8_bit_graphic)
9019 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
9020 (define_charset_internal): New function.
9021 (syms_of_charset): Call define_charset_internal for pre-defined
9022 charsets.
9023
9024 * charset.h (charset_8_bit): Extern it.
9025
9026 * coding.c (make_conversion_work_buffer): Adjust for the change
9027 of Fset_buffer_multibyte.
9028 (encode_coding_raw_text): Increment p0 in the loop.
9029
9030 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
9031
9032 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
9033 for the change of Fset_buffer_multibyte.
9034
9035 * fns.c (Fstring_to_multibyte): New function.
9036 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
9037
9038 2008-02-01 Dave Love <fx@gnu.org>
9039
9040 * xfns.c (x_put_x_image): Declare args.
9041
9042 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
9043 (try_font_list): Declare an arg.
9044
9045 * xdisp.c (message2_nolog, set_message): Declare an arg.
9046
9047 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
9048
9049 * syntax.c (scan_sexps_forward): Declare an arg.
9050
9051 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9052 Declare an arg.
9053
9054 * lisp.h (Fnew_fontset): Declare.
9055
9056 * keymap.c (push_key_description): Call CHARACTERP correctly.
9057
9058 * fontset.c (fontset_add): Declare args. Call make_number correctly.
9059 (face_for_char): Delete unused vars.
9060 (Fset_fontset_font): Doc fix. Delete unused vars.
9061
9062 * doc.c (Fsubstitute_command_keys): Delete unused vars.
9063
9064 * composite.c (update_compositions): Declare arg.
9065
9066 * cm.c (calccost, cmgoto): Declare args.
9067
9068 * charset.c: Remove `emacs' conditional. Doc fixes.
9069 (map_char_table_for_charset): Declare.
9070
9071 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
9072
9073 * ccl.c: Remove `emacs' conditional.
9074
9075 2008-02-01 Kenichi Handa <handa@m17n.org>
9076
9077 The following changes are to allow specifying multiple font
9078 patterns for a character range (specified by script or charset).
9079
9080 * Makefile.in (abbrev.o): Depend on syntax.h.
9081 (xfaces.o): Depend on charset.h.
9082
9083 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
9084 SINGLE_BYTE_CHAR_P.
9085
9086 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
9087
9088 * character.h (Vchar_script_table): Extern it.
9089
9090 * character.c (Vscript_alist): Delete.
9091 (Vchar_script_table, Qchar_script_table): New variable.
9092 (syms_of_character): Declare Vchar_script_table as a lisp variable
9093 and initialize it.
9094
9095 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
9096 have property char-table-extra-slots, make no extra slot.
9097
9098 * dispextern.h (struct face): Delete member `charset'.
9099 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
9100 SINGLE_BYTE_CHAR_P.
9101 (choose_face_font, lookup_non_ascii_face, font_name_registry):
9102 Add prototypes.
9103 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
9104 (generate_ascii_font_name): Rename from generate_ascii_font.
9105
9106 * fontset.h (get_font_repertory_func): New prototype.
9107 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
9108 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
9109
9110 * fontset.c (Qprepend, Qappend): New variables.
9111 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
9112 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
9113 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
9114 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
9115 (fontset_ref_and_range, fontset_add, reorder_font_vector)
9116 (load_font_get_repertory): New functions.
9117 (fontset_set): Delete.
9118 (fontset_face): New arg FACE. Return face ID, not face.
9119 Complete re-write to handle new fontset structure. Change caller.
9120 (free_face_fontset): Use ASET istead of AREF (X) = Y.
9121 (face_for_char): Don't call lookup_face.
9122 (make_fontset_for_ascii_face): New arg FACE.
9123 (fs_load_font): New arg CHARSET_ID. Don't check
9124 Vfont_encoding_alist here.
9125 (find_font_encoding): New function.
9126 (list_fontsets): Use STRINGP, not ! NILP.
9127 (accumulate_script_ranges): New function.
9128 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
9129 re-written to handle new fontset structure.
9130 (Ffontset_font): Return a copy of element.
9131 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
9132 docstring of font-encoding-alist.
9133
9134 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
9135 (Fset_fotset_font): Fix arguments to 5.
9136
9137 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
9138
9139 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
9140 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9141 (highlight_trailing_whitespace): Adjust for the change of
9142 lookup_named_face.
9143
9144 * xfaces.c: Include charset.h.
9145 (load_face_font): Delete argument C. Change caller.
9146 (generate_ascii_font_name): Rename from generate_ascii_font.
9147 (font_name_registry): New function.
9148 (cache_face): Store ascii faces before non-ascii faces in buckets.
9149 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
9150 Lookup only ascii faces.
9151 (lookup_non_ascii_face): New function.
9152 (lookup_named_face): Delete argument C. Change caller.
9153 (lookup_derived_face): Delete argument C. Change caller.
9154 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
9155 a string, just call font_list with it.
9156 (choose_face_font): Delete arguments FACE and C. New arg
9157 FONT_SPEC. Change caller.
9158 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
9159 Change caller.
9160 (realize_non_ascii_face): New function.
9161 (realize_x_face): Call load_face_font here.
9162 (realize_tty_face): Delete argument C. Change caller.
9163 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
9164 get a face ID.
9165 (dump_realized_face): Don't print charset of FACE.
9166
9167 * xfns.c (x_set_font): Always call x_new_fontset and
9168 store_frame_parameter.
9169 (Fx_create_frame): Call x_new_fontset, not x_new_font.
9170 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
9171
9172 * xterm.h (x_get_font_repertory): Extern it.
9173
9174 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9175 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9176 it->multibyte_p is zero.
9177 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9178 (x_new_fontset): If FONTSETNAME doesn't match any existing
9179 fontsets, create a new one.
9180 (x_get_font_repertory): New function.
9181
9182 2008-02-01 Kenichi Handa <handa@m17n.org>
9183
9184 * coding.c (Ffind_coding_systems_region_internal): Detect an
9185 ASCII only string correctly.
9186
9187 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
9188 version is 0.
9189
9190 2008-02-01 Kenichi Handa <handa@m17n.org>
9191
9192 * lread.c: Include "coding.h".
9193 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
9194 (load_each_byte, unread_char): New variables.
9195 (readchar_backlog): Delete.
9196 (readchar): Return a character unless load_each_byte is nonzero.
9197 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
9198 cons. If unread_char is not -1, simply return it.
9199 (unreadchar): Handle the case that readcharfun is
9200 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
9201 (read_multibyte): Delete.
9202 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
9203 (read_emacs_mule_char): New functions.
9204 (Fload): Even if the file doesn't have the extention ".elc", if
9205 safe_to_load_p returns a positive version number, assume that the
9206 file contains bytecompiled code. If the version is less than 22,
9207 load the file while decoding multibyte sequences by emacs-mule.
9208 (readevalloop): Don't use readchar_backlog.
9209 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
9210 (Fread_from_string): Pay attention to the case that STREAM is a cons.
9211 (read_escape): Delete the arg BYTEREP.
9212 (read1): Set load_each_byte to 1 temporarily while handling
9213 #@NUMBER. Don't call read_multibyte.
9214 (read_vector): Call Fread with a cons. If readcharfun is
9215 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
9216 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
9217 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
9218 and Qload_force_doc_strings.
9219
9220 2008-02-01 Kenichi Handa <handa@m17n.org>
9221
9222 * xdisp.c (face_before_or_after_it_pos): Call
9223 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9224
9225 2008-02-01 Kenichi Handa <handa@m17n.org>
9226
9227 * character.h (TRAILING_CODE_P): New macro.
9228 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
9229 (string_char_with_unification): Fix prototype.
9230 (Vscript_alist): Extern it.
9231
9232 * character.c (Vscript_alist): New variable.
9233 (string_char_with_unification, str_as_unibyte)
9234 (string_escape_byte8): Add `const' to local variables.
9235 (syms_of_character): Declare script-alist as a Lisp variable.
9236
9237 * charset.h (Vcharset_ordered_list): Extern it.
9238 (charset_ordered_list_tick): Extern it.
9239 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
9240 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
9241 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
9242 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
9243 (Funify_charset): Adjust for the change of Funify_charset.
9244
9245 * charset.c (charset_ordered_list_tick): New variable.
9246 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
9247 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
9248 deunify intead of unify a charset.
9249 (string_xstring_p): Add `const' to local variables.
9250 (find_charsets_in_text): Add `const' to arguemnts and local variables.
9251 (encode_char): Adjust for the change of Funify_charset. Fix
9252 detecting of invalid code.
9253 (Fset_charset_priority): Increment charset_ordered_list_tick.
9254 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
9255 and TO_CODE.
9256
9257 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
9258 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
9259 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
9260 (decode_coding_ccl, consume_chars)
9261 (Ffind_coding_systems_region_internal)
9262 (Fcheck_coding_systems_region): Add `const' to local variables.
9263
9264 * print.c (print_object): Use octal form for printing the
9265 contents of a bool vector.
9266
9267 2008-02-01 Dave Love <fx@gnu.org>
9268
9269 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
9270 <version == 20>: Refuse to load.
9271
9272 2008-02-01 Dave Love <fx@gnu.org>
9273
9274 * fns.c: Move coding.h.
9275 (Qcodeset, Qdays, Qmonths): New.
9276 (concat): Use CHARACTERP instead of INTERGERP.
9277 (Flocale_codeset): Delete.
9278 (Flanginfo): New function.
9279 (syms_of_fns): Change accordingly.
9280
9281 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
9282
9283 2008-02-01 Dave Love <fx@gnu.org>
9284
9285 * casetab.c (init_casetab_once, init_casetab_once): Fix
9286 CHAR_TABLE_SET call.
9287
9288 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
9289
9290 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
9291
9292 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
9293 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
9294 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
9295
9296 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
9297
9298 * coding.c (ENCODE_DESIGNATION, decode_eol)
9299 (make_conversion_work_buffer, code_conversion_restore)
9300 (Fdefine_coding_system_internal): Convert Lisp types.
9301 (code_conversion_restore): Use EQ, not ==.
9302 (Fencode_coding_string): Fix code_convert_string call.
9303
9304 * coding.h (code_convert_region): Fix prototype.
9305
9306 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
9307
9308 * fontset.c (fontset_ref, fontset_set, fs_load_font)
9309 (Ffontset_info): Convert Lisp types.
9310
9311 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
9312
9313 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
9314
9315 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
9316
9317 * chartab.c: Include "...h", not <...h> in some cases.
9318
9319 * callproc.c (Fcall_process): Remove unused variables.
9320
9321 2008-02-01 Dave Love <fx@gnu.org>
9322
9323 * coding.c (Fset_coding_system_priority): Allow null arg list.
9324
9325 2008-02-01 Dave Love <fx@gnu.org>
9326
9327 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9328 (Fself_insert_and_exit): Use CHARACTERP.
9329
9330 * callproc.c (Fcall_process): Remove unused vars.
9331
9332 * xterm.c (XTread_socket): Add extra dead keysyms.
9333
9334 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
9335
9336 * dispextern.h: Remove prototypes for redraw_frame,
9337 redraw_garbaged_frames.
9338
9339 * cmds.c (Fself_insert_command): Use CHARACTERP.
9340
9341 * chartab.c (make_sub_char_table): Remove unused var.
9342 (Fset_char_table_default, Fmap_char_table): Doc fix.
9343
9344 * keymap.c (access_keymap): Remove generic char code.
9345 (push_key_description): Use CHARACTERP.
9346
9347 2008-02-01 Dave Love <fx@gnu.org>
9348
9349 * charset.c: Doc fixes.
9350 (Funify_charset): Extra checking.
9351
9352 2008-02-01 Dave Love <fx@gnu.org>
9353
9354 * lread.c: Remove some unused variables.
9355 (safe_to_load_p): If safe, return the magic number version byte.
9356 (Fload): Maybe use load-with-code-conversion.
9357
9358 2008-02-01 Kenichi Handa <handa@m17n.org>
9359
9360 * category.c (Fmodify_category_entry): Don't modify the contents
9361 of category_set for characters out of the range. Avoid
9362 unnecessary modification.
9363
9364 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
9365 Vchar_unify_table. The default value of the table is now nil.
9366
9367 * character.c (syms_of_character): Setup Vchar_width_table for
9368 eight-bit-control and raw-byte chars.
9369
9370 * charset.h (enum define_charset_arg_index): Delete
9371 charset_arg_parents and add charset_arg_subset and
9372 charset_arg_superset.
9373 (enum charset_attr_index): Delete charset_parents and add
9374 charset_subset and charset_superset.
9375 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
9376 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
9377 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
9378 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
9379 (CHARSET_SUPERSET): New macros.
9380 (charset_work): Extern it.
9381 (ENCODE_CHAR): Use charset_work.
9382 (CHAR_CHARSET_P): Adjust for the change of encoder format.
9383 (map_charset_chars): Extern it.
9384
9385 * charset.c (load_charset_map): Set the default value of encoder
9386 and deunifier char-tables to nil.
9387 (map_charset_chars): Change argument. Change callers. Use
9388 map_char_table_for_charset instead of map_char_table.
9389 (Fmap_charset_chars): New optional args from_code and to_code.
9390 (Fdefine_charset_internal): Adjust for the change of
9391 `define-charset' (:parents -> :subset or :superset).
9392 (charset_work): New variable.
9393 (encode_char, syms_of_charset): Adjust for the change of
9394 Fdefine_charset_internal.
9395 (Ffind_charset_string): Setup the vector `charsets' correctly.
9396
9397 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
9398 the previous change.
9399 (char_table_ref_and_range): Adjust for the above change.
9400 (map_sub_char_table_for_charset): New function.
9401 (map_char_table_for_charset): New function.
9402
9403 * keymap.c (describe_vector): Handle a char-table directly here.
9404 (describe_char_table): Delete.
9405
9406 * lisp.h (map_charset_chars): Delete.
9407
9408 2008-02-01 Dave Love <fx@gnu.org>
9409
9410 * fns.c (count_combining): Comment out (unused).
9411 (Flocale_codeset): New.
9412 (syms_of_fns): Defsubr it.
9413
9414 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
9415 (size_t): Remove.
9416
9417 2008-02-01 Dave Love <fx@gnu.org>
9418
9419 * Makefile.in (chartab.o): Depend on charset.h.
9420
9421 2008-02-01 Kenichi Handa <handa@m17n.org>
9422
9423 * character.c (syms_of_character): Set the default value of
9424 Vprintable_chars to Qnil.
9425
9426 2008-02-01 Dave Love <fx@gnu.org>
9427
9428 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
9429
9430 2008-02-01 Kenichi Handa <handa@m17n.org>
9431
9432 * charset.c (load_charset_map): Handle the case that from < to
9433 correctly.
9434
9435 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
9436 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
9437 Pay attention to raw-8-bit chars.
9438
9439 2008-02-01 Kenichi Handa <handa@m17n.org>
9440
9441 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
9442 It is not bytecompiled now.
9443
9444 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
9445 (charset_jisx0208): New variables.
9446 (Fdefine_charset_internal): Setup them if appropriate.
9447 (init_charset_once): Initialize them to -1.
9448
9449 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
9450 (charset_jisx0208): Extern them.
9451
9452 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
9453 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
9454 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
9455 (setup_iso_safe_charsets): Fix arguments to Fassq.
9456 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
9457 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
9458 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
9459 (encode_coding_iso_2022): Change the 1st arg to
9460 ENCODE_ISO_CHARACTER to a variable.
9461
9462 2008-02-01 Kenichi Handa <handa@m17n.org>
9463
9464 * charset.h (enum define_charset_arg_index): New enums
9465 charset_arg_min_code and charset_arg_max_code.
9466 (struct charset): New member char_index_offset.
9467
9468 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
9469 Take charset->char_index_offset into account.
9470 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
9471 args[charset_arg_max_code]. Setup charset.char_index_offset.
9472 (syms_of_charset): Fix args to Fdefine_charset_internal.
9473
9474 2008-02-01 Dave Love <fx@gnu.org>
9475
9476 * coding.c (decode_coding_utf_8): Reject overlong sequences.
9477
9478 2008-02-01 Dave Love <fx@gnu.org>
9479
9480 * coding.c: Doc fixes.
9481 (Fcoding_system_aliases): Fix return value.
9482 (Qmac): Remove (duplicated) definition.
9483
9484 2008-02-01 Dave Love <fx@gnu.org>
9485
9486 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
9487 functions.
9488
9489 * character.c (Fstring): Doc fix.
9490
9491 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
9492
9493 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
9494 ids.
9495 (font-encoding-alist): Doc fix.
9496
9497 2008-02-01 Dave Love <fx@gnu.org>
9498
9499 * term.c (costs_set): Declare static, non-initialized for pcc.
9500 (encode_terminal_code): Remove unused var.
9501
9502 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9503 for K&R.
9504
9505 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
9506
9507 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
9508 (suffixes): Move out of make_subsidiaries for K&R.
9509
9510 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
9511
9512 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
9513
9514 2008-02-01 Dave Love <fx@gnu.org>
9515
9516 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
9517
9518 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
9519
9520 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
9521
9522 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
9523
9524 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
9525
9526 2008-02-01 Kenichi Handa <handa@m17n.org>
9527
9528 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
9529 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
9530
9531 2008-02-01 Kenichi Handa <handa@m17n.org>
9532
9533 * coding.c (decode_coding_charset): Adjust for the change of
9534 Fdefine_coding_system_internal.
9535 (Fdefine_coding_system_internal): For a coding system of
9536 `charset' type, store a list of charset IDs in
9537 `charset_attr_charset_valids' element of coding attributes.
9538
9539 2008-02-01 Kenichi Handa <handa@m17n.org>
9540
9541 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
9542 (emacs_mule_char): New arg src. Delete arg `composition'. Change
9543 caller. Handle 2-byte and 3-byte charsets correctly.
9544 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
9545 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
9546 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
9547 (DECODE_EMACS_MULE_21_COMPOSITION): Call
9548 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
9549 sequence.
9550 (decode_coding_emacs_mule): Handle composition correctly. Rewind
9551 `src' and `consumed_chars' correctly before calling emacs_mule_char.
9552 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
9553 and alt&rule composition.
9554 (decode_coding_iso_2022): Handle composition correctly.
9555 (init_coding_once): Setup emacs_mule_bytes for private charsets.
9556
9557 * charset.c (Fdefine_charset_internal): Fix bug for the case of
9558 re-defining a charset. If the charset has :emacs-mule-id, setup
9559 emacs_mule_bytes.
9560 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
9561
9562 2008-02-01 Kenichi Handa <handa@m17n.org>
9563
9564 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
9565 (encode_coding_big5, encode_coding_charset): If coding requires safe
9566 encoding, produce a character specified by
9567 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
9568
9569 2008-02-01 Dave Love <fx@gnu.org>
9570
9571 * xterm.c (XSetIMValues): Declare.
9572
9573 * process.c: Conditionally include sys/wait.h, pty.h.
9574
9575 * print.c (print_object): Fix print format for 64-bit systems.
9576
9577 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
9578
9579 * buffer.c (emacs_strerror): Declare.
9580
9581 * fontset.c (Fclear_face_cache): Declare.
9582 (accumulate_font_info): Comment-out (unused).
9583 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
9584 variables.
9585
9586 * character.h (string_escape_byte8): Declare.
9587
9588 * charset.c (load_charset_map, load_charset_map_from_file): Remove
9589 unused vars.
9590 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
9591 (Fmap_charset_chars): Doc fix.
9592
9593 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
9594 (Fset_coding_system_priority, Fset_coding_system_priority)
9595 (Fdefine_coding_system_internal): Doc fix.
9596
9597 2008-02-01 Dave Love <fx@gnu.org>
9598
9599 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
9600
9601 2008-02-01 Kenichi Handa <handa@m17n.org>
9602
9603 * character.c (string_escape_byte8): Make multibyte string with
9604 correct size.
9605
9606 * charset.c (Fmake_char): Delete unnecessary code.
9607
9608 2008-02-01 Kenichi Handa <handa@m17n.org>
9609
9610 * xfns.c (x_encode_text): Allocate coding.destination here, and
9611 call encode_coding_object with dst_object Qnil.
9612
9613 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
9614 multibyte form correctly.
9615
9616 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
9617 against Vfont_encoding_alist.
9618
9619 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
9620 handling of charset list.
9621 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
9622 (decode_coding_object): Move point to coding->dst_pos before
9623 calling post-read-conversion function.
9624 (encode_coding_object): Give correct arguments to
9625 pre-write-conversion. Ignore the return value of
9626 pre-write-conversion function. Pay attention to the case that
9627 pre-write-conversion changes the current buffer. If dst_object is
9628 Qt, even if coding->src_bytes is zero, allocate at least one byte
9629 to coding->destination.
9630
9631 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
9632
9633 * charset.c (Fmake_char): Make it more backward compatible.
9634 (Fmap_charset_chars): Fix docstring.
9635
9636 2008-02-01 Dave Love <fx@gnu.org>
9637
9638 * coding.c: Doc fixes.
9639 (Fdefine_coding_system_alias): Use names, not symbols, in
9640 coding-system-alist.
9641
9642 2008-02-01 Kenichi Handa <handa@m17n.org>
9643
9644 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
9645 of calling free_realized_face.
9646
9647 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
9648
9649 * charset.c (read_hex): Don't treat SPC as a comment starter.
9650 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
9651 (Fdecode_char): Fix typo.
9652
9653 2008-02-01 Kenichi Handa <handa@m17n.org>
9654
9655 * charset.h (struct charset): New member `code_space_mask'.
9656
9657 * coding.c (coding_set_source): Delete the local variable beg_byte.
9658 (encode_coding_charset, Fdefine_coding_system_internal):
9659 Delete the local variable charset.
9660 (Fdefine_coding_system_internal): Setup
9661 attrs[coding_attr_charset_valids] correctly.
9662
9663 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
9664 member to check if CODE is valid or not.
9665 (Fdefine_charset_internal): Initialize `code_space_mask' member.
9666 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
9667 is within the range of charset->min_code and carset->max_code.
9668
9669 2008-02-01 Dave Love <fx@gnu.org>
9670
9671 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
9672
9673 * dispextern.h (generate_ascii_font): Fix return type.
9674
9675 * xfaces.c (generate_ascii_font): Fix arg declaration.
9676
9677 * coding.c (coding_inherit_eol_type)
9678 (Fset_terminal_coding_system_internal)
9679 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
9680
9681 2008-02-01 Kenichi Handa <handa@m17n.org>
9682
9683 * coding.c (decode_coding_charset, encode_coding_charset): Handle
9684 multiple charsets correctly.
9685
9686 2008-02-01 Kenichi Handa <handa@m17n.org>
9687
9688 * search.c (boyer_moore): Fix handling of mulitbyte character
9689 translation.
9690
9691 * xdisp.c (display_mode_element): When the variable `elt' is
9692 changed, update `this' and `lisp_string'.
9693
9694 2008-02-01 Kenichi Handa <handa@m17n.org>
9695
9696 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
9697
9698 * callproc.c (Fcall_process): Be sure to give the current buffer
9699 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
9700
9701 * charset.c (struct charset_map_entries): New struct.
9702 (load_charset_map): Rename from parse_charset_map. New args
9703 entries and n_entries. Change caller.
9704 (load_charset_map_from_file): Rename from load_charset_map.
9705 Change caller. New arg control_flag. Call load_charset_map at
9706 the tail.
9707 (load_charset_map_from_vector): New function.
9708 (Fdefine_charset_internal): Setup charset.compact_codes_p.
9709 (encode_char): If the charset is compact, change a character index
9710 to a code point.
9711
9712 * coding.c (coding_alloc_by_making_gap): Check the case that the
9713 source and destination are the same correctly.
9714 (decode_coding_raw_text): Set coding->consumed_char and
9715 coding->consumed to 0.
9716 (produce_chars): If coding->chars_at_source is nonzero, update
9717 coding->consumed_char and coding->consumed before calling
9718 alloc_destination.
9719 (Fdefine_coding_system_alias): Register ALIAS in
9720 Vcoding_system_alist.
9721 (syms_of_coding): Define `no-convesion' coding system at the tail.
9722
9723 * fileio.c (Finsert_file_contents): Set coding_system instead of
9724 val. If the current buffer is multibyte, always call
9725 decode_coding_gap.
9726
9727 * xfaces.c (try_font_list): Give higher priority to fontset's
9728 family than face's family.
9729
9730 2008-02-01 Kenichi Handa <handa@m17n.org>
9731
9732 * callproc.c (Fcall_process): Be sure to give the current buffer
9733 to decode_coding_c_string.
9734
9735 * xfaces.c (try_font_list): Give a family specified in a fontset
9736 higher priority than a family specified in a face.
9737
9738 2008-02-01 Kenichi Handa <handa@m17n.org>
9739
9740 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
9741 Fix arguments to insert_from_buffer.
9742
9743 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
9744
9745 2008-02-01 Kenichi Handa <handa@m17n.org>
9746
9747 * coding.c (produce_chars): Set the variable `multibytep' correctly.
9748 (decode_coding_gap): Set coding->dst_multibyte correctly.
9749
9750 2008-02-01 Kenichi Handa <handa@m17n.org>
9751
9752 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
9753 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
9754 (encode_coding_utf_16): Substitute coding->default_char for
9755 non-Unicode characters.
9756 (decode_coding): Don't call record_insert here.
9757 (setup_coding_system): Initialize `surrogate' of
9758 coding->spec.utf_16 to 0.
9759 (EMIT_ONE_BYTE): Fix for multibyte case.
9760
9761 * insdel.c (insert_from_gap): Call record_insert.
9762
9763 2008-02-01 Kenichi Handa <handa@m17n.org>
9764
9765 * casefiddle.c (casify_region): Fix multibyte case.
9766
9767 * character.c (c_string_width): Add return type `int'.
9768 (char_string_with_unification): Delete arg ADVANCED.
9769
9770 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
9771 (CHAR_STRING): Adjust for the change of char_string_with_unification.
9772 (CHAR_STRING_ADVANCE): Make it do-while statement.
9773
9774 * chartab.c (sub_char_table_set_range): Optimize for the case
9775 DEPTH == 3. Add workaround code for a GCC optimization bug.
9776
9777 * charset.c (parse_charset_map): Remove an unused variable.
9778
9779 * coding.c: Delete unused variables.
9780
9781 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
9782 earlier. If inserted is zero and the coding system doesn't
9783 require flushing, don't call decode_coding_gap.
9784
9785 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
9786
9787 2008-02-01 Kenichi Handa <handa@m17n.org>
9788
9789 The following changes are for using Unicode as an internal
9790 character model, and use UTF-8 format for buffer/string
9791 representation.
9792
9793 * .gdbinit (xchartable): Adjust for the change of char table structure.
9794 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
9795
9796 * Makefile.in (obj): Add character.o and chartab.o.
9797 (lisp, shortlisp): Remove utf-8.elc.
9798 (*.o): For many files, change dependency on charset.h to
9799 character.h, and add dependency on character.h.
9800 (character.o, chartab.o): New targets.
9801
9802 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
9803 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
9804 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
9805 of "charset.h".
9806
9807 * dired.c, filelock.c: Include "character.h".
9808
9809 * alloc.c: Include "character.h" instead of "charset.h".
9810 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
9811 (syms_of_alloc): Remove defsubr for Smake_char_table.
9812
9813 * buffer.c: Include "character.h" instead of "charset.h", don't
9814 include "coding.h".
9815 (Fset_buffer_multibyte): Adjust for UTF-8.
9816
9817 * buffer.h: EXFUN Fbuffer_live_p.
9818
9819 * callproc.c: Include "character.h" instead of "charset.h".
9820 (Fcall_process): Big change for the new code-conversion APIs.
9821
9822 * casetab.c: Include "character.h" instead of "charset.h".
9823 (set_canon, set_identity, shuffle): Adjust for the new
9824 map_char_table spec.
9825 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
9826 accessing the char table structure.
9827
9828 * chartab.c: New file that implements char table.
9829
9830 * category.c: Include "character.h".
9831 (copy_category_entry): New function.
9832 (copy_category_table): Call map_char_table and copy_category_entry.
9833 (Fmake_category_table): Initialize all top-vel slots.
9834 (char_category_set): New function.
9835 (modify_lower_category_set): Delete.
9836 (Fmodify_category_entry): Call char_table_ref_and_range.
9837
9838 * category.h (CATEGORY_SET): Just call char_category_set.
9839
9840 * ccl.c: Include "character.h".
9841 (Qccl, Qcclp): New variables.
9842 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
9843 it's less than 256.
9844 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
9845 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
9846 and DST type.
9847 (ccl_driver): Change types of argument, adjust code accordingly.
9848 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
9849 ccl_driver.
9850 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
9851
9852 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
9853 New members src_multibyte, dst_multibyte, consumed, and produced.
9854 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
9855 (CODING_SPEC_CCL_PROGRAM): New macro.
9856 (ccl_driver): Update prototype.
9857 (Qccl, Qcclp, Fccl_program_p): Extern them.
9858 (CHECK_CCL_PROGRAM): New macro.
9859
9860 * character.c, character.h, chartab.c: New files.
9861
9862 * charset.c: Mostly re-written. Move character and multibyte sequence
9863 handling codes to character.c.
9864
9865 * charset.h: Mostly re-written. Move character and multibyte sequence
9866 handling codes to character.h.
9867
9868 * coding.c, coding.h: Mostly re-written.
9869
9870 * composite.c: Include "character.h" instead of "charset.h".
9871 (CHAR_WIDTH): Move to character.h.
9872 (HASH_KEY, HASH_VALUE): Delete.
9873
9874 * composite.h (enum composition_method): Change order of enumeration
9875 symbols.
9876
9877 * data.c: Include "character.h" instead of "charset.h".
9878 (Faref): Call CHAR_TABLE_REF for a char table.
9879 (Faset): Call CHAR_TABLE_SET for a char table.
9880
9881 * dispextern.h (free_realized_face, check_face_attribytes)
9882 (generate_ascii_font): Extern them.
9883 (free_realized_multibyte_face): Delete extern.
9884
9885 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
9886 table structure.
9887
9888 * editfns.c: Include "character.h" instead of "charset.h".
9889 (Fchar_to_string): Always call CHAR_STRING.
9890
9891 * emacs.c (main): Call init_charset_once, init_charset,
9892 syms_of_chartab, and syms_of_character.
9893
9894 * fileio.c: Include "character.h" instead of "charset.h".
9895 (Finsert_file_contents): Big change for the new code-conversion API.
9896 (choose_write_coding_system, Fwrite_region): Likewise.
9897 (build_annotations_2): Delete.
9898 (e_write): Big change for the new code-conversion API.
9899
9900 * fns.c: Include "character.h" instead of "charset.h".
9901 (copy_sub_char_table): Move to chartab.c.
9902 (Fcopy_sequence): Call copy_char_table for a char table.
9903 (concat): Delete codes calling count_multibyte.
9904 (string_char_to_byte, string_byte_to_char): Adjust for the new
9905 multibyte form.
9906 (internal_equal): Adjust for the change of char table structure.
9907 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
9908 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
9909 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
9910 (char_table_translate, optimize_sub_char_table)
9911 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
9912 chartab.c.
9913 (char_table_ref_and_index): Delete.
9914 (HASH_KEY, HASH_VALUE): Move to lisp.h.
9915 (Fmd5): Call preferred_coding_system instead of accessing
9916 Vcoding_category_list. Adjust for the new code-conversion API.
9917 (syms_of_fns): Move defsubr for char table related functions to
9918 chartab.c.
9919
9920 * fontset.c: Mostly re-written.
9921
9922 * fontset.h (struct font_info): Change type of the member encoding_type.
9923 (enum FONT_SPEC_INDEX): New enum.
9924 (fontset_font_pattern, fs_load_font): Update prototype.
9925 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
9926
9927 * indent.c: Include "character.h" instead of "charset.h".
9928 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
9929
9930 * insdel.c: Include "character.h" instead of "charset.h".
9931 (copy_text): Don't refer to Vnonascii_translation_table.
9932 (insert_from_gap): New function.
9933
9934 * keyboard.c: Include "character.h" instead of "charset.h".
9935 (command_loop_1): Never call direct_output_forward_char before
9936 a non-ASCII character.
9937 (read_char): If Vkeyboard_translate_table is a char table, always
9938 translate a character.
9939
9940 * keymap.c: Include "character.h".
9941 (store_in_keymap): Handle the case that IDX is a cons.
9942 (Fdefine_key): Handle the case that KEY is a cons and the car part
9943 is also a cons (range).
9944 (push_key_description): Adjust for the new character code.
9945 (describe_vector): Call describe_char_table for a char table.
9946 (describe_char_table): New function.
9947
9948 * keymap.h (describe_char_table): Extern it.
9949
9950 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
9951 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
9952 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
9953 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
9954 Delete.
9955 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
9956 structure.
9957 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
9958 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
9959 (CHARTAB_SIZE_BITS_3): New macros.
9960 (chartab_size): Extern it.
9961 (struct Lisp_Char_Table): Re-design.
9962 (struct Lisp_Sub_Char_Table): New structure.
9963 (HASH_KEY, HASH_VALUE): Move from fns.c.
9964 (CHARACTERBITS): Define as 22.
9965 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
9966 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
9967 (GC_SUB_CHAR_TABLE_P): New macro.
9968 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
9969 (code_convert_string_norecord): Deleted extern.
9970 (init_character_once, syms_of_character, init_charset)
9971 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
9972
9973 * lread.c: Include "character.h".
9974 (read_multibyte): New arg NBYTES.
9975 (read_escape): Change the meaning of returned *BYTEREP.
9976 (to_multibyte): Delete.
9977 (read1): Adjust the handling of char table and string.
9978
9979 * print.c: Include "character.h" instead of "charset.h".
9980 (print_string): Convert 8-bit raw bytes to octal form by
9981 string_escape_byte8.
9982 (print_object): Adjust for the new multibyte form. Print 8-bit
9983 raw bytes always in octal form. Handle sub char table correctly.
9984
9985 * process.c: Include "character.h" instead of "charset.h".
9986 (read_process_output, send_process): Adjust for the new
9987 code-conversion API.
9988
9989 * puresize.h (BASE_PURESIZE): Increase.
9990
9991 * regex.c: Include "character.h" instead of "charset.h".
9992 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
9993 (regex_compile): Accept a range whose starting and ending
9994 character have different leading bytes.
9995 (analyse_first): Adjust for the above change.
9996
9997 * search.c: Include "character.h" instead of "charset.h".
9998 (search_buffer, boyer_moore): Adjust for the new multibyte form.
9999 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
10000
10001 * syntax.c: Include "character.h" instead of "charset.h".
10002 (syntax_parent_lookup): Delete.
10003 (Fmodify_syntax_entry): Accept a cons as CHAR.
10004 (skip_chars): Adjust for the new multibyte form.
10005 (init_syntax_once): Call char_table_set_range instead of directly
10006 accessing the structure of a char table.
10007
10008 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
10009 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
10010 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
10011 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
10012
10013 * term.c: Include "buffer.h" and "character.h".
10014 (encode_terminal_code, write_glyphs): Adjust for the new
10015 code-conversion API.
10016 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
10017
10018 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
10019
10020 * xdisp.c: Include "character.h".
10021 (get_next_display_element): Adjust for the new multibyte form.
10022 (disp_char_vector): Adjust for the new char table structure.
10023 (decode_mode_spec_coding): Adjust for the new structure of
10024 coding system.
10025 (decode_mode_spec): Adjust for the new code-conversion API.
10026
10027 * xfaces.c: Include "character.h" instead of "charset.h".
10028 (load_face_font): Adjust for the change of choose_face_font and
10029 FS_LOAD_FONT.
10030 (generate_ascii_font): New function.
10031 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
10032 (set_font_frame_param): Adjust for the change of choose_face_font.
10033 (free_realized_face): Make it public.
10034 (free_realized_faces_for_fontset): Rename from
10035 free_realized_multibyte_face. Free also faces realized for ASCII.
10036 (choose_face_font): Change arguments. Adjust for the change of
10037 fontset_font_pattern and FS_LOAD_FONT.
10038
10039 * xfns.c: Include "character.h".
10040 (x_encode_text): Adjust for the new code-conversion API.
10041
10042 * xselect.c: Don't include "charset.h".
10043 (selection_data_to_lisp_data): Adjust for the new code conversion API.
10044
10045 * xterm.c: Include "character.h".
10046 (x_encode_char): New argument CHARSET. Change caller.
10047 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
10048 Call ENCODE_CHAR instead of SPLIT_CHAR.
10049 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
10050 CHAR_WIDTH instead of CHARSET_WIDTH.
10051 (XTread_socket): Adjust for the new code-conversion API.
10052 (x_new_font): Adjust for the change of FS_LOAD_FONT.
10053 (x_load_font): Adjust for the change of struct font.
10054
10055 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10056
10057 * xfaces.c (face_at_buffer_position): Remove unused vars.
10058
10059 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10060
10061 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
10062 Fix overflow checking.
10063
10064 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10065
10066 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
10067 Cancel previous change.
10068
10069 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10070
10071 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
10072 ccl->eight_bit_control. Fix check for buffer overflow.
10073 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
10074 (ccl_driver): Initialize extra_bytes to 0.
10075
10076 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10077
10078 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
10079 return it ORed with ctrl_modifier.
10080
10081 2008-01-29 Miles Bader <miles@gnu.org>
10082
10083 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
10084
10085 2008-01-28 Jason Rumney <jasonr@gnu.org>
10086
10087 * w32.c (stat): Don't double check for networked drive.
10088
10089 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10090
10091 * window.c (run_window_configuration_change_hook): New function.
10092 Code extracted from set_window_buffer. Set the selected frame.
10093 (set_window_buffer): Use it.
10094 * window.h (run_window_configuration_change_hook): Declare.
10095 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
10096
10097 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
10098
10099 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
10100
10101 * Makefile.in: Remove references to unused macros.
10102
10103 2008-01-26 Eli Zaretskii <eliz@gnu.org>
10104
10105 * w32.c (g_b_init_get_sid_sub_authority)
10106 (g_b_init_get_sid_sub_authority_count): New static variables.
10107 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
10108 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
10109 (init_user_info): Use them to retrieve uid and gid.
10110 Use 500/513, the Windows defaults, as Administrator's uid/gid.
10111 (fstat): Use pw_uid and pw_gid from the_passwd structure for
10112 st_uid and st_gid of the file.
10113
10114 2008-01-26 Jason Rumney <jasonr@gnu.org>
10115
10116 * w32.c (logon_network_drive): New function.
10117 (stat): Use it.
10118
10119 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
10120
10121 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
10122 invisible text covered with an ellipsis.
10123
10124 2008-01-25 Richard Stallman <rms@gnu.org>
10125
10126 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
10127 jump back to beginning. Move some other initializations after that.
10128 (Qwindow_text_change_functions, Vwindow_text_change_functions):
10129 New variables.
10130 (syms_of_xdisp): Init them.
10131
10132 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
10133
10134 * buffer.c (reset_buffer_local_variables):
10135 Implement `permanent-local-hook'.
10136 (Qpermanent_local_hook): New variable.
10137 (syms_of_buffer): Init and staticpro it.
10138
10139 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
10140
10141 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
10142
10143 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
10144
10145 * fns.c (Fclrhash): Return TABLE.
10146
10147 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10148
10149 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
10150 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
10151 is set even without positional changes.
10152 (x_scroll_bar_clear): Set bar->redraw_needed_p.
10153
10154 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
10155
10156 2008-01-23 Jason Rumney <jasonr@gnu.org>
10157
10158 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
10159
10160 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
10161 the unicode range available in MULE by locale-coding-system.
10162 Improve dbcs lead byte detection. Set event timestamp and modifiers
10163 earlier.
10164
10165 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10166
10167 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
10168 [MAC_OSX] (init_mac_osx_environment): Initialize it.
10169 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
10170 when used on child processes.
10171
10172 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
10173
10174 * dbusbind.c (Fdbus_method_return_internal): Rename from
10175 Fdbus_method_return.
10176 (Fdbus_unregister_object): Move to dbus.el.
10177 (Fdbus_call_method, Fdbus_method_return_internal)
10178 (Fdbus_send_signal): Improve debug messages.
10179
10180 2008-01-20 Martin Rudalics <rudalics@gmx.at>
10181
10182 * undo.c (undo_inhibit_record_point): New variable.
10183 (syms_of_undo): Initialize it.
10184 (record_point): Don't record point when undo_inhibit_record_point
10185 is set.
10186
10187 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
10188
10189 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
10190
10191 * xdisp.c (Qauto_hscroll_mode): New var.
10192 (syms_of_xdisp): Initialize it.
10193 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
10194 window's buffer.
10195 (hscroll_windows): Don't check automatic_hscrolling_p here.
10196
10197 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
10198 vscroll if we're setting window-buffer to the value it already has.
10199
10200 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
10201
10202 * m/intel386.h: Remove references to XENIX.
10203
10204 2008-01-17 Andreas Schwab <schwab@suse.de>
10205
10206 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
10207 instead of HAVE_X86_64_LIB64_DIR.
10208 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
10209
10210 2008-01-17 Glenn Morris <rgm@gnu.org>
10211
10212 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
10213 to HAVE_X86_64_LIB64_DIR.
10214
10215 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
10216
10217 * s/irix3-3.h:
10218 * s/irix4-0.h:
10219 * s/386-ix.h:
10220 * s/domain.h:
10221 * s/hpux9-x11r4.h:
10222 * s/hpux9shxr4.h: Remove files for systems no longer supported.
10223
10224 * sysdep.c: Remove code containing references to symbols defined
10225 by unsupported systems.
10226
10227 2008-01-16 Glenn Morris <rgm@gnu.org>
10228
10229 * coding.c (select-safe-coding-system-function): Doc fix.
10230
10231 2008-01-15 Glenn Morris <rgm@gnu.org>
10232
10233 * config.in: Revert 2008-01-13 change: this is a generated file.
10234
10235 2008-01-13 Tom Tromey <tromey@redhat.com>
10236
10237 * lisp.h: Fix typo.
10238
10239 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10240
10241 * m/sequent-ptx.h:
10242 * m/sequent.h:
10243 * s/ptx.h:
10244 * s/ptx4-2.h:
10245 * s/ptx4.h: Remove files for systems no longer supported.
10246
10247 * callproc.c (Fcall_process): Fix previous change.
10248
10249 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10250
10251 * unexsunos4.c: Remove file, system not supported anymore.
10252
10253 * m/mips.h:
10254 * m/intel386.h:
10255 * callproc.c:
10256 * config.in:
10257 * ecrt0.c:
10258 * emacs.c:
10259 * fileio.c:
10260 * frame.c:
10261 * getpagesize.h:
10262 * keyboard.c:
10263 * lread.c:
10264 * process.c:
10265 * puresize.h:
10266 * sysdep.c:
10267 * systty.h:
10268 * syswait.h:
10269 * unexec.c:
10270 * xdisp.c:
10271 * alloc.c: Remove code containing references to symbols defined by
10272 unsupported systems.
10273
10274 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
10275
10276 * coding.c (detect_coding_mask): Fix previous change.
10277
10278 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
10279
10280 * coding.c (detect_coding_iso2022): New arg
10281 latin_extra_code_state. Allow Latin extra codes only
10282 when *latin_extra_code_state is nonzero.
10283 (detect_coding_mask): If there is a NULL byte, detect the encoding
10284 as UTF-16 or binary. If Latin extra codes exist, detect the
10285 encoding as ISO-2022 only when there's no other proper encoding is
10286 found.
10287
10288 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10289
10290 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
10291 #ifdef MAC_OS.
10292
10293 2008-01-08 Richard Stallman <rms@gnu.org>
10294
10295 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
10296
10297 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
10298
10299 * keyboard.c (parse_menu_item): Don't enclose key bindings on
10300 menu bar in parentheses.
10301
10302 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
10303
10304 * m/7300.h:
10305 * m/acorn.h:
10306 * m/alliant-2800.h:
10307 * m/alliant.h:
10308 * m/alliant1.h:
10309 * m/alliant4.h:
10310 * m/altos.h:
10311 * m/amdahl.h:
10312 * m/apollo.h:
10313 * m/att3b.h:
10314 * m/aviion-intel.h:
10315 * m/aviion.h:
10316 * m/celerity.h:
10317 * m/clipper.h:
10318 * m/cnvrgnt.h:
10319 * m/convex.h:
10320 * m/cydra5.h:
10321 * m/delta88k.h:
10322 * m/dpx2.h:
10323 * m/dual.h:
10324 * m/elxsi.h:
10325 * m/f301.h:
10326 * m/gould-np1.h:
10327 * m/gould.h:
10328 * m/i860.h:
10329 * m/ibmps2-aix.h:
10330 * m/ibmrt-aix.h:
10331 * m/ibmrt.h:
10332 * m/irist.h:
10333 * m/is386.h:
10334 * m/isi-ov.h:
10335 * m/mega68.h:
10336 * m/mg1.h:
10337 * m/news-r6.h:
10338 * m/news-risc.h:
10339 * m/news.h:
10340 * m/nh3000.h:
10341 * m/nh4000.h:
10342 * m/ns16000.h:
10343 * m/ns32000.h:
10344 * m/nu.h:
10345 * m/orion.h:
10346 * m/orion105.h:
10347 * m/paragon.h:
10348 * m/pfa50.h:
10349 * m/plexus.h:
10350 * m/pyramid.h:
10351 * m/pyrmips.h:
10352 * m/sh3el.h:
10353 * m/sps7.h:
10354 * m/sr2k.h:
10355 * m/stride.h:
10356 * m/sun1.h:
10357 * m/sun2.h:
10358 * m/sun3-68881.h:
10359 * m/sun3-fpa.h:
10360 * m/sun3-soft.h:
10361 * m/sun3.h:
10362 * m/sun386.h:
10363 * m/symmetry.h:
10364 * m/tad68k.h:
10365 * m/tahoe.h:
10366 * m/targon31.h:
10367 * m/tek4300.h:
10368 * m/tekxd88.h:
10369 * m/tower32.h:
10370 * m/tower32v3.h:
10371 * m/ustation.h:
10372 * m/wicat.h:
10373 * m/xps100.h:
10374 * s/cxux.h:
10375 * s/cxux7.h:
10376 * s/dgux.h:
10377 * s/dgux4.h:
10378 * s/dgux5-4-3.h:
10379 * s/dgux5-4r2.h:
10380 * s/esix.h:
10381 * s/esix5r4.h:
10382 * s/hiuxmpp.h:
10383 * s/hiuxwe2.h:
10384 * s/iris3-5.h:
10385 * s/iris3-6.h:
10386 * s/isc2-2.h:
10387 * s/isc3-0.h:
10388 * s/isc4-0.h:
10389 * s/isc4-1.h:
10390 * s/newsos5.h:
10391 * s/newsos6.h:
10392 * s/osf1.h:
10393 * s/osf5-0.h:
10394 * s/riscix1-1.h:
10395 * s/riscix12.h:
10396 * s/sco4.h:
10397 * s/sco5.h:
10398 * s/sunos4-0.h:
10399 * s/sunos4-1.h:
10400 * s/sunos413.h:
10401 * s/sunos4shr.h:
10402 * s/umax.h:
10403 * s/unipl5-2.h:
10404 * s/xenix.h:
10405 * cxux-crt0.s:
10406 * unexapollo.c:
10407 * unexconvex.c:
10408 * unexenix.c:
10409 * unexsni.c: Remove files for systems no longer supported.
10410
10411 * m/intel386.h: Remove references to unsupported systems.
10412
10413 * w32.c (get_emacs_configuration): Remove reference to i860.
10414
10415 * sysdep.c: Remove dead code.
10416
10417 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
10418
10419 * s/rtu.h:
10420 * m/masscomp.h: Remove files. Platform is obsolete.
10421
10422 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
10423
10424 * dbusbind.c (Fdbus_method_return): New function.
10425 (xd_read_message): Add the serial number to the event.
10426 (Fdbus_register_method): Activate the function.
10427
10428 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
10429
10430 * keyboard.c (read_key_sequence): Fix typo.
10431
10432 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
10433
10434 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
10435 (xd_signature, xd_append_arg): Handle element type detection for
10436 empty arrays.
10437 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
10438 SDATA () calls; this must be solved more general.
10439 (Fdbus_register_signal): Use SBYTES instead of strlen.
10440
10441 2008-01-03 Magnus Henoch <magnus@zemdatav>
10442
10443 * dbusbind.c (xd_append_arg): Use unsigned char instead of
10444 unsigned int for byte values (necessary for big-endian platform).
10445 (Fdbus_call_method): Handle the case of no returned arguments.
10446
10447 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
10448
10449 * dbusbind.c (xd_read_message): Use non-static input_event struct.
10450
10451 2007-12-31 Magnus Henoch <mange@freemail.hu>
10452
10453 * dbusbind.c (xd_signature): Signature of variant is just "v".
10454
10455 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
10456
10457 * dbusbind.c: Fix several errors and compiler warnings.
10458 Reported by Tom Tromey <tromey@redhat.com>.
10459 (XD_ERROR, XD_DEBUG_MESSAGE)
10460 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
10461 (xd_append_arg): Part for basic D-Bus types rewitten.
10462 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
10463 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
10464 appropriate.
10465 (xd_read_message): Return Qnil. Don't signal an error; it is not
10466 useful during event reading.
10467 (Fdbus_register_signal): Signal an error if the check for
10468 FUNCTIONP fails.
10469 (Fdbus_register_method): New function. The implementation is not
10470 complete, the call of the function signals an error therefore.
10471 (Fdbus_unregister_object): New function, renamed from
10472 Fdbus_unregister_signal. The initial check signals an error, if
10473 the object is not well formed.
10474
10475 2007-12-30 Richard Stallman <rms@gnu.org>
10476
10477 * textprop.c (get_char_property_and_overlay):
10478 Signal error if POSITION is out of range in a buffer.
10479
10480 2007-12-29 Martin Rudalics <rudalics@gmx.at>
10481
10482 * w32fns.c (Fx_create_frame): Make copy of frame parameters
10483 because the original parameters are in pure storage now.
10484
10485 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10486
10487 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
10488
10489 2007-12-22 Eli Zaretskii <eliz@gnu.org>
10490
10491 * callint.c (syms_of_callint) <command-history>: Add reference to
10492 history-length in the doc string.
10493
10494 2007-12-17 Jason Rumney <jasonr@gnu.org>
10495
10496 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
10497 before passing as wParam.
10498
10499 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
10500
10501 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
10502 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
10503 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
10504 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
10505 as number.
10506 (Fdbus_call_method): Fix docstring.
10507
10508 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
10509
10510 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
10511 New macros.
10512 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
10513 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
10514 Simplify.
10515 (xd_signature): New function.
10516 (xd_append_arg): Compute also signatures. Major rewrite.
10517 (xd_retrieve_arg): Make debug messages friendly.
10518 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
10519 Check for signatures of arguments.
10520
10521 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
10522
10523 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
10524 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
10525 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
10526 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
10527 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
10528 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
10529 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
10530 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
10531 (xd_retrieve_value): Remove. Functionality included in ...
10532 (xd_append_arg): New function.
10533 (Fdbus_call_method, Fdbus_send_signal): Apply it.
10534
10535 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
10536
10537 * dbusbind.c (top): Include <stdio.h>.
10538 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
10539 dbus_message_new_method_call and dbus_message_new_signal.
10540 (Fdbus_register_signal): Rename unique_name to uname.
10541 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
10542 non-existing unique name. Fix typos in matching rule. Return an
10543 object which is useful in Fdbus_unregister_signal.
10544 (Fdbus_unregister_signal): Reimplementation, in order to remove
10545 only the corresponding entry.
10546 (Vdbus_registered_functions_table): Change the order of entries.
10547 Apply these changes in xd_read_message and Fdbus_register_signal.
10548
10549 2007-12-16 Andreas Schwab <schwab@suse.de>
10550
10551 * fileio.c (Finsert_file_contents): Fix overflow check to not
10552 depend on undefined integer overflow.
10553
10554 2007-12-14 Jason Rumney <jasonr@gnu.org>
10555
10556 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
10557 for characters above 127.
10558
10559 2007-12-13 Jason Rumney <jasonr@gnu.org>
10560
10561 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
10562 before dereferencing array.
10563 (lookup_vk_code): Remove zero comparison.
10564
10565 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
10566
10567 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
10568 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
10569 Use `unsigned int' instead of `uint'.
10570 (xd_read_message, Fdbus_register_signal): Split expressions into
10571 multiple lines before operators "&&" and "||", according to the
10572 GNU Coding Standards.
10573
10574 2007-12-14 Eli Zaretskii <eliz@gnu.org>
10575
10576 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
10577
10578 2007-12-12 Juri Linkov <juri@jurta.org>
10579
10580 * buffer.c (Frename_buffer): In interactive spec replace
10581 `read-buffer' with `read-string' that uses `buffer-name-history'
10582 as history, and the current buffer's name as default.
10583
10584 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
10585
10586 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
10587 manipulating the backtrace manually.
10588 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
10589 (struct backtrace, backtrace_list): Remove.
10590 (command_loop_1): Remove dead var `no_direct'.
10591
10592 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
10593 preserve non-built-in buffer-local variables.
10594 (Fkill_all_local_variables): Don't re-create&re-set permanent
10595 buffer-local variables.
10596
10597 2007-12-09 Juri Linkov <juri@jurta.org>
10598
10599 * buffer.c (Frename_buffer): Change interactive spec from "s" to
10600 Lisp code that uses `read-buffer' with current buffer as default.
10601
10602 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
10603
10604 * dbusbind.c (xd_read_message): Generate an event for every
10605 registered handler. There might be several handlers registered
10606 for the same signal.
10607 (Fdbus_register_signal): Don't overwrite a registration for the
10608 same signal. Add a new registration if handlers are different.
10609 (Vdbus_registered_functions_table): Rework doc string.
10610
10611 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
10612
10613 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
10614 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
10615 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
10616 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
10617 Unify argument lists.
10618 (xd_read_message, Fdbus_register_signal): Reorder and extend event
10619 arguments and hash table keys. Use unique name for service.
10620 (Fdbus_unregister_signal): Remove checks.
10621 (Vdbus_registered_functions_table): Fix doc string.
10622
10623 2007-12-05 Magnus Henoch <mange@freemail.hu>
10624
10625 * process.c (make_process): Initialize pty_flag to 0.
10626
10627 2007-12-05 Jason Rumney <jasonr@gnu.org>
10628
10629 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
10630 specified XBMs.
10631
10632 2007-12-05 Richard Stallman <rms@gnu.org>
10633
10634 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
10635
10636 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10637
10638 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
10639 New variable.
10640 (mac_try_close_socket) [MAC_OSX]: New function.
10641 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
10642 Update cfsockets_for_select. Replace invalid CFRunLoop source.
10643
10644 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
10645 Use mac_try_close_socket.
10646
10647 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10648
10649 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
10650 reloc_base.
10651 (copy_dysymtab): Compute relocation base here.
10652 (rebase_reloc_address) [__ppc64__]: New function.
10653 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
10654 changed.
10655
10656 2007-12-05 Jason Rumney <jasonr@gnu.org>
10657
10658 * w32proc.c (sys_spawnve): Quote args with wildcards.
10659
10660 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10661
10662 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
10663 __objc_* sections.
10664 (unrelocate) [_LP64]: Set relocation base to address of data segment.
10665
10666 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
10667
10668 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
10669 Move check for Vdbus_registered_functions_table to
10670 xd_read_queued_messages.
10671 (xd_read_queued_messages): Protect xd_read_message calls by
10672 internal_condition_case_1.
10673
10674 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
10675
10676 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
10677 Qdbus_system_bus and Qdbus_session_bus, respectively.
10678 (Vdbus_intern_symbols): Remove.
10679 (Vdbus_registered_functions_table): New hash table.
10680 (XD_SYMBOL_INTERN_SYMBOL): Remove.
10681 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
10682 Rewrite in order to manage registered functions by hash table
10683 Vdbus_registered_functions_table.
10684
10685 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
10686
10687 * xterm.c: Update URL to Window Manager Specification in comment.
10688
10689 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
10690
10691 * config.in (HAVE_DBUS): Add.
10692
10693 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
10694 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
10695 (obj): Add $(DBUS_OBJ).
10696 (LIBES): Add $(DBUS_LIBS).
10697 (dbusbind.o): New target.
10698
10699 * dbusbind.c: New file.
10700
10701 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
10702
10703 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
10704 (Qdbus_event): New Lisp symbol.
10705 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
10706 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
10707 (keys_of_keyboard ): Define dbus-event.
10708
10709 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
10710
10711 2007-12-01 Richard Stallman <rms@gnu.org>
10712
10713 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
10714
10715 2007-11-30 Jason Rumney <jasonr@gnu.org>
10716
10717 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
10718 (w32con_reset_terminal_modes): Clear screen buffer.
10719 (w32_face_attributes): Don't use color indexes that are out of range.
10720 Only reverse the default colors.
10721
10722 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
10723 WINDOWSNT.
10724
10725 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
10726
10727 2007-11-29 Jason Rumney <jasonr@gnu.org>
10728
10729 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
10730 (w32_face_attributes): Use Vtty_defined_color_alist to determine
10731 if the terminal colors are initialized.
10732 (unspecified_fg, unspecified_bg): Remove unused declarations.
10733
10734 2007-11-29 Andreas Schwab <schwab@suse.de>
10735
10736 * keyboard.c (apply_modifiers): Fix typo.
10737
10738 2007-11-29 Richard Stallman <rms@gnu.org>
10739
10740 * keymap.c (Fcurrent_local_map): Doc fix.
10741
10742 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
10743
10744 * s/gnu-kfreebsd.h: New file.
10745
10746 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
10747
10748 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
10749 Don't cast redundantly.
10750
10751 * keyboard.c (KEY_TO_CHAR): New macro.
10752 (parse_modifiers, apply_modifiers): Accept integer arguments.
10753 (read_key_sequence): Use them to unify the "shift->unshift" mapping
10754 for chars and symbol keys.
10755 After doing such remapping, apply function-key-map again.
10756
10757 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
10758
10759 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
10760 compiled anymore.
10761
10762 2007-11-26 Andreas Schwab <schwab@suse.de>
10763
10764 * process.c (list_processes_1): Fix indentation level of the
10765 command column.
10766
10767 2007-11-23 Andreas Schwab <schwab@suse.de>
10768
10769 * editfns.c (Fformat): Handle %c specially since it requires the
10770 argument to be of type int.
10771
10772 2007-11-23 Markus Triska <markus.triska@gmx.at>
10773
10774 * emacs.c (main): Call init_editfns before init_process, since
10775 init_process sets Vprocess_connection_type depending on OS release.
10776
10777 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
10778
10779 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
10780 (find_symbol_value): Use do_symval_forwarding.
10781
10782 * data.c (set_internal): Set the value in the `cons-cell' (for
10783 Buffer_Local_values) not only for frame-local variables.
10784
10785 2007-11-22 Andreas Schwab <schwab@suse.de>
10786
10787 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
10788 values to sprintf.
10789 * keymap.c (Fsingle_key_description): Likewise.
10790 * print.c (print_object): Likewise.
10791
10792 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
10793
10794 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
10795 file for image is nil.
10796
10797 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
10798
10799 * term.c: Include stdarg.h.
10800 (fatal): Implement using varargs.
10801 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
10802
10803 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10804
10805 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
10806 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
10807 Update call to buffer_slot_type_mismatch.
10808 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
10809 (buffer_slot_type_mismatch): Update.
10810 * buffer.c (buffer_local_types): Remove.
10811 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
10812 (defvar_per_buffer): Set the type in the buffer_objfwd.
10813
10814 2007-11-21 Jason Rumney <jasonr@gnu.org>
10815
10816 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
10817 CreateFileMapping returns NULL on failure.
10818
10819 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10820
10821 * search.c (Fset_match_data): Remove the `evaporate' feature.
10822 (unwind_set_match_data): Don't use the `evaporate' feature.
10823
10824 2007-11-21 Jason Rumney <jasonr@gnu.org>
10825
10826 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
10827
10828 * w32console.c (w32con_write_glyphs): Remove unused variables.
10829
10830 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
10831
10832 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
10833
10834 * s/darwin.h (MULTI_KBOARD): Remove.
10835
10836 * macfns.c (x_create_tip_frame, Fx_create_frame)
10837 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
10838
10839 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10840
10841 * buffer.c (Fbuffer_local_value): Remove redundant test.
10842 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
10843 than in `current-buffer' to match the comment.
10844 Do the swap using swap_in_global_binding.
10845
10846 * data.c (store_symval_forwarding, set_internal):
10847 * eval.c (specbind): Remove dead code.
10848
10849 * coding.c (detect_coding, Fupdate_coding_systems_internal):
10850 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
10851 Since we do not want to see internal Lisp_*fwd objects here.
10852
10853 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
10854
10855 * sysdep.c (init_system_name): Use getaddrinfo if available.
10856
10857 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
10858 (x_scroll_bar_note_movement): start, end, with, height in struct
10859 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
10860
10861 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
10862
10863 * puresize.h (BASE_PURESIZE): Increase to 1190000.
10864
10865 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
10866
10867 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
10868 This undoes Richard's change of 14-Oct-2002.
10869
10870 * alloc.c (allocate_other_vector):
10871 * lisp.h (allocate_other_vector): Remove.
10872
10873 * window.c (struct save_window_data): Move non-lisp data to the end
10874 and make it `int' rather than Lisp_Object.
10875 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
10876 Done wrap/unwrap integer values.
10877 (Fset_window_configuration, compare_window_configurations):
10878 Update use of fields to their new types.
10879
10880 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
10881 Turn integer fields into `int'. Merge x_window_low and x_window_high.
10882 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
10883 (SET_SCROLL_BAR_X_WINDOW): Remove.
10884 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
10885 Access the new x_window field directly.
10886 * xterm.c (x_scroll_bar_create): Use a pseudovector.
10887 Don't wrap/unwrap integers into Lisp_Objects.
10888 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
10889 (x_scroll_bar_report_motion):
10890 Don't wrap/unwrap integers into Lisp_Objects.
10891 (x_term_init): Use SDATA.
10892 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
10893 (x_scroll_bar_set_handle, x_scroll_bar_remove)
10894 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
10895 (x_scroll_bar_report_motion, x_scroll_bar_clear):
10896 * xfns.c (x_set_background_color):
10897 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
10898 Access the new x_window field directly.
10899
10900 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
10901 (allocate_pseudovector): Make non-static.
10902
10903 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
10904 (allocate_pseudovector): Declare.
10905 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
10906
10907 2007-11-15 Andreas Schwab <schwab@suse.de>
10908
10909 * editfns.c (Fformat): Correctly format EMACS_INT values.
10910 Also take precision into account when formatting an integer.
10911
10912 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
10913
10914 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
10915
10916 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
10917 (syms_of_keyboard): Defsubr it.
10918
10919 * data.c (swap_in_global_binding): Fix longstanding bug where
10920 store_symval_forwarding was not called with the right second argument,
10921 thus causing objfwd-ing from being dropped.
10922
10923 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
10924
10925 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
10926 (Fx_display_pixel_height, Fx_display_planes)
10927 (Fx_display_color_cells, Fx_server_max_request_size)
10928 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10929 (Fx_display_visual_class, Fx_display_save_under):
10930 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
10931 (Fx_display_pixel_height, Fx_display_planes)
10932 (Fx_display_color_cells, Fx_server_max_request_size)
10933 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10934 (Fx_display_mm_height, Fx_display_mm_width)
10935 (Fx_display_backing_store, Fx_display_visual_class)
10936 (Fw32_select_font, Fx_display_save_under):
10937 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
10938 (Fx_display_pixel_height, Fx_display_planes)
10939 (Fx_display_color_cells, Fx_server_max_request_size)
10940 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10941 (Fx_display_save_under): Fix typos in docstrings.
10942
10943 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
10944
10945 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
10946 corresponding to deleted entries; they are an implementation detail.
10947 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
10948 Remove variables.
10949 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
10950 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
10951 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
10952 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
10953 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
10954 (Fw32_define_rgb_color, Fw32_load_color_file)
10955 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
10956 Fix typos in docstrings.
10957 (Fx_server_version): Reflow docstring.
10958 (Fw32_shell_execute): Doc fixes.
10959
10960 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
10961
10962 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
10963 if w32_parse_hot_key returned nil.
10964
10965 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10966
10967 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
10968
10969 2007-11-09 Jason Rumney <jasonr@gnu.org>
10970
10971 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
10972
10973 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
10974
10975 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
10976 Remove W32_SCROLL_BAR_CLICK_EVENT.
10977
10978 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
10979 Add MULTIMEDIA_KEY_EVENT.
10980
10981 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
10982 (lispy_multimedia_keys) [WINDOWSNT]: New array.
10983 (make_lispy_event) [WINDOWSNT]: Use it to translate
10984 MULTIMEDIA_KEY_EVENT.
10985
10986 * w32term.h (WM_APPCOMMAND): Define if not already.
10987 (GET_APPCOMMAND_LPARAM): Likewise.
10988
10989 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
10990 WM_APPCOMMAND.
10991
10992 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
10993 (syms_of_w32fns): Export and initialize it.
10994 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
10995
10996 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
10997
10998 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
10999 twice.
11000
11001 * xdisp.c (handle_face_prop): Fix last change.
11002
11003 2007-11-09 Richard Stallman <rms@gnu.org>
11004
11005 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
11006 not just for after-strings and before-strings.
11007 Call face_for_overlay_string and pass the overlay to it.
11008 (handle_display_prop): Determine whether property came from an overlay.
11009 Pass OVERLAY arg to handle_single_display_spec.
11010 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
11011 (load_overlay_strings): Fill in it->string_overlays.
11012 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
11013
11014 * xfaces.c (face_for_overlay_string): Function renamed from
11015 face_at_buffer_position_no_overlays, and add arg OVERLAY.
11016
11017 * dispextern.h (struct it): New elt string_overlays.
11018 New elt from_overlay, also in stack.
11019 Rearrange a few elements.
11020 (face_for_overlay_string): Decl renamed from
11021 face_at_buffer_position_no_overlays, and add argument.
11022
11023 2007-11-09 Richard Stallman <rms@gnu.org>
11024
11025 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
11026 to get the base face for an overlay string.
11027
11028 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
11029
11030 * xfaces.c (face_at_buffer_position_no_overlays): New function.
11031
11032 * xdisp.c (handle_stop): Move some code out of loop.
11033
11034 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11035
11036 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
11037 Fix conversion from Lisp object to ATSUFontID.
11038
11039 2007-11-09 Jason Rumney <jasonr@gnu.org>
11040
11041 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
11042
11043 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11044
11045 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
11046 Don't assume regions are aligned to page boundary.
11047 (print_load_command_name): Add LC_UUID if defined.
11048
11049 2007-11-09 Richard Stallman <rms@gnu.org>
11050
11051 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
11052
11053 2007-11-07 Jason Rumney <jasonr@gnu.org>
11054
11055 * s/windows95.h: Remove.
11056
11057 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
11058
11059 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
11060 abort with a message on unhandled store_type values.
11061
11062 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
11063
11064 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
11065 Remove HAVE_X11R5 and HAVE_X11R4.
11066
11067 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11068
11069 * Makefile.in: Remove references to sunfns.c and sunfns.o.
11070
11071 2007-11-01 Johan Bockgård <bojohan@gnu.org>
11072
11073 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
11074 Don't set s->stippled_p here, since it has already been set by
11075 x_set_glyph_string_gc from x_draw_glyph_string.
11076
11077 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11078
11079 * sunfns.c: Remove file.
11080
11081 * m/sun386.h:
11082 * m/sun2.h:
11083 * m/sparc.h: Remove Sun windows code.
11084
11085 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
11086
11087 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
11088 (init_keyboard): Set current_kboard's window-system to nil.
11089 (tty_read_avail_input): Typo.
11090 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
11091
11092 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
11093
11094 * s/usg5-4.h:
11095 * s/usg5-3.h:
11096 * s/ptx.h:
11097 * m/is386.h:
11098 * m/ibmps2-aix.h:
11099 * Makefile.in: Remove all mentions of X10.
11100
11101 * dispnew.c (syms_of_display): Don't mention version 10.
11102
11103 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
11104
11105 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
11106 ($(BLD)/abbrev.$(O)): Remove.
11107
11108 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11109
11110 Rewrite abbrev.c in Elisp.
11111 * image.c (Qcount): Don't declare as extern.
11112 (syms_of_image): Initialize and staticpro `Qcount'.
11113 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
11114 * emacs.c (main): Don't call syms_of_abbrev.
11115 * Makefile.in (obj): Remove abbrev.o.
11116 (abbrev.o): Remove.
11117 * abbrev.c: Remove.
11118
11119 2007-10-26 Martin Rudalics <rudalics@gmx.at>
11120
11121 * window.c (window_min_size_2): Don't count header-line.
11122
11123 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
11124
11125 * frame.h (struct frame): Move all bit fields after the first bit
11126 field to take advantage of the available space. Group all the
11127 chars together to reduce wasted space due to padding.
11128
11129 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
11130
11131 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
11132
11133 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
11134 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
11135 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
11136 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
11137 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
11138 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
11139 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
11140 (last_marked, mark_object_loop_halt): Make static.
11141
11142 * frame.c (syms_of_frame) <delete-frame-functions>:
11143 Fix typo in docstring.
11144
11145 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
11146
11147 * w32.c (init_environment): Fix tiny memory leak.
11148 (w32_get_resource): Remove unused variable `ok'.
11149
11150 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
11151
11152 Make `window-system' into a keyboard-local variable (rather than
11153 frame-local as done originally by multi-tty).
11154
11155 * keyboard.h (struct kboard): Add Vwindow_system.
11156 * keyboard.c (init_kboard): Set a default for Vwindow_system.
11157 (mark_kboards): Mark Vwindow_system.
11158
11159 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
11160 (init_display): Don't set the obsolete `window-system' frame-param.
11161
11162 * xterm.c (x_term_init):
11163 * w32term.c (w32_create_terminal):
11164 * term.c (init_tty): Set Vwindow_system.
11165 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
11166 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
11167
11168 * xfns.c (Fx_create_frame, x_create_tip_frame):
11169 * w32fns.c (Fx_create_frame, x_create_tip_frame):
11170 * macfns.c (Fx_create_frame):
11171 Don't set the obsolete `window-system' frame-param.
11172
11173 * frame.h (Qwindow_system): Remove.
11174 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
11175 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
11176
11177 2007-10-24 Richard Stallman <rms@gnu.org>
11178
11179 * frame.c (x_figure_window_size): For fullscreen case,
11180 set USPosition | PPosition without clobbering rest of window_prompting.
11181
11182 * keyboard.c (Fcurrent_idle_time): Doc fix.
11183
11184 * print.c (Fwith_output_to_temp_buffer): Doc fix.
11185
11186 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11187
11188 * process.c (unwind_request_sigio): Only define if __ultrix__.
11189
11190 * callproc.c (child_setup): Remove spurious *.
11191
11192 * lisp.h (Fget_text_property): Declare.
11193 (have_menus_p): Declare it here rather than in sys-dep header files.
11194 * macterm.h (have_menus_p):
11195 * msdos.h (have_menus_p):
11196 * xterm.h (have_menus_p): Remove.
11197
11198 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11199 (Fmake_variable_frame_local): Just check the variable's const-ness
11200 rather than checking nil or t.
11201
11202 2007-10-22 Jason Rumney <jasonr@gnu.org>
11203
11204 * w32fns.c: Include math.h.
11205 (w32_abort): Declaration moved to nt/config.nt.
11206
11207 * s/ms-w32.h (HAVE_STDLIB_H): Define.
11208 (abort): Redefinition moved to nt/config.nt.
11209
11210 * m/windowsnt.h: Remove.
11211
11212 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
11213
11214 * emacs.c (Fdump_emacs): Fix typo in message.
11215 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
11216 <installation-directory>: Reflow docstring.
11217
11218 2007-10-22 Juri Linkov <juri@jurta.org>
11219
11220 * minibuf.c: Allow minibuffer default to be a list of default values.
11221 With empty input use the first element of this list as returned default.
11222 (string_to_object)
11223 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
11224 (read_minibuf): If defalt is cons, set histstring to its car.
11225 (Fread_string): If default_value is cons, set val to its car.
11226 (Fread_buffer): If def is cons, use its car.
11227 (Fcompleting_read): If defalt is cons, set val to its car.
11228
11229 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
11230
11231 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
11232
11233 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
11234
11235 * doc.c (Fdocumentation): Check for advice in all cases.
11236
11237 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
11238
11239 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
11240
11241 2007-10-19 Richard Stallman <rms@gnu.org>
11242
11243 * doc.c (Fdocumentation): Check for and handle an advised function.
11244
11245 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
11246
11247 * process.c (Fset_process_filter): Doc fix.
11248
11249 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11250
11251 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
11252 which caused key-translation-map to applied repeatedly (thus breaking
11253 double-mode).
11254
11255 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11256
11257 * xselect.c (x_own_selection, x_handle_selection_clear)
11258 (x_clear_frame_selections):
11259 * w32menu.c (list_of_panes, list_of_items):
11260 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
11261 * textprop.c (validate_plist, interval_has_all_properties)
11262 (interval_has_some_properties, interval_has_some_properties_list)
11263 (add_properties, text_property_list):
11264 * process.c (Fget_buffer_process, list_processes_1, status_notify):
11265 * minibuf.c (Fassoc_string):
11266 * macselect.c (x_own_selection, x_clear_frame_selections)
11267 (Fx_disown_selection_internal):
11268 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
11269 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
11270
11271 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
11272
11273 * process.c: Link to libs for calling res_init() if available.
11274 (Fmake_network_process): Call res_init() before getaddrinfo or
11275 gethostbyname, if possible.
11276
11277 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11278
11279 * lread.c (read1): Set pvectype for char_tables.
11280
11281 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
11282 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
11283 Add type checks.
11284 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
11285
11286 * alloc.c (free_misc): Use XMISCTYPE.
11287 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
11288
11289 2007-10-17 Glenn Morris <rgm@gnu.org>
11290
11291 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
11292 (syms_of_minibuf): Add Qcompletion_ignore_case.
11293 * dired.c (Qcompletion_ignore_case): Change to external.
11294 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
11295 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
11296 (Fread_file_name): Use it rather than intern'ing.
11297
11298 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
11299 (Fread_coding_system): Ignore case of user input.
11300
11301 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11302
11303 * xdisp.c (handle_display_prop): Ignore display specs after
11304 replacing one when string text is being replaced.
11305 (handle_single_display_spec): Pretend as if characters with display
11306 property haven't been consumed only when buffer text is being replaced.
11307
11308 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
11309
11310 * xfns.c (Fx_create_frame, Fx_display_list):
11311 * window.c (window_fixed_size_p, enlarge_window)
11312 (shrink_window_lowest_first):
11313 * macterm.c (init_font_name_table):
11314 * macfns.c (Fx_create_frame, Fx_display_list):
11315 * lread.c (close_load_descs):
11316 * keyboard.c (read_char_x_menu_prompt):
11317 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
11318 * coding.c (code_convert_region_unwind): Test the type of an object
11319 rather than just !NILP before extracting data from it.
11320
11321 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
11322
11323 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
11324 (XMISCANY): New macro.
11325 (XMISCTYPE): Use it.
11326 (struct Lisp_Misc_Any): New type.
11327 (union Lisp_Misc): Use it.
11328 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
11329 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
11330 (find_symbol_value, set_internal, default_value, Fset_default)
11331 (Fmake_variable_buffer_local, Fmake_local_variable)
11332 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
11333 (Flocal_variable_if_set_p, Fvariable_binding_locus):
11334 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
11335 * alloc.c (allocate_buffer): Set the size and tag.
11336 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
11337 Use XMISCANY.
11338 (die): Follow the GNU convention for error messages.
11339 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
11340 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
11341 tag any more.
11342 (set_buffer_internal_1):
11343 * frame.c (store_frame_param):
11344 * eval.c (specbind):
11345 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
11346
11347 * doc.c (Fsnarf_documentation): Simplify.
11348
11349 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
11350
11351 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
11352 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
11353
11354 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
11355
11356 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
11357
11358 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
11359
11360 * eval.c (do_autoload): Don't save autoloads.
11361
11362 * data.c (Ffset): Save autoload of the function being set.
11363
11364 2007-10-07 John Paul Wallington <jpw@pobox.com>
11365
11366 * xfns.c (x_create_tip_frame): Set the `display-type' frame
11367 parameter before setting up faces.
11368
11369 2007-10-13 Eli Zaretskii <eliz@gnu.org>
11370
11371 * ccl.c (Fregister_code_conversion_map):
11372 * keyboard.c (append_tool_bar_item): Reformat last change.
11373
11374 * lisp.h (eabs): Rename from `abs'. All callers changed.
11375
11376 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
11377
11378 * buffer.c (add_overlay_mod_hooklist):
11379 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
11380 * fontset.c (make_fontset):
11381 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
11382 (append_tool_bar_item):
11383 * macmenu.c (grow_menu_items):
11384 * w32menu.c (grow_menu_items):
11385 * xmenu.c (grow_menu_items): Use larger_vector.
11386
11387 2007-10-13 Eli Zaretskii <eliz@gnu.org>
11388
11389 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
11390 selected frame'' on MSDOS).
11391
11392 2007-10-12 Martin Rudalics <rudalics@gmx.at>
11393
11394 * frame.c (Qexplicit_name): New variable.
11395 (x_report_frame_params): Report it in parameter alist.
11396 (syms_of_frame): Intern and staticpro it.
11397
11398 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
11399
11400 * macfns.c (x_create_tip_frame): Set terminal for frame.
11401
11402 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
11403
11404 * frame.c (Qenvironment): Remove.
11405 (syms_of_frame) <Qenvironment>: Don't initialize.
11406 (Fdelete_frame): Don't treat the `environment' param specially.
11407 * frame.h (Qenvironment): Don't declare.
11408 * callproc.c (set_initial_environment): Don't set unused frame param.
11409
11410 * frame.c (Fframe_with_environment): Remove.
11411 (syms_of_frame) <Sframe_with_environment>: Don't declare.
11412
11413 * lisp.h (Fframe_with_environment): Don't declare.
11414
11415 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
11416
11417 * indent.c (indent_tabs_mode, last_known_column)
11418 (last_known_column_modified): Make static.
11419 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
11420
11421 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
11422
11423 * puresize.h (BASE_PURESIZE): Increase to 1170000.
11424
11425 2007-10-09 Jason Rumney <jasonr@gnu.org>
11426
11427 * w32term.c (x_set_window_size): Disable code that attempts to tell
11428 Lisp code about a size change before it actually happens.
11429
11430 2007-10-09 Richard Stallman <rms@gnu.org>
11431
11432 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
11433 return HANDLED_RETURN.
11434
11435 2007-10-08 Martin Rudalics <rudalics@gmx.at>
11436
11437 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
11438 when there's an unread command event.
11439
11440 * frame.c (focus_follows_mouse): Move here from frame.el to allow
11441 window autoselection act appropriately when leaving selected frame.
11442 (syms_of_frame): Initialize focus_follows_mouse.
11443 * frame.h (focus_follows_mouse): Extern it.
11444 * macterm.c (XTread_socket): When focus_follows_mouse is nil
11445 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
11446 * msdos.c (dos_rawgetc): Likewise.
11447 * w32term.c (w32_read_socket): Likewise.
11448 * xterm.c (handle_one_xevent): Likewise.
11449 * xdisp.c (syms_of_xdisp): In doc-string of
11450 mouse-autoselect-window mention focus-follows-mouse.
11451
11452 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11453
11454 * macterm.c (mac_load_query_font): Fix missing return value.
11455 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
11456 Add BLOCK_INPUT.
11457
11458 2007-10-08 Richard Stallman <rms@gnu.org>
11459
11460 * xdisp.c (get_window_cursor_type): Implement documented behavior
11461 for cursor-in-non-selected-windows = t.
11462
11463 2007-10-08 Jason Rumney <jasonr@gnu.org>
11464
11465 * w32.c (w32_get_resource): Always close registry keys.
11466
11467 2007-10-08 Jason Rumney <jasonr@gnu.org>
11468
11469 * makefile.w32-in (LIBS): Add COMCTL32.
11470
11471 * w32fns.c (globals_of_w32fns): Init common controls.
11472
11473 2007-10-08 Richard Stallman <rms@gnu.org>
11474
11475 * image.c (our_memory_buffer): Rename from omfib_buffer.
11476
11477 2007-10-08 Richard Stallman <rms@gnu.org>
11478
11479 * buffer.c (Foverlays_at): Doc fix.
11480
11481 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
11482
11483 * fns.c (Fplist_put): Preserve uneven tail data.
11484
11485 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
11486
11487 * termhooks.h (enum event_kind): Remove trailing comma.
11488
11489 * frame.h (enum): Remove trailing comma.
11490
11491 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11492
11493 * w32proc.c (delete_child): Don't terminate threads of zombies.
11494
11495 2007-10-08 Martin Rudalics <rudalics@gmx.at>
11496
11497 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
11498
11499 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
11500 last-repeatable-command.
11501 (init_kboard): Initialize Vlast_repeatable_command.
11502 (command_loop_1): Set it to real_this_command unless that was
11503 bound to an input event.
11504 (mark_kboards): Mark it.
11505
11506 2007-10-08 Richard Stallman <rms@gnu.org>
11507
11508 * eval.c (condition-case): Doc fix.
11509
11510 2007-10-08 Masatake YAMATO <jet@gyve.org>
11511
11512 * xfaces.c (tty_supports_face_attributes_p): Fix code
11513 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
11514 was copied and not edited.
11515
11516 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
11517
11518 Add new `input-decode-map' keymap and use it for terminal
11519 escape sequences.
11520 * keyboard.h (struct kboard): Add Vinput_decode_map.
11521 Remove Vlocal_key_translation_map.
11522 * keyboard.c (read_key_sequence): Add support for input-decode-map.
11523 (init_kboard): Init input-decode-map.
11524 Replace local-key-translation-map back with key-translation-map.
11525 (syms_of_keyboard): Declare input-decode-map.
11526 Remove local-key-translation-map. Update docstrings.
11527 (mark_kboards): Mark Vinput_decode_map.
11528 Don't mark Vlocal_key_translation_map.
11529 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
11530 Replace local-key-translation-map back with key-translation-map.
11531 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
11532 Bind in input-decode-map rather than function-key-map.
11533
11534 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
11535 This was made redundant by the previous introduction of XSETPVECTYPE.
11536
11537 2007-10-09 Richard Stallman <rms@gnu.org>
11538
11539 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
11540
11541 2007-09-29 Richard Stallman <rms@gnu.org>
11542
11543 * eval.c (internal_condition_case_2, internal_condition_case_1)
11544 (internal_condition_case): Reenable abort if x_catching_errors ()
11545 to see if that really happens and why.
11546
11547 2007-10-06 Andreas Schwab <schwab@suse.de>
11548
11549 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
11550
11551 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
11552
11553 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
11554
11555 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
11556
11557 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
11558
11559 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
11560
11561 * window.h (struct window):
11562 * window.c (struct save_window_data, struct saved_window):
11563 * termhooks.h (struct terminal):
11564 * process.h (struct Lisp_Process):
11565 * frame.h (struct frame):
11566 * buffer.h (struct buffer):
11567 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
11568 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
11569 The size field of (pseudo)vectors is now unsigned.
11570 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
11571
11572 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
11573 Turn `count' into an integer.
11574
11575 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
11576 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
11577 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
11578 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
11579 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
11580
11581 * alloc.c (allocate_pseudovector): New fun.
11582 (ALLOCATE_PSEUDOVECTOR): New macro.
11583 (allocate_window, allocate_terminal, allocate_frame)
11584 (allocate_process): Use it.
11585 (mark_vectorlike): New function.
11586 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
11587 (mark_terminals): Use it.
11588 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
11589 (Fmake_byte_code): Use XSETPVECTYPE.
11590
11591 * frame.c (Fframe_parameters): Minor simplification.
11592
11593 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
11594
11595 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
11596
11597 * buffer.c (Fget_buffer_create, init_buffer_once):
11598 * lread.c (defsubr):
11599 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
11600
11601 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
11602 defined differently in the m/*.h files.
11603 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
11604 (XSETPVECTYPE): New macro.
11605 (XSETPSEUDOVECTOR): Use it.
11606
11607 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
11608 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
11609
11610 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
11611 * lread.c (defvar_per_buffer):
11612 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
11613
11614 * window.c (candidate_window_p): Only consider as visible frames that
11615 are on the same terminal.
11616
11617 * m/ibms390x.h (MARKBIT): Remove unused macro.
11618
11619 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
11620
11621 * lread.c (Fload): Fix typo in docstring.
11622
11623 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
11624
11625 * floatfns.c (Fexpt): Manually check for overflows, so that a power
11626 of a non-zero value can't yield zero.
11627
11628 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
11629
11630 * term.c (term_clear_mouse_face, term_mouse_highlight)
11631 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
11632
11633 * print.c (safe_debug_print): Use XHASH.
11634
11635 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
11636 Lisp elements such as tags.
11637 (XHASH): New macro.
11638 (EQ): Use it.
11639 (SREF, SSET, STRING_COPYIN): Use SDATA.
11640 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
11641
11642 * alloc.c (mark_terminal): Remove left-over declaration.
11643 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
11644 (allocate_vectorlike): Remove type argument. Adjust callers.
11645 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
11646 Only handle the one remaining MEM_TYPE_VECTORLIKE.
11647
11648 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
11649 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
11650 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
11651 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
11652 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
11653 Use them.
11654
11655 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
11656 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
11657 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
11658
11659 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11660
11661 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
11662 loaded by default.
11663
11664 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11665
11666 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
11667 on this tty.
11668 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
11669
11670 * term.c (mouse_face_window): Rename from Qmouse_face_window.
11671 Update all users.
11672 (handle_one_term_event): Use Gpm_DrawPointer.
11673 (Fgpm_mouse_start): Rename from Fterm_open_connection.
11674 Signal errors instead of returning nil. Always return nil.
11675 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
11676 Make it a noop if gpm-mouse was not activated.
11677 (syms_of_term): Update names.
11678
11679 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
11680
11681 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
11682 (init_sys_modes): Check that gpm_tty is the current tty.
11683
11684 * alloc.c (allocate_terminal): Set the vector size to only count the
11685 lisp fields. Initialize those to nil.
11686 (mark_object): Don't treat terminals specially.
11687 (mark_terminal): Remove.
11688 (mark_terminals): Use mark_object instead.
11689
11690 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
11691 the GC to the beginning.
11692
11693 * indent.h:
11694 * indent.c: Use EMACS_INT for ints coming from Elisp data.
11695
11696 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
11697
11698 2007-09-25 Jason Rumney <jasonr@gnu.org>
11699
11700 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
11701
11702 * w32console.c (create_w32cons_output): Remove.
11703
11704 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
11705
11706 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
11707 (reset_sys_modes): Use reset_terminal_modes_hook.
11708
11709 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
11710
11711 * eval.c (do_autoload): Don't output any message.
11712
11713 2007-09-24 Juri Linkov <juri@jurta.org>
11714
11715 * emacs.c (standard_args): Change priority of "--no-splash"
11716 from 40 to 3. Add "--no-desktop" with the same priority.
11717
11718 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
11719
11720 * alloc.c (gc_sweep): Check cons cell mark bits word by word
11721 and optimize the case where they are all 1.
11722
11723 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
11724
11725 * lisp.h (abs): Define if not defined.
11726 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
11727 Don't define `abs', since it's defined in lisp.h.
11728
11729 2007-09-22 Eli Zaretskii <eliz@gnu.org>
11730
11731 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
11732 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
11733 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
11734 (init_tty): Use DEV_TTY instead of "/dev/tty".
11735 [WINDOWSNT]: No need to protect from NAME arg being null.
11736
11737 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11738
11739 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
11740 up the tty state.
11741
11742 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11743
11744 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
11745 (gpm_tty): Change its type.
11746 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
11747 (gpm_tty): Change its type and initialize it.
11748 (Fterm_open_connection): Check the frame is indeed a tty.
11749 Use the new gpm_tty.
11750 (Fterm_close_connection): Use the new gpm_tty.
11751 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
11752 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
11753
11754 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
11755
11756 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
11757 underline_color, to draw strike-through.
11758
11759 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11760
11761 * lisp.h (allocate_terminal): Declare.
11762
11763 * window.c (candidate_window_p): Consider frames that are being placed
11764 by the user as somewhere between visible and iconified.
11765 (window_loop): Prefer windows on the current frame.
11766 (Fselect_window): Move the use of select-frame to the beginning so we
11767 can just delegate all the work (it'll call us back anyway).
11768
11769 * frame.c (Qdisplay_environment_variable):
11770 * frame.h (Qdisplay_environment_variable): Delete.
11771
11772 * .gdbinit (xbacktrace): Print the arg's address rather than the value
11773 of the first arg, since that value may be a union.
11774
11775 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
11776 parameter rather than Qdisplay_environment_variable. If all else
11777 fails, look for DISPLAY in initial-environment.
11778
11779 2007-09-21 Glenn Morris <rgm@gnu.org>
11780
11781 * Makefile.in (emacstool): Remove target.
11782 (lisp, shortlisp): Remove termdev.elc.
11783
11784 2007-09-21 Markus Triska <markus.triska@gmx.at>
11785
11786 * xterm.c (x_delete_display): Compile session management conditionally.
11787
11788 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
11789
11790 * callproc.c (getenv_internal_1): New function.
11791 (getenv_internal): Use it.
11792 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
11793
11794 * terminal.c (get_terminal): Don't accept ints to represent terminals.
11795 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
11796 (Fset_terminal_parameter): Work with dead terminals as well.
11797 (Fmodify_terminal_parameters): Remove.
11798
11799 * terminal.c (get_terminal): Handle terminals.
11800 Make sure the terminal returned is live.
11801 (create_terminal): Use allocate_terminal.
11802 (mark_terminals): Move to alloc.c.
11803 (delete_terminal): Use terminal->name as liveness status.
11804 NULL out fields after freeing their contents.
11805 Don't deallocate the object.
11806 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
11807 rather than an int.
11808 (Fterminal_live_p): Accept non-integer arguments.
11809 (Fterminal_list): Return terminal objects rather than an ints.
11810
11811 * alloc.c (enum mem_type): New member for `terminal' objects.
11812 (allocate_terminal): New function.
11813 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
11814 Handle terminals.
11815 (mark_terminal): New fun.
11816 (mark_terminals): Move from terminal.c.
11817
11818 * term.c (get_tty_terminal): Don't treat output_initial specially.
11819 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
11820 (delete_tty): Use terminal->name as liveness status.
11821
11822 * termhooks.h (struct terminal): Make it into a pseudovector.
11823 Remove `deleted' replaced by checking `name's nullness.
11824
11825 * print.c (print_object): Handle terminals.
11826
11827 * lisp.h (enum pvec_type): New `terminal' pseudovector.
11828 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
11829
11830 * frame.c (make_terminal_frame):
11831 * keyboard.c (tty_read_avail_input):
11832 * w32term.c (x_delete_terminal):
11833 * xfns.c (Fx_create_frame, x_create_tip_frame):
11834 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
11835
11836 2007-09-20 Glenn Morris <rgm@gnu.org>
11837
11838 * process.c (Fmake_network_process): Doc fix.
11839
11840 2007-09-19 Jason Rumney <jasonr@gnu.org>
11841
11842 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
11843
11844 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
11845
11846 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
11847 Fix a C warning regarding variable constness.
11848
11849 * xterm.c (handle_one_xevent): Fix a C warning.
11850
11851 2007-09-18 Jason Rumney <jasonr@gnu.org>
11852
11853 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
11854
11855 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
11856
11857 * gtkutil.c (gdpy_def): New variable.
11858 (xg_initialize): Initialize gdpy_def.
11859 (xg_display_close): If no other display exists, set gdpy_def to a
11860 new connection.
11861
11862 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
11863
11864 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
11865 when we have no file name for the icon.
11866 (xg_tool_bar_expose_callback): Remove.
11867 (xg_create_tool_bar): Don't connect expose signal to
11868 xg_tool_bar_expose_callback.
11869 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
11870
11871 2007-09-16 Andreas Schwab <schwab@suse.de>
11872
11873 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
11874 values instead of zapping them.
11875
11876 2007-09-14 Glenn Morris <rgm@gnu.org>
11877
11878 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
11879 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
11880 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
11881 scope and rename to omfib_buffer for clarity.
11882 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
11883
11884 2007-09-14 Kenichi Handa <handa@m17n.org>
11885
11886 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
11887
11888 2007-09-13 Jason Rumney <jasonr@gnu.org>
11889
11890 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
11891
11892 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
11893
11894 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
11895 (mac_term_init): Call here instead, passing rif.
11896
11897 2007-09-13 Glenn Morris <rgm@gnu.org>
11898
11899 * s/hpux.h: No longer define `static' as nothing.
11900
11901 2007-09-13 Johan Bockgård <bojohan@gnu.org>
11902
11903 * callint.c (Fcall_interactively): Remove unused var `fun'.
11904
11905 2007-09-12 Romain Francoise <romain@orebokech.com>
11906
11907 * window.c (prefer_window_split_horizontally, display_buffer):
11908 Revert 2007-09-08 change.
11909
11910 2007-09-12 Glenn Morris <rgm@gnu.org>
11911
11912 * alloca.c: Remove file.
11913 * Makefile.in (alloca): Do not undef.
11914 (allocaobj, alloca.o): Remove.
11915 (otherobj): Remove allocaobj.
11916 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
11917 * regex.c (C_ALLOCA): Remove all references and code that was only
11918 used when this was defined.
11919 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
11920 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
11921 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
11922
11923 * Makefile.in (SOURCES, unlock, relock): Delete.
11924
11925 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
11926 (menu_grab_callback): All uses changed.
11927
11928 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
11929 (x_reply_selection_request): All uses changed.
11930
11931 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11932
11933 * lread.c (load_warn_old_style_backquotes): Change message to look
11934 better when it appears in the middle of byte-compiler messages.
11935
11936 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
11937
11938 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
11939
11940 * xterm.c (x_create_terminal): Add comment.
11941
11942 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
11943
11944 2007-09-10 Richard Stallman <rms@gnu.org>
11945
11946 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
11947
11948 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
11949
11950 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
11951 (DEFUN): Document `intspec', use it instead of `prompt'.
11952
11953 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
11954
11955 * data.c (Finteractive_form): If the interactive specification starts
11956 with a `(', use it as a Lisp form.
11957
11958 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
11959 name and file modes.
11960
11961 * callint.c (Fcall_interactively): Comment fixes.
11962
11963 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11964
11965 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
11966 and compiled functions.
11967
11968 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
11969
11970 * window.c (prefer_window_split_horizontally): New variable.
11971 (display_buffer): Consider splitting window horizontally depending
11972 on prefer_window_split_horizontally.
11973
11974 2007-09-08 Eli Zaretskii <eliz@gnu.org>
11975
11976 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
11977
11978 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11979
11980 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
11981
11982 * frame.c (x_set_frame_parameters): Check number is positive before
11983 using XFASTINT.
11984
11985 * window.c (freeze_window_start): Don't presume selected_window holds
11986 a window object.
11987 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
11988
11989 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
11990
11991 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
11992
11993 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11994
11995 * window.c (Vsplit_window_preferred_function): New var.
11996 (Fdisplay_buffer): Use it.
11997 (syms_of_window): Export, and initialize it.
11998
11999 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
12000
12001 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
12002
12003 2007-09-06 Glenn Morris <rgm@gnu.org>
12004
12005 * gtkutil.c (menu_grab_callback) <cnt>:
12006 * xselect.c (x_reply_selection_request) <cnt>: Move static
12007 variable to file scope.
12008
12009 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
12010
12011 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
12012 consistent values of selected_frame and selected_window.
12013
12014 2007-09-04 Jason Rumney <jasonr@gnu.org>
12015
12016 * w32console.c (initialize_w32_display): Zero unused hooks.
12017
12018 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12019
12020 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
12021 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
12022
12023 2007-09-04 Jason Rumney <jasonr@gnu.org>
12024
12025 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
12026 in w32console.c. Set up input. Remove XXX comments that have been
12027 confirmed as correct.
12028
12029 * s/ms-w32.h (MULTI_KBOARD): Define.
12030
12031 * w32console.c (one_and_only_w32cons): Remove.
12032 (initialize_w32_display): Take terminal argument.
12033
12034 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
12035 initialize_w32_display.
12036 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
12037
12038 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
12039
12040 * keyboard.c (discard_mouse_events): Discard it.
12041 (make_lispy_event): Translate it to a lisp event.
12042 (lispy_wheel_names): Add wheel-left and right events.
12043 (syms_of_keyboard): Enlarge wheel_syms.
12044
12045 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
12046 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
12047
12048 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
12049
12050 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
12051 from WM_MOUSEHWHEEL.
12052 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
12053
12054 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
12055 terminal.
12056
12057 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
12058 keyboard for the terminal.
12059
12060 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12061
12062 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
12063 (Vresume_tty_hook): Rename from Vresume_tty_functions.
12064 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
12065 and resume-tty-function to resume-tty-hook.
12066 (Fsuspend_tty, Fresume_tty): Use new names.
12067
12068 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
12069
12070 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
12071 if it starts with "n:".
12072
12073 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
12074
12075 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
12076
12077 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12078
12079 * frame.h:
12080 * frame.c (Qterm_environment_variable): Remove.
12081 (syms_of_frame): Don't init and staticpro it.
12082
12083 * callproc.c (getenv_internal): Remove special case for $TERM.
12084
12085 * callproc.c (Vinitial_environment): New variable.
12086 (set_initial_environment): Initialize it.
12087 (syms_of_callproc): Declare it.
12088 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
12089 TERM under which a process runs is never related to the TERM in which
12090 Emacs is running.
12091
12092 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12093
12094 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
12095 * s/darwin.h: ... do it here.
12096
12097 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12098
12099 * lisp.h (set_initial_environment): Rename from set_global_environment.
12100
12101 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
12102 removed by mistake on the multi-tty branch.
12103
12104 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
12105 (Fmodify_frame_parameters): Return a value.
12106
12107 * image.c (png_load): Comment-out var only used in commented-out code.
12108
12109 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
12110 before passing it to mark_object.
12111
12112 * xfaces.c (internal_resolve_face_name): Return a value.
12113 (internal_resolve_face_name, resolve_face_name_error): Comment out.
12114
12115 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
12116 (x_icon): Comment-out var only used in commented-out code.
12117
12118 2007-08-29 Romain Francoise <romain@orebokech.com>
12119
12120 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
12121 QUIT hasn't been provided.
12122
12123 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12124
12125 * callproc.c (child_setup, getenv_internal): Use the
12126 display-environment-variable and term-environment-variable frame params.
12127 (set_initial_environment): Initialise Vprocess_environment.
12128
12129 * config.in: Disable multi-keyboard support on a mac.
12130
12131 * frame.c (Qterm_environment_variable)
12132 (Qdisplay_environment_variable): New variables.
12133 (syms_of_frame): Intern and staticpro them.
12134 (Fmake_terminal_frame): Disable output method test.
12135
12136 * frame.h: Declare them here.
12137
12138 * macfns.c (x_set_mouse_color): Get rif from the frame.
12139 (x_set_tool_bar_lines): Don't use updating_frame.
12140 (mac_window): Add 2 new parameters for consistency with other systems.
12141 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
12142 frame parameters following what is done in X11 and w32. Don't use
12143 FRAME_MAC_DISPLAY_INFO.
12144 (Fx_open_connection, start_hourglass): Remove window-system check.
12145 (x_create_tip_frame): Get the keyboard from the terminal.
12146
12147 * macmenu.c: Reorder includes.
12148 (Fx_popup_menu): Use terminal specific mouse_position_hook.
12149
12150 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
12151 terminal parameter.
12152 (x_clear_frame): Add a frame parameter.
12153 (note_mouse_movement): Get rif from the frame.
12154 (mac_term_init): Initialize the terminal.
12155 (mac_initialize): Make static and move terminal initialization ...
12156 (mac_create_terminal): ... to this new function.
12157
12158 * macterm.h (struct mac_display_info): Add terminal.
12159 (mac_initialize): Delete declaration.
12160
12161 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
12162
12163 * sysdep.c: Comment out text after #endif.
12164
12165 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
12166 is defined. Better initialize ttys in windows. Use terminal
12167 specific mouse_position_hook.
12168
12169 * termhooks.h (union display_info): Add mac_display_info.
12170
12171 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
12172 Set the default minibuffer frame, window_system and the rest of the
12173 frame parameters following what is done in X11.
12174
12175 * w32term.c (w32_initialize): Make static.
12176
12177 * xselect.c (x_handle_selection_clear): Only access
12178 terminal->kboard when MULTI_KBOARD is defined.
12179
12180 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
12181 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
12182
12183 2007-08-29 Jason Rumney <jasonr@gnu.org>
12184
12185 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
12186 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
12187
12188 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
12189 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
12190
12191 * keyboard.c (restore_kboard_configuration): Only define when
12192 MULTI_KBOARD defined.
12193
12194 * makefile.w32-in: Update dependancies from Makefile.in.
12195 (OBJ1): Add terminal.$(O)
12196
12197 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
12198 Don't define function body.
12199 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
12200
12201 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
12202
12203 * w32.c (request_sigio, unrequest_sigio): Remove.
12204
12205 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
12206 (w32con_clear_frame, w32con_clear_end_of_line)
12207 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
12208 (w32con_delete_glyphs, w32con_set_terminal_window)
12209 (scroll_line, w32_sys_ring_bell): Add frame arg.
12210 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
12211 Add terminal arg.
12212 (PICK_FRAME): Remove.
12213 (w32con_write_glyphs): Use frame specific terminal coding.
12214 (one_and_only_w32cons): New global variable.
12215 (initialize_w32_display): Use it for storing hooks.
12216 (create_w32cons_output): New function.
12217
12218 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
12219 arg a frame.
12220
12221 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
12222 Set window_system.
12223 (x_set_tool_bar_lines): Don't use updating_frame.
12224 (Fx_create_frame): Set terminal and ref count.
12225 (Fx_open_connection): Remove window-system check.
12226
12227 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
12228
12229 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
12230 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
12231 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
12232 Add frame arg.
12233 (x_delete_terminal, w32_create_terminal): New functions.
12234 (w32_term_init): Create a terminal.
12235 (w32_initialize): Move terminal specific initialization to
12236 w32_create_terminal.
12237
12238 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
12239 (w32_clear_rect, w32_clear_area): Use background from frame.
12240 (w32_display_info): Add terminal.
12241 (w32_sys_ring_bell, x_delete_display): Declare here.
12242
12243 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
12244
12245 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
12246
12247 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
12248
12249 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
12250 Fix get_named_tty calls for the controlling tty.
12251
12252 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
12253
12254 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
12255
12256 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
12257
12258 * term.c (tty_insert_glyphs): Add missing first parameter.
12259
12260 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
12261
12262 * buffer.c (Fbuffer_list, Fbury_buffer):
12263 Take frame->buried_buffer_list into account.
12264
12265 * cm.c (current_tty): New variable, for cmputc().
12266 (cmputc): Use it.
12267 (cmcheckmagic): Add tty parameter, look up terminal streams there.
12268 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
12269 (cmgoto): Add tty parameter. Pass it on to calccost().
12270 Use emacs_tputs() instead of tputs().
12271
12272 * cm.h (emacs_tputs): New macro to set current_tty, and then call
12273 tputs().
12274 (current_tty): New variable, for cmputc().
12275 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
12276
12277 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
12278 (internal_condition_case, internal_condition_case_1)
12279 (internal_condition_case_2): Don't abort when x_catching_errors.
12280
12281 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
12282 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
12283 prevent crashes caused by bogus longjmps in read_char.
12284
12285 * keymap.h (Fset_keymap_parent): Add EXFUN.
12286
12287 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
12288 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12289 Remove redundant definition.
12290
12291 * macfns.c (x_set_mouse_color, x_make_gc):
12292 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12293
12294 * w32term.c (x_free_frame_resources):
12295 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12296 (w32_initialize): Use the accessor macros for terminal characteristics.
12297
12298 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
12299 Use the accessor macros for terminal characteristics.
12300 * msdos.c (internal_terminal_init): Use the accessor macros for
12301 terminal characteristics.
12302 (ScreenVisualBell, internal_terminal_init):
12303 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12304
12305 * termopts.h (no_redraw_on_reenter): Declare.
12306
12307 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
12308 (mark_terminals, mark_ttys): Declare.
12309 (Fgarbage_collect): Call them.
12310 (mark_object): Mark buried_buffer_list.
12311
12312 * prefix-args.c: Include stdlib.h for exit.
12313
12314 * syssignal.h: Add comment.
12315
12316 * indent.c: Include stdio.h.
12317
12318 * window.h (Vinitial_window_system): Declare.
12319 (Vwindow_system): Delete declaration.
12320
12321 * fontset.c (Finternal_char_font): Use FRAME_RIF.
12322
12323 * image.c (lookup_image): Don't initialize `c' until the xasserts
12324 have been run.
12325
12326 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
12327 FRAME_FOREGROUND_PIXEL.
12328
12329 * print.c (print_preprocess): Don't lose print_depth levels while
12330 iterating.
12331
12332 * widget.c (update_from_various_frame_slots):
12333 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12334
12335 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
12336 frames.
12337 (window_internal_height): Remove bogus make_number call.
12338 (init_window_once): Call make_terminal_frame with two zero parameters.
12339
12340 * fileio.c (Fread_file_name): Update comment.
12341
12342 * callint.c (Fcall_interactively):
12343 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
12344 Make sure it is correctly unwound.
12345
12346 * xsmfns.c (x_session_close): New function.
12347
12348 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
12349 Delete declarations.
12350
12351 * xterm.h: Remove declaration for x_fully_uncatch_errors.
12352 (x_output): Remove background_pixel and foreground_pixel fields.
12353 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
12354 (x_delete_device, x_session_close): Declare.
12355
12356 * lread.c: Include setjmp.h. Update declaration of `read_char'.
12357 (read_filtered_event): Call `read_char' with a local
12358 `wrong_kboard_jmpbuf'.
12359
12360 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
12361 Don't call single_kboard_state. Use FRAME_RIF.
12362
12363 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
12364 systems.
12365
12366 * lisp.h (set_process_environment): Rename to `set_global_environment'.
12367 (Fframe_with_environment, Fset_input_meta_mode)
12368 (Fset_quit_char): EXFUN.
12369 (x_create_device, tty_output, terminal, tty_display_info): Declare.
12370 (init_sys_modes, reset_sys_modes): Update prototypes.
12371 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
12372
12373 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
12374 Vlocal_key_translation_map, and Vkeyboard_translate_table.
12375 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
12376 Delete declarations.
12377 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
12378 (temporarily_switch_to_single_kboard, tty_read_avail_input):
12379 New declarations.
12380
12381 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
12382 already does that during init_display(). Call syms_of_keymap
12383 before syms_of_keyboard. Call `syms_of_terminal'.
12384 Call set_initial_environment, not set_process_environment.
12385 (shut_down_emacs): Call reset_all_sys_modes() instead of
12386 reset_sys_modes().
12387
12388 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
12389 (internal_resolve_face_name, resolve_face_name_error): New functions.
12390 (resolve_face_name): Protect against loops and errors thrown by Fget.
12391 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
12392 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
12393
12394 * scroll.c: Replace CURTTY() with local variables throughout the
12395 file (where applicable).
12396 (calculate_scrolling, calculate_direct_scrolling)
12397 (scrolling_1, scroll_cost): Use the accessor macros for terminal
12398 characteristics.
12399
12400 * keymap.c (Vfunction_key_map): Remove.
12401 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
12402 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
12403 (Vkey_translation_map): Remove.
12404 (syms_of_keymap): Remove DEFVAR for key-translation-map.
12405 (Fdescribe_buffer_bindings)
12406 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
12407 Update for terminal-local key-translation-map.
12408
12409 * Makefile.in (callproc.o): Update dependencies.
12410 (lisp, shortlisp): Add termdev.elc.
12411 (obj): Add terminal.o.
12412 (terminal.o): Add dependencies.
12413 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
12414 (data.o, fns.o): Add termhooks.h dependency.
12415 (SOME_MACHINE_LISP): Add dnd.elc.
12416 (minibuf.o): Fix typo.
12417 Update dependencies.
12418
12419 * data.c (do_symval_forwarding, store_symval_forwarding)
12420 (find_symbol_value): Use the selected frame's keyboard, not
12421 current_kboard.
12422
12423 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
12424 Vwindow_system.
12425
12426 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
12427 Fmenu_bar_open.
12428 (syms_of_xmenu): Update defsubr.
12429 (mouse_position_for_popup, Fx_popup_menu)
12430 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
12431 (set_frame_menubar, free_frame_menubar)
12432 (create_and_show_popup_menu, xmenu_show, )
12433 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
12434 an X frame.
12435
12436 * xselect.c (x_own_selection): Abort if not an X frame.
12437 (some_frame_on_display): Check if it is an X frame.
12438 (x_handle_selection_clear): Deal with MULTI_KBOARD.
12439
12440 * coding.c: Include frame.h and termhooks.h.
12441 (terminal_coding, keyboard_coding): Delete.
12442 (Fset_terminal_coding_system_internal)
12443 (Fset_keyboard_coding_system_internal)
12444 (Fkeyboard_coding_system)
12445 (Fterminal_coding_system): Add a terminal parameter.
12446 Get terminal_coding from the terminal.
12447 (init_coding_once): Don't call setup_coding_system here.
12448
12449 * dispextern.h (set_scroll_region, turn_off_insert)
12450 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
12451 (tty_clear_end_of_line, tty_setup_colors)
12452 (delete_tty, updating_frame)
12453 (produce_special_glyphs, produce_glyphs, write_glyphs)
12454 (insert_glyphs): Remove.
12455 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
12456 (tty_turn_off_highlight, get_tty_size): Add declaration.
12457 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
12458
12459 * frame.h (enum output_method): Add output_initial.
12460 (struct x_output): Delete.
12461 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12462 Access foreground_pixel and background_pixel directly from the frame.
12463 (tty_display): Delete.
12464 (struct frame): Add buried_buffer_list, foreground_pixel,
12465 background_pixel and terminal. Delete kboard.
12466 (union output_data): Add tty.
12467 (FRAME_KBOARD): Get the kboard from the terminal.
12468 (FRAME_INITIAL_P): New macro.
12469 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
12470 (Qterm_environment_variable, Qdisplay_environment_variable)
12471 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
12472 New declarations.
12473
12474 * termchar.h (tty_output, tty_display_info): New structures.
12475 (tty_list): Declare.
12476 (FRAME_TTY, CURTTY): New macros.
12477 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
12478 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
12479 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
12480 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
12481
12482 * callproc.c: Include frame.h and termhooks.h, for terminal
12483 parameters.
12484 (add_env): New function.
12485 (child_setup): Use it.
12486 (child_setup, getenv_internal): Handle the new Vprocess_environment.
12487 (getenv_internal): Fix get_terminal_param call.
12488 (Fgetenv_internal, egetenv): Update doc.
12489 (syms_of_callproc): Initialize Vprocess_environment to nil.
12490 Register and initialize them. Remove obsolete defvars. Update doc
12491 strings.
12492 (child_setup): Handle Vlocal_environment_variables.
12493 (getenv_internal): Add terminal parameter.
12494 Handle Vlocal_environment_variables.
12495 (Fgetenv_internal): Add terminal parameter.
12496 (child_setup, getenv_internal, Fgetenv_internal): Store the local
12497 environment in a frame (not terminal) parameter. Update doc strings.
12498 (set_initial_environment): Rename from set_global_environment.
12499 Store Emacs environment in initial frame parameter.
12500
12501 * xdisp.c (redisplay_internal): Update references to
12502 `previous_terminal_frame'.
12503 (display_mode_line, Fformat_mode_line): Replace calls to
12504 `push_frame_kboard' with `push_kboard'.
12505 (get_glyph_string_clip_rects): Add extra parentheses and
12506 braces to prevent compiler warnings.
12507 (calc_pixel_width_or_height): Add xassert to check that the
12508 frame is alive. Don't call `lookup_image' on a termcap frame.
12509 (message2_nolog, message3_nolog, redisplay_internal)
12510 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
12511 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
12512 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
12513 (Fx_display_pixel_width, Fx_display_pixel_height)
12514 (Fx_display_planes, Fx_display_color_cells)
12515 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
12516 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
12517 (Fx_display_backing_store, Fx_display_visual_class)
12518 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
12519 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
12520
12521 * xfns.c (x_set_foreground_color x_set_background_color)
12522 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
12523 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12524 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
12525 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
12526 terminal that is being deleted.
12527 (Fx_create_frame): Use `store_frame_param' to set `window-system'
12528 frame parameter, and make sure it overrides any user-supplied setting.
12529 (Fx_close_connection, Fx_synchronize): Unify argument names with
12530 the rest of the DEFUNs.
12531
12532 * dispnew.c (Fsend_string_to_terminal): Update call to
12533 `get_tty_terminal'.
12534 (Fredraw_frame, Fsend_string_to_terminal)
12535 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
12536 FRAME_TERMCAP_P and FRAME_TTY.
12537 (window_change_signal): Don't believe width/height values that are
12538 impossibly small.
12539 (Vinitial_window_system): Rename from Vwindow_system.
12540 (termscript, Wcm, rif): Delete.
12541
12542 * termhooks.h (struct terminal): New struct containing the
12543 previously global text display hooks and new members NAME,
12544 DELETED and PARAM_ALIST.
12545 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
12546 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
12547 (FRAME_RIF): New macros.
12548 (get_terminal_param, get_device): New declarations.
12549 (termscript): Delete declaration.
12550
12551 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
12552 (XTflash, x_free_frame_resources, x_scroll_bar_create)
12553 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
12554 FRAME_FOREGROUND_PIXEL.
12555 (x_fully_uncatch_errors): Disable definition.
12556 (x_scroll_bar_expose): Fix reference to foreground pixel.
12557 (XTread_socket): Disable loop on all X displays.
12558 (x_delete_terminal): Don't set terminal->deleted and let
12559 delete_terminal delete the frames on the terminal.
12560 (x_delete_display): Doc update to reflect changes in
12561 delete_terminal.
12562 (x_display_info) <terminal>: Move member earlier in the struct.
12563 (deleting_tty): Remove old variable.
12564 (Fsuspend_tty): Call clear_tty_hooks.
12565 (Fresume_tty, init_tty): Call set_tty_hooks.
12566 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
12567 errors on X frames.
12568 (x_catch_errors_unwind): Abort if x_error_message is NULL.
12569 (handle_one_xevent): Initialize `f' to NULL.
12570 (x_delete_terminal, x_create_terminal): New functions.
12571 (XTset_terminal_modes, XTreset_terminal_modes)
12572 (XTread_socket, x_connection_closed, x_term_init)
12573 (x_term_init, x_delete_display): Add terminal parameter.
12574 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
12575 X connections.
12576
12577 * frame.c: Include termchar.h.
12578 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
12579 (Qwindow_system, Qenvironment, Qterm_environment_variable)
12580 (Qdisplay_environment_variable): New vars.
12581 (Fframep): Deal with output_initial.
12582 (Fframe-live-p): Doc fix.
12583 (Fwindow-system): New function.
12584 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
12585 (make_terminal_frame): Don't create frames on a terminal that is
12586 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12587 (store_frame_param): Check for found_for_frame before calling XFRAME.
12588 (Fmake_terminal_frame): Handle NULL tty names correctly.
12589 (syms_of_frame): Enhance doc string of `default-frame-alist'.
12590 (Fdelete_frame): Remove unused variable `count'. Don't allow other
12591 frames to refer to a deleted frame in their 'environment parameter.
12592 (Fframe_with_environment): New function.
12593 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
12594 (get_future_frame_param): New function.
12595 (Fmake_terminal_frame): Use it.
12596 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
12597
12598 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
12599 * sysdep.c (reset_sys_modes): Update for renames.
12600
12601 * keyboard.c (tty_read_avail_input): New function.
12602 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
12603 (syms_of_keyboard): Defsubr them.
12604 (Fset_input_meta_mode, Fset_quit_char): New functions.
12605 (Fset_input_mode): Split to above functions.
12606 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
12607 parameter. Use it in call to `read_char'.
12608 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
12609 Set wrong_kboard_jmpbuf correctly in recursive calls.
12610 Use current_kboard to access Vkeyboard_translate_table.
12611 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
12612 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
12613 Update longjmp invocations. Remember the original current_kboard,
12614 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
12615 changes it. Comment out unnecessary calls to
12616 `record_single_kboard_state' and `any_kboard_state'.
12617 Update recursive calls.
12618 (wrong_kboard_jmpbuf): Remove global variable.
12619 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
12620 Handle deleted interrupted_kboards correctly; that is a legal
12621 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
12622 and read_char calls. Abort if interrupted_kboard died in read_char.
12623 (any_kboard_state, single_kboard_state)
12624 (push_frame_kboard): Remove function.
12625 (pop_kboard): Switch out of single_kboard mode if the kboard has
12626 been deleted. Remove unused variable. Help debugging by not
12627 changing current_kboard unnecessarily. Set current_kboard to the
12628 kboard of the selected frame when the stored kboard object has
12629 been deleted before pop_kboard.
12630 (temporarily_switch_to_single_kboard): Change first parameter to a
12631 frame pointer. Throw an error when caller wants to change kboards
12632 while in single_kboard mode. Don't push_kboard if we weren't in
12633 single kboard state. Don't pop_kboard if we popped into any
12634 kboard state.
12635 (restore_kboard_configuration): Abort if pop_kboard changed the
12636 kboard in single_kboard mode. Call pop_kboard only after setting
12637 up single_kboard mode.
12638 (Frecursive_edit): Switch to single_kboard mode only in nested
12639 command loops.
12640 (cmd_error, command_loop, command_loop_1, timer_check):
12641 Comment out unnecessary call to `any_kboard_state' and
12642 `record_single_kboard_state'.
12643 (delete_kboard): Exit single_kboard mode if we have just deleted
12644 that kboard. Use FRAME_KBOARD.
12645 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
12646 `fatal_error_signal'.
12647 (record_single_kboard_state): Don't push_kboard if we weren't in
12648 single kboard state. Don't pop_kboard if we popped into any
12649 kboard state.
12650 (push_frame_kboard): Rename to push_kboard.
12651 (kbd_buffer_get_event): Use FRAME_TERMINAL.
12652 (read_avail_input): Read input from all terminals.
12653 (mark_kboards): Also mark Vkeyboard_translate_table.
12654 (kbd_buffer_store_event_hold): Simplify condition.
12655 (read_key_sequence): Reinitialize fkey and keytran at each replay.
12656 (Vkeyboard_translate_table): Move to struct kboard.
12657 (init_kboard): Initialize Vkeyboard_translate_table.
12658 (syms_of_keyboard): Use DEFVAR_KBOARD to define
12659 Vkeyboard_translate_table. Update doc strings. Update docs of
12660 local-function-key-map and function-key-map.
12661
12662 * terminal.c: New file.
12663
12664 * term.c: Include errno.h.
12665 (Vring_bell_function, device_list, initial_device)
12666 (next_device_id, ring_bell, update_begin, update_end)
12667 (set_terminal_window, cursor_to, raw_cursor_to)
12668 (clear_to_end, clear_frame, clear_end_of_line)
12669 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
12670 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
12671 (syms_of_term): Move their initialization to terminal.c.
12672 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
12673 (Ftty_display_color_cells)
12674 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
12675 (clear_tty_hooks, set_tty_hooks)
12676 (init_tty, maybe_fatal): New functions.
12677 (Ftty_type): Return nil if terminal is not on a tty instead of
12678 throwing an error. Doc update.
12679 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
12680 Doc update. Initialize new subrs and variables.
12681 (delete_tty): Use terminal->deleted.
12682 (tty_set_terminal_modes): Rename from set_terminal_modes.
12683 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
12684 (set_scroll_region): Rename to `tty_set_scroll_region'.
12685 (turn_on_insert): Rename to `tty_turn_on_insert'.
12686 (turn_off_insert): Rename to `tty_turn_off_insert'.
12687 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
12688 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
12689 (toggle_highligh): Rename to `tty_toggle_highlight'.
12690 (background_highlight): Rename to `tty_background_highlight'.
12691 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
12692 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
12693 (tty_set_scroll_region, tty_background_highlight)
12694 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
12695 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
12696 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
12697 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
12698 Add static modifier.
12699 (tty_reset_terminal_modes, tty_set_terminal_window)
12700 (tty_set_scroll_region, tty_background_highlight)
12701 (tty_highlight_if_desired, tty_cursor_to)
12702 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
12703 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
12704 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
12705 renames.
12706
12707 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
12708
12709 * keyboard.c: Qrtl is new.
12710 (parse_tool_bar_item): Handle :rtl keyword.
12711 (syms_of_keyboard): Intern :rtl keyword.
12712
12713 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
12714
12715 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
12716 so no Lisp code is executed.
12717 (file_for_image, find_rtl_image): New functions.
12718 (xg_get_image_for_pixmap): Use file_for_image.
12719 (update_frame_tool_bar): If direction is RTL, use RTL image if
12720 defined. Use Gtk stock images if defined.
12721
12722 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12723
12724 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
12725 for nonexistent or zero-width glyph in composition glyph.
12726
12727 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
12728
12729 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
12730
12731 * xdisp.c (Finvisible_p): New function.
12732 (syms_of_xdisp): defsubr it.
12733
12734 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
12735
12736 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
12737 Doc fixes.
12738
12739 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12740
12741 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
12742
12743 2007-08-24 Martin Rudalics <rudalics@gmx.at>
12744
12745 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
12746 whether decoding has modified buffer contents.
12747
12748 2007-08-24 Jason Rumney <jasonr@gnu.org>
12749
12750 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
12751 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
12752 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
12753 (init_svg_functions) [HAVE_NTGUI]: New function.
12754 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
12755 (svg_load_image): Use them.
12756 (svg_load_image) [HAVE_NTGUI]: Implement background.
12757
12758 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12759
12760 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
12761 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
12762 (LIBX): Remove @RSVG_LIBS@.
12763 (LIBES): Add $(RSVG_LIBS).
12764
12765 * image.c (svg_load_image): Blend with specified background if exists.
12766 Use IMAGE_BACKGROUND. Add Mac OS Support.
12767
12768 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
12769 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
12770 Remove macros.
12771 [MAC_OSX] (socket_callback): Do nothing.
12772 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
12773 ReceiveNextEvent.
12774 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
12775 socket_callback.
12776 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
12777
12778 2007-08-22 Glenn Morris <rgm@gnu.org>
12779
12780 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
12781
12782 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
12783
12784 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
12785
12786 * image.c: Add support for SVG images. Some additional comments
12787 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
12788 (svg_image_p): New function to test for SVG image.
12789 (svg_load): New function to load SVG image.
12790 (svg_load_image): New function, helper for svg_load.
12791 (Qsvg): New Lisp_object.
12792 (svg_keyword_index): New enum.
12793 (svg_format): New static `image_keyword' struct.
12794 (svg_type): New static `image_type' struct.
12795 (librsvg/rsvg.h): Include it.
12796
12797 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
12798
12799 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
12800
12801 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
12802
12803 * lread.c (Qold_style_backquotes): New var.
12804 (syms_of_lread): Init and staticpro it.
12805 (load_warn_old_style_backquotes): New fun.
12806 (Fload): Use them to warn about old style backquotes.
12807 (end_of_file_error, Fload): Remove unused vars.
12808
12809 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
12810
12811 * lread.c (Vold_style_backquotes): New var.
12812 (syms_of_lread): Init and export it to Elisp.
12813 (read1): Set it when we find an old-style (back)quote.
12814
12815 2007-08-22 Jason Rumney <jasonr@gnu.org>
12816
12817 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
12818
12819 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
12820
12821 * puresize.h (BASE_PURESIZE): Increase to 1140000.
12822
12823 2007-08-19 Richard Stallman <rms@gnu.org>
12824
12825 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
12826
12827 2007-08-19 Andreas Schwab <schwab@suse.de>
12828
12829 * alloc.c (pure): Round PURESIZE up.
12830
12831 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
12832
12833 * xterm.c (handle_one_xevent): Remove check that mouse click is in
12834 active frame.
12835
12836 2007-08-16 Richard Stallman <rms@gnu.org>
12837
12838 * eval.c (Fcommandp): Add parens to clarify.
12839
12840 * minibuf.c (Fall_completions): Use enum for type of table.
12841
12842 * emacs.c (USAGE2): Improve text.
12843
12844 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
12845
12846 * term.c (tty_default_color_capabilities): Declare static
12847 variables in file scope, to avoid HPUX compiler problem.
12848
12849 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
12850
12851 * gtkutil.c (update_frame_tool_bar): Use -1 as index
12852 to gtk_toolbar_insert.
12853
12854 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
12855
12856 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
12857
12858 * insdel.c (reset_var_on_error): New fun.
12859 (signal_before_change, signal_after_change):
12860 Use it to reset (after|before)-change-functions to nil in case of error.
12861 Bind inhibit-modification-hooks to t.
12862 Don't bind (after|before)-change-functions to nil while they run.
12863
12864 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12865
12866 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
12867 filling pixmap with stippled background.
12868
12869 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12870
12871 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
12872 Don't use invisible frame as parent window for repositioning.
12873
12874 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
12875
12876 * print.c (new_backquote_output): Rename from old_backquote_output.
12877 (print): Inverse its logic (according to its name) so as to match the
12878 behavior of new_backquote_flag in lread.c.
12879
12880 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12881
12882 * gmalloc.c (posix_memalign): New function.
12883
12884 * macterm.c (frame_highlight, frame_unhighlight): Don't call
12885 ActivateControl/DeactivateControl here.
12886 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
12887 frame-notice-user-settings is non-nil.
12888 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
12889 for kEventParamFMFontStyle.
12890 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
12891 mac_pass_command_to_system and mac_pass_control_to_system here.
12892 (XTread_socket): Call ActivateControl/DeactivateControl here.
12893 (XTread_socket) [TARGET_API_MAC_CARBON]:
12894 Check mac_pass_command_to_system and mac_pass_control_to_system here.
12895 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
12896 for window repositioning.
12897
12898 2007-08-08 Glenn Morris <rgm@gnu.org>
12899
12900 * Replace `iff' in doc-strings and comments.
12901
12902 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
12903
12904 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
12905
12906 2007-08-07 Martin Rudalics <rudalics@gmx.at>
12907
12908 * fileio.c (Finsert_file_contents): Run format-decode and
12909 after_insert_file_functions on entire buffer when REPLACE is
12910 non-nil and inhibit modification_hooks and point_motion_hooks.
12911 For consistency, run after_insert_file_functions iff something
12912 got inserted. Move signal_after_change and update_compositions
12913 after code running after_insert_file_functions. Make sure that
12914 undo_list doesn't record intermediate steps of the decoding process.
12915
12916 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12917
12918 * emacs.c (main)
12919 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
12920 Call malloc_enable_thread on interactive startup.
12921
12922 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
12923 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
12924 [USE_PTHREAD]: Conditionalize with it.
12925 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
12926 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
12927 New functions.
12928
12929 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
12930
12931 * xdisp.c (redisplay_window): When restoring original buffer
12932 position, make sure it is still valid.
12933
12934 * image.c (png_load): Ignore png-supplied background color.
12935
12936 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12937
12938 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
12939 Use kCFAbsoluteTimeIntervalSince1970.
12940
12941 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
12942 New variable.
12943 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
12944 event loop should be quit.
12945 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
12946 Quit dialog event loop if quit_dialog_event_loop is set.
12947
12948 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
12949 (Selection): New typedef. Use instead of ScrapRef.
12950 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
12951 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
12952 (mac_clear_selection): Rename from clear_scrap.
12953 (get_flavor_type_from_symbol): New argument SEL and subsume function of
12954 scrap_has_target_type. All uses changed.
12955 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12956 (mac_selection_has_target_p): New functions.
12957 (mac_put_selection_value): Rename from put_scrap_string.
12958 (mac_get_selection_value): Rename from get_scrap_string.
12959 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
12960 (put_scrap_private_timestamp, scrap_has_target_type)
12961 (get_scrap_private_timestamp): Remove functions.
12962 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
12963 (x_own_selection, x_get_local_selection):
12964 Use mac_valid_selection_value_p.
12965 (x_own_selection): Don't use put_scrap_private_timestamp.
12966 Record OWNERSHIP-INFO into Vselection_alist instead.
12967 (x_get_local_selection): Don't check type if request is local.
12968 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
12969 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
12970
12971 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
12972
12973 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
12974 add comment explaining why.
12975
12976 2007-08-03 Richard Stallman <rms@gnu.org>
12977
12978 * fileio.c (Fvisited_file_modtime): Use make_time.
12979
12980 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
12981
12982 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
12983 build.
12984
12985 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
12986
12987 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
12988
12989 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
12990
12991 * puresize.h (BASE_PURESIZE): Increase to 1130000.
12992
12993 2007-07-30 Richard Stallman <rms@gnu.org>
12994
12995 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
12996
12997 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
12998
12999 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
13000
13001 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
13002
13003 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
13004 remote default-directory.
13005
13006 * buffer.c (mode-line-format): Update doc string.
13007
13008 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13009
13010 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
13011 scroll bar gap.
13012 (x_scroll_bar_create): Set bar->fringe_extended_p.
13013 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
13014 on frame edge. Check fringe background extension. Don't clear
13015 extended fringe background area.
13016
13017 * w32term.h (struct scroll_bar): New member fringe_extended_p.
13018 (w32_fill_area): Enclose multiple statements with do ... while (0).
13019
13020 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
13021 Extend fringe background to scroll bar gap.
13022 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
13023 Set bar->fringe_extended_p.
13024 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13025 Put leftmost/rightmost scroll bars on frame edge. Check fringe
13026 background extension. Don't clear extended fringe background area.
13027
13028 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13029 New member fringe_extended_p.
13030
13031 2007-07-25 Glenn Morris <rgm@gnu.org>
13032
13033 * Relicense all FSF files to GPLv3 or later.
13034
13035 * COPYING: Switch to GPLv3.
13036
13037 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
13038
13039 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
13040
13041 * data.c (Finteractive_form): Check for the presence of an
13042 `interactive-form' symbol property more thoroughly.
13043
13044 * data.c (Finteractive_form): Use an `interactive-form' property if
13045 present, analogous to the function-documentation property.
13046
13047 2007-07-24 Jason Rumney <jasonr@gnu.org>
13048
13049 * w32fns.c (x_real_positions): Get real position from OS instead of
13050 calculating it.
13051
13052 2007-07-23 Jason Rumney <jasonr@gnu.org>
13053
13054 * filelock.c (current_lock_owner): Allow for @ sign in username.
13055
13056 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
13057
13058 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
13059 remote default-directory.
13060
13061 * buffer.c (mode-line-format): Describe above case in doc string.
13062
13063 2007-07-20 Eli Zaretskii <eliz@gnu.org>
13064
13065 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
13066 Define if not defined.
13067
13068 2007-07-18 Jason Rumney <jasonr@gnu.org>
13069
13070 * w32proc.c (w32_executable_type): Handle 64 bit executables.
13071
13072 2007-07-18 Richard Stallman <rms@gnu.org>
13073
13074 * data.c (Fsetq_default): Doc fix.
13075
13076 * eval.c (Fsetq): Doc fix.
13077
13078 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
13079
13080 * coding.c (Ffind_operation_coding_system):
13081 * eval.c (For, Fand): Doc fixes.
13082 Reported by Johan Bockgård.
13083
13084 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
13085
13086 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
13087
13088 * xterm.h: Declare x_ewmh_activate_frame.
13089
13090 * xterm.c (x_ewmh_activate_frame): New function.
13091 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
13092
13093 2007-07-17 Martin Rudalics <rudalics@gmx.at>
13094
13095 * window.c (Fdisplay_buffer): If largest or LRU window is the
13096 only window, split it even if it is not eligible for splitting.
13097 This restores the original behavior broken by the 2007-07-15
13098 change.
13099
13100 2007-07-17 Glenn Morris <rgm@gnu.org>
13101
13102 * abbrev.c (abbrev_check_chars): New function.
13103 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13104 Call abbrev_check_chars to check abbrev characters are word
13105 constituents. Doc fix.
13106
13107 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13108
13109 * process.c (Fstart_process, Fmake_network_process)
13110 (read_process_output): Fix up last changes.
13111
13112 2007-07-16 Eli Zaretskii <eliz@gnu.org>
13113
13114 * makefile.w32-in (clean): Don't delete *~.
13115
13116 2007-07-16 Andreas Schwab <schwab@suse.de>
13117
13118 * window.c (Fdisplay_buffer): Use NILP.
13119 (Fset_window_scroll_bars): Likewise.
13120
13121 2007-07-15 Martin Rudalics <rudalics@gmx.at>
13122
13123 * window.c (window_min_size_2): New function.
13124 (window_min_size_1, size_window, Fdisplay_buffer)
13125 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
13126 windows without mode- or header-lines when window-min-height is
13127 too small.
13128 (size_window): Reset nodelete_p after testing it, following an
13129 earlier note by Kim F. Storm.
13130 (display_buffer): Do not set split_height_threshold to twice the
13131 value of window_min_height to avoid changing the value of a
13132 customizable variable. Rather explicitly check whether the
13133 height of the window that shall be splitted is at least as large
13134 as split_height_threshold.
13135 (Fwindow_full_width_p): New defun.
13136 (syms_of_window): Defsubr it.
13137
13138 * window.h: Add EXFUN for Fwindow_full_width_p.
13139
13140 2007-07-14 Jason Rumney <jasonr@gnu.org>
13141
13142 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
13143
13144 2007-07-14 Richard Stallman <rms@gnu.org>
13145
13146 * eval.c (maybe_call_debugger): New function.
13147 (find_handler_clause): Use maybe_call_debugger.
13148 Call it when the handler says `debug'.
13149 Eliminate DEBUGGER_VALUE_PTR.
13150 (Fsignal): Eliminate debugger_value.
13151 (Qdebug): New variable.
13152 (syms_of_eval): Initialize it.
13153
13154 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
13155
13156 * eval.c (Fprogn):
13157 * keyboard.c (Ftrack_mouse):
13158 * print.c (Fwith_output_to_temp_buffer):
13159 * window.c (Fsave_window_excursion): Doc fix.
13160
13161 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
13162
13163 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
13164
13165 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
13166
13167 * process.h (struct Lisp_Process): Turn slots infd, outfd,
13168 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
13169 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
13170 read_output_delay, and read_output_skip from Lisp_Objects to ints.
13171 Remove unused encoding_carryover.
13172 * process.c: Adjust all functions accordingly.
13173
13174 2007-07-12 Richard Stallman <rms@gnu.org>
13175
13176 * term.c: Include unistd.h only if HAVE_UNISTD_H.
13177
13178 2007-07-11 Jason Rumney <jasonr@gnu.org>
13179
13180 * makefile.w32-in (LIBS): Include OLE32.
13181
13182 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
13183 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
13184
13185 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
13186
13187 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
13188 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
13189 from a Lisp_Object into a bare pointer.
13190 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13191 Adjust the code correspondingly.
13192
13193 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
13194
13195 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
13196 (term_show_mouse_face): Remove unused var `j'.
13197 (handle_one_term_event): Remove unused vars `i' and `j'.
13198 Don't cast return value of ttyname since it's not necessary.
13199
13200 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
13201
13202 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
13203 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
13204
13205 * fns.c (map_char_table): Use an array of int for `indices' rather than
13206 an array of Lisp_Objects (which are only ever integers anyway).
13207 (Fmap_char_table): Update caller.
13208 * lisp.h: Update prototype.
13209 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
13210 * fontset.c (Ffontset_info):
13211 * casetab.c (set_case_table): Update callers.
13212
13213 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
13214
13215 * keymap.c (struct accessible_keymaps_data)
13216 (struct where_is_internal_data): New structures.
13217 (accessible_keymaps_1, where_is_internal_1): Use them to change
13218 interface to adhere to the one used by map_keymap.
13219 (Faccessible_keymaps, where_is_internal): Use map_keymap.
13220 (accessible_keymaps_char_table, where_is_internal_2): Remove.
13221
13222 * keymap.h (map_keymap_function_t): More informative prototype.
13223
13224 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
13225
13226 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
13227 (looking_at_1): Don't change search_regs and last_thing_searched
13228 if `inhibit-changing-match-data' is non-nil.
13229 (string_match_1, search_buffer, set_search_regs): Likewise.
13230 (syms_of_search): Add Lisp level definition for
13231 `inhibit-changing-match-data' and set it to nil.
13232 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
13233 start and end of the match, instead of using values in search_regs.
13234
13235 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
13236
13237 * minibuf.c (Fcompleting_read): New value `confirm-only'
13238 for `require-match'.
13239
13240 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
13241
13242 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
13243 part of the 2007-06-27 change to syms_of_fileio.
13244
13245 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13246
13247 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
13248 Check WINDOWP before using XWINDOW. Consolidate return statements.
13249
13250 2007-06-27 Richard Stallman <rms@gnu.org>
13251
13252 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13253
13254 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
13255
13256 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
13257
13258 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13259
13260 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
13261 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
13262 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
13263 (_free_internal, memalign): Use them.
13264 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
13265 Initialize to PTHREAD_MUTEX_INITIALIZER.
13266 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
13267 (morecore_nolock): Rename from morecore. All uses changed.
13268 Use only nolock versions of internal allocation functions.
13269 (_malloc_internal_nolock, _realloc_internal_nolock)
13270 (_free_internal_nolock): New functions created from
13271 _malloc_internal, _realloc_internal, and _free_internal.
13272 (_malloc_internal, _realloc_internal, _free_internal): Use them.
13273 Copy hook value to automatic variable before its use.
13274 (memalign): Copy hook value to automatic variable before its use.
13275
13276 2007-06-26 Kenichi Handa <handa@m17n.org>
13277
13278 * coding.c (Ffind_operation_coding_system): Docstring improved.
13279 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
13280
13281 2007-06-25 David Kastrup <dak@gnu.org>
13282
13283 * keymap.c (Fcurrent_active_maps): Add `position' argument.
13284 (Fwhere_is_internal): Adjust call to `current-active-maps' to
13285 cater for additional parameter.
13286
13287 * keymap.h: Adjust number of parameters to `current-active-maps'.
13288
13289 * doc.c (Fsubstitute_command_keys): Adjust call of
13290 `current-active-maps'.
13291
13292 2007-06-25 David Kastrup <dak@gnu.org>
13293
13294 * callint.c (Fcall_interactively): Make the parsing of interactive
13295 specs somewhat more readable.
13296
13297 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13298
13299 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
13300 to scroll bar gap also when bitmap fills fringe. Draw only foreground
13301 if extended background has already been filled.
13302
13303 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13304
13305 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
13306 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
13307
13308 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
13309 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
13310 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
13311 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
13312 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
13313 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
13314 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
13315 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
13316 Run timers during dialog popup.
13317 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
13318
13319 2007-06-21 Jason Rumney <jasonr@gnu.org>
13320
13321 * image.c (convert_mono_to_color_image): Swap fore and background.
13322
13323 2007-06-20 Jason Rumney <jasonr@gnu.org>
13324
13325 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
13326 (w32_free_bdf_font): Unmap memory not handle.
13327
13328 2007-06-20 Sam Steingold <sds@gnu.org>
13329
13330 * gmalloc.c (__morecore): Fix the declaration to comply with the
13331 definition.
13332
13333 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
13334
13335 * w32term.c (w32_delete_display): Remove leftover declaration.
13336 (w32_define_cursor, w32_initialize): Make static.
13337
13338 * w32.c (_wsa_errlist): Fix typo in error message.
13339 (init_environment): Ignore any environment variable from the
13340 registry having a null value.
13341
13342 2007-06-20 Glenn Morris <rgm@gnu.org>
13343
13344 * Makefile.in (LIBGIF): Default to -lgif.
13345
13346 2007-06-17 Jason Rumney <jasonr@gnu.org>
13347
13348 * w32menu.c (add_menu_item): Don't use multibyte string functions on
13349 unicode strings.
13350
13351 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
13352
13353 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
13354 Fix typo in docstring.
13355
13356 2007-06-16 Eli Zaretskii <eliz@gnu.org>
13357
13358 * w32menu.c (add_menu_item): Escape `&' characters in menu items
13359 and their keybindings.
13360
13361 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
13362
13363 * composite.c (update_compositions): Fix last fix.
13364
13365 2007-06-14 Jason Rumney <jasonr@gnu.org>
13366
13367 * w32.c (get_process_times_fn): New function pointer.
13368 (globals_of_w32): Intialize it if present in kernel32.dll.
13369 (w32_get_internal_run_time): New function.
13370
13371 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
13372
13373 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
13374
13375 * composite.c (update_compositions): Check the validness of
13376 compositions.
13377
13378 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13379
13380 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
13381 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
13382
13383 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
13384 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
13385
13386 * macgui.h (USE_MAC_TOOLBAR): New define.
13387
13388 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13389 Return immediately unless popup is activated.
13390
13391 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
13392 background to scroll bar gap.
13393 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
13394 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
13395 scroll bars on frame edge. Check fringe background extension.
13396 Don't clear extended fringe background area.
13397 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
13398 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
13399 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
13400 [USE_MAC_TOOLBAR]: New macros.
13401 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
13402 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
13403 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
13404 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
13405 [USE_MAC_TOOLBAR]: New functions.
13406 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
13407 manually if previous repositioning has failed.
13408 (mac_handle_keyboard_event): Use precomputed event kind.
13409 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
13410 as tool bar item click. Handle mouse movement over tool bar items.
13411
13412 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
13413 toolbar_win_gravity.
13414 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
13415 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
13416 Add externs.
13417
13418 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
13419 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
13420
13421 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
13422
13423 * image.c (search_image_cache): Remove unused variable.
13424
13425 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
13426
13427 * xfns.c, xmenu.c: Link to xaw3d if available.
13428
13429 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13430
13431 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
13432 frame_foreground and frame_background.
13433
13434 * image.c (lookup_image): Save frame foreground and background colors.
13435 (search_image_cache): Check if saved and current frame colors match.
13436
13437 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13438
13439 * regex.c (regex_compile): Remove the `regnum' counter.
13440 Use bufp->re_nsub instead. Add support for \(?N:RE\).
13441
13442 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13443
13444 * term.c: Include intervals.h to declare Fget_text_property.
13445
13446 2007-06-10 Jason Rumney <jasonr@gnu.org>
13447
13448 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
13449
13450 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
13451
13452 * callint.c (Fcall_interactively):
13453 * editfns.c (Fdelete_and_extract_region):
13454 * fileio.c (Fread_file_name):
13455 * fns.c (Fmapconcat):
13456 * keyboard.c (cmd_error_internal):
13457 * keymap.c (Fkey_description):
13458 * lread.c (openp):
13459 * minibuf.c (read_minibuf):
13460 * search.c (wordify):
13461 * sunfns.c (sel_read):
13462 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
13463 * xfns.c (x_default_scroll_bar_color_parameter):
13464 * xmenu.c (menu_help_callback):
13465 * xselect.c (Fx_get_atom_name):
13466 * xterm.c (x_term_init): Use empty_unibyte_string.
13467
13468 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
13469
13470 * alloc.c (init_strings): Initialize canonical empty strings.
13471 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
13472 canonical empty string when the requested size is 0.
13473
13474 * emacs.c (empty_unibyte_string): Rename from empty_string.
13475 (empty_multibyte_string): New canonical empty string.
13476 (syms_of_emacs): Don't initialize empty_string.
13477
13478 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
13479 string, if appropriate.
13480 (empty_unibyte_string, empty_multibyte_string): New externs.
13481 (empty_string): Remove extern.
13482
13483 * lread.c (syms_of_lread): Use empty_unibyte_string.
13484
13485 2007-06-07 Jason Rumney <jasonr@gnu.org>
13486
13487 * s/ms-w32.h: Don't define HAVE_TZNAME.
13488
13489 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
13490
13491 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13492
13493 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
13494
13495 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
13496 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
13497
13498 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13499 Don't call next handler.
13500 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
13501 Remove argument. Install handler to application.
13502 (set_frame_menubar): Don't change deep_p.
13503 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
13504 FRAME_OUTER_TO_INNER_DIFF_Y.
13505 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13506 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13507 [HAVE_DIALOGS]: New macros.
13508 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
13509 Use them.
13510 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
13511
13512 * macselect.c [MAC_OSX] (install_service_handler): Rename from
13513 init_service_handler. All callers changed. Return OSStatus value.
13514
13515 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
13516 All callers changed so as not to call SetPortWindowPort.
13517 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
13518 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
13519 mac_draw_string_common.
13520 (mac_draw_image_string_qd): Likewise.
13521 (mac_draw_string_common): Use them. Add INLINE.
13522 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
13523 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
13524 GetGlobalMouse.
13525 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
13526 and FRAME_OUTER_TO_INNER_DIFF_Y.
13527 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
13528 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
13529 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
13530 repositioning window to mac_handle_window_event.
13531 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
13532 saving window location to mac_handle_window_event
13533 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
13534 (install_menu_target_item_handler): Remove argument in extern.
13535 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
13536 Also accept command events.
13537 (do_keystroke): New function created from XTread_socket.
13538 (init_command_handler): Remove functions.
13539 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
13540 and save window location by kEventWindowShowing and kEventWindowHiding
13541 handlers here. Don't call next handler for window state change and
13542 focus events.
13543 (mac_handle_application_event, mac_handle_keyboard_event)
13544 [TARGET_API_MAC_CARBON]: New functions.
13545 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
13546 kEventWindowShowing and kEventWindowHiding events. Move installation
13547 of mouse, font, text input and menu target item handlers to
13548 install_application_handler.
13549 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
13550 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13551 New function.
13552 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13553 Register it.
13554 (XTread_socket) [TARGET_API_MAC_CARBON]:
13555 Consolidate SendEventToEventTarget calls.
13556 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
13557 Move application activation handler to mac_handle_application_event.
13558 Move keyboard handler to mac_handle_keyboard_event.
13559 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
13560 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
13561 init_command_handler. Call install_application_handler.
13562
13563 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
13564 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
13565
13566 2007-06-07 Glenn Morris <rgm@gnu.org>
13567
13568 * emacs.c (main): Use `emacs-copyright' in --version output.
13569
13570 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
13571
13572 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
13573
13574 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13575
13576 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
13577
13578 * macgui.h: Replace WindowPtr with WindowRef.
13579
13580 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13581 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13582 Replace ControlHandle with ControlRef.
13583 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
13584
13585 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
13586 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
13587 Replace ControlHandle with ControlRef.
13588 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
13589 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
13590
13591 * macterm.h (struct scroll_bar): Rename member control_handle_low
13592 and control_handle_high to control_ref_low and control_ref_high.
13593 All uses changed.
13594 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
13595 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
13596 respectively. All uses changed.
13597 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
13598 (install_window_handler, remove_window_handler): Replace WindowPtr
13599 with WindowRef in externs.
13600
13601 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
13602
13603 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
13604
13605 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
13606
13607 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
13608
13609 * frame.c (Fmouse_position, Fmouse_pixel_position):
13610 Condition on HAVE_GPM too.
13611
13612 * term.c (term_mouse_highlight): Remove unused variables.
13613 (Fterm_open_connection): Set gpm_zerobased to 1.
13614 (term_mouse_movement, term_mouse_click, handle_one_term_event):
13615 Use zero based co-ordinates.
13616 (handle_one_term_event): Report a drag as mouse movement too.
13617
13618 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
13619
13620 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
13621
13622 * image.c (search_image_cache): New function. Require background
13623 color match if background color is unspecified in the image spec.
13624 (uncache_image, lookup_image): Use it.
13625
13626 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
13627
13628 * window.c (Fshrink_window): Reflow docstring.
13629
13630 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
13631
13632 * Version 22.1 released.
13633
13634 2007-06-01 Richard Stallman <rms@gnu.org>
13635
13636 * xfns.c (x_encode_text): Add GCPRO.
13637
13638 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13639
13640 * xfns.c (x_set_name_internal): Save encoded name before
13641 x_encode_text in case string data is relocated.
13642
13643 2007-05-31 Richard Stallman <rms@gnu.org>
13644
13645 * buffer.c (syms_of_buffer): Doc fix.
13646
13647 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
13648
13649 * sysdep.c (init_sys_modes): Add rather than replace with
13650 O_NONBLOCK.
13651
13652 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
13653 term_mouse_moveto.
13654
13655 * termhooks.h (term_mouse_moveto): New extern.
13656
13657 * term.c (mouse_face_window): Rename...
13658 (Qmouse_face_window): ...to this.
13659 (term_show_mouse_face, term_clear_mouse_face)
13660 (term_mouse_highlight): Use Qmouse_face_window.
13661 (term_mouse_moveto): New function.
13662 (term_mouse_position): Make it work.
13663 (syms_of_term): Uncomment assignment to mouse_position_hook.
13664 Staticpro Qmouse_face_window.
13665
13666 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13667
13668 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
13669 around current_column call.
13670
13671 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
13672
13673 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
13674 * xdisp.c (next_element_from_buffer):
13675 * window.c (delete_window):
13676 * term.c (term_mouse_highlight):
13677 * msdos.c (getdefdir):
13678 * macterm.c (mac_create_bitmap_from_bitmap_data)
13679 (init_font_name_table):
13680 * fns.c (Fsxhash):
13681 * data.c (Fmake_local_variable):
13682 * ccl.c (ccl_driver): Likewise.
13683
13684 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13685
13686 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
13687 Call mac_wakeup_from_rne on window size change.
13688
13689 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
13690
13691 * image.c (uncache_image): Fix typo.
13692
13693 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
13694
13695 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
13696
13697 2007-05-22 Richard Stallman <rms@gnu.org>
13698
13699 * xterm.c (x_connection_closed): Remove NO_RETURN.
13700
13701 2007-05-22 Martin Rudalics <rudalics@gmx.at>
13702
13703 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
13704
13705 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
13706
13707 * image.c (uncache_image): New function.
13708 (Fimage_refresh): New function.
13709
13710 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
13711
13712 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
13713
13714 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13715
13716 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
13717 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
13718
13719 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13720
13721 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
13722 conditional on [HAVE_GPM_H].
13723
13724 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13725
13726 * syntax.c (skip_chars): Update syntax-table only after we checked that
13727 the new location is valid.
13728
13729 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13730
13731 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
13732 mac_get_window_bounds.
13733
13734 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
13735
13736 * Makefile.in (LIBGPM): Allow it to be set from configure.
13737 If set then link Emacs with it.
13738
13739 * config.in: Regenerate.
13740
13741 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
13742 New externs.
13743
13744 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
13745 Include gpm.h.
13746 (handle_one_term_event, term_gpm): New externs.
13747
13748 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
13749 and allow it to be interrupted by SIGIO.
13750
13751 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
13752 (wait_reading_process_output): Wait on gpm_fd too.
13753 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
13754 (add_gpm_wait_descriptor_called_flag): New variable.
13755 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
13756
13757 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
13758 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
13759 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
13760 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
13761 (make_lispy_event): Add case GPM_CLICK_EVENT.
13762 (read_avail_input): Handle mouse input.
13763
13764 * term.c (write_glyphs_with_face): New function.
13765 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
13766 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
13767 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
13768 (mouse_face_face_id, term_gpm, pos_x, pos_y)
13769 (last_mouse_x, last_mouse_y): New variables.
13770 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
13771 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
13772 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
13773 (Fterm_close_connection): New functions.
13774 (term_init): Initialise mouse_face_window.
13775
13776 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
13777
13778 * xdisp.c (redisplay_window): If first window line is a
13779 continuation line, recompute the new window start instead of
13780 recentering.
13781
13782 2007-05-18 Glenn Morris <rgm@gnu.org>
13783
13784 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
13785 Suggested by Alfred M. Szmidt <ams@gnu.org>.
13786
13787 2007-05-17 Glenn Morris <rgm@gnu.org>
13788
13789 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
13790
13791 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13792
13793 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
13794 dead key repeat and up events.
13795
13796 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
13797
13798 * image.c (pbm_load): Check image size for monochrome pbm.
13799
13800 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
13801
13802 * xterm.c (XTread_socket): Revert last change.
13803
13804 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
13805
13806 * image.c (pbm_load): Correctly check image size for greyscale pbm.
13807
13808 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
13809
13810 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13811
13812 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
13813 mixup (YAILOM).
13814
13815 2007-05-07 Andreas Schwab <schwab@suse.de>
13816
13817 * keymap.c (Flookup_key): Fix typo in last change.
13818
13819 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13820
13821 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
13822 mapping for unibyte strings.
13823
13824 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13825
13826 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
13827 (Fx_popup_dialog) [MAC_OSX]: Likewise.
13828
13829 2007-04-29 Richard Stallman <rms@gnu.org>
13830
13831 * insdel.c (replace_range): For undo, record insertion first.
13832
13833 2007-04-29 Andreas Schwab <schwab@suse.de>
13834
13835 * lisp.h (VECSIZE): Use OFFSETOF.
13836
13837 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13838
13839 * xdisp.c (try_window_reusing_current_matrix): Fix number of
13840 disabled lines.
13841
13842 2007-04-28 Richard Stallman <rms@gnu.org>
13843
13844 * lread.c (read_escape): In a string, \s is always space.
13845
13846 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
13847
13848 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
13849
13850 * gtkutil.c (xg_update_menubar, create_menus): Create empty
13851 submenu for menu bar items.
13852
13853 See ChangeLog.10 for earlier changes.
13854
13855 ;; Local Variables:
13856 ;; coding: utf-8
13857 ;; add-log-time-zone-rule: t
13858 ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
13859 ;; End:
13860
13861 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
13862
13863 This file is part of GNU Emacs.
13864
13865 GNU Emacs is free software: you can redistribute it and/or modify
13866 it under the terms of the GNU General Public License as published by
13867 the Free Software Foundation, either version 3 of the License, or
13868 (at your option) any later version.
13869
13870 GNU Emacs is distributed in the hope that it will be useful,
13871 but WITHOUT ANY WARRANTY; without even the implied warranty of
13872 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13873 GNU General Public License for more details.
13874
13875 You should have received a copy of the GNU General Public License
13876 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
13877
13878 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40